node_ids
sequencelengths
4
1.4k
edge_index
sequencelengths
1
2.22k
text
sequencelengths
4
1.4k
source
stringlengths
14
427k
[ 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, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 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 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 73, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 14, 100 ], [ 100, 101 ], [ 14, 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 ], [ 114, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 114, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 125, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 136, 142 ], [ 142, 143 ], [ 142, 144 ], [ 135, 145 ], [ 145, 146 ], [ 114, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 114, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 154, 162 ], [ 162, 163 ], [ 163, 164 ], [ 154, 165 ], [ 166, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 172, 173 ], [ 172, 174 ], [ 166, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 178, 180 ], [ 175, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 114, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 12, 193 ], [ 193, 194 ] ]
[ "\n\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 int n = Integer.parseInt( br.readLine() );\n String[] string = br.readLine().split(\" \");\n int[] Progression = new int[n];\n\n for(int i = 0; i < n ; i++ ){\n\n\t Progression[i] = Integer.parseInt( string[i] );\n\n }\n\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n System.out.println();\n\n\n int v;\n for(int i = 1; i < n ; i++ ){\n v = Progression[i] ;\n int j = i - 1;\n\n\n\n while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }\n\n Progression[j + 1] = v;\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n\n\n System.out.println();\n\n\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 int n = Integer.parseInt( br.readLine() );\n String[] string = br.readLine().split(\" \");\n int[] Progression = new int[n];\n\n for(int i = 0; i < n ; i++ ){\n\n\t Progression[i] = Integer.parseInt( string[i] );\n\n }\n\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n System.out.println();\n\n\n int v;\n for(int i = 1; i < n ; i++ ){\n v = Progression[i] ;\n int j = i - 1;\n\n\n\n while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }\n\n Progression[j + 1] = v;\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n\n\n System.out.println();\n\n\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 int n = Integer.parseInt( br.readLine() );\n String[] string = br.readLine().split(\" \");\n int[] Progression = new int[n];\n\n for(int i = 0; i < n ; i++ ){\n\n\t Progression[i] = Integer.parseInt( string[i] );\n\n }\n\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n System.out.println();\n\n\n int v;\n for(int i = 1; i < n ; i++ ){\n v = Progression[i] ;\n int j = i - 1;\n\n\n\n while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }\n\n Progression[j + 1] = v;\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n\n\n System.out.println();\n\n\n }\n\n\n\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n int n = Integer.parseInt( br.readLine() );\n String[] string = br.readLine().split(\" \");\n int[] Progression = new int[n];\n\n for(int i = 0; i < n ; i++ ){\n\n\t Progression[i] = Integer.parseInt( string[i] );\n\n }\n\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n System.out.println();\n\n\n int v;\n for(int i = 1; i < n ; i++ ){\n v = Progression[i] ;\n int j = i - 1;\n\n\n\n while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }\n\n Progression[j + 1] = v;\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n\n\n System.out.println();\n\n\n }\n\n\n\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", "String[] string = br.readLine().split(\" \");", "string", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] Progression = new int[n];", "Progression", "new int[n]", "n", "for(int i = 0; i < n ; i++ ){\n\n\t Progression[i] = Integer.parseInt( string[i] );\n\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t Progression[i] = Integer.parseInt( string[i] );\n\n }", "{\n\n\t Progression[i] = Integer.parseInt( string[i] );\n\n }", "Progression[i] = Integer.parseInt( string[i] )", "Progression[i]", "Progression", "i", "Integer.parseInt( string[i] )", "Integer.parseInt", "Integer", "string[i]", "string", "i", "for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }", "{\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }", "System.out.print(Progression[k])", "System.out.print", "System.out", "System", "System.out", "Progression[k]", "Progression", "k", "if(k < n-1){\n System.out.print(\" \");\n }", "k < n-1", "k", "n-1", "n", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int v;", "v", "for(int i = 1; i < n ; i++ ){\n v = Progression[i] ;\n int j = i - 1;\n\n\n\n while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }\n\n Progression[j + 1] = v;\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n\n\n System.out.println();\n\n\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n v = Progression[i] ;\n int j = i - 1;\n\n\n\n while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }\n\n Progression[j + 1] = v;\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n\n\n System.out.println();\n\n\n }", "{\n v = Progression[i] ;\n int j = i - 1;\n\n\n\n while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }\n\n Progression[j + 1] = v;\n\n for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }\n\n\n System.out.println();\n\n\n }", "v = Progression[i]", "v", "Progression[i]", "Progression", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && Progression[j] > v){\n \t Progression[j + 1] = Progression[j];\n j--;\n }", "j >= 0 && Progression[j] > v", "j >= 0", "j", "0", "Progression[j] > v", "Progression[j]", "Progression", "j", "v", "{\n \t Progression[j + 1] = Progression[j];\n j--;\n }", "Progression[j + 1] = Progression[j]", "Progression[j + 1]", "Progression", "j + 1", "j", "1", "Progression[j]", "Progression", "j", "j--", "j", "Progression[j + 1] = v", "Progression[j + 1]", "Progression", "j + 1", "j", "1", "v", "for(int k = 0; k < n; k++){\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }", "{\n\n \t System.out.print(Progression[k]);\n \t if(k < n-1){\n System.out.print(\" \");\n }\n\n }", "System.out.print(Progression[k])", "System.out.print", "System.out", "System", "System.out", "Progression[k]", "Progression", "k", "if(k < n-1){\n System.out.print(\" \");\n }", "k < n-1", "k", "n-1", "n", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "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() ); String[] string = br.readLine().split(" "); int[] Progression = new int[n]; for(int i = 0; i < n ; i++ ){ Progression[i] = Integer.parseInt( string[i] ); } for(int k = 0; k < n; k++){ System.out.print(Progression[k]); if(k < n-1){ System.out.print(" "); } } System.out.println(); int v; for(int i = 1; i < n ; i++ ){ v = Progression[i] ; int j = i - 1; while(j >= 0 && Progression[j] > v){ Progression[j + 1] = Progression[j]; j--; } Progression[j + 1] = v; for(int k = 0; k < n; k++){ System.out.print(Progression[k]); if(k < n-1){ System.out.print(" "); } } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 18, 36, 13, 12, 13, 30, 29, 18, 36, 13, 12, 13, 30, 29, 18, 36, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 4, 13, 17, 17, 17, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 13, 12, 13, 30, 29, 13, 13, 6, 13, 41, 13, 20, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 20, 13, 29, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 20, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 4, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 12, 30 ], [ 30, 31 ], [ 12, 32 ], [ 32, 33 ], [ 12, 34 ], [ 34, 35 ], [ 4, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 4, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 4, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 57, 61 ], [ 61, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 66, 69 ], [ 66, 70 ], [ 65, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 63, 81 ], [ 81, 82 ], [ 63, 83 ], [ 83, 84 ], [ 57, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 57, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 57, 95 ], [ 0, 96 ], [ 279, 97 ], [ 279, 98 ], [ 98, 99 ], [ 98, 100 ], [ 279, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 104, 116 ], [ 116, 117 ], [ 117, 118 ], [ 104, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 103, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 101, 143 ], [ 143, 144 ], [ 279, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 155, 157 ], [ 148, 158 ], [ 158, 159 ], [ 159, 160 ], [ 148, 161 ], [ 162, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 165, 167 ], [ 162, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 170, 172 ], [ 162, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 173, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 187, 189 ], [ 184, 190 ], [ 190, 191 ], [ 190, 192 ], [ 183, 193 ], [ 193, 194 ], [ 162, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 195, 201 ], [ 162, 202 ], [ 202, 203 ], [ 203, 204 ], [ 202, 205 ], [ 147, 206 ], [ 206, 207 ], [ 145, 208 ], [ 208, 209 ], [ 279, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 213, 217 ], [ 217, 218 ], [ 218, 219 ], [ 213, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 222, 225 ], [ 225, 226 ], [ 225, 227 ], [ 210, 228 ], [ 228, 229 ], [ 210, 230 ], [ 230, 231 ], [ 279, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 234, 240 ], [ 240, 241 ], [ 240, 242 ], [ 234, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 244, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 251, 253 ], [ 244, 254 ], [ 254, 255 ], [ 255, 256 ], [ 244, 257 ], [ 258, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 263, 264 ], [ 264, 265 ], [ 234, 266 ], [ 266, 267 ], [ 267, 268 ], [ 266, 269 ], [ 279, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 270, 276 ], [ 276, 277 ], [ 0, 278 ], [ 278, 279 ], [ 278, 280 ] ]
[ "\nimport java.util.*;\n\nclass Animal\n{\n String name;\n String genus;\n int region;\n\n public Animal(String name, String genus, int region)\n {\n this.name = name;\n this.genus = genus;\n this.region = region;\n }\n\n public int getRegion()\n {\n return this.region;\n }\n\n public String getGenus()\n {\n return this.genus;\n }\n\n public String getName()\n {\n return this.name;\n }\n}\n\nclass Human extends Animal\n{\n String sex;\n String bloodGroup;\n\n public Human(String sex, String bloodGroup)\n {\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }\n\n public String getSex()\n {\n return sex;\n }\n\n public String getBloodGroup()\n {\n return bloodGroup;\n }\n}\n\npublic class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int N=in.nextInt();\n int[] box = new int[N];\n for (int i = 0; i <box.length ; i++)\n {\n box[i] = in.nextInt();\n }\n\n new Main().insert(box);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}", "import java.util.*;", "util.*", "java", "class Animal\n{\n String name;\n String genus;\n int region;\n\n public Animal(String name, String genus, int region)\n {\n this.name = name;\n this.genus = genus;\n this.region = region;\n }\n\n public int getRegion()\n {\n return this.region;\n }\n\n public String getGenus()\n {\n return this.genus;\n }\n\n public String getName()\n {\n return this.name;\n }\n}", "Animal", "String name;", "name", "String genus;", "genus", "int region;", "region", "public Animal(String name, String genus, int region)\n {\n this.name = name;\n this.genus = genus;\n this.region = region;\n }", "Animal", "{\n this.name = name;\n this.genus = genus;\n this.region = region;\n }", "this.name = name", "this.name", "this", "this.name", "name", "this.genus = genus", "this.genus", "this", "this.genus", "genus", "this.region = region", "this.region", "this", "this.region", "region", "String name", "name", "String genus", "genus", "int region", "region", "public int getRegion()\n {\n return this.region;\n }", "getRegion", "{\n return this.region;\n }", "return this.region;", "this.region", "this", "this.region", "public String getGenus()\n {\n return this.genus;\n }", "getGenus", "{\n return this.genus;\n }", "return this.genus;", "this.genus", "this", "this.genus", "public String getName()\n {\n return this.name;\n }", "getName", "{\n return this.name;\n }", "return this.name;", "this.name", "this", "this.name", "class Human extends Animal\n{\n String sex;\n String bloodGroup;\n\n public Human(String sex, String bloodGroup)\n {\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }\n\n public String getSex()\n {\n return sex;\n }\n\n public String getBloodGroup()\n {\n return bloodGroup;\n }\n}", "Human", "String sex;", "sex", "String bloodGroup;", "bloodGroup", "public Human(String sex, String bloodGroup)\n {\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }", "Human", "{\n super(\"HS\", \"homo\", 1);\n this.sex = sex;\n this.bloodGroup = bloodGroup;\n }", "super(\"HS\", \"homo\", 1)", "super", "\"HS\"", "\"homo\"", "1", "this.sex = sex", "this.sex", "this", "this.sex", "sex", "this.bloodGroup = bloodGroup", "this.bloodGroup", "this", "this.bloodGroup", "bloodGroup", "String sex", "sex", "String bloodGroup", "bloodGroup", "public String getSex()\n {\n return sex;\n }", "getSex", "{\n return sex;\n }", "return sex;", "sex", "public String getBloodGroup()\n {\n return bloodGroup;\n }", "getBloodGroup", "{\n return bloodGroup;\n }", "return bloodGroup;", "bloodGroup", "Animal", "public class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int N=in.nextInt();\n int[] box = new int[N];\n for (int i = 0; i <box.length ; i++)\n {\n box[i] = in.nextInt();\n }\n\n new Main().insert(box);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}", "Main", "public static Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }", "print", "{\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }", "for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }", "int i = 0;", "int i = 0;", "i", "0", "i <a.length-1", "i", "a.length-1", "a.length", "a", "a.length", "1", "i++", "i++", "i", "{\n System.out.print(a[i]+\" \");\n }", "{\n System.out.print(a[i]+\" \");\n }", "System.out.print(a[i]+\" \")", "System.out.print", "System.out", "System", "System.out", "a[i]+\" \"", "a[i]", "a", "i", "\" \"", "System.out.println(a[a.length-1])", "System.out.println", "System.out", "System", "System.out", "a[a.length-1]", "a", "a.length-1", "a.length", "a", "a.length", "1", "int[] a", "a", "public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }", "insert", "{\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }", "for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }", "int i = 0;", "int i = 0;", "i", "0", "i <a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }", "{\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }", "int key=a[i];", "key", "a[i]", "a", "i", "int j=i-1;", "j", "i-1", "i", "1", "while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }", "j>=0 && a[j]>key", "j>=0", "j", "0", "a[j]>key", "a[j]", "a", "j", "key", "{\n a[j+1] = a[j];\n j--;\n }", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = key", "a[j+1]", "a", "j+1", "j", "1", "key", "new Main().print(a)", "new Main().print", "new Main()", "a", "return a;", "a", "int[] a", "a", "public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }", "gcd", "{\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }", "if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }", "b==0", "b", "0", "{\n return a;\n }", "return a;", "a", "{\n return gcd(b, a%b);\n }", "return gcd(b, a%b);", "gcd(b, a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "public void go()\n {\n int N=in.nextInt();\n int[] box = new int[N];\n for (int i = 0; i <box.length ; i++)\n {\n box[i] = in.nextInt();\n }\n\n new Main().insert(box);\n\n }", "go", "{\n int N=in.nextInt();\n int[] box = new int[N];\n for (int i = 0; i <box.length ; i++)\n {\n box[i] = in.nextInt();\n }\n\n new Main().insert(box);\n\n }", "int N=in.nextInt();", "N", "in.nextInt()", "in.nextInt", "in", "int[] box = new int[N];", "box", "new int[N]", "N", "for (int i = 0; i <box.length ; i++)\n {\n box[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i <box.length", "i", "box.length", "box", "box.length", "i++", "i++", "i", "{\n box[i] = in.nextInt();\n }", "{\n box[i] = in.nextInt();\n }", "box[i] = in.nextInt()", "box[i]", "box", "i", "in.nextInt()", "in.nextInt", "in", "new Main().insert(box)", "new Main().insert", "new Main()", "box", "public static void main(String[] args)\n {\n new Main().go();\n\n\n }", "main", "{\n new Main().go();\n\n\n }", "new Main().go()", "new Main().go", "new Main()", "String[] args", "args", "public class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int N=in.nextInt();\n int[] box = new int[N];\n for (int i = 0; i <box.length ; i++)\n {\n box[i] = in.nextInt();\n }\n\n new Main().insert(box);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}", "public class Main\n{\n\n public static Scanner in = new Scanner(System.in);\n\n public void print(int[] a)\n {\n for (int i = 0; i <a.length-1 ; i++)\n {\n System.out.print(a[i]+\" \");\n }\n System.out.println(a[a.length-1]);\n }\n\n public int[] insert(int[] a)\n {\n\n for (int i = 0; i <a.length ; i++)\n {\n int key=a[i];\n int j=i-1;\n\n while (j>=0 && a[j]>key)\n {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n new Main().print(a);\n }\n return a;\n\n }\n\n public int gcd(int a, int b)\n {\n if(b==0)\n {\n return a;\n }\n else\n {\n return gcd(b, a%b);\n }\n }\n\n public void go()\n {\n int N=in.nextInt();\n int[] box = new int[N];\n for (int i = 0; i <box.length ; i++)\n {\n box[i] = in.nextInt();\n }\n\n new Main().insert(box);\n\n }\n\n public static void main(String[] args)\n {\n new Main().go();\n\n\n }\n}", "Main" ]
import java.util.*; class Animal { String name; String genus; int region; public Animal(String name, String genus, int region) { this.name = name; this.genus = genus; this.region = region; } public int getRegion() { return this.region; } public String getGenus() { return this.genus; } public String getName() { return this.name; } } class Human extends Animal { String sex; String bloodGroup; public Human(String sex, String bloodGroup) { super("HS", "homo", 1); this.sex = sex; this.bloodGroup = bloodGroup; } public String getSex() { return sex; } public String getBloodGroup() { return bloodGroup; } } public class Main { public static Scanner in = new Scanner(System.in); public void print(int[] a) { for (int i = 0; i <a.length-1 ; i++) { System.out.print(a[i]+" "); } System.out.println(a[a.length-1]); } public int[] insert(int[] a) { for (int i = 0; i <a.length ; i++) { int key=a[i]; int j=i-1; while (j>=0 && a[j]>key) { a[j+1] = a[j]; j--; } a[j+1] = key; new Main().print(a); } return a; } public int gcd(int a, int b) { if(b==0) { return a; } else { return gcd(b, a%b); } } public void go() { int N=in.nextInt(); int[] box = new int[N]; for (int i = 0; i <box.length ; i++) { box[i] = in.nextInt(); } new Main().insert(box); } public static void main(String[] args) { new Main().go(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 165, 5 ], [ 165, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 6, 49 ], [ 49, 50 ], [ 165, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 66, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 66, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 66, 106 ], [ 106, 107 ], [ 106, 108 ], [ 106, 109 ], [ 51, 110 ], [ 110, 111 ], [ 51, 112 ], [ 112, 113 ], [ 165, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 122, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 134, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 116, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 114, 160 ], [ 160, 161 ], [ 114, 162 ], [ 162, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint listCount = scanner.nextInt();\n\t\tint[] listSort = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}\n\t\ttrace(listSort, listCount);\n\t\tinsertionSort(listSort, listCount);\n\t}\n\n\tprivate static void insertionSort(int[] listSort, int listCount){\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}\n\t}\n\n\tprivate static void trace(int[] listSort, int listCount){\n\t\tint jugeCount = listCount - 1;\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\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\tint listCount = scanner.nextInt();\n\t\tint[] listSort = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}\n\t\ttrace(listSort, listCount);\n\t\tinsertionSort(listSort, listCount);\n\t}\n\n\tprivate static void insertionSort(int[] listSort, int listCount){\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}\n\t}\n\n\tprivate static void trace(int[] listSort, int listCount){\n\t\tint jugeCount = listCount - 1;\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint listCount = scanner.nextInt();\n\t\tint[] listSort = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}\n\t\ttrace(listSort, listCount);\n\t\tinsertionSort(listSort, listCount);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint listCount = scanner.nextInt();\n\t\tint[] listSort = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}\n\t\ttrace(listSort, listCount);\n\t\tinsertionSort(listSort, listCount);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int listCount = scanner.nextInt();", "listCount", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] listSort = new int[listCount];", "listSort", "new int[listCount]", "listCount", "for(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < listCount", "i", "listCount", "i++", "i++", "i", "{\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}", "{\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}", "listSort[i] = scanner.nextInt()", "listSort[i]", "listSort", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "trace(listSort, listCount)", "trace", "listSort", "listCount", "insertionSort(listSort, listCount)", "insertionSort", "listSort", "listCount", "String[] args", "args", "private static void insertionSort(int[] listSort, int listCount){\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}\n\t}", "insertionSort", "{\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}\n\t}", "for(int i = 1; i < listCount; i++){\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < listCount", "i", "listCount", "i++", "i++", "i", "{\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}", "{\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}", "int v = listSort[i];", "v", "listSort[i]", "listSort", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}", "(j >= 0) && (listSort[j] > v)", "(j >= 0)", "j", "0", "(listSort[j] > v)", "listSort[j]", "listSort", "j", "v", "{\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}", "listSort[j + 1] = listSort[j]", "listSort[j + 1]", "listSort", "j + 1", "j", "1", "listSort[j]", "listSort", "j", "j--", "j", "listSort[j + 1] = v", "listSort[j + 1]", "listSort", "j + 1", "j", "1", "v", "trace(listSort, listCount)", "trace", "listSort", "listCount", "int[] listSort", "listSort", "int listCount", "listCount", "private static void trace(int[] listSort, int listCount){\n\t\tint jugeCount = listCount - 1;\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "trace", "{\n\t\tint jugeCount = listCount - 1;\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "int jugeCount = listCount - 1;", "jugeCount", "listCount - 1", "listCount", "1", "for(int i = 0; i < listCount; i++){\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < listCount", "i", "listCount", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "System.out.print(listSort[i])", "System.out.print", "System.out", "System", "System.out", "listSort[i]", "listSort", "i", "if(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "i < jugeCount", "i", "jugeCount", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "int[] listSort", "listSort", "int listCount", "listCount", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint listCount = scanner.nextInt();\n\t\tint[] listSort = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}\n\t\ttrace(listSort, listCount);\n\t\tinsertionSort(listSort, listCount);\n\t}\n\n\tprivate static void insertionSort(int[] listSort, int listCount){\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}\n\t}\n\n\tprivate static void trace(int[] listSort, int listCount){\n\t\tint jugeCount = listCount - 1;\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint listCount = scanner.nextInt();\n\t\tint[] listSort = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}\n\t\ttrace(listSort, listCount);\n\t\tinsertionSort(listSort, listCount);\n\t}\n\n\tprivate static void insertionSort(int[] listSort, int listCount){\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tint v = listSort[i];\n\t\t\tint j = i - 1;\n\t\t\twhile((j >= 0) && (listSort[j] > v)){\n\t\t\t\tlistSort[j + 1] = listSort[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlistSort[j + 1] = v;\n\t\t\ttrace(listSort, listCount);\n\t\t}\n\t}\n\n\tprivate static void trace(int[] listSort, int listCount){\n\t\tint jugeCount = listCount - 1;\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tSystem.out.print(listSort[i]);\n\t\t\tif(i < jugeCount){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int listCount = scanner.nextInt(); int[] listSort = new int[listCount]; for(int i = 0; i < listCount; i++){ listSort[i] = scanner.nextInt(); } trace(listSort, listCount); insertionSort(listSort, listCount); } private static void insertionSort(int[] listSort, int listCount){ for(int i = 1; i < listCount; i++){ int v = listSort[i]; int j = i - 1; while((j >= 0) && (listSort[j] > v)){ listSort[j + 1] = listSort[j]; j--; } listSort[j + 1] = v; trace(listSort, listCount); } } private static void trace(int[] listSort, int listCount){ int jugeCount = listCount - 1; for(int i = 0; i < listCount; i++){ System.out.print(listSort[i]); if(i < jugeCount){ System.out.print(" "); } } System.out.print("\n"); } }
[ 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, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 179, 8 ], [ 179, 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 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 34, 35 ], [ 34, 36 ], [ 11, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 11, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 9, 66 ], [ 66, 67 ], [ 179, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 86, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 117 ], [ 117, 118 ], [ 86, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 86, 126 ], [ 126, 127 ], [ 126, 128 ], [ 68, 129 ], [ 129, 130 ], [ 68, 131 ], [ 131, 132 ], [ 179, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 136, 146 ], [ 146, 147 ], [ 147, 148 ], [ 136, 149 ], [ 150, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 150, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 167, 168 ], [ 167, 169 ], [ 135, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 133, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tString[] inputValueAry = br.readLine().split(\" \");\n\t\tint[] array = new int[inputValueAry.length];\n\t\tfor (int i = 0; i < inputValueAry.length; i ++) {\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}\n\t\tinsertionSort(array, number);\n\t}\n\n\tpublic static void insertionSort(int[] array, int number) {\n\n\t\tprintArray(array);\n\t\tfor (int i = 1; i < number; i ++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}\n\t}\n\n\tpublic static void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i ++) {\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tString[] inputValueAry = br.readLine().split(\" \");\n\t\tint[] array = new int[inputValueAry.length];\n\t\tfor (int i = 0; i < inputValueAry.length; i ++) {\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}\n\t\tinsertionSort(array, number);\n\t}\n\n\tpublic static void insertionSort(int[] array, int number) {\n\n\t\tprintArray(array);\n\t\tfor (int i = 1; i < number; i ++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}\n\t}\n\n\tpublic static void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i ++) {\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tString[] inputValueAry = br.readLine().split(\" \");\n\t\tint[] array = new int[inputValueAry.length];\n\t\tfor (int i = 0; i < inputValueAry.length; i ++) {\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}\n\t\tinsertionSort(array, number);\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tString[] inputValueAry = br.readLine().split(\" \");\n\t\tint[] array = new int[inputValueAry.length];\n\t\tfor (int i = 0; i < inputValueAry.length; i ++) {\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}\n\t\tinsertionSort(array, number);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int number = Integer.parseInt(br.readLine());", "number", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String[] inputValueAry = br.readLine().split(\" \");", "inputValueAry", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] array = new int[inputValueAry.length];", "array", "new int[inputValueAry.length]", "inputValueAry.length", "inputValueAry", "inputValueAry.length", "for (int i = 0; i < inputValueAry.length; i ++) {\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < inputValueAry.length", "i", "inputValueAry.length", "inputValueAry", "inputValueAry.length", "i ++", "i ++", "i", "{\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}", "{\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}", "array[i] = Integer.parseInt(inputValueAry[i])", "array[i]", "array", "i", "Integer.parseInt(inputValueAry[i])", "Integer.parseInt", "Integer", "inputValueAry[i]", "inputValueAry", "i", "insertionSort(array, number)", "insertionSort", "array", "number", "String[] args", "args", "public static void insertionSort(int[] array, int number) {\n\n\t\tprintArray(array);\n\t\tfor (int i = 1; i < number; i ++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}\n\t}", "insertionSort", "{\n\n\t\tprintArray(array);\n\t\tfor (int i = 1; i < number; i ++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}\n\t}", "printArray(array)", "printArray", "array", "for (int i = 1; i < number; i ++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < number", "i", "number", "i ++", "i ++", "i", "{\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}", "{\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}", "int v = array[i];", "v", "array[i]", "array", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && array[j] > v", "j >= 0", "j", "0", "array[j] > v", "array[j]", "array", "j", "v", "{\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "array[j + 1] = array[j]", "array[j + 1]", "array", "j + 1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j + 1] = v", "array[j + 1]", "array", "j + 1", "j", "1", "v", "printArray(array)", "printArray", "array", "int[] array", "array", "int number", "number", "public static void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i ++) {\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "printArray", "{\n\t\tfor (int i = 0; i < array.length; i ++) {\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "for (int i = 0; i < array.length; i ++) {\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < array.length", "i", "array.length", "array", "array.length", "i ++", "i ++", "i", "{\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}", "{\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}", "if (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "i != 0", "i", "0", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(array[i])", "System.out.print", "System.out", "System", "System.out", "array[i]", "array", "i", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int[] array", "array", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tString[] inputValueAry = br.readLine().split(\" \");\n\t\tint[] array = new int[inputValueAry.length];\n\t\tfor (int i = 0; i < inputValueAry.length; i ++) {\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}\n\t\tinsertionSort(array, number);\n\t}\n\n\tpublic static void insertionSort(int[] array, int number) {\n\n\t\tprintArray(array);\n\t\tfor (int i = 1; i < number; i ++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}\n\t}\n\n\tpublic static void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i ++) {\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tString[] inputValueAry = br.readLine().split(\" \");\n\t\tint[] array = new int[inputValueAry.length];\n\t\tfor (int i = 0; i < inputValueAry.length; i ++) {\n\t\t\tarray[i] = Integer.parseInt(inputValueAry[i]);\n\t\t}\n\t\tinsertionSort(array, number);\n\t}\n\n\tpublic static void insertionSort(int[] array, int number) {\n\n\t\tprintArray(array);\n\t\tfor (int i = 1; i < number; i ++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t\tprintArray(array);\n\t\t}\n\t}\n\n\tpublic static void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i ++) {\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\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 number = Integer.parseInt(br.readLine()); String[] inputValueAry = br.readLine().split(" "); int[] array = new int[inputValueAry.length]; for (int i = 0; i < inputValueAry.length; i ++) { array[i] = Integer.parseInt(inputValueAry[i]); } insertionSort(array, number); } public static void insertionSort(int[] array, int number) { printArray(array); for (int i = 1; i < number; i ++) { int v = array[i]; int j = i - 1; while (j >= 0 && array[j] > v) { array[j + 1] = array[j]; j--; } array[j + 1] = v; printArray(array); } } public static void printArray(int[] array) { for (int i = 0; i < array.length; i ++) { if (i != 0) { System.out.print(" "); } System.out.print(array[i]); } System.out.println(""); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 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, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 182, 5 ], [ 182, 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 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 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 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 8, 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 ], [ 65, 66 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 62, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 100, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 100, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 111, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 128, 129 ], [ 128, 130 ], [ 121, 131 ], [ 131, 132 ], [ 121, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 133, 139 ], [ 100, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 145, 147 ], [ 140, 148 ], [ 148, 149 ], [ 149, 150 ], [ 140, 151 ], [ 152, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 156, 158 ], [ 153, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 153, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 176, 177 ], [ 176, 178 ], [ 6, 179 ], [ 179, 180 ], [ 0, 181 ], [ 181, 182 ], [ 181, 183 ] ]
[ "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\t\tint N=scan.nextInt();\n\t\tint i,j,v,n,A[]=new int[N];\n\t\tfor(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}\n\t\tfor(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<N;i++){\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint i,j,v,n,A[]=new int[N];\n\t\tfor(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}\n\t\tfor(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<N;i++){\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint i,j,v,n,A[]=new int[N];\n\t\tfor(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}\n\t\tfor(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<N;i++){\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint i,j,v,n,A[]=new int[N];\n\t\tfor(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}\n\t\tfor(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<N;i++){\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N=scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int i", "i", "j", "j", "v", "v", "n", "n", "A[]=new int[N];", "A", "new int[N]", "N", "for(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}", "i=0;", "i=0", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tA[i]=scan.nextInt();\n\t\t}", "{\n\t\t\tA[i]=scan.nextInt();\n\t\t}", "A[i]=scan.nextInt()", "A[i]", "A", "i", "scan.nextInt()", "scan.nextInt", "scan", "for(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}", "n=0;", "n=0", "n", "0", "n<N", "n", "N", "n++", "n++", "n", "{\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}", "{\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}", "if(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}", "n!=N-1", "n", "N-1", "N", "1", "{\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}", "System.out.print(A[n]+\" \")", "System.out.print", "System.out", "System", "System.out", "A[n]+\" \"", "A[n]", "A", "n", "\" \"", "{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}", "System.out.println(A[n])", "System.out.println", "System.out", "System", "System.out", "A[n]", "A", "n", "for(i=1;i<N;i++){\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "i=1;", "i=1", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "v=A[i]", "v", "A[i]", "A", "i", "j=i-1", "j", "i-1", "i", "1", "while(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}", "j>=0 && A[j]>v", "j>=0", "j", "0", "A[j]>v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}", "A[j+1]=A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1]=v", "A[j+1]", "A", "j+1", "j", "1", "v", "for(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}", "n=0;", "n=0", "n", "0", "n<N", "n", "N", "n++", "n++", "n", "{\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}", "if(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}", "n!=N-1", "n", "N-1", "N", "1", "{\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}", "System.out.print(A[n]+\" \")", "System.out.print", "System.out", "System", "System.out", "A[n]+\" \"", "A[n]", "A", "n", "\" \"", "{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}", "System.out.println(A[n])", "System.out.println", "System.out", "System", "System.out", "A[n]", "A", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint i,j,v,n,A[]=new int[N];\n\t\tfor(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}\n\t\tfor(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<N;i++){\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint i,j,v,n,A[]=new int[N];\n\t\tfor(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}\n\t\tfor(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(A[n]);\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<N;i++){\n\t\t\tv=A[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && A[j]>v ){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j+1]=v;\n\t\t\t}\n\t\t\tfor(n=0;n<N;n++){\n\t\t\t\tif(n!=N-1){\n\t\t\t\t\tSystem.out.print(A[n]+\" \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(A[n]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int N=scan.nextInt(); int i,j,v,n,A[]=new int[N]; for(i=0;i<N;i++){ A[i]=scan.nextInt(); } for(n=0;n<N;n++){ if(n!=N-1){ System.out.print(A[n]+" "); } else{ System.out.println(A[n]); } } for(i=1;i<N;i++){ v=A[i]; j=i-1; while(j>=0 && A[j]>v ){ A[j+1]=A[j]; j--; A[j+1]=v; } for(n=0;n<N;n++){ if(n!=N-1){ System.out.print(A[n]+" "); } else{ System.out.println(A[n]); } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 3, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 13, 13, 14, 2, 13, 2, 13, 17, 30, 3, 11, 1, 41, 13, 2, 13, 17, 2, 17, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 13, 17, 30, 41, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 30, 3, 4, 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 ], [ 194, 11 ], [ 194, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 15, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 29, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 38, 46 ], [ 46, 47 ], [ 29, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 14, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 12, 59 ], [ 59, 60 ], [ 194, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 77, 82 ], [ 63, 83 ], [ 83, 84 ], [ 83, 85 ], [ 63, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 87, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 63, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 110, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 122, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 131, 137 ], [ 137, 138 ], [ 122, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 139, 146 ], [ 146, 147 ], [ 146, 148 ], [ 139, 149 ], [ 149, 150 ], [ 150, 151 ], [ 139, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 161, 163 ], [ 154, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 164, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 175, 177 ], [ 172, 178 ], [ 178, 179 ], [ 178, 180 ], [ 164, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 154, 186 ], [ 186, 187 ], [ 122, 188 ], [ 188, 189 ], [ 188, 190 ], [ 61, 191 ], [ 191, 192 ], [ 0, 193 ], [ 193, 194 ], [ 193, 195 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void printArray(int[] intArray){\n\t\tfor (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tint seriesNum = Integer.parseInt(br.readLine());\n\t\tString[] series = br.readLine().split(\" \");\n\t\tint[] cardNumberResult = new int[seriesNum];\n\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void printArray(int[] intArray){\n\t\tfor (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tint seriesNum = Integer.parseInt(br.readLine());\n\t\tString[] series = br.readLine().split(\" \");\n\t\tint[] cardNumberResult = new int[seriesNum];\n\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}\n\t}\n}", "Main", "public static void printArray(int[] intArray){\n\t\tfor (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "printArray", "{\n\t\tfor (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "for (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intArray.length", "i", "intArray.length", "intArray", "intArray.length", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}", "{\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}", "System.out.print(intArray[i])", "System.out.print", "System.out", "System", "System.out", "intArray[i]", "intArray", "i", "if (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}", "i == intArray.length - 1", "i", "intArray.length - 1", "intArray.length", "intArray", "intArray.length", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] intArray", "intArray", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tint seriesNum = Integer.parseInt(br.readLine());\n\t\tString[] series = br.readLine().split(\" \");\n\t\tint[] cardNumberResult = new int[seriesNum];\n\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tint seriesNum = Integer.parseInt(br.readLine());\n\t\tString[] series = br.readLine().split(\" \");\n\t\tint[] cardNumberResult = new int[seriesNum];\n\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader (new InputStreamReader(System.in));", "br", "new BufferedReader (new InputStreamReader(System.in))", "int seriesNum = Integer.parseInt(br.readLine());", "seriesNum", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String[] series = br.readLine().split(\" \");", "series", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] cardNumberResult = new int[seriesNum];", "cardNumberResult", "new int[seriesNum]", "seriesNum", "for (int i = 0; i < seriesNum; i++){\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < seriesNum", "i", "seriesNum", "i++", "i++", "i", "{\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}", "{\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}", "cardNumberResult[i] = Integer.parseInt(series[i])", "cardNumberResult[i]", "cardNumberResult", "i", "Integer.parseInt(series[i])", "Integer.parseInt", "Integer", "series[i]", "series", "i", "for (int i = 0; i < seriesNum; i++){\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < seriesNum", "i", "seriesNum", "i++", "i++", "i", "{\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}", "{\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}", "if (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}", "i == 0", "i", "0", "{\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}", "printArray(cardNumberResult)", "printArray", "cardNumberResult", "if (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}", "i == seriesNum -1", "i", "seriesNum -1", "seriesNum", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int j = i + 1;", "int j = i + 1;", "j", "i + 1", "i", "1", "0 < j", "0", "j", "j--", "j--", "j", "{\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "cardNumberResult[j] < cardNumberResult[j - 1]", "cardNumberResult[j]", "cardNumberResult", "j", "cardNumberResult[j - 1]", "cardNumberResult", "j - 1", "j", "1", "{\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}", "int tmp = cardNumberResult[j - 1];", "tmp", "cardNumberResult[j - 1]", "cardNumberResult", "j - 1", "j", "1", "cardNumberResult[j - 1] = cardNumberResult[j]", "cardNumberResult[j - 1]", "cardNumberResult", "j - 1", "j", "1", "cardNumberResult[j]", "cardNumberResult", "j", "cardNumberResult[j] = tmp", "cardNumberResult[j]", "cardNumberResult", "j", "tmp", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "printArray(cardNumberResult)", "printArray", "cardNumberResult", "String[] args", "args", "public class Main {\n\n\tpublic static void printArray(int[] intArray){\n\t\tfor (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tint seriesNum = Integer.parseInt(br.readLine());\n\t\tString[] series = br.readLine().split(\" \");\n\t\tint[] cardNumberResult = new int[seriesNum];\n\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void printArray(int[] intArray){\n\t\tfor (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tint seriesNum = Integer.parseInt(br.readLine());\n\t\tString[] series = br.readLine().split(\" \");\n\t\tint[] cardNumberResult = new int[seriesNum];\n\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tcardNumberResult[i] = Integer.parseInt(series[i]);\n\t\t}\n\t\tfor (int i = 0; i < seriesNum; i++){\n\t\t\tif (i == 0){\n\t\t\t\tprintArray(cardNumberResult);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == seriesNum -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = i + 1; 0 < j ; j--) {\n\n\t\t\t\tif (cardNumberResult[j] < cardNumberResult[j - 1]){\n\t\t\t\t\tint tmp = cardNumberResult[j - 1];\n\t\t\t\t\tcardNumberResult[j - 1] = cardNumberResult[j];\n\t\t\t\t\tcardNumberResult[j] = tmp;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintArray(cardNumberResult);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void printArray(int[] intArray){ for (int i = 0; i < intArray.length; i++){ System.out.print(intArray[i]); if (i == intArray.length - 1){ break; } System.out.print(" "); } System.out.println(); } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); int seriesNum = Integer.parseInt(br.readLine()); String[] series = br.readLine().split(" "); int[] cardNumberResult = new int[seriesNum]; for (int i = 0; i < seriesNum; i++){ cardNumberResult[i] = Integer.parseInt(series[i]); } for (int i = 0; i < seriesNum; i++){ if (i == 0){ printArray(cardNumberResult); } if (i == seriesNum -1){ break; } for (int j = i + 1; 0 < j ; j--) { if (cardNumberResult[j] < cardNumberResult[j - 1]){ int tmp = cardNumberResult[j - 1]; cardNumberResult[j - 1] = cardNumberResult[j]; cardNumberResult[j] = tmp; } else { break; } } printArray(cardNumberResult); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 16, 18 ], [ 9, 19 ], [ 19, 20 ], [ 20, 21 ], [ 9, 22 ], [ 23, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 54, 55 ], [ 23, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 23, 63 ], [ 63, 64 ], [ 63, 65 ], [ 6, 66 ], [ 66, 67 ], [ 163, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 70, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 79, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 70, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 68, 109 ], [ 109, 110 ], [ 163, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 113, 122 ], [ 122, 123 ], [ 122, 124 ], [ 113, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 126, 136 ], [ 136, 137 ], [ 137, 138 ], [ 126, 139 ], [ 140, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 113, 148 ], [ 148, 149 ], [ 148, 150 ], [ 113, 151 ], [ 151, 152 ], [ 151, 153 ], [ 163, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 154, 160 ], [ 160, 161 ], [ 0, 162 ], [ 162, 163 ], [ 162, 164 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tvoid insertionSort(int[] A) {\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}\n\t}\n\n\tvoid printArray(int[] A) {\n\t\tSystem.out.print(A[0]);\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tprintArray(A);\n\t\tinsertionSort(A);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tvoid insertionSort(int[] A) {\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}\n\t}\n\n\tvoid printArray(int[] A) {\n\t\tSystem.out.print(A[0]);\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tprintArray(A);\n\t\tinsertionSort(A);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "Main", "void insertionSort(int[] A) {\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}\n\t}", "insertionSort", "{\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}\n\t}", "for (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "printArray(A)", "printArray", "A", "int[] A", "A", "void printArray(int[] A) {\n\t\tSystem.out.print(A[0]);\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "printArray", "{\n\t\tSystem.out.print(A[0]);\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "System.out.print(A[0])", "System.out.print", "System.out", "System", "System.out", "A[0]", "A", "0", "for (int i = 1; i < A.length; i++) {\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}", "{\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}", "System.out.print(\" \" + A[i])", "System.out.print", "System.out", "System", "System.out", "\" \" + A[i]", "\" \"", "A[i]", "A", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] A", "A", "void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tprintArray(A);\n\t\tinsertionSort(A);\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tprintArray(A);\n\t\tinsertionSort(A);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[] A = new int[n];", "A", "new int[n]", "n", "for (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "A[i] = scan.nextInt()", "A[i]", "A", "i", "scan.nextInt()", "scan.nextInt", "scan", "printArray(A)", "printArray", "A", "insertionSort(A)", "insertionSort", "A", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\n\tvoid insertionSort(int[] A) {\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}\n\t}\n\n\tvoid printArray(int[] A) {\n\t\tSystem.out.print(A[0]);\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tprintArray(A);\n\t\tinsertionSort(A);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "public class Main {\n\n\tvoid insertionSort(int[] A) {\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}\n\t}\n\n\tvoid printArray(int[] A) {\n\t\tSystem.out.print(A[0]);\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tSystem.out.print(\" \" + A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tprintArray(A);\n\t\tinsertionSort(A);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { void insertionSort(int[] A) { for (int i = 1; i < A.length; i++) { int v = A[i]; int j = i - 1; while (j >= 0 && A[j] > v) { A[j+1] = A[j]; j--; } A[j+1] = v; printArray(A); } } void printArray(int[] A) { System.out.print(A[0]); for (int i = 1; i < A.length; i++) { System.out.print(" " + A[i]); } System.out.println(); } void run() { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] A = new int[n]; for (int i = 0; i < A.length; i++) { A[i] = scan.nextInt(); } printArray(A); insertionSort(A); } public static void main(String[] args) { // TODO Auto-generated method stub new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 4, 18, 13, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 115, 5 ], [ 115, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 22, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 33, 37 ], [ 8, 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 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 50, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 50, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 69, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 50, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 50, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 8, 109 ], [ 109, 110 ], [ 110, 111 ], [ 6, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t// 標準入力から数列と整数N(数列の長さ)を読み込み\n\t\tint n = Integer.parseInt(scanner.nextLine()); // 数列の長さ\n\t\tString[] array = scanner.nextLine().split(\" \"); // 数列\n\t\t\n\t\t// 初期状態の配列状態を出力\n\t\tSystem.out.println(String.join(\" \", array));\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}\n}\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\t\n\t\t// 標準入力から数列と整数N(数列の長さ)を読み込み\n\t\tint n = Integer.parseInt(scanner.nextLine()); // 数列の長さ\n\t\tString[] array = scanner.nextLine().split(\" \"); // 数列\n\t\t\n\t\t// 初期状態の配列状態を出力\n\t\tSystem.out.println(String.join(\" \", array));\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t// 標準入力から数列と整数N(数列の長さ)を読み込み\n\t\tint n = Integer.parseInt(scanner.nextLine()); // 数列の長さ\n\t\tString[] array = scanner.nextLine().split(\" \"); // 数列\n\t\t\n\t\t// 初期状態の配列状態を出力\n\t\tSystem.out.println(String.join(\" \", array));\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t// 標準入力から数列と整数N(数列の長さ)を読み込み\n\t\tint n = Integer.parseInt(scanner.nextLine()); // 数列の長さ\n\t\tString[] array = scanner.nextLine().split(\" \"); // 数列\n\t\t\n\t\t// 初期状態の配列状態を出力\n\t\tSystem.out.println(String.join(\" \", array));\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = Integer.parseInt(scanner.nextLine());", "n", "Integer.parseInt(scanner.nextLine())", "Integer.parseInt", "Integer", "scanner.nextLine()", "scanner.nextLine", "scanner", "String[] array = scanner.nextLine().split(\" \");", "array", "scanner.nextLine().split(\" \")", "scanner.nextLine().split", "scanner.nextLine()", "scanner.nextLine", "scanner", "\" \"", "System.out.println(String.join(\" \", array))", "System.out.println", "System.out", "System", "System.out", "String.join(\" \", array)", "String.join", "String", "\" \"", "array", "for (int i = 1; i < n; i++) {\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}", "{\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}", "int v = Integer.parseInt(array[i]);", "v", "Integer.parseInt(array[i])", "Integer.parseInt", "Integer", "array[i]", "array", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && Integer.parseInt(array[j]) > v", "j >= 0", "j", "0", "Integer.parseInt(array[j]) > v", "Integer.parseInt(array[j])", "Integer.parseInt", "Integer", "array[j]", "array", "j", "v", "{\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "array[j + 1] = array[j]", "array[j + 1]", "array", "j + 1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j + 1] = Integer.toString(v)", "array[j + 1]", "array", "j + 1", "j", "1", "Integer.toString(v)", "Integer.toString", "Integer", "v", "System.out.println(String.join(\" \", array))", "System.out.println", "System.out", "System", "System.out", "String.join(\" \", array)", "String.join", "String", "\" \"", "array", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t// 標準入力から数列と整数N(数列の長さ)を読み込み\n\t\tint n = Integer.parseInt(scanner.nextLine()); // 数列の長さ\n\t\tString[] array = scanner.nextLine().split(\" \"); // 数列\n\t\t\n\t\t// 初期状態の配列状態を出力\n\t\tSystem.out.println(String.join(\" \", array));\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t// 標準入力から数列と整数N(数列の長さ)を読み込み\n\t\tint n = Integer.parseInt(scanner.nextLine()); // 数列の長さ\n\t\tString[] array = scanner.nextLine().split(\" \"); // 数列\n\t\t\n\t\t// 初期状態の配列状態を出力\n\t\tSystem.out.println(String.join(\" \", array));\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = Integer.parseInt(array[i]);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && Integer.parseInt(array[j]) > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = Integer.toString(v);\n\t\t\t\n\t\t\t// 途中経過の配列状態を出力\n\t\t\tSystem.out.println(String.join(\" \", array));\n\t\t}\n\t\t\n\t\tscanner.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // 標準入力から数列と整数N(数列の長さ)を読み込み int n = Integer.parseInt(scanner.nextLine()); // 数列の長さ String[] array = scanner.nextLine().split(" "); // 数列 // 初期状態の配列状態を出力 System.out.println(String.join(" ", array)); for (int i = 1; i < n; i++) { int v = Integer.parseInt(array[i]); int j = i - 1; while(j >= 0 && Integer.parseInt(array[j]) > v) { array[j + 1] = array[j]; j--; } array[j + 1] = Integer.toString(v); // 途中経過の配列状態を出力 System.out.println(String.join(" ", array)); } scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 147, 5 ], [ 147, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 57, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 57, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 57, 97 ], [ 97, 98 ], [ 97, 99 ], [ 97, 100 ], [ 6, 101 ], [ 101, 102 ], [ 147, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 105, 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 ], [ 134, 135 ], [ 134, 136 ], [ 105, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 103, 142 ], [ 142, 143 ], [ 103, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }\n toPrint(arr, n);\n\n for(int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }\n\n }\n\n public static void toPrint(int[] arr, int n) {\n System.out.print(arr[0]);\n for(int i = 1; i < n; i++) {\n System.out.print(\" \" + arr[i]);\n }\n System.out.println();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }\n toPrint(arr, n);\n\n for(int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }\n\n }\n\n public static void toPrint(int[] arr, int n) {\n System.out.print(arr[0]);\n for(int i = 1; i < n; i++) {\n System.out.print(\" \" + arr[i]);\n }\n System.out.println();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }\n toPrint(arr, n);\n\n for(int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }\n toPrint(arr, n);\n\n for(int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr[i] = sc.nextInt();\n }", "{\n arr[i] = sc.nextInt();\n }", "arr[i] = sc.nextInt()", "arr[i]", "arr", "i", "sc.nextInt()", "sc.nextInt", "sc", "toPrint(arr, n)", "toPrint", "arr", "n", "for(int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }", "{\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }", "int v = arr[i];", "v", "arr[i]", "arr", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }", "j >= 0 && arr[j] > v", "j >= 0", "j", "0", "arr[j] > v", "arr[j]", "arr", "j", "v", "{\n arr[j+1] = arr[j];\n j--;\n }", "arr[j+1] = arr[j]", "arr[j+1]", "arr", "j+1", "j", "1", "arr[j]", "arr", "j", "j--", "j", "arr[j+1] = v", "arr[j+1]", "arr", "j+1", "j", "1", "v", "toPrint(arr, n)", "toPrint", "arr", "n", "String[] args", "args", "public static void toPrint(int[] arr, int n) {\n System.out.print(arr[0]);\n for(int i = 1; i < n; i++) {\n System.out.print(\" \" + arr[i]);\n }\n System.out.println();\n }", "toPrint", "{\n System.out.print(arr[0]);\n for(int i = 1; i < n; i++) {\n System.out.print(\" \" + arr[i]);\n }\n System.out.println();\n }", "System.out.print(arr[0])", "System.out.print", "System.out", "System", "System.out", "arr[0]", "arr", "0", "for(int i = 1; i < n; i++) {\n System.out.print(\" \" + arr[i]);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n System.out.print(\" \" + arr[i]);\n }", "{\n System.out.print(\" \" + arr[i]);\n }", "System.out.print(\" \" + arr[i])", "System.out.print", "System.out", "System", "System.out", "\" \" + arr[i]", "\" \"", "arr[i]", "arr", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] arr", "arr", "int n", "n", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }\n toPrint(arr, n);\n\n for(int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }\n\n }\n\n public static void toPrint(int[] arr, int n) {\n System.out.print(arr[0]);\n for(int i = 1; i < n; i++) {\n System.out.print(\" \" + arr[i]);\n }\n System.out.println();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }\n toPrint(arr, n);\n\n for(int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while(j >= 0 && arr[j] > v ) {\n arr[j+1] = arr[j];\n j--;\n }\n arr[j+1] = v;\n toPrint(arr, n);\n }\n\n }\n\n public static void toPrint(int[] arr, int n) {\n System.out.print(arr[0]);\n for(int i = 1; i < n; i++) {\n System.out.print(\" \" + arr[i]);\n }\n System.out.println();\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for(int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } toPrint(arr, n); for(int i = 1; i < n; i++) { int v = arr[i]; int j = i - 1; while(j >= 0 && arr[j] > v ) { arr[j+1] = arr[j]; j--; } arr[j+1] = v; toPrint(arr, n); } } public static void toPrint(int[] arr, int n) { System.out.print(arr[0]); for(int i = 1; i < n; i++) { System.out.print(" " + arr[i]); } System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 18, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 157, 5 ], [ 157, 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 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 8, 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 ], [ 69, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 66, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 87, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 66, 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 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 66, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 130, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 6, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}\n\t}", "main", "{\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}\n\t}", "int i", "i", "j", "j", "k", "k", "v;", "v", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = Integer.parseInt(in.nextLine());", "n", "Integer.parseInt(in.nextLine())", "Integer.parseInt", "Integer", "in.nextLine()", "in.nextLine", "in", "int array[] = new int[n];", "array", "new int[n]", "n", "for(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "array[i] = Integer.parseInt(in.next());", "array[i] = Integer.parseInt(in.next())", "array[i]", "array", "i", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "for(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}", "{\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}", "v = array[i]", "v", "array[i]", "array", "i", "j = i-1", "j", "i-1", "i", "1", "while(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}", "j>=0 && array[j]>v", "j>=0", "j", "0", "array[j]>v", "array[j]", "array", "j", "v", "{\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j+1] = v", "array[j+1]", "array", "j+1", "j", "1", "v", "for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");", "k = 0;", "k = 0", "k", "0", "k<n-1", "k", "n-1", "n", "1", "k++", "k++", "k", "System.out.print(array[k]+\" \");", "System.out.print(array[k]+\" \")", "System.out.print", "System.out", "System", "System.out", "array[k]+\" \"", "array[k]", "array", "k", "\" \"", "if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);", "i<(n-1)", "i", "(n-1)", "n", "1", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "System.out.println(array[n-1])", "System.out.println", "System.out", "System", "System.out", "array[n-1]", "array", "n-1", "n", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[n-1]);\n\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int i,j,k,v; Scanner in = new Scanner(System.in); int n = Integer.parseInt(in.nextLine()); int array[] = new int[n]; for(i=0;i<n;i++)array[i] = Integer.parseInt(in.next()); for(i=0;i<n;i++){ v = array[i]; j = i-1; while(j>=0 && array[j]>v){ array[j+1] = array[j]; j--; array[j+1] = v; } for(k = 0;k<n-1;k++)System.out.print(array[k]+" "); if(i<(n-1))System.out.println(array[k]); else System.out.println(array[n-1]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 2, 13, 17, 2, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 40, 13, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 0, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 184, 5 ], [ 184, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 33, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 68, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 82, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 103, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 115, 121 ], [ 82, 122 ], [ 122, 123 ], [ 122, 124 ], [ 82, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 125, 135 ], [ 135, 136 ], [ 136, 137 ], [ 125, 138 ], [ 139, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 145, 147 ], [ 139, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 148, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 139, 166 ], [ 166, 167 ], [ 139, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 172, 178 ], [ 178, 179 ], [ 178, 180 ], [ 6, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "import java.util.*;\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner x=new Scanner (System.in);\n\t\tint a=x.nextInt();\n\t\tint a1[]=new int [a];\n\t\tfor(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(int i=1;i<a1.length;i++){\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner x=new Scanner (System.in);\n\t\tint a=x.nextInt();\n\t\tint a1[]=new int [a];\n\t\tfor(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(int i=1;i<a1.length;i++){\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner x=new Scanner (System.in);\n\t\tint a=x.nextInt();\n\t\tint a1[]=new int [a];\n\t\tfor(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(int i=1;i<a1.length;i++){\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner x=new Scanner (System.in);\n\t\tint a=x.nextInt();\n\t\tint a1[]=new int [a];\n\t\tfor(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(int i=1;i<a1.length;i++){\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Scanner x=new Scanner (System.in);", "x", "new Scanner (System.in)", "int a=x.nextInt();", "a", "x.nextInt()", "x.nextInt", "x", "int a1[]=new int [a];", "a1", "new int [a]", "a", "for(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "{\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}", "{\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}", "a1[i]=x.nextInt()", "a1[i]", "a1", "i", "x.nextInt()", "x.nextInt", "x", "System.out.print(a1[i])", "System.out.print", "System.out", "System", "System.out", "a1[i]", "a1", "i", "if(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");", "i<a1.length-1", "i", "a1.length-1", "a1.length", "a1", "a1.length", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(int i=1;i<a1.length;i++){\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<a1.length", "i", "a1.length", "a1", "a1.length", "i++", "i++", "i", "{\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int key=a1[i];", "key", "a1[i]", "a1", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}", "j>=0&&a1[j]>key", "j>=0", "j", "0", "a1[j]>key", "a1[j]", "a1", "j", "key", "{\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}", "a1[j+1]=a1[j]", "a1[j+1]", "a1", "j+1", "j", "1", "a1[j]", "a1", "j", "j--", "j", "a1[j+1]=key", "a1[j+1]", "a1", "j+1", "j", "1", "key", "int d=0;", "d", "0", "for(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}", "int w=0;", "int w=0;", "w", "0", "w<a1.length", "w", "a1.length", "a1", "a1.length", "w++", "w++", "w", "{\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}", "System.out.print(a1[w])", "System.out.print", "System.out", "System", "System.out", "a1[w]", "a1", "w", "if(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");", "d>=0&&d<a1.length-1", "d>=0", "d", "0", "d<a1.length-1", "d", "a1.length-1", "a1.length", "a1", "a1.length", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "d++", "d", "if(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}", "d==a", "d", "a", "{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "d=0", "d", "0", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner x=new Scanner (System.in);\n\t\tint a=x.nextInt();\n\t\tint a1[]=new int [a];\n\t\tfor(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(int i=1;i<a1.length;i++){\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner x=new Scanner (System.in);\n\t\tint a=x.nextInt();\n\t\tint a1[]=new int [a];\n\t\tfor(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(int i=1;i<a1.length;i++){\n\t\t\tint key=a1[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a1[j]>key){\n\t\t\t\ta1[j+1]=a1[j];\n\t\t\t\tj--;\n\t\t\t\ta1[j+1]=key;\n\t\t\t}\n\t\t\tint d=0;\n\t\t\tfor(int w=0;w<a1.length;w++){\n\t\t\t\tSystem.out.print(a1[w]);\n\t\t\t\tif(d>=0&&d<a1.length-1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\td++;\n\t\t\t\tif(d==a){\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\td=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String args[]){ Scanner x=new Scanner (System.in); int a=x.nextInt(); int a1[]=new int [a]; for(int i=0;i<a;i++){ a1[i]=x.nextInt(); System.out.print(a1[i]); if(i<a1.length-1) System.out.print(" "); } System.out.println(); for(int i=1;i<a1.length;i++){ int key=a1[i]; int j=i-1; while(j>=0&&a1[j]>key){ a1[j+1]=a1[j]; j--; a1[j+1]=key; } int d=0; for(int w=0;w<a1.length;w++){ System.out.print(a1[w]); if(d>=0&&d<a1.length-1) System.out.print(" "); d++; if(d==a){ System.out.println(); d=0; } } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 12, 13, 30, 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, 12, 13, 30, 4, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 12, 13, 30, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 166, 5 ], [ 166, 6 ], [ 6, 7 ], [ 6, 8 ], [ 166, 9 ], [ 9, 10 ], [ 166, 11 ], [ 11, 12 ], [ 11, 13 ], [ 166, 14 ], [ 14, 15 ], [ 14, 16 ], [ 166, 17 ], [ 17, 18 ], [ 166, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 21, 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 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 166, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 70, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 70, 110 ], [ 110, 111 ], [ 166, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 114, 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 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 114, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 166, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 153, 160 ], [ 160, 161 ], [ 161, 162 ], [ 151, 163 ], [ 163, 164 ], [ 0, 165 ], [ 165, 166 ], [ 165, 167 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tint N;\t//要素数\n\tint v=0;\t//保存用変数\n\tint j=0;\t//添字のための変数\n\tint[] A;\n\t\n\tpublic void input() {\n\t\tN = sc.nextInt();\n\t\tA = new int[N];\n\t\tfor(int i=0; i<N; i++) { A[i] = sc.nextInt(); }\n\t}\n\t\n\t//ソート部分\n\tpublic void conpute() {\n\t\toutput();\n\t\tfor(int i=1; i<=N-1; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}\n\t}\n\t\n\tpublic void output() {\n\t\tSystem.out.print(A[0]);\n\t\tfor(int i=1; i<N; i++) {\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.conpute();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tint N;\t//要素数\n\tint v=0;\t//保存用変数\n\tint j=0;\t//添字のための変数\n\tint[] A;\n\t\n\tpublic void input() {\n\t\tN = sc.nextInt();\n\t\tA = new int[N];\n\t\tfor(int i=0; i<N; i++) { A[i] = sc.nextInt(); }\n\t}\n\t\n\t//ソート部分\n\tpublic void conpute() {\n\t\toutput();\n\t\tfor(int i=1; i<=N-1; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}\n\t}\n\t\n\tpublic void output() {\n\t\tSystem.out.print(A[0]);\n\t\tfor(int i=1; i<N; i++) {\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.conpute();\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N;\t//要素数", "N", "int v=0;\t//保存用変数", "v", "0", "int j=0;\t//添字のための変数", "j", "0", "int[] A;", "A", "public void input() {\n\t\tN = sc.nextInt();\n\t\tA = new int[N];\n\t\tfor(int i=0; i<N; i++) { A[i] = sc.nextInt(); }\n\t}", "input", "{\n\t\tN = sc.nextInt();\n\t\tA = new int[N];\n\t\tfor(int i=0; i<N; i++) { A[i] = sc.nextInt(); }\n\t}", "N = sc.nextInt()", "N", "sc.nextInt()", "sc.nextInt", "sc", "A = new int[N]", "A", "new int[N]", "N", "for(int i=0; i<N; i++) { A[i] = sc.nextInt(); }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{ A[i] = sc.nextInt(); }", "{ A[i] = sc.nextInt(); }", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "//ソート部分\n\tpublic void conpute() {\n\t\toutput();\n\t\tfor(int i=1; i<=N-1; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}\n\t}", "conpute", "{\n\t\toutput();\n\t\tfor(int i=1; i<=N-1; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}\n\t}", "output()", "output", "for(int i=1; i<=N-1; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=N-1", "i", "N-1", "N", "1", "i++", "i++", "i", "{\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}", "{\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}", "v = A[i]", "v", "A[i]", "A", "i", "j = i-1", "j", "i-1", "i", "1", "while(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0 && A[j] > v", "j>=0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "output()", "output", "public void output() {\n\t\tSystem.out.print(A[0]);\n\t\tfor(int i=1; i<N; i++) {\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "output", "{\n\t\tSystem.out.print(A[0]);\n\t\tfor(int i=1; i<N; i++) {\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "System.out.print(A[0])", "System.out.print", "System.out", "System", "System.out", "A[0]", "A", "0", "for(int i=1; i<N; i++) {\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}", "{\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}", "System.out.print(\" \"+A[i])", "System.out.print", "System.out", "System", "System.out", "\" \"+A[i]", "\" \"", "A[i]", "A", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "public static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.conpute();\n\t}", "main", "{\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.conpute();\n\t}", "Main obj = new Main();", "obj", "new Main()", "obj.input()", "obj.input", "obj", "obj.conpute()", "obj.conpute", "obj", "String[] args", "args", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tint N;\t//要素数\n\tint v=0;\t//保存用変数\n\tint j=0;\t//添字のための変数\n\tint[] A;\n\t\n\tpublic void input() {\n\t\tN = sc.nextInt();\n\t\tA = new int[N];\n\t\tfor(int i=0; i<N; i++) { A[i] = sc.nextInt(); }\n\t}\n\t\n\t//ソート部分\n\tpublic void conpute() {\n\t\toutput();\n\t\tfor(int i=1; i<=N-1; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}\n\t}\n\t\n\tpublic void output() {\n\t\tSystem.out.print(A[0]);\n\t\tfor(int i=1; i<N; i++) {\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.conpute();\n\t}\n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tint N;\t//要素数\n\tint v=0;\t//保存用変数\n\tint j=0;\t//添字のための変数\n\tint[] A;\n\t\n\tpublic void input() {\n\t\tN = sc.nextInt();\n\t\tA = new int[N];\n\t\tfor(int i=0; i<N; i++) { A[i] = sc.nextInt(); }\n\t}\n\t\n\t//ソート部分\n\tpublic void conpute() {\n\t\toutput();\n\t\tfor(int i=1; i<=N-1; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\toutput();\n\t\t}\n\t}\n\t\n\tpublic void output() {\n\t\tSystem.out.print(A[0]);\n\t\tfor(int i=1; i<N; i++) {\n\t\t\tSystem.out.print(\" \"+A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.conpute();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); int N; //要素数 int v=0; //保存用変数 int j=0; //添字のための変数 int[] A; public void input() { N = sc.nextInt(); A = new int[N]; for(int i=0; i<N; i++) { A[i] = sc.nextInt(); } } //ソート部分 public void conpute() { output(); for(int i=1; i<=N-1; i++) { v = A[i]; j = i-1; while(j>=0 && A[j] > v) { A[j+1] = A[j]; j--; } A[j+1] = v; output(); } } public void output() { System.out.print(A[0]); for(int i=1; i<N; i++) { System.out.print(" "+A[i]); } System.out.println(); } public static void main(String[] args) { Main obj = new Main(); obj.input(); obj.conpute(); } }
[ 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, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 13, 13, 30, 3, 0, 18, 13, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 182, 8 ], [ 182, 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 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 11, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 11, 58 ], [ 58, 59 ], [ 58, 60 ], [ 9, 61 ], [ 61, 62 ], [ 182, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 89, 91 ], [ 83, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 92, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 107, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 120, 121 ], [ 120, 122 ], [ 113, 123 ], [ 123, 124 ], [ 123, 125 ], [ 107, 126 ], [ 126, 127 ], [ 83, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 83, 133 ], [ 133, 134 ], [ 133, 135 ], [ 63, 136 ], [ 136, 137 ], [ 182, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 144, 154 ], [ 154, 155 ], [ 155, 156 ], [ 144, 157 ], [ 158, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 162, 163 ], [ 162, 164 ], [ 158, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 140, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 138, 179 ], [ 179, 180 ], [ 0, 181 ], [ 181, 182 ], [ 181, 183 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????°?????????\n int numberCount = Integer.parseInt(br.readLine());\n //???????????¶????????°??????????????????\n String[] sNumbers = br.readLine().split(\" \");\n //????????°?????????????????????\n int[] numbers = new int[numberCount];\n //?????????????????°????????????\n for(int i = 0 ; i < numberCount ; i++){\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }\n insertionSort(numbers);\n\t}\n\t\n\tprivate static void insertionSort(int[] numbers){\n\t\tdisplayNumbers(numbers);\n\t\tfor(int i = 1 ; i < numbers.length ; i++){\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}\n\t}\n\t\n\tprivate static void displayNumbers(int[] numbers){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i = 0 ; i < numbers.length ; i++){\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tSystem.out.println(sb.toString().trim());\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????°?????????\n int numberCount = Integer.parseInt(br.readLine());\n //???????????¶????????°??????????????????\n String[] sNumbers = br.readLine().split(\" \");\n //????????°?????????????????????\n int[] numbers = new int[numberCount];\n //?????????????????°????????????\n for(int i = 0 ; i < numberCount ; i++){\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }\n insertionSort(numbers);\n\t}\n\t\n\tprivate static void insertionSort(int[] numbers){\n\t\tdisplayNumbers(numbers);\n\t\tfor(int i = 1 ; i < numbers.length ; i++){\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}\n\t}\n\t\n\tprivate static void displayNumbers(int[] numbers){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i = 0 ; i < numbers.length ; i++){\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tSystem.out.println(sb.toString().trim());\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????°?????????\n int numberCount = Integer.parseInt(br.readLine());\n //???????????¶????????°??????????????????\n String[] sNumbers = br.readLine().split(\" \");\n //????????°?????????????????????\n int[] numbers = new int[numberCount];\n //?????????????????°????????????\n for(int i = 0 ; i < numberCount ; i++){\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }\n insertionSort(numbers);\n\t}", "main", "{\n\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????°?????????\n int numberCount = Integer.parseInt(br.readLine());\n //???????????¶????????°??????????????????\n String[] sNumbers = br.readLine().split(\" \");\n //????????°?????????????????????\n int[] numbers = new int[numberCount];\n //?????????????????°????????????\n for(int i = 0 ; i < numberCount ; i++){\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }\n insertionSort(numbers);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int numberCount = Integer.parseInt(br.readLine());", "numberCount", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String[] sNumbers = br.readLine().split(\" \");", "sNumbers", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] numbers = new int[numberCount];", "numbers", "new int[numberCount]", "numberCount", "for(int i = 0 ; i < numberCount ; i++){\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < numberCount", "i", "numberCount", "i++", "i++", "i", "{\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }", "{\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }", "numbers[i] = Integer.parseInt(sNumbers[i])", "numbers[i]", "numbers", "i", "Integer.parseInt(sNumbers[i])", "Integer.parseInt", "Integer", "sNumbers[i]", "sNumbers", "i", "insertionSort(numbers)", "insertionSort", "numbers", "String[] args", "args", "private static void insertionSort(int[] numbers){\n\t\tdisplayNumbers(numbers);\n\t\tfor(int i = 1 ; i < numbers.length ; i++){\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}\n\t}", "insertionSort", "{\n\t\tdisplayNumbers(numbers);\n\t\tfor(int i = 1 ; i < numbers.length ; i++){\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}\n\t}", "displayNumbers(numbers)", "displayNumbers", "numbers", "for(int i = 1 ; i < numbers.length ; i++){\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}", "int i = 1 ;", "int i = 1 ;", "i", "1", "i < numbers.length", "i", "numbers.length", "numbers", "numbers.length", "i++", "i++", "i", "{\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}", "{\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}", "int currentNumber = numbers[i];", "currentNumber", "numbers[i]", "numbers", "i", "int insertIndex = i;", "insertIndex", "i", "for(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int y = i - 1 ;", "int y = i - 1 ;", "y", "i - 1", "i", "1", "y >= 0", "y", "0", "y--", "y--", "y", "{\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "currentNumber < numbers[y]", "currentNumber", "numbers[y]", "numbers", "y", "{\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}", "numbers[y + 1] = numbers[y]", "numbers[y + 1]", "numbers", "y + 1", "y", "1", "numbers[y]", "numbers", "y", "insertIndex = y", "insertIndex", "y", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "numbers[insertIndex] = currentNumber", "numbers[insertIndex]", "numbers", "insertIndex", "currentNumber", "displayNumbers(numbers)", "displayNumbers", "numbers", "int[] numbers", "numbers", "private static void displayNumbers(int[] numbers){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i = 0 ; i < numbers.length ; i++){\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tSystem.out.println(sb.toString().trim());\n\t}", "displayNumbers", "{\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i = 0 ; i < numbers.length ; i++){\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tSystem.out.println(sb.toString().trim());\n\t}", "StringBuffer sb = new StringBuffer();", "sb", "new StringBuffer()", "for(int i = 0 ; i < numbers.length ; i++){\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < numbers.length", "i", "numbers.length", "numbers", "numbers.length", "i++", "i++", "i", "{\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "{\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "sb.append(numbers[i])", "sb.append", "sb", "numbers[i]", "numbers", "i", "sb.append(\" \")", "sb.append", "sb", "\" \"", "System.out.println(sb.toString().trim())", "System.out.println", "System.out", "System", "System.out", "sb.toString().trim()", "sb.toString().trim", "sb.toString()", "sb.toString", "sb", "int[] numbers", "numbers", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????°?????????\n int numberCount = Integer.parseInt(br.readLine());\n //???????????¶????????°??????????????????\n String[] sNumbers = br.readLine().split(\" \");\n //????????°?????????????????????\n int[] numbers = new int[numberCount];\n //?????????????????°????????????\n for(int i = 0 ; i < numberCount ; i++){\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }\n insertionSort(numbers);\n\t}\n\t\n\tprivate static void insertionSort(int[] numbers){\n\t\tdisplayNumbers(numbers);\n\t\tfor(int i = 1 ; i < numbers.length ; i++){\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}\n\t}\n\t\n\tprivate static void displayNumbers(int[] numbers){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i = 0 ; i < numbers.length ; i++){\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tSystem.out.println(sb.toString().trim());\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????°?????????\n int numberCount = Integer.parseInt(br.readLine());\n //???????????¶????????°??????????????????\n String[] sNumbers = br.readLine().split(\" \");\n //????????°?????????????????????\n int[] numbers = new int[numberCount];\n //?????????????????°????????????\n for(int i = 0 ; i < numberCount ; i++){\n \tnumbers[i] = Integer.parseInt(sNumbers[i]);\n }\n insertionSort(numbers);\n\t}\n\t\n\tprivate static void insertionSort(int[] numbers){\n\t\tdisplayNumbers(numbers);\n\t\tfor(int i = 1 ; i < numbers.length ; i++){\n\t\t\tint currentNumber = numbers[i];\n\t\t\tint insertIndex = i;\n\t\t\tfor(int y = i - 1 ; y >= 0 ; y--){\n\t\t\t\tif(currentNumber < numbers[y]){\n\t\t\t\t\tnumbers[y + 1] = numbers[y];\n\t\t\t\t\tinsertIndex = y;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumbers[insertIndex] = currentNumber;\n\t\t\tdisplayNumbers(numbers);\n\t\t}\n\t}\n\t\n\tprivate static void displayNumbers(int[] numbers){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i = 0 ; i < numbers.length ; i++){\n\t\t\tsb.append(numbers[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tSystem.out.println(sb.toString().trim());\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { //??\?????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //????????°????????? int numberCount = Integer.parseInt(br.readLine()); //???????????¶????????°?????????????????? String[] sNumbers = br.readLine().split(" "); //????????°????????????????????? int[] numbers = new int[numberCount]; //?????????????????°???????????? for(int i = 0 ; i < numberCount ; i++){ numbers[i] = Integer.parseInt(sNumbers[i]); } insertionSort(numbers); } private static void insertionSort(int[] numbers){ displayNumbers(numbers); for(int i = 1 ; i < numbers.length ; i++){ int currentNumber = numbers[i]; int insertIndex = i; for(int y = i - 1 ; y >= 0 ; y--){ if(currentNumber < numbers[y]){ numbers[y + 1] = numbers[y]; insertIndex = y; }else{ break; } } numbers[insertIndex] = currentNumber; displayNumbers(numbers); } } private static void displayNumbers(int[] numbers){ StringBuffer sb = new StringBuffer(); for(int i = 0 ; i < numbers.length ; i++){ sb.append(numbers[i]); sb.append(" "); } System.out.println(sb.toString().trim()); } }
[ 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, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 18, 13, 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, 18, 13, 13, 4, 18, 18, 13, 13, 8, 2, 13, 2, 13, 17, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 17, 13, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 2, 13, 2, 13, 17, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 33, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 22, 44 ], [ 44, 45 ], [ 44, 46 ], [ 22, 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 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 60, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 76, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 22, 92 ], [ 92, 93 ], [ 22, 94 ], [ 94, 95 ], [ 22, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 96, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 108, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 119, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 136, 138 ], [ 129, 139 ], [ 139, 140 ], [ 108, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 144, 146 ], [ 141, 147 ], [ 108, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 148, 159 ], [ 160, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 166, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 166, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 22, 182 ], [ 182, 183 ], [ 183, 184 ], [ 6, 185 ], [ 185, 186 ] ]
[ "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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\n\t\t}", "int n = Integer.parseInt( kb.readLine() );", "n", "Integer.parseInt( kb.readLine() )", "Integer.parseInt", "Integer", "kb.readLine()", "kb.readLine", "kb", "String[] nums = kb.readLine().split( \" \" );", "nums", "kb.readLine().split( \" \" )", "kb.readLine().split", "kb.readLine()", "kb.readLine", "kb", "\" \"", "int len = nums.length;", "len", "nums.length", "nums", "nums.length", "int[] A = new int[ len ];", "A", "new int[ len ]", "len", "for( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<len", "i", "len", "i++", "i++", "i", "{\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}", "{\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\tSystem.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" );\n\t\t\t}", "A[i] = Integer.parseInt( nums[i] )", "A[i]", "A", "i", "Integer.parseInt( nums[i] )", "Integer.parseInt", "Integer", "nums[i]", "nums", "i", "System.out.print( i<(len-1)? A[i]+\" \": A[i]+\"\\n\" )", "System.out.print", "System.out", "System", "System.out", "i<(len-1)? A[i]+\" \": A[i]+\"\\n\"", "i<(len-1)", "i", "(len-1)", "len", "1", "A[i]+\" \"", "A[i]", "A", "i", "\" \"", "A[i]+\"\\n\"", "A[i]", "A", "i", "\"\\n\"", "int key;", "key", "int j;", "j", "for( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<len", "i", "len", "i++", "i++", "i", "{\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}", "key = A[i]", "key", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "0 <= j && key < A[j]", "0 <= j", "0", "j", "key < A[j]", "key", "A[j]", "A", "j", "{\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "A[ j+1 ] = A[j]", "A[ j+1 ]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[ j+1 ] = key", "A[ j+1 ]", "A", "j+1", "j", "1", "key", "for( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<len", "k", "len", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}", "System.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" )", "System.out.print", "System.out", "System", "System.out", "k<(len-1)? A[k]+\" \": A[k]+\"\\n\"", "k<(len-1)", "k", "(len-1)", "len", "1", "A[k]+\" \"", "A[k]", "A", "k", "\" \"", "A[k]+\"\\n\"", "A[k]", "A", "k", "\"\\n\"", "kb.close()", "kb.close", "kb", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); String[] nums = kb.readLine().split( " " ); int len = nums.length; int[] A = new int[ len ]; for( int i=0; i<len; i++ ) { A[i] = Integer.parseInt( nums[i] ); System.out.print( i<(len-1)? A[i]+" ": A[i]+"\n" ); } int key; int j; for( int i=1; i<len; i++ ) { key = A[i]; j = i - 1; while( 0 <= j && key < A[j] ) { A[ j+1 ] = A[j]; j--; } A[ j+1 ] = key; for( int k=0; k<len; k++ ) { System.out.print( k<(len-1)? A[k]+" ": A[k]+"\n" ); } } kb.close(); } catch( IOException e ) { System.err.println( e ); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 189, 14 ], [ 189, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 17, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 17, 46 ], [ 46, 47 ], [ 46, 48 ], [ 17, 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 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 17, 73 ], [ 73, 74 ], [ 73, 75 ], [ 17, 76 ], [ 76, 77 ], [ 76, 78 ], [ 76, 79 ], [ 15, 80 ], [ 80, 81 ], [ 189, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 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 ], [ 100, 102 ], [ 97, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 97, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 125, 126 ], [ 125, 127 ], [ 118, 128 ], [ 128, 129 ], [ 97, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 97, 137 ], [ 137, 138 ], [ 137, 139 ], [ 82, 140 ], [ 140, 141 ], [ 82, 142 ], [ 142, 143 ], [ 189, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 147, 159 ], [ 159, 160 ], [ 160, 161 ], [ 147, 162 ], [ 163, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 146, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 144, 186 ], [ 186, 187 ], [ 0, 188 ], [ 188, 189 ], [ 188, 190 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.nio.charset.StandardCharsets;\n\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\t\n\t\tString s = in.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\ts = in.readLine();\n\t\tString[] as = s.split(\" \");\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}\n\t\toutput(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\tprivate static void insertionSort(int[] a, int n) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}\n\t}\n\n\tprivate static void output(int[] a) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 0; i < a.length-1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(a[a.length-1]);\n\t}\n\t\n\t\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.nio.charset.StandardCharsets;", "StandardCharsets", "java.nio.charset", "public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\t\n\t\tString s = in.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\ts = in.readLine();\n\t\tString[] as = s.split(\" \");\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}\n\t\toutput(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\tprivate static void insertionSort(int[] a, int n) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}\n\t}\n\n\tprivate static void output(int[] a) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 0; i < a.length-1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(a[a.length-1]);\n\t}\n\t\n\t\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\t\n\t\tString s = in.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\ts = in.readLine();\n\t\tString[] as = s.split(\" \");\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}\n\t\toutput(a);\n\t\tinsertionSort(a,n);\n\t}", "main", "{\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\t\n\t\tString s = in.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\ts = in.readLine();\n\t\tString[] as = s.split(\" \");\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}\n\t\toutput(a);\n\t\tinsertionSort(a,n);\n\t}", "InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);", "reader", "new InputStreamReader(System.in, StandardCharsets.UTF_8)", "BufferedReader in = new BufferedReader(reader);", "in", "new BufferedReader(reader)", "String s = in.readLine();", "s", "in.readLine()", "in.readLine", "in", "int n = Integer.parseInt(s);", "n", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "s = in.readLine()", "s", "in.readLine()", "in.readLine", "in", "String[] as = s.split(\" \");", "as", "s.split(\" \")", "s.split", "s", "\" \"", "int[] a = new int[n];", "a", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}", "{\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}", "a[i] = Integer.parseInt(as[i])", "a[i]", "a", "i", "Integer.parseInt(as[i])", "Integer.parseInt", "Integer", "as[i]", "as", "i", "output(a)", "output", "a", "insertionSort(a,n)", "insertionSort", "a", "n", "String[] args", "args", "private static void insertionSort(int[] a, int n) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}\n\t}", "insertionSort", "{\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}\n\t}", "for(int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}", "{\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}", "int v = a[i];", "v", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && a[j] > v", "j >= 0", "j", "0", "a[j] > v", "a[j]", "a", "j", "v", "{\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = v", "a[j+1]", "a", "j+1", "j", "1", "v", "output(a)", "output", "a", "int[] a", "a", "int n", "n", "private static void output(int[] a) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 0; i < a.length-1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(a[a.length-1]);\n\t}", "output", "{\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 0; i < a.length-1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(a[a.length-1]);\n\t}", "for(int i = 0; i < a.length-1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a.length-1", "i", "a.length-1", "a.length", "a", "a.length", "1", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}", "{\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}", "System.out.print(a[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "a[i] + \" \"", "a[i]", "a", "i", "\" \"", "System.out.println(a[a.length-1])", "System.out.println", "System.out", "System", "System.out", "a[a.length-1]", "a", "a.length-1", "a.length", "a", "a.length", "1", "int[] a", "a", "public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\t\n\t\tString s = in.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\ts = in.readLine();\n\t\tString[] as = s.split(\" \");\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}\n\t\toutput(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\tprivate static void insertionSort(int[] a, int n) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}\n\t}\n\n\tprivate static void output(int[] a) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 0; i < a.length-1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(a[a.length-1]);\n\t}\n\t\n\t\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\t\n\t\tString s = in.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\ts = in.readLine();\n\t\tString[] as = s.split(\" \");\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = Integer.parseInt(as[i]);\n\t\t}\n\t\toutput(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\tprivate static void insertionSort(int[] a, int n) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\toutput(a);\n\t\t}\n\t}\n\n\tprivate static void output(int[] a) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 0; i < a.length-1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(a[a.length-1]);\n\t}\n\t\n\t\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; public class Main { public static void main(String[] args) throws IOException { InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); BufferedReader in = new BufferedReader(reader); String s = in.readLine(); int n = Integer.parseInt(s); s = in.readLine(); String[] as = s.split(" "); int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = Integer.parseInt(as[i]); } output(a); insertionSort(a,n); } private static void insertionSort(int[] a, int n) { // TODO Auto-generated method stub for(int i = 1; i < n; i++) { int v = a[i]; int j = i - 1; while(j >= 0 && a[j] > v) { a[j+1] = a[j]; j--; } a[j+1] = v; output(a); } } private static void output(int[] a) { // TODO Auto-generated method stub for(int i = 0; i < a.length-1; i++) { System.out.print(a[i] + " "); } System.out.println(a[a.length-1]); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 81, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 102, 103 ], [ 102, 104 ], [ 75, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 53, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 110, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 128, 130 ], [ 122, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 131, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 53, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 6, 150 ], [ 150, 151 ] ]
[ "import java.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\t\tint [] array = new int[length];\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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\tint length = sc.nextInt();\n\t\tint [] array = new int[length];\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\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\tint length = sc.nextInt();\n\t\tint [] array = new int[length];\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\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\tint length = sc.nextInt();\n\t\tint [] array = new int[length];\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int length = sc.nextInt();", "length", "sc.nextInt()", "sc.nextInt", "sc", "int [] array = new int[length];", "array", "new int[length]", "length", "for (int i = 0; i < length; i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < length", "i", "length", "i++", "i++", "i", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < length; i++) {\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < length", "i", "length", "i++", "i++", "i", "{\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "for (int j = 0; j < i; j++) {\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < i", "j", "i", "j++", "j++", "j", "{\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}", "if (array[j] > array[i]) {\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}", "array[j] > array[i]", "array[j]", "array", "j", "array[i]", "array", "i", "{\n\t\t\t\t\tint temp = array[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}", "int temp = array[i];", "temp", "array[i]", "array", "i", "for (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}", "int k = i - 1;", "int k = i - 1;", "k", "i - 1", "i", "1", "k >= j", "k", "j", "k--", "k--", "k", "{\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tarray[k + 1] = array[k];\n\t\t\t\t\t}", "array[k + 1] = array[k]", "array[k + 1]", "array", "k + 1", "k", "1", "array[k]", "array", "k", "array[j] = temp", "array[j]", "array", "j", "temp", "for (int j = 0; j < length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < length", "j", "length", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t\tif (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "System.out.print(array[j])", "System.out.print", "System.out", "System", "System.out", "array[j]", "array", "j", "if (j != length - 1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}", "j != length - 1", "j", "length - 1", "length", "1", "{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int length = sc.nextInt(); int [] array = new int[length]; for (int i = 0; i < length; i++) { array[i] = sc.nextInt(); } for (int i = 0; i < length; i++) { for (int j = 0; j < i; j++) { if (array[j] > array[i]) { int temp = array[i]; for (int k = i - 1; k >= j; k--) { array[k + 1] = array[k]; } array[j] = temp; } } for (int j = 0; j < length; j++) { System.out.print(array[j]); if (j != length - 1) { System.out.print(" "); } } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 165, 5 ], [ 165, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 41, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 8, 69 ], [ 69, 70 ], [ 8, 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 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 83, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 94, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 111, 112 ], [ 111, 113 ], [ 104, 114 ], [ 114, 115 ], [ 104, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 83, 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 ], [ 139, 141 ], [ 136, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 136, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 6, 162 ], [ 162, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }\n int v, j;\n for(int i = 1; i < n; i++){\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }\n int v, j;\n for(int i = 1; i < n; i++){\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }\n int v, j;\n for(int i = 1; i < n; i++){\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }\n int v, j;\n for(int i = 1; i < n; i++){\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }", "{\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }", "i != n-1", "i", "n-1", "n", "1", "{\n System.out.print(a[i] + \" \");\n }", "System.out.print(a[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "a[i] + \" \"", "a[i]", "a", "i", "\" \"", "{\n System.out.println(a[i]);\n }", "System.out.println(a[i])", "System.out.println", "System.out", "System", "System.out", "a[i]", "a", "i", "int v", "v", "j;", "j", "for(int i = 1; i < n; i++){\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }", "{\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }", "v = a[i]", "v", "a[i]", "a", "i", "j = i-1", "j", "i-1", "i", "1", "while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }", "j >= 0 && a[j] > v", "j >= 0", "j", "0", "a[j] > v", "a[j]", "a", "j", "v", "{\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = v", "a[j+1]", "a", "j+1", "j", "1", "v", "for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }", "{\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }", "if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }", "k != n-1", "k", "n-1", "n", "1", "{\n System.out.print(a[k] + \" \");\n }", "System.out.print(a[k] + \" \")", "System.out.print", "System.out", "System", "System.out", "a[k] + \" \"", "a[k]", "a", "k", "\" \"", "{\n System.out.println(a[k]);\n }", "System.out.println(a[k])", "System.out.println", "System.out", "System", "System.out", "a[k]", "a", "k", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }\n int v, j;\n for(int i = 1; i < n; i++){\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n System.out.print(a[i] + \" \");\n }else{\n System.out.println(a[i]);\n }\n }\n int v, j;\n for(int i = 1; i < n; i++){\n v = a[i];\n j = i-1;\n while(j >= 0 && a[j] > v){\n a[j+1] = a[j];\n j--;\n a[j+1] = v;\n }\n for(int k = 0; k < n; k++){\n if(k != n-1){\n System.out.print(a[k] + \" \");\n }else{\n System.out.println(a[k]);\n }\n }\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++){ a[i] = sc.nextInt(); if(i != n-1){ System.out.print(a[i] + " "); }else{ System.out.println(a[i]); } } int v, j; for(int i = 1; i < n; i++){ v = a[i]; j = i-1; while(j >= 0 && a[j] > v){ a[j+1] = a[j]; j--; a[j+1] = v; } for(int k = 0; k < n; k++){ if(k != n-1){ System.out.print(a[k] + " "); }else{ System.out.println(a[k]); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 18, 13, 4, 18, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 13, 13, 41, 13, 18, 13, 13, 11, 1, 41, 13, 13, 2, 13, 17, 1, 40, 13, 30, 14, 2, 18, 13, 2, 13, 17, 18, 13, 13, 30, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 13, 3, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 167, 5 ], [ 167, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 6, 50 ], [ 50, 51 ], [ 167, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 69, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 78, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 90, 117 ], [ 54, 118 ], [ 118, 119 ], [ 118, 120 ], [ 52, 121 ], [ 121, 122 ], [ 167, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 126, 136 ], [ 136, 137 ], [ 137, 138 ], [ 126, 139 ], [ 140, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 140, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 156, 157 ], [ 156, 158 ], [ 125, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 123, 164 ], [ 164, 165 ], [ 0, 166 ], [ 166, 167 ], [ 166, 168 ] ]
[ "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\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\n\t\trun(a);\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void run(int[] a) {\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}\n\t\tprintA(a);\n\n\t}\n\n\tprivate static void printA(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\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\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\n\t\trun(a);\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void run(int[] a) {\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}\n\t\tprintA(a);\n\n\t}\n\n\tprivate static void printA(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\n\t\trun(a);\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\n\t\trun(a);\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = scan.nextInt();", "a[i] = scan.nextInt()", "a[i]", "a", "i", "scan.nextInt()", "scan.nextInt", "scan", "run(a)", "run", "a", "scan.close()", "scan.close", "scan", "System.exit(0)", "System.exit", "System", "0", "String[] args", "args", "private static void run(int[] a) {\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}\n\t\tprintA(a);\n\n\t}", "run", "{\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}\n\t\tprintA(a);\n\n\t}", "for (int i = 1; i < a.length; i++) {\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}", "{\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}", "printA(a)", "printA", "a", "int temp = a[i];", "temp", "a[i]", "a", "i", "for (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;", "int j = i;", "int j = i;", "j", "i", "j > 0", "j", "0", "j--", "j--", "j", "if (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;", "if (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;", "a[j - 1] > a[j]", "a[j - 1]", "a", "j - 1", "j", "1", "a[j]", "a", "j", "{\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t}", "a[j] = a[j - 1]", "a[j]", "a", "j", "a[j - 1]", "a", "j - 1", "j", "1", "a[j - 1] = temp", "a[j - 1]", "a", "j - 1", "j", "1", "temp", "break;", "printA(a)", "printA", "a", "int[] a", "a", "private static void printA(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "printA", "{\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "for (int i = 0; i < a.length; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}", "{\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}", "if (i > 0)\n\t\t\t\tSystem.out.print(\" \");", "i > 0", "i", "0", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(a[i])", "System.out.print", "System.out", "System", "System.out", "a[i]", "a", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] a", "a", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\n\t\trun(a);\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void run(int[] a) {\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}\n\t\tprintA(a);\n\n\t}\n\n\tprivate static void printA(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\n\t\trun(a);\n\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void run(int[] a) {\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tprintA(a);\n\t\t\tint temp = a[i];\n\t\t\tfor (int j = i; j > 0; j--)\n\t\t\t\tif (a[j - 1] > a[j]) {\n\t\t\t\t\ta[j] = a[j - 1];\n\t\t\t\t\ta[j - 1] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t}\n\t\tprintA(a);\n\n\t}\n\n\tprivate static void printA(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = scan.nextInt(); run(a); scan.close(); System.exit(0); } private static void run(int[] a) { for (int i = 1; i < a.length; i++) { printA(a); int temp = a[i]; for (int j = i; j > 0; j--) if (a[j - 1] > a[j]) { a[j] = a[j - 1]; a[j - 1] = temp; } else break; } printA(a); } private static void printA(int[] a) { for (int i = 0; i < a.length; i++) { if (i > 0) System.out.print(" "); System.out.print(a[i]); } System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 18, 13, 2, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 52, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 74, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 52, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 52, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 92, 104 ], [ 104, 105 ], [ 105, 106 ], [ 92, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 52, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 6, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[N];\n\t\tfor (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[N];\n\t\tfor (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[N];\n\t\tfor (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[N];\n\t\tfor (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] a = new int[N];", "a", "new int[N]", "N", "for (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "a[i] = sc.nextInt();", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}", "{\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}", "int trg = a[i];", "trg", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && trg < a[j]", "j >= 0", "j", "0", "trg < a[j]", "trg", "a[j]", "a", "j", "{\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = trg", "a[j+1]", "a", "j+1", "j", "1", "trg", "for (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);", "int k = 0;", "int k = 0;", "k", "0", "k < a.length-1", "k", "a.length-1", "a.length", "a", "a.length", "1", "k++", "k++", "k", "System.out.printf(\"%d \", a[k]);", "System.out.printf(\"%d \", a[k])", "System.out.printf", "System.out", "System", "System.out", "\"%d \"", "a[k]", "a", "k", "System.out.println(a[a.length-1])", "System.out.println", "System.out", "System", "System.out", "a[a.length-1]", "a", "a.length-1", "a.length", "a", "a.length", "1", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[N];\n\t\tfor (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\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\tint N = sc.nextInt();\n\t\tint[] a = new int[N];\n\t\tfor (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && trg < a[j]){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = trg;\n\t\t\tfor (int k = 0; k < a.length-1; k++)\n\t\t\t\tSystem.out.printf(\"%d \", a[k]);\n\t\t\tSystem.out.println(a[a.length-1]);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for (int i = 0 ; i < N; i++) a[i] = sc.nextInt(); for (int i = 0; i < N; i++) { int trg = a[i]; int j = i - 1; while (j >= 0 && trg < a[j]){ a[j+1] = a[j]; j--; } a[j+1] = trg; for (int k = 0; k < a.length-1; k++) System.out.printf("%d ", a[k]); System.out.println(a[a.length-1]); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 40, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 4, 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 ], [ 183, 11 ], [ 183, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 14, 19 ], [ 19, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 21, 31 ], [ 31, 32 ], [ 32, 33 ], [ 21, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 35, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 68, 74 ], [ 35, 75 ], [ 75, 76 ], [ 75, 77 ], [ 12, 78 ], [ 78, 79 ], [ 183, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 86, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 90, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 97, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 90, 118 ], [ 118, 119 ], [ 80, 120 ], [ 120, 121 ], [ 183, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 134, 135 ], [ 124, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 124, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 124, 147 ], [ 147, 148 ], [ 147, 149 ], [ 124, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 156, 157 ], [ 156, 158 ], [ 151, 159 ], [ 159, 160 ], [ 160, 161 ], [ 151, 162 ], [ 163, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 171, 173 ], [ 124, 174 ], [ 174, 175 ], [ 174, 176 ], [ 124, 177 ], [ 177, 178 ], [ 177, 179 ], [ 122, 180 ], [ 180, 181 ], [ 0, 182 ], [ 182, 183 ], [ 182, 184 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main{\n public static void sort(int[] A) {\n int i, j, tmp;\n for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }\n }\n \n public static void printArray(int[] A) {\n int i = 0;\n for (int value : A) {\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }\n }\n \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 String str = br.readLine();\n String[] s = str.split(\" \");\n int[] array = new int[N];\n for (int i = 0; i < N; i++) {\n array[i] = Integer.parseInt(s[i]);\n }\n \n printArray(array);\n sort(array);\n \n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main{\n public static void sort(int[] A) {\n int i, j, tmp;\n for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }\n }\n \n public static void printArray(int[] A) {\n int i = 0;\n for (int value : A) {\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }\n }\n \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 String str = br.readLine();\n String[] s = str.split(\" \");\n int[] array = new int[N];\n for (int i = 0; i < N; i++) {\n array[i] = Integer.parseInt(s[i]);\n }\n \n printArray(array);\n sort(array);\n \n }\n}", "Main", "public static void sort(int[] A) {\n int i, j, tmp;\n for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }\n }", "sort", "{\n int i, j, tmp;\n for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }\n }", "int i", "i", "j", "j", "tmp;", "tmp", "for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }", "i = 1;", "i = 1", "i", "1", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }", "{\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }", "tmp = A[i]", "tmp", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }", "j >= 0 && A[j] > tmp", "j >= 0", "j", "0", "A[j] > tmp", "A[j]", "A", "j", "tmp", "{\n A[j + 1] = A[j];\n j--;\n }", "A[j + 1] = A[j]", "A[j + 1]", "A", "j + 1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j + 1] = tmp", "A[j + 1]", "A", "j + 1", "j", "1", "tmp", "printArray(A)", "printArray", "A", "int[] A", "A", "public static void printArray(int[] A) {\n int i = 0;\n for (int value : A) {\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }\n }", "printArray", "{\n int i = 0;\n for (int value : A) {\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }\n }", "int i = 0;", "i", "0", "for (int value : A) {\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }", "int value", "A", "{\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }", "{\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }", "System.out.print(value)", "System.out.print", "System.out", "System", "System.out", "value", "if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }", "i != A.length - 1", "i", "A.length - 1", "A.length", "A", "A.length", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "{\n System.out.println();\n }", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "i++", "i", "int[] A", "A", "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 String str = br.readLine();\n String[] s = str.split(\" \");\n int[] array = new int[N];\n for (int i = 0; i < N; i++) {\n array[i] = Integer.parseInt(s[i]);\n }\n \n printArray(array);\n sort(array);\n \n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer.parseInt(br.readLine());\n String str = br.readLine();\n String[] s = str.split(\" \");\n int[] array = new int[N];\n for (int i = 0; i < N; i++) {\n array[i] = Integer.parseInt(s[i]);\n }\n \n printArray(array);\n sort(array);\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", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] s = str.split(\" \");", "s", "str.split(\" \")", "str.split", "str", "\" \"", "int[] array = new int[N];", "array", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n array[i] = Integer.parseInt(s[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n array[i] = Integer.parseInt(s[i]);\n }", "{\n array[i] = Integer.parseInt(s[i]);\n }", "array[i] = Integer.parseInt(s[i])", "array[i]", "array", "i", "Integer.parseInt(s[i])", "Integer.parseInt", "Integer", "s[i]", "s", "i", "printArray(array)", "printArray", "array", "sort(array)", "sort", "array", "String[] args", "args", "public class Main{\n public static void sort(int[] A) {\n int i, j, tmp;\n for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }\n }\n \n public static void printArray(int[] A) {\n int i = 0;\n for (int value : A) {\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }\n }\n \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 String str = br.readLine();\n String[] s = str.split(\" \");\n int[] array = new int[N];\n for (int i = 0; i < N; i++) {\n array[i] = Integer.parseInt(s[i]);\n }\n \n printArray(array);\n sort(array);\n \n }\n}", "public class Main{\n public static void sort(int[] A) {\n int i, j, tmp;\n for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = tmp;\n printArray(A);\n }\n }\n \n public static void printArray(int[] A) {\n int i = 0;\n for (int value : A) {\n System.out.print(value);\n if (i != A.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n i++;\n }\n }\n \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 String str = br.readLine();\n String[] s = str.split(\" \");\n int[] array = new int[N];\n for (int i = 0; i < N; i++) {\n array[i] = Integer.parseInt(s[i]);\n }\n \n printArray(array);\n sort(array);\n \n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main{ public static void sort(int[] A) { int i, j, tmp; for (i = 1; i < A.length; i++) { tmp = A[i]; j = i - 1; while (j >= 0 && A[j] > tmp) { A[j + 1] = A[j]; j--; } A[j + 1] = tmp; printArray(A); } } public static void printArray(int[] A) { int i = 0; for (int value : A) { System.out.print(value); if (i != A.length - 1) { System.out.print(" "); } else { System.out.println(); } i++; } } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); String str = br.readLine(); String[] s = str.split(" "); int[] array = new int[N]; for (int i = 0; i < N; i++) { array[i] = Integer.parseInt(s[i]); } printArray(array); sort(array); } }
[ 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, 20, 13, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 2, 13, 17, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 2, 13, 17, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 198, 11 ], [ 198, 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, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 32, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 73, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 82, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 14, 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 ], [ 114, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 114, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 125, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 136, 142 ], [ 142, 143 ], [ 142, 144 ], [ 135, 145 ], [ 145, 146 ], [ 114, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 114, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 154, 162 ], [ 162, 163 ], [ 163, 164 ], [ 154, 165 ], [ 166, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 172, 173 ], [ 172, 174 ], [ 166, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 175, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 175, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 189, 194 ], [ 12, 195 ], [ 195, 196 ], [ 0, 197 ], [ 197, 198 ], [ 197, 199 ] ]
[ "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 NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] str = br.readLine().split(\" \");\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] str = br.readLine().split(\" \");\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] str = br.readLine().split(\" \");\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] str = br.readLine().split(\" \");\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "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[] A = new int[n];", "A", "new int[n]", "n", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int i = 0; i < n; i++){\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}", "{\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}", "A[i] = Integer.parseInt(str[i])", "A[i]", "A", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "for(int i = 0; i < n; i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "System.out.print(A[i])", "System.out.print", "System.out", "System", "System.out", "A[i]", "A", "i", "if(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "i + 1 == n", "i + 1", "i", "1", "n", "{\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "for(int i = 1; i < n; i++){\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j + 1] = A[j]", "A[j + 1]", "A", "j + 1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j + 1] = v", "A[j + 1]", "A", "j + 1", "j", "1", "v", "for(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "System.out.print(A[k])", "System.out.print", "System.out", "System", "System.out", "A[k]", "A", "k", "if(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}", "k + 1 == n", "k + 1", "k", "1", "n", "{\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] str = br.readLine().split(\" \");\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] str = br.readLine().split(\" \");\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tA[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t\t\n\t\t\tif(i + 1 == n){\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\t\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\t\n\t\t\t\tif(k + 1 == n){\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] A = new int[n]; String[] str = br.readLine().split(" "); for(int i = 0; i < n; i++){ A[i] = Integer.parseInt(str[i]); } for(int i = 0; i < n; i++){ System.out.print(A[i]); if(i + 1 == n){ System.out.print("\n"); } else { System.out.print(" "); } } for(int i = 1; i < n; i++){ int v = A[i]; int j = i - 1; while(j >= 0 && A[j] > v){ A[j + 1] = A[j]; j--; } A[j + 1] = v; for(int k = 0; k < n; k++){ System.out.print(A[k]); if(k + 1 == n){ System.out.print("\n"); } else { System.out.print(" "); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 40, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 144, 5 ], [ 144, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 6, 45 ], [ 45, 46 ], [ 144, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 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 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 62, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 62, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 95, 100 ], [ 62, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 101, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 113, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 62, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 47, 139 ], [ 139, 140 ], [ 47, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int [n];\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n doing(array, n);\n \n }\n \n static void doing(int[] array, int n){;\n for(int i = 0; i < n; i++){\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }\n System.out.println();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int [n];\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n doing(array, n);\n \n }\n \n static void doing(int[] array, int n){;\n for(int i = 0; i < n; i++){\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int [n];\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n doing(array, n);\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int [n];\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n doing(array, n);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] array = new int [n];", "array", "new int [n]", "n", "for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n array[i] = sc.nextInt();\n }", "{\n array[i] = sc.nextInt();\n }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "doing(array, n)", "doing", "array", "n", "String[] args", "args", "static void doing(int[] array, int n){;\n for(int i = 0; i < n; i++){\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }\n System.out.println();\n }\n }", "doing", "{;\n for(int i = 0; i < n; i++){\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }\n System.out.println();\n }\n }", "for(int i = 0; i < n; i++){\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }\n System.out.println();\n }", "{\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }\n System.out.println();\n }", "int value = array[i];", "value", "array[i]", "array", "i", "int j = i -1;", "j", "i -1", "i", "1", "while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }", "j >= 0 && array[j] > value", "j >= 0", "j", "0", "array[j] > value", "array[j]", "array", "j", "value", "{\n array[j+1] = array[j];\n j--;\n }", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[++ j] = value", "array[++ j]", "array", "++ j", "j", "value", "for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }", "j = 0;", "j = 0", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }", "{\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\n }", "System.out.print(array[j])", "System.out.print", "System.out", "System", "System.out", "array[j]", "array", "j", "if (j != n-1)\n System.out.print(\" \");", "j != n-1", "j", "n-1", "n", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] array", "array", "int n", "n", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int [n];\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n doing(array, n);\n \n }\n \n static void doing(int[] array, int n){;\n for(int i = 0; i < n; i++){\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\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 int n = sc.nextInt();\n int[] array = new int [n];\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n doing(array, n);\n \n }\n \n static void doing(int[] array, int n){;\n for(int i = 0; i < n; i++){\n int value = array[i];\n int j = i -1;\n \n while (j >= 0 && array[j] > value){\n array[j+1] = array[j];\n j--;\n }\n array[++ j] = value;\n \n \n \n \n for (j = 0; j < n; j++){\n System.out.print(array[j]);\n if (j != n-1)\n System.out.print(\" \");\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); int n = sc.nextInt(); int[] array = new int [n]; for (int i = 0; i < n; i++) { array[i] = sc.nextInt(); } doing(array, n); } static void doing(int[] array, int n){; for(int i = 0; i < n; i++){ int value = array[i]; int j = i -1; while (j >= 0 && array[j] > value){ array[j+1] = array[j]; j--; } array[++ j] = value; for (j = 0; j < n; j++){ System.out.print(array[j]); if (j != n-1) System.out.print(" "); } System.out.println(); } } }
[ 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, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 18, 13, 13, 41, 13, 20, 13, 41, 13, 41, 13, 2, 13, 17, 41, 13, 20, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 13, 8, 2, 13, 13, 2, 18, 13, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 17, 13, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 8, 2, 13, 13, 2, 18, 13, 13, 17, 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 ], [ 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 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 33, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 22, 44 ], [ 44, 45 ], [ 44, 46 ], [ 22, 48 ], [ 48, 49 ], [ 22, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 22, 55 ], [ 55, 56 ], [ 55, 57 ], [ 22, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 84, 93 ], [ 93, 94 ], [ 93, 95 ], [ 22, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 22, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 22, 106 ], [ 106, 107 ], [ 22, 108 ], [ 108, 109 ], [ 22, 110 ], [ 110, 111 ], [ 22, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 112, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 124, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 135, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 146, 152 ], [ 152, 153 ], [ 152, 154 ], [ 145, 155 ], [ 155, 156 ], [ 124, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 157, 163 ], [ 124, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 169, 170 ], [ 169, 171 ], [ 164, 172 ], [ 172, 173 ], [ 173, 174 ], [ 164, 175 ], [ 176, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 180, 189 ], [ 189, 190 ], [ 189, 191 ], [ 124, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 124, 198 ], [ 198, 199 ], [ 199, 200 ], [ 198, 201 ], [ 22, 202 ], [ 202, 203 ], [ 203, 204 ], [ 6, 205 ], [ 205, 206 ] ]
[ "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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\tint i, len2 = len-1;\n\n\t\t\tStringBuilder output = new StringBuilder( 100+1 );\t\t\t\t\t\t\t\t\t\n\t\t\tfor( i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}\n\t\t\tSystem.out.println( output );\n\t\t\toutput.setLength( 0 );\n\n\t\t\tint key;\n\t\t\tint j, k;\n \t\t\tfor( i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}\n\t\t\t\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\tint i, len2 = len-1;\n\n\t\t\tStringBuilder output = new StringBuilder( 100+1 );\t\t\t\t\t\t\t\t\t\n\t\t\tfor( i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}\n\t\t\tSystem.out.println( output );\n\t\t\toutput.setLength( 0 );\n\n\t\t\tint key;\n\t\t\tint j, k;\n \t\t\tfor( i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}\n\t\t\t\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\tint i, len2 = len-1;\n\n\t\t\tStringBuilder output = new StringBuilder( 100+1 );\t\t\t\t\t\t\t\t\t\n\t\t\tfor( i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}\n\t\t\tSystem.out.println( output );\n\t\t\toutput.setLength( 0 );\n\n\t\t\tint key;\n\t\t\tint j, k;\n \t\t\tfor( i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}\n\t\t\t\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\tint i, len2 = len-1;\n\n\t\t\tStringBuilder output = new StringBuilder( 100+1 );\t\t\t\t\t\t\t\t\t\n\t\t\tfor( i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}\n\t\t\tSystem.out.println( output );\n\t\t\toutput.setLength( 0 );\n\n\t\t\tint key;\n\t\t\tint j, k;\n \t\t\tfor( i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}\n\t\t\t\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\tint i, len2 = len-1;\n\n\t\t\tStringBuilder output = new StringBuilder( 100+1 );\t\t\t\t\t\t\t\t\t\n\t\t\tfor( i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}\n\t\t\tSystem.out.println( output );\n\t\t\toutput.setLength( 0 );\n\n\t\t\tint key;\n\t\t\tint j, k;\n \t\t\tfor( i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}\n\t\t\t\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\tint i, len2 = len-1;\n\n\t\t\tStringBuilder output = new StringBuilder( 100+1 );\t\t\t\t\t\t\t\t\t\n\t\t\tfor( i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}\n\t\t\tSystem.out.println( output );\n\t\t\toutput.setLength( 0 );\n\n\t\t\tint key;\n\t\t\tint j, k;\n \t\t\tfor( i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}\n\t\t\t\n \t\t\tkb.close();\n\t\t}", "int n = Integer.parseInt( kb.readLine() );", "n", "Integer.parseInt( kb.readLine() )", "Integer.parseInt", "Integer", "kb.readLine()", "kb.readLine", "kb", "String[] nums = kb.readLine().split( \" \" );", "nums", "kb.readLine().split( \" \" )", "kb.readLine().split", "kb.readLine()", "kb.readLine", "kb", "\" \"", "int len = nums.length;", "len", "nums.length", "nums", "nums.length", "int[] A = new int[ len ];", "A", "new int[ len ]", "len", "int i", "i", "len2 = len-1;", "len2", "len-1", "len", "1", "StringBuilder output = new StringBuilder( 100+1 );", "output", "new StringBuilder( 100+1 )", "for( i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<len", "i", "len", "i++", "i++", "i", "{\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}", "{\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t\toutput.append( i<(len2)? A[i]+\" \": A[i] );\n\t\t\t}", "A[i] = Integer.parseInt( nums[i] )", "A[i]", "A", "i", "Integer.parseInt( nums[i] )", "Integer.parseInt", "Integer", "nums[i]", "nums", "i", "output.append( i<(len2)? A[i]+\" \": A[i] )", "output.append", "output", "i<(len2)? A[i]+\" \": A[i]", "i<(len2)", "i", "(len2)", "A[i]+\" \"", "A[i]", "A", "i", "\" \"", "A[i]", "A", "i", "System.out.println( output )", "System.out.println", "System.out", "System", "System.out", "output", "output.setLength( 0 )", "output.setLength", "output", "0", "int key;", "key", "int j", "j", "k;", "k", "for( i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}", "i=1;", "i=1", "i", "1", "i<len", "i", "len", "i++", "i++", "i", "{\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}", "{\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}\n\t\t\t\tSystem.out.println( output );\n\t\t\t\toutput.setLength( 0 );\n\t\t\t}", "key = A[i]", "key", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "0 <= j && key < A[j]", "0 <= j", "0", "j", "key < A[j]", "key", "A[j]", "A", "j", "{\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "A[ j+1 ] = A[j]", "A[ j+1 ]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[ j+1 ] = key", "A[ j+1 ]", "A", "j+1", "j", "1", "key", "for( k=0; k<len; k++ ) {\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}", "k=0;", "k=0", "k", "0", "k<len", "k", "len", "k++", "k++", "k", "{\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}", "{\n\t\t\t\t\toutput.append( k<(len2)? A[k]+\" \": A[k] );\n\t\t\t\t}", "output.append( k<(len2)? A[k]+\" \": A[k] )", "output.append", "output", "k<(len2)? A[k]+\" \": A[k]", "k<(len2)", "k", "(len2)", "A[k]+\" \"", "A[k]", "A", "k", "\" \"", "A[k]", "A", "k", "System.out.println( output )", "System.out.println", "System.out", "System", "System.out", "output", "output.setLength( 0 )", "output.setLength", "output", "0", "kb.close()", "kb.close", "kb", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); String[] nums = kb.readLine().split( " " ); int len = nums.length; int[] A = new int[ len ]; int i, len2 = len-1; StringBuilder output = new StringBuilder( 100+1 ); for( i=0; i<len; i++ ) { A[i] = Integer.parseInt( nums[i] ); output.append( i<(len2)? A[i]+" ": A[i] ); } System.out.println( output ); output.setLength( 0 ); int key; int j, k; for( i=1; i<len; i++ ) { key = A[i]; j = i - 1; while( 0 <= j && key < A[j] ) { A[ j+1 ] = A[j]; j--; } A[ j+1 ] = key; for( k=0; k<len; k++ ) { output.append( k<(len2)? A[k]+" ": A[k] ); } System.out.println( output ); output.setLength( 0 ); } kb.close(); } catch( IOException e ) { System.err.println( e ); } } }
[ 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, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 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 ], [ 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, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 11, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 75, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 67, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 11, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 99, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 113, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 113, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 146, 152 ], [ 113, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 153, 163 ], [ 163, 164 ], [ 164, 165 ], [ 153, 166 ], [ 167, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 168, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 182, 183 ], [ 182, 184 ], [ 176, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 185, 190 ], [ 168, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 197, 198 ], [ 197, 199 ], [ 9, 200 ], [ 200, 201 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int[] array=new int[n];\n for(int i=0;i<array.length;i++){\n array[i]=Integer.parseInt(scan.next());\n }\n\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n\n //ソート\n for (int j = 1; j < array.length; j++) {\n int key = array[j];\n int i = j - 1;\n while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n }\n }\n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int[] array=new int[n];\n for(int i=0;i<array.length;i++){\n array[i]=Integer.parseInt(scan.next());\n }\n\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n\n //ソート\n for (int j = 1; j < array.length; j++) {\n int key = array[j];\n int i = j - 1;\n while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int[] array=new int[n];\n for(int i=0;i<array.length;i++){\n array[i]=Integer.parseInt(scan.next());\n }\n\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n\n //ソート\n for (int j = 1; j < array.length; j++) {\n int key = array[j];\n int i = j - 1;\n while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n }\n }", "main", "{\n\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int[] array=new int[n];\n for(int i=0;i<array.length;i++){\n array[i]=Integer.parseInt(scan.next());\n }\n\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n\n //ソート\n for (int j = 1; j < array.length; j++) {\n int key = array[j];\n int i = j - 1;\n while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n=Integer.parseInt(scan.next());", "n", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int[] array=new int[n];", "array", "new int[n]", "n", "for(int i=0;i<array.length;i++){\n array[i]=Integer.parseInt(scan.next());\n }", "int i=0;", "int i=0;", "i", "0", "i<array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n array[i]=Integer.parseInt(scan.next());\n }", "{\n array[i]=Integer.parseInt(scan.next());\n }", "array[i]=Integer.parseInt(scan.next())", "array[i]", "array", "i", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }", "int k=0;", "int k=0;", "k", "0", "k<array.length", "k", "array.length", "array", "array.length", "k++", "k++", "k", "{\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }", "{\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }", "if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }", "k<array.length-1", "k", "array.length-1", "array.length", "array", "array.length", "1", "{\n System.out.print(array[k]);\n System.out.print(\" \");\n }", "System.out.print(array[k])", "System.out.print", "System.out", "System", "System.out", "array[k]", "array", "k", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "{\n System.out.println(array[k]);\n }", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "for (int j = 1; j < array.length; j++) {\n int key = array[j];\n int i = j - 1;\n while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n }", "int j = 1;", "int j = 1;", "j", "1", "j < array.length", "j", "array.length", "array", "array.length", "j++", "j++", "j", "{\n int key = array[j];\n int i = j - 1;\n while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n }", "{\n int key = array[j];\n int i = j - 1;\n while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }\n }", "int key = array[j];", "key", "array[j]", "array", "j", "int i = j - 1;", "i", "j - 1", "j", "1", "while (i >= 0 && array[i] > key) {\n array[i + 1] = array[i];\n i--;\n }", "i >= 0 && array[i] > key", "i >= 0", "i", "0", "array[i] > key", "array[i]", "array", "i", "key", "{\n array[i + 1] = array[i];\n i--;\n }", "array[i + 1] = array[i]", "array[i + 1]", "array", "i + 1", "i", "1", "array[i]", "array", "i", "i--", "i", "array[i + 1] = key", "array[i + 1]", "array", "i + 1", "i", "1", "key", "for(int k=0;k<array.length;k++){\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }", "int k=0;", "int k=0;", "k", "0", "k<array.length", "k", "array.length", "array", "array.length", "k++", "k++", "k", "{\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }", "{\n if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }\n }", "if(k<array.length-1){\n System.out.print(array[k]);\n System.out.print(\" \");\n }else{\n System.out.println(array[k]);\n }", "k<array.length-1", "k", "array.length-1", "array.length", "array", "array.length", "1", "{\n System.out.print(array[k]);\n System.out.print(\" \");\n }", "System.out.print(array[k])", "System.out.print", "System.out", "System", "System.out", "array[k]", "array", "k", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "{\n System.out.println(array[k]);\n }", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan=new Scanner(System.in); int n=Integer.parseInt(scan.next()); int[] array=new int[n]; for(int i=0;i<array.length;i++){ array[i]=Integer.parseInt(scan.next()); } for(int k=0;k<array.length;k++){ if(k<array.length-1){ System.out.print(array[k]); System.out.print(" "); }else{ System.out.println(array[k]); } } //ソート for (int j = 1; j < array.length; j++) { int key = array[j]; int i = j - 1; while (i >= 0 && array[i] > key) { array[i + 1] = array[i]; i--; } array[i + 1] = key; for(int k=0;k<array.length;k++){ if(k<array.length-1){ System.out.print(array[k]); System.out.print(" "); }else{ System.out.println(array[k]); } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 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, 41, 13, 18, 13, 13, 41, 13, 11, 1, 0, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 14, 2, 18, 13, 13, 13, 30, 3, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 239, 14 ], [ 239, 15 ], [ 15, 16 ], [ 15, 17 ], [ 239, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 20, 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 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 70, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 62, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 62, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 109, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 121, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 62, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 18, 148 ], [ 148, 149 ], [ 239, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 150, 154 ], [ 154, 155 ], [ 150, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 150, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 165, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 175, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 164, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 150, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 197, 198 ], [ 150, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 206, 207 ], [ 150, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 212, 215 ], [ 215, 216 ], [ 150, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 219, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 223, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 234, 235 ], [ 219, 236 ], [ 236, 237 ], [ 0, 238 ], [ 238, 239 ], [ 238, 240 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\n\t\tint N = sc.nextInt();\n\n\t\tint[] A = new int[N];\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\n\t\tfor(int i=0; i<N; i++) {\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\n\t\tint N = sc.nextInt();\n\n\t\tint[] A = new int[N];\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\n\t\tfor(int i=0; i<N; i++) {\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n\n}", "Main", "private static FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "public static void main(String[] args) {\n\n\t\tint N = sc.nextInt();\n\n\t\tint[] A = new int[N];\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\n\t\tfor(int i=0; i<N; i++) {\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}", "main", "{\n\n\t\tint N = sc.nextInt();\n\n\t\tint[] A = new int[N];\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\n\t\tfor(int i=0; i<N; i++) {\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] A = new int[N];", "A", "new int[N]", "N", "for(int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i<N; i++) {\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}", "{\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}", "int temp = A[i];", "temp", "A[i]", "A", "i", "int j;", "j", "for(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "j=i-1;", "j=i-1", "j", "i-1", "i", "1", "j>=0", "j", "0", "j--", "j--", "j", "{\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "if(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "A[j] < temp", "A[j]", "A", "j", "temp", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "A[j+1] = temp", "A[j+1]", "A", "j+1", "j", "1", "temp", "for(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<N", "k", "N", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}", "System.out.print(A[k])", "System.out.print", "System.out", "System", "System.out", "A[k]", "A", "k", "if(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}", "k != N-1", "k", "N-1", "N", "1", "{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastScanner", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\n\t\tint N = sc.nextInt();\n\n\t\tint[] A = new int[N];\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\n\t\tfor(int i=0; i<N; i++) {\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n\n}", "public class Main {\n\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\n\t\tint N = sc.nextInt();\n\n\t\tint[] A = new int[N];\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\n\t\tfor(int i=0; i<N; i++) {\n\n\t\t\tint temp = A[i];\n\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--){\n\t\t\t\tA[j+1] = A[j];\n\n\t\t\t\tif(A[j] < temp){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tA[j+1] = temp;\n\n\n\t\t\tfor(int k=0; k<N; k++) {\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k != N-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { private static FastScanner sc = new FastScanner(); public static void main(String[] args) { int N = sc.nextInt(); int[] A = new int[N]; for(int i=0; i<N; i++) { A[i] = sc.nextInt(); } for(int i=0; i<N; i++) { int temp = A[i]; int j; for(j=i-1; j>=0; j--){ A[j+1] = A[j]; if(A[j] < temp){ break; } } A[j+1] = temp; for(int k=0; k<N; k++) { System.out.print(A[k]); if(k != N-1){ System.out.print(" "); } } System.out.println(); } } static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 0, 18, 13, 17, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 3, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 33, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 90, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 69, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 109, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 130, 141 ], [ 123, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 6, 152 ], [ 152, 153 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n\tint key,i,j,k,l;\n\tint array[] = new int[101];\n\n\tScanner scan = new Scanner(System.in);\n\tarray[0] = scan.nextInt();\n\tfor(l=1;l<=array[0];l++){\n\t array[l] = scan.nextInt();\n\t}\n\t\n\t\n\tfor(i=1;i<=array[0];i++){\n\t key = array[i];\n\t j = i-1;\n\t while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }\n\t for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }\n\t}\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n\tint key,i,j,k,l;\n\tint array[] = new int[101];\n\n\tScanner scan = new Scanner(System.in);\n\tarray[0] = scan.nextInt();\n\tfor(l=1;l<=array[0];l++){\n\t array[l] = scan.nextInt();\n\t}\n\t\n\t\n\tfor(i=1;i<=array[0];i++){\n\t key = array[i];\n\t j = i-1;\n\t while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }\n\t for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }\n\t}\n }\n}", "Main", "public static void main(String[] args){\n\tint key,i,j,k,l;\n\tint array[] = new int[101];\n\n\tScanner scan = new Scanner(System.in);\n\tarray[0] = scan.nextInt();\n\tfor(l=1;l<=array[0];l++){\n\t array[l] = scan.nextInt();\n\t}\n\t\n\t\n\tfor(i=1;i<=array[0];i++){\n\t key = array[i];\n\t j = i-1;\n\t while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }\n\t for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }\n\t}\n }", "main", "{\n\tint key,i,j,k,l;\n\tint array[] = new int[101];\n\n\tScanner scan = new Scanner(System.in);\n\tarray[0] = scan.nextInt();\n\tfor(l=1;l<=array[0];l++){\n\t array[l] = scan.nextInt();\n\t}\n\t\n\t\n\tfor(i=1;i<=array[0];i++){\n\t key = array[i];\n\t j = i-1;\n\t while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }\n\t for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }\n\t}\n }", "int key", "key", "i", "i", "j", "j", "k", "k", "l;", "l", "int array[] = new int[101];", "array", "new int[101]", "101", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "array[0] = scan.nextInt()", "array[0]", "array", "0", "scan.nextInt()", "scan.nextInt", "scan", "for(l=1;l<=array[0];l++){\n\t array[l] = scan.nextInt();\n\t}", "l=1;", "l=1", "l", "1", "l<=array[0]", "l", "array[0]", "array", "0", "l++", "l++", "l", "{\n\t array[l] = scan.nextInt();\n\t}", "{\n\t array[l] = scan.nextInt();\n\t}", "array[l] = scan.nextInt()", "array[l]", "array", "l", "scan.nextInt()", "scan.nextInt", "scan", "for(i=1;i<=array[0];i++){\n\t key = array[i];\n\t j = i-1;\n\t while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }\n\t for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }\n\t}", "i=1;", "i=1", "i", "1", "i<=array[0]", "i", "array[0]", "array", "0", "i++", "i++", "i", "{\n\t key = array[i];\n\t j = i-1;\n\t while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }\n\t for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }\n\t}", "{\n\t key = array[i];\n\t j = i-1;\n\t while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }\n\t for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }\n\t}", "key = array[i]", "key", "array[i]", "array", "i", "j = i-1", "j", "i-1", "i", "1", "while(j>0 && array[j]>key){\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }", "j>0 && array[j]>key", "j>0", "j", "0", "array[j]>key", "array[j]", "array", "j", "key", "{\n\t\tarray[j+1] = array[j];\n\t\tj--;\n\t\tarray[j+1] = key;\n\t }", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j+1] = key", "array[j+1]", "array", "j+1", "j", "1", "key", "for(k=1;k<=array[0];k++){\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }", "k=1;", "k=1", "k", "1", "k<=array[0]", "k", "array[0]", "array", "0", "k++", "k++", "k", "{\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }", "{\n\t\tif(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}\n\t\tSystem.out.print(array[k]+\" \");\n\t }", "if(k==array[0]){System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}", "k==array[0]", "k", "array[0]", "array", "0", "{System.out.print(array[k]+\"\\n\");\n\t\t break;\n\t\t}", "System.out.print(array[k]+\"\\n\")", "System.out.print", "System.out", "System", "System.out", "array[k]+\"\\n\"", "array[k]", "array", "k", "\"\\n\"", "break;", "System.out.print(array[k]+\" \")", "System.out.print", "System.out", "System", "System.out", "array[k]+\" \"", "array[k]", "array", "k", "\" \"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ int key,i,j,k,l; int array[] = new int[101]; Scanner scan = new Scanner(System.in); array[0] = scan.nextInt(); for(l=1;l<=array[0];l++){ array[l] = scan.nextInt(); } for(i=1;i<=array[0];i++){ key = array[i]; j = i-1; while(j>0 && array[j]>key){ array[j+1] = array[j]; j--; array[j+1] = key; } for(k=1;k<=array[0];k++){ if(k==array[0]){System.out.print(array[k]+"\n"); break; } System.out.print(array[k]+" "); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 164, 8 ], [ 164, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 12, 25 ], [ 26, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 26, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 11, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 9, 56 ], [ 56, 57 ], [ 164, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 78, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 100, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 78, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 78, 118 ], [ 118, 119 ], [ 118, 120 ], [ 58, 121 ], [ 121, 122 ], [ 164, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 125, 134 ], [ 134, 135 ], [ 134, 136 ], [ 125, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 143, 144 ], [ 143, 145 ], [ 138, 146 ], [ 146, 147 ], [ 147, 148 ], [ 138, 149 ], [ 150, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 125, 158 ], [ 158, 159 ], [ 158, 160 ], [ 123, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n\n\tpublic static void print_ary(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n\n\tpublic static void my_insertion_sort(int[] a) {\n\t\tprint_ary(a);\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// Collect input\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\t// Sort\n\t\tmy_insertion_sort(a);\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n\n\tpublic static void print_ary(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n\n\tpublic static void my_insertion_sort(int[] a) {\n\t\tprint_ary(a);\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// Collect input\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\t// Sort\n\t\tmy_insertion_sort(a);\n\t}\n\n}", "Main", "public static void print_ary(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "print_ary", "{\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "for (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "System.out.print(a[i])", "System.out.print", "System.out", "System", "System.out", "a[i]", "a", "i", "if (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "i != a.length - 1", "i", "a.length - 1", "a.length", "a", "a.length", "1", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "int[] a", "a", "public static void my_insertion_sort(int[] a) {\n\t\tprint_ary(a);\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}\n\t}", "my_insertion_sort", "{\n\t\tprint_ary(a);\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}\n\t}", "print_ary(a)", "print_ary", "a", "for (int i = 1; i < a.length; i++) {\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}", "{\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}", "int key = a[i];", "key", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && a[j] > key", "j >= 0", "j", "0", "a[j] > key", "a[j]", "a", "j", "key", "{\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = key", "a[j+1]", "a", "j+1", "j", "1", "key", "print_ary(a)", "print_ary", "a", "int[] a", "a", "public static void main(String[] args) {\n\t\t// Collect input\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\t// Sort\n\t\tmy_insertion_sort(a);\n\t}", "main", "{\n\t\t// Collect input\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\t// Sort\n\t\tmy_insertion_sort(a);\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = s.nextInt();\n\t\t}", "{\n\t\t\ta[i] = s.nextInt();\n\t\t}", "a[i] = s.nextInt()", "a[i]", "a", "i", "s.nextInt()", "s.nextInt", "s", "my_insertion_sort(a)", "my_insertion_sort", "a", "String[] args", "args", "public class Main {\n\n\tpublic static void print_ary(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n\n\tpublic static void my_insertion_sort(int[] a) {\n\t\tprint_ary(a);\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// Collect input\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\t// Sort\n\t\tmy_insertion_sort(a);\n\t}\n\n}", "public class Main {\n\n\tpublic static void print_ary(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n\n\tpublic static void my_insertion_sort(int[] a) {\n\t\tprint_ary(a);\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tint key = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = key;\n\t\t\tprint_ary(a);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// Collect input\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\t// Sort\n\t\tmy_insertion_sort(a);\n\t}\n\n}", "Main" ]
import java.util.Scanner; import java.util.Arrays; public class Main { public static void print_ary(int[] a) { for (int i = 0; i < a.length; i++) { System.out.print(a[i]); if (i != a.length - 1) { System.out.print(" "); } } System.out.print("\n"); } public static void my_insertion_sort(int[] a) { print_ary(a); for (int i = 1; i < a.length; i++) { int key = a[i]; int j = i - 1; while (j >= 0 && a[j] > key) { a[j+1] = a[j]; j--; } a[j+1] = key; print_ary(a); } } public static void main(String[] args) { // Collect input Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = s.nextInt(); } // Sort my_insertion_sort(a); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 13, 42, 2, 2, 13, 17, 2, 18, 13, 2, 13, 17, 18, 13, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 21, 31 ], [ 31, 32 ], [ 32, 33 ], [ 21, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 58, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 87, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 116, 118 ], [ 105, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 119, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 134, 140 ], [ 119, 141 ], [ 141, 142 ], [ 101, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 143, 154 ], [ 155, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 166, 167 ], [ 166, 168 ], [ 156, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 177, 179 ], [ 101, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 6, 185 ], [ 185, 186 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main (String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();//??????????????????\n\t\t\n\t\tint [] intAry = new int[N];\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\tintAry[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\t\n\t\t\tif( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tfor (int i = 1; i < intAry.length; i++) {\n\t\t\tint j = i;\n\t\t\twhile(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tfor( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "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\tint N = sc.nextInt();//??????????????????\n\t\t\n\t\tint [] intAry = new int[N];\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\tintAry[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\t\n\t\t\tif( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tfor (int i = 1; i < intAry.length; i++) {\n\t\t\tint j = i;\n\t\t\twhile(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tfor( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main (String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();//??????????????????\n\t\t\n\t\tint [] intAry = new int[N];\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\tintAry[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\t\n\t\t\tif( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tfor (int i = 1; i < intAry.length; i++) {\n\t\t\tint j = i;\n\t\t\twhile(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tfor( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();//??????????????????\n\t\t\n\t\tint [] intAry = new int[N];\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\tintAry[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\t\n\t\t\tif( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tfor (int i = 1; i < intAry.length; i++) {\n\t\t\tint j = i;\n\t\t\twhile(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tfor( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int [] intAry = new int[N];", "intAry", "new int[N]", "N", "for( int i = 0 ; i < intAry.length ; i++){\n\t\t\tintAry[i] = sc.nextInt();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < intAry.length", "i", "intAry.length", "intAry", "intAry.length", "i++", "i++", "i", "{\n\t\t\tintAry[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tintAry[i] = sc.nextInt();\n\t\t}", "intAry[i] = sc.nextInt()", "intAry[i]", "intAry", "i", "sc.nextInt()", "sc.nextInt", "sc", "for( int i = 0 ; i < intAry.length ; i++){\n\t\t\t\n\t\t\tif( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < intAry.length", "i", "intAry.length", "intAry", "intAry.length", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tif( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}\n\t\t}", "{\n\t\t\t\n\t\t\tif( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}\n\t\t}", "if( i == 0){\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}", "i == 0", "i", "0", "{\n\t\t\t\tSystem.out.print(intAry[i]);\n\t\t\t}", "System.out.print(intAry[i])", "System.out.print", "System.out", "System", "System.out", "intAry[i]", "intAry", "i", "{\n\t\t\t\tSystem.out.print(\" \" + intAry[i]);\n\t\t\t}", "System.out.print(\" \" + intAry[i])", "System.out.print", "System.out", "System", "System.out", "\" \" + intAry[i]", "\" \"", "intAry[i]", "intAry", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for (int i = 1; i < intAry.length; i++) {\n\t\t\tint j = i;\n\t\t\twhile(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tfor( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < intAry.length", "i", "intAry.length", "intAry", "intAry.length", "i++", "i++", "i", "{\n\t\t\tint j = i;\n\t\t\twhile(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tfor( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tint j = i;\n\t\t\twhile(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tfor( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int j = i;", "j", "i", "while(j > 0 && intAry[j-1] > intAry[j]){\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}", "j > 0 && intAry[j-1] > intAry[j]", "j > 0", "j", "0", "intAry[j-1] > intAry[j]", "intAry[j-1]", "intAry", "j-1", "j", "1", "intAry[j]", "intAry", "j", "{\n\t\t\t\tint temp = intAry[j];\n\t\t\t\tintAry[j] = intAry[j-1];\n\t\t\t\tintAry[j-1] = temp;\n\t\t\t\tj--;\n\t\t\t}", "int temp = intAry[j];", "temp", "intAry[j]", "intAry", "j", "intAry[j] = intAry[j-1]", "intAry[j]", "intAry", "j", "intAry[j-1]", "intAry", "j-1", "j", "1", "intAry[j-1] = temp", "intAry[j-1]", "intAry", "j-1", "j", "1", "temp", "j--", "j", "for( int x = 0 ; x < N ; x++ ){\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}", "int x = 0 ;", "int x = 0 ;", "x", "0", "x < N", "x", "N", "x++", "x++", "x", "{\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}\n\t\t\t}", "if( x == 0){\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}", "x == 0", "x", "0", "{\n\t\t\t\t\tSystem.out.print(intAry[x]);\n\t\t\t\t}", "System.out.print(intAry[x])", "System.out.print", "System.out", "System", "System.out", "intAry[x]", "intAry", "x", "{\n\t\t\t\t\tSystem.out.print(\" \" + intAry[x]);\n\t\t\t\t}", "System.out.print(\" \" + intAry[x])", "System.out.print", "System.out", "System", "System.out", "\" \" + intAry[x]", "\" \"", "intAry[x]", "intAry", "x", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "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 [] intAry = new int[N]; for( int i = 0 ; i < intAry.length ; i++){ intAry[i] = sc.nextInt(); } for( int i = 0 ; i < intAry.length ; i++){ if( i == 0){ System.out.print(intAry[i]); }else{ System.out.print(" " + intAry[i]); } } System.out.println(); for (int i = 1; i < intAry.length; i++) { int j = i; while(j > 0 && intAry[j-1] > intAry[j]){ int temp = intAry[j]; intAry[j] = intAry[j-1]; intAry[j-1] = temp; j--; } for( int x = 0 ; x < N ; x++ ){ if( x == 0){ System.out.print(intAry[x]); }else{ System.out.print(" " + intAry[x]); } } System.out.println(); } } }
[ 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, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 2, 13, 17, 4, 18, 13, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 176, 11 ], [ 176, 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 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 37, 38 ], [ 37, 39 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 12, 72 ], [ 72, 73 ], [ 176, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 76, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 93, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 104, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 115, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 114, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 126, 132 ], [ 93, 133 ], [ 133, 134 ], [ 133, 135 ], [ 74, 136 ], [ 136, 137 ], [ 74, 138 ], [ 138, 139 ], [ 176, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 146, 148 ], [ 146, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 153, 154 ], [ 153, 155 ], [ 142, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 142, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 142, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 140, 173 ], [ 173, 174 ], [ 0, 175 ], [ 175, 176 ], [ 175, 177 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.StringBuffer;\n\n/*Question\n/?????\\????????????Insertion Sort?????????????????????????????????????????????????????¨??????????????????????????¶??§???????????????????????¢?????´????????????????????§??????\n/??????????????£????????????????????????????°????????????????????????´???????????????????????????????????????????????????????????????????????§?????§???????????????????????????????????????????????????????????\\?????????????????¨????????£??????????????????????????????????????¨?????§????????????\n/?????\\?????????????¬???????????????¢?????´???????????????????????????\n/1 insertionSort(A, N) // N??????????´??????????0-?????????????????????A\n/2 for i ??? 1 ?????? N-1 ?????§\n/3 v = A[i]\n/4 j = i - 1\n/5 while j >= 0 ?????? A[j] > v\n/6 A[j+1] = A[j]\n/7 j--\n/8 A[j+1] = v\n/N ??????????´????????????°??? A ????????????????????????????????\\????????????????????°????????????????????????????????????\n/????????????????????????????????¢?????´????????????????£????????????????????????¢?????´??????????????????????¢???????????????????????¨??????????????????§??????????????\\?????´??????????????¨?????? i ??????????????????????????´????????????????????????????????????????????? \n*/\n\n/*Input\n/??\\??????????????????????????°?????????????????¨?????´??° N ????????????????????????2 ????????????N ????????´??°????????????????????§????????????????????? \n*/\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint[] a = new int[st.length];\n\t\tfor(int i = 0;i < st.length;i++){\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}\n\t\tshow(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\t/*insertionSort????????????\n\t/?¨??????????????????????\n\t/\n\t*/\n\n\tpublic static void insertionSort(int[] a,int n) {\n\t\tint v;\n\t\tint j;\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}\n\t}\n\n\tpublic static void show(int[] a){\n\t\t//????????¨\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int s:a)\n\t\t\tbr.append(s+\" \");\n\t\tbr.deleteCharAt(br.lastIndexOf(\" \"));\n\t\tbr.append(\"\\n\");\n\t\tSystem.out.print(br);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.StringBuffer;", "StringBuffer", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint[] a = new int[st.length];\n\t\tfor(int i = 0;i < st.length;i++){\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}\n\t\tshow(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\t/*insertionSort????????????\n\t/?¨??????????????????????\n\t/\n\t*/\n\n\tpublic static void insertionSort(int[] a,int n) {\n\t\tint v;\n\t\tint j;\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}\n\t}\n\n\tpublic static void show(int[] a){\n\t\t//????????¨\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int s:a)\n\t\t\tbr.append(s+\" \");\n\t\tbr.deleteCharAt(br.lastIndexOf(\" \"));\n\t\tbr.append(\"\\n\");\n\t\tSystem.out.print(br);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint[] a = new int[st.length];\n\t\tfor(int i = 0;i < st.length;i++){\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}\n\t\tshow(a);\n\t\tinsertionSort(a,n);\n\t}", "main", "{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint[] a = new int[st.length];\n\t\tfor(int i = 0;i < st.length;i++){\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}\n\t\tshow(a);\n\t\tinsertionSort(a,n);\n\t}", "BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));", "sc", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(sc.readLine());", "n", "Integer.parseInt(sc.readLine())", "Integer.parseInt", "Integer", "sc.readLine()", "sc.readLine", "sc", "String[] st = sc.readLine().split(\" \");", "st", "sc.readLine().split(\" \")", "sc.readLine().split", "sc.readLine()", "sc.readLine", "sc", "\" \"", "int[] a = new int[st.length];", "a", "new int[st.length]", "st.length", "st", "st.length", "for(int i = 0;i < st.length;i++){\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < st.length", "i", "st.length", "st", "st.length", "i++", "i++", "i", "{\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}", "{\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}", "a[i] = Integer.parseInt(st[i])", "a[i]", "a", "i", "Integer.parseInt(st[i])", "Integer.parseInt", "Integer", "st[i]", "st", "i", "show(a)", "show", "a", "insertionSort(a,n)", "insertionSort", "a", "n", "String[] args", "args", "public static void insertionSort(int[] a,int n) {\n\t\tint v;\n\t\tint j;\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}\n\t}", "insertionSort", "{\n\t\tint v;\n\t\tint j;\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}\n\t}", "int v;", "v", "int j;", "j", "for(int i = 1;i < n;i++){\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}", "{\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}", "v = a[i]", "v", "a[i]", "a", "i", "j = i-1", "j", "i-1", "i", "1", "while(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}", "j >= 0 && a[j] > v", "j >= 0", "j", "0", "a[j] > v", "a[j]", "a", "j", "v", "{\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = v", "a[j+1]", "a", "j+1", "j", "1", "v", "show(a)", "show", "a", "int[] a", "a", "int n", "n", "public static void show(int[] a){\n\t\t//????????¨\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int s:a)\n\t\t\tbr.append(s+\" \");\n\t\tbr.deleteCharAt(br.lastIndexOf(\" \"));\n\t\tbr.append(\"\\n\");\n\t\tSystem.out.print(br);\n\t}", "show", "{\n\t\t//????????¨\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int s:a)\n\t\t\tbr.append(s+\" \");\n\t\tbr.deleteCharAt(br.lastIndexOf(\" \"));\n\t\tbr.append(\"\\n\");\n\t\tSystem.out.print(br);\n\t}", "StringBuffer br = new StringBuffer();", "br", "new StringBuffer()", "for(int s:a)\n\t\t\tbr.append(s+\" \");", "int s", "a", "br.append(s+\" \");", "br.append(s+\" \")", "br.append", "br", "s+\" \"", "s", "\" \"", "br.deleteCharAt(br.lastIndexOf(\" \"))", "br.deleteCharAt", "br", "br.lastIndexOf(\" \")", "br.lastIndexOf", "br", "\" \"", "br.append(\"\\n\")", "br.append", "br", "\"\\n\"", "System.out.print(br)", "System.out.print", "System.out", "System", "System.out", "br", "int[] a", "a", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint[] a = new int[st.length];\n\t\tfor(int i = 0;i < st.length;i++){\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}\n\t\tshow(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\t/*insertionSort????????????\n\t/?¨??????????????????????\n\t/\n\t*/\n\n\tpublic static void insertionSort(int[] a,int n) {\n\t\tint v;\n\t\tint j;\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}\n\t}\n\n\tpublic static void show(int[] a){\n\t\t//????????¨\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int s:a)\n\t\t\tbr.append(s+\" \");\n\t\tbr.deleteCharAt(br.lastIndexOf(\" \"));\n\t\tbr.append(\"\\n\");\n\t\tSystem.out.print(br);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tString[] st = sc.readLine().split(\" \");\n\t\tint[] a = new int[st.length];\n\t\tfor(int i = 0;i < st.length;i++){\n\t\t\ta[i] = Integer.parseInt(st[i]);\n\t\t}\n\t\tshow(a);\n\t\tinsertionSort(a,n);\n\t}\n\n\t/*insertionSort????????????\n\t/?¨??????????????????????\n\t/\n\t*/\n\n\tpublic static void insertionSort(int[] a,int n) {\n\t\tint v;\n\t\tint j;\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tv = a[i];\n\t\t\tj = i-1;\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t\ta[j+1] = v;\n\t\t\t}\n\t\t\tshow(a);\n\t\t}\n\t}\n\n\tpublic static void show(int[] a){\n\t\t//????????¨\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int s:a)\n\t\t\tbr.append(s+\" \");\n\t\tbr.deleteCharAt(br.lastIndexOf(\" \"));\n\t\tbr.append(\"\\n\");\n\t\tSystem.out.print(br);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.StringBuffer; /*Question /?????\????????????Insertion Sort?????????????????????????????????????????????????????¨??????????????????????????¶??§???????????????????????¢?????´????????????????????§?????? /??????????????£????????????????????????????°????????????????????????´???????????????????????????????????????????????????????????????????????§?????§???????????????????????????????????????????????????????????\?????????????????¨????????£??????????????????????????????????????¨?????§???????????? /?????\?????????????¬???????????????¢?????´??????????????????????????? /1 insertionSort(A, N) // N??????????´??????????0-?????????????????????A /2 for i ??? 1 ?????? N-1 ?????§ /3 v = A[i] /4 j = i - 1 /5 while j >= 0 ?????? A[j] > v /6 A[j+1] = A[j] /7 j-- /8 A[j+1] = v /N ??????????´????????????°??? A ????????????????????????????????\????????????????????°???????????????????????????????????? /????????????????????????????????¢?????´????????????????£????????????????????????¢?????´??????????????????????¢???????????????????????¨??????????????????§??????????????\?????´??????????????¨?????? i ??????????????????????????´????????????????????????????????????????????? */ /*Input /??\??????????????????????????°?????????????????¨?????´??° N ????????????????????????2 ????????????N ????????´??°????????????????????§????????????????????? */ public class Main { public static void main(String[] args) throws Exception{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); /*??\??? /??????????´???°?????\???????¬??????°????????\??? */ int n = Integer.parseInt(sc.readLine()); String[] st = sc.readLine().split(" "); int[] a = new int[st.length]; for(int i = 0;i < st.length;i++){ a[i] = Integer.parseInt(st[i]); } show(a); insertionSort(a,n); } /*insertionSort???????????? /?¨?????????????????????? / */ public static void insertionSort(int[] a,int n) { int v; int j; for(int i = 1;i < n;i++){ v = a[i]; j = i-1; while(j >= 0 && a[j] > v){ a[j+1] = a[j]; j--; a[j+1] = v; } show(a); } } public static void show(int[] a){ //????????¨ StringBuffer br = new StringBuffer(); for(int s:a) br.append(s+" "); br.deleteCharAt(br.lastIndexOf(" ")); br.append("\n"); System.out.print(br); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 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 ], [ 64, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 61, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 61, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 61, 104 ], [ 104, 105 ], [ 104, 106 ], [ 61, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 6, 112 ], [ 112, 113 ], [ 163, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 117, 129 ], [ 129, 130 ], [ 130, 131 ], [ 117, 132 ], [ 133, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 133, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 116, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 114, 160 ], [ 160, 161 ], [ 0, 162 ], [ 162, 163 ], [ 162, 164 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\n\t\t// First input needs to be length\n\t\tint length = in.nextInt();\n\t\n\t\t// Create an array with that length\n\t\tint[] a = new int[length];\n\t\t\n\t\t// Fill in that array with the second input\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}\n\t\t\n\t\t// Prints the unsorted Array\n\t\tprint(a);\n\t\tSystem.out.println();\n\t\t\n\t\t//Now time to sort it\n\t\tfor (int i = 1; i < length; i++) {\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\n\t}\n\t\n\tpublic static void print(int[] nums) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.print(nums[nums.length-1]);\t\n\t}\n\t\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\n\t\t// First input needs to be length\n\t\tint length = in.nextInt();\n\t\n\t\t// Create an array with that length\n\t\tint[] a = new int[length];\n\t\t\n\t\t// Fill in that array with the second input\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}\n\t\t\n\t\t// Prints the unsorted Array\n\t\tprint(a);\n\t\tSystem.out.println();\n\t\t\n\t\t//Now time to sort it\n\t\tfor (int i = 1; i < length; i++) {\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\n\t}\n\t\n\tpublic static void print(int[] nums) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.print(nums[nums.length-1]);\t\n\t}\n\t\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\n\t\t// First input needs to be length\n\t\tint length = in.nextInt();\n\t\n\t\t// Create an array with that length\n\t\tint[] a = new int[length];\n\t\t\n\t\t// Fill in that array with the second input\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}\n\t\t\n\t\t// Prints the unsorted Array\n\t\tprint(a);\n\t\tSystem.out.println();\n\t\t\n\t\t//Now time to sort it\n\t\tfor (int i = 1; i < length; i++) {\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\n\t}", "main", "{\n\n\t\tScanner in = new Scanner(System.in);\n\t\n\t\t// First input needs to be length\n\t\tint length = in.nextInt();\n\t\n\t\t// Create an array with that length\n\t\tint[] a = new int[length];\n\t\t\n\t\t// Fill in that array with the second input\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}\n\t\t\n\t\t// Prints the unsorted Array\n\t\tprint(a);\n\t\tSystem.out.println();\n\t\t\n\t\t//Now time to sort it\n\t\tfor (int i = 1; i < length; i++) {\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int length = in.nextInt();", "length", "in.nextInt()", "in.nextInt", "in", "int[] a = new int[length];", "a", "new int[length]", "length", "for (int i = 0; i < length; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < length", "i", "length", "i++", "i++", "i", "{\n\t\t\ta[i] = in.nextInt();\n\t\t}", "{\n\t\t\ta[i] = in.nextInt();\n\t\t}", "a[i] = in.nextInt()", "a[i]", "a", "i", "in.nextInt()", "in.nextInt", "in", "print(a)", "print", "a", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for (int i = 1; i < length; i++) {\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < length", "i", "length", "i++", "i++", "i", "{\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}", "int ind = a[i];", "ind", "a[i]", "a", "i", "int j = i -1;", "j", "i -1", "i", "1", "while(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}", "j>=0 && a[j] > ind", "j>=0", "j", "0", "a[j] > ind", "a[j]", "a", "j", "ind", "{\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j = j-1", "j", "j-1", "j", "1", "a[j+1] = ind", "a[j+1]", "a", "j+1", "j", "1", "ind", "print(a)", "print", "a", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public static void print(int[] nums) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.print(nums[nums.length-1]);\t\n\t}", "print", "{\n\t\t\n\t\t\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.print(nums[nums.length-1]);\t\n\t}", "for (int i = 0; i < nums.length-1; i++) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < nums.length-1", "i", "nums.length-1", "nums.length", "nums", "nums.length", "1", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}", "{\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}", "System.out.print(nums[i])", "System.out.print", "System.out", "System", "System.out", "nums[i]", "nums", "i", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(nums[nums.length-1])", "System.out.print", "System.out", "System", "System.out", "nums[nums.length-1]", "nums", "nums.length-1", "nums.length", "nums", "nums.length", "1", "int[] nums", "nums", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\n\t\t// First input needs to be length\n\t\tint length = in.nextInt();\n\t\n\t\t// Create an array with that length\n\t\tint[] a = new int[length];\n\t\t\n\t\t// Fill in that array with the second input\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}\n\t\t\n\t\t// Prints the unsorted Array\n\t\tprint(a);\n\t\tSystem.out.println();\n\t\t\n\t\t//Now time to sort it\n\t\tfor (int i = 1; i < length; i++) {\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\n\t}\n\t\n\tpublic static void print(int[] nums) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.print(nums[nums.length-1]);\t\n\t}\n\t\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\n\t\t// First input needs to be length\n\t\tint length = in.nextInt();\n\t\n\t\t// Create an array with that length\n\t\tint[] a = new int[length];\n\t\t\n\t\t// Fill in that array with the second input\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}\n\t\t\n\t\t// Prints the unsorted Array\n\t\tprint(a);\n\t\tSystem.out.println();\n\t\t\n\t\t//Now time to sort it\n\t\tfor (int i = 1; i < length; i++) {\n\t\t\t// the value of this specific index\n\t\t\tint ind = a[i];\n\t\t\t// index for the number before the index (i) now\n\t\t\tint j = i -1;\n\t\t\t// WHILE j is positive and it's value is greater than ind...\n\t\t\twhile(j>=0 && a[j] > ind) {\n\t\t\t\t// The value will be pushed down away from ind\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\t// if they find a value less, than the ind is pushed so that value is before it\n\t\t\ta[j+1] = ind;\n\t\t\t//Show the array as it's sorted\n\t\t\tprint(a);\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\n\t}\n\t\n\tpublic static void print(int[] nums) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.print(nums[nums.length-1]);\t\n\t}\n\t\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // First input needs to be length int length = in.nextInt(); // Create an array with that length int[] a = new int[length]; // Fill in that array with the second input for (int i = 0; i < length; i++) { a[i] = in.nextInt(); } // Prints the unsorted Array print(a); System.out.println(); //Now time to sort it for (int i = 1; i < length; i++) { // the value of this specific index int ind = a[i]; // index for the number before the index (i) now int j = i -1; // WHILE j is positive and it's value is greater than ind... while(j>=0 && a[j] > ind) { // The value will be pushed down away from ind a[j+1] = a[j]; j = j-1; } // if they find a value less, than the ind is pushed so that value is before it a[j+1] = ind; //Show the array as it's sorted print(a); System.out.println(); } } public static void print(int[] nums) { for (int i = 0; i < nums.length-1; i++) { System.out.print(nums[i]); System.out.print(" "); } System.out.print(nums[nums.length-1]); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 13, 17, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 172, 5 ], [ 172, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 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 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 59, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 59, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 59, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 59, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 59, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 127, 133 ], [ 8, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 145, 146 ], [ 134, 147 ], [ 148, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 8, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 166, 168 ], [ 6, 169 ], [ 169, 170 ], [ 0, 171 ], [ 171, 172 ], [ 171, 173 ] ]
[ "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\tint n = Integer.parseInt(sc.next());\n\t\t\n\t\tint[] A = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tfor (int i=1; i<n;i++){\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}\n\t\t\n\t\tfor(int k=0;k<n-1;k++){\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}\n\t\tSystem.out.println(A[n-1]);\n\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\tint n = Integer.parseInt(sc.next());\n\t\t\n\t\tint[] A = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tfor (int i=1; i<n;i++){\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}\n\t\t\n\t\tfor(int k=0;k<n-1;k++){\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}\n\t\tSystem.out.println(A[n-1]);\n\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\t\n\t\tint[] A = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tfor (int i=1; i<n;i++){\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}\n\t\t\n\t\tfor(int k=0;k<n-1;k++){\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}\n\t\tSystem.out.println(A[n-1]);\n\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\t\n\t\tint[] A = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tfor (int i=1; i<n;i++){\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}\n\t\t\n\t\tfor(int k=0;k<n-1;k++){\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}\n\t\tSystem.out.println(A[n-1]);\n\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int[] A = new int[n];", "A", "new int[n]", "n", "for(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}", "{\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}", "A[i]= Integer.parseInt(sc.next())", "A[i]", "A", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "for (int i=1; i<n;i++){\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}", "{\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}", "for(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<n-1", "k", "n-1", "n", "1", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}", "System.out.print(A[k]+\" \")", "System.out.print", "System.out", "System", "System.out", "A[k]+\" \"", "A[k]", "A", "k", "\" \"", "System.out.println(A[n-1])", "System.out.println", "System.out", "System", "System.out", "A[n-1]", "A", "n-1", "n", "1", "int key = A[i];", "key", "A[i]", "A", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0 && A[j]>key", "j>=0", "j", "0", "A[j]>key", "A[j]", "A", "j", "key", "{\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1]=A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1]=key", "A[j+1]", "A", "j+1", "j", "1", "key", "for(int k=0;k<n-1;k++){\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}", "int k=0;", "int k=0;", "k", "0", "k<n-1", "k", "n-1", "n", "1", "k++", "k++", "k", "{\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}", "{\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}", "System.out.print(A[k]+\" \")", "System.out.print", "System.out", "System", "System.out", "A[k]+\" \"", "A[k]", "A", "k", "\" \"", "System.out.println(A[n-1])", "System.out.println", "System.out", "System", "System.out", "A[n-1]", "A", "n-1", "n", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\t\n\t\tint[] A = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tfor (int i=1; i<n;i++){\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}\n\t\t\n\t\tfor(int k=0;k<n-1;k++){\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}\n\t\tSystem.out.println(A[n-1]);\n\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\tint n = Integer.parseInt(sc.next());\n\t\t\n\t\tint[] A = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tfor (int i=1; i<n;i++){\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(A[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint key = A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=key;\n\t\t}\n\t\t\n\t\tfor(int k=0;k<n-1;k++){\n\t\t\tSystem.out.print(A[k]+\" \");\n\t\t}\n\t\tSystem.out.println(A[n-1]);\n\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int[] A = new int[n]; for(int i=0;i<n;i++){ A[i]= Integer.parseInt(sc.next()); } for (int i=1; i<n;i++){ for(int k=0;k<n-1;k++){ System.out.print(A[k]+" "); } System.out.println(A[n-1]); int key = A[i]; int j=i-1; while(j>=0 && A[j]>key){ A[j+1]=A[j]; j--; } A[j+1]=key; } for(int k=0;k<n-1;k++){ System.out.print(A[k]+" "); } System.out.println(A[n-1]); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 147, 5 ], [ 147, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 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 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 56, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 56, 96 ], [ 96, 97 ], [ 96, 98 ], [ 6, 99 ], [ 99, 100 ], [ 147, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 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 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 103, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 142, 143 ], [ 101, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint N = scn.nextInt();\n\t\tint[] data = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}\n\t\tshow(data);\n\t\tfor (int j = 1; j < N; j++) {\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}\n\n\t}\n\n\tstatic void show(int[] pdata) {\n\t\tStringBuffer stb = new StringBuffer();\n\t\tstb.append(pdata[0]);\n\t\tfor (int a = 1; a < pdata.length; a++) {\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}\n\t\tSystem.out.println(stb.toString());\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\tint N = scn.nextInt();\n\t\tint[] data = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}\n\t\tshow(data);\n\t\tfor (int j = 1; j < N; j++) {\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}\n\n\t}\n\n\tstatic void show(int[] pdata) {\n\t\tStringBuffer stb = new StringBuffer();\n\t\tstb.append(pdata[0]);\n\t\tfor (int a = 1; a < pdata.length; a++) {\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}\n\t\tSystem.out.println(stb.toString());\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint N = scn.nextInt();\n\t\tint[] data = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}\n\t\tshow(data);\n\t\tfor (int j = 1; j < N; j++) {\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}\n\n\t}", "main", "{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint N = scn.nextInt();\n\t\tint[] data = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}\n\t\tshow(data);\n\t\tfor (int j = 1; j < N; j++) {\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}\n\n\t}", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "int N = scn.nextInt();", "N", "scn.nextInt()", "scn.nextInt", "scn", "int[] data = new int[N];", "data", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tdata[i] = scn.nextInt();\n\t\t}", "{\n\t\t\tdata[i] = scn.nextInt();\n\t\t}", "data[i] = scn.nextInt()", "data[i]", "data", "i", "scn.nextInt()", "scn.nextInt", "scn", "show(data)", "show", "data", "for (int j = 1; j < N; j++) {\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < N", "j", "N", "j++", "j++", "j", "{\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}", "{\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}", "int v = data[j];", "v", "data[j]", "data", "j", "int w = j - 1;", "w", "j - 1", "j", "1", "while (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}", "w >= 0 && data[w] > v", "w >= 0", "w", "0", "data[w] > v", "data[w]", "data", "w", "v", "{\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}", "data[w + 1] = data[w]", "data[w + 1]", "data", "w + 1", "w", "1", "data[w]", "data", "w", "w--", "w", "data[w + 1] = v", "data[w + 1]", "data", "w + 1", "w", "1", "v", "show(data)", "show", "data", "String[] args", "args", "static void show(int[] pdata) {\n\t\tStringBuffer stb = new StringBuffer();\n\t\tstb.append(pdata[0]);\n\t\tfor (int a = 1; a < pdata.length; a++) {\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}\n\t\tSystem.out.println(stb.toString());\n\t}", "show", "{\n\t\tStringBuffer stb = new StringBuffer();\n\t\tstb.append(pdata[0]);\n\t\tfor (int a = 1; a < pdata.length; a++) {\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}\n\t\tSystem.out.println(stb.toString());\n\t}", "StringBuffer stb = new StringBuffer();", "stb", "new StringBuffer()", "stb.append(pdata[0])", "stb.append", "stb", "pdata[0]", "pdata", "0", "for (int a = 1; a < pdata.length; a++) {\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}", "int a = 1;", "int a = 1;", "a", "1", "a < pdata.length", "a", "pdata.length", "pdata", "pdata.length", "a++", "a++", "a", "{\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}", "{\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}", "stb.append(\" \" + pdata[a])", "stb.append", "stb", "\" \" + pdata[a]", "\" \"", "pdata[a]", "pdata", "a", "System.out.println(stb.toString())", "System.out.println", "System.out", "System", "System.out", "stb.toString()", "stb.toString", "stb", "int[] pdata", "pdata", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint N = scn.nextInt();\n\t\tint[] data = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}\n\t\tshow(data);\n\t\tfor (int j = 1; j < N; j++) {\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}\n\n\t}\n\n\tstatic void show(int[] pdata) {\n\t\tStringBuffer stb = new StringBuffer();\n\t\tstb.append(pdata[0]);\n\t\tfor (int a = 1; a < pdata.length; a++) {\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}\n\t\tSystem.out.println(stb.toString());\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint N = scn.nextInt();\n\t\tint[] data = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}\n\t\tshow(data);\n\t\tfor (int j = 1; j < N; j++) {\n\t\t\tint v = data[j];\n\t\t\tint w = j - 1;\n\t\t\twhile (w >= 0 && data[w] > v) {\n\t\t\t\tdata[w + 1] = data[w];\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tdata[w + 1] = v;\n\t\t\tshow(data);\n\t\t}\n\n\t}\n\n\tstatic void show(int[] pdata) {\n\t\tStringBuffer stb = new StringBuffer();\n\t\tstb.append(pdata[0]);\n\t\tfor (int a = 1; a < pdata.length; a++) {\n\t\t\tstb.append(\" \" + pdata[a]);\n\t\t}\n\t\tSystem.out.println(stb.toString());\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int[] data = new int[N]; for (int i = 0; i < N; i++) { data[i] = scn.nextInt(); } show(data); for (int j = 1; j < N; j++) { int v = data[j]; int w = j - 1; while (w >= 0 && data[w] > v) { data[w + 1] = data[w]; w--; } data[w + 1] = v; show(data); } } static void show(int[] pdata) { StringBuffer stb = new StringBuffer(); stb.append(pdata[0]); for (int a = 1; a < pdata.length; a++) { stb.append(" " + pdata[a]); } System.out.println(stb.toString()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 160, 5 ], [ 160, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 6, 48 ], [ 48, 49 ], [ 160, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 70, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 70, 110 ], [ 110, 111 ], [ 110, 112 ], [ 50, 113 ], [ 113, 114 ], [ 160, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 118, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 117, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 115, 157 ], [ 157, 158 ], [ 0, 159 ], [ 159, 160 ], [ 159, 161 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tScanner sc = new Scanner(System.in);\n\t StringBuilder out;\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tsort(a);\n\n\t}\n\n\tstatic void sort(int[] a) {\n\n\t\tprintArray(a);\n\n\t\tfor(int i = 1; i < a.length; i++ ) {\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}\n\n\t}\n\n\tstatic void printArray(int[] a) {\n\n\t\tfor(int i = 0; i < a.length - 1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\n\t\tSystem.out.println(a[a.length - 1]);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tScanner sc = new Scanner(System.in);\n\t StringBuilder out;\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tsort(a);\n\n\t}\n\n\tstatic void sort(int[] a) {\n\n\t\tprintArray(a);\n\n\t\tfor(int i = 1; i < a.length; i++ ) {\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}\n\n\t}\n\n\tstatic void printArray(int[] a) {\n\n\t\tfor(int i = 0; i < a.length - 1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\n\t\tSystem.out.println(a[a.length - 1]);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\n\t\tScanner sc = new Scanner(System.in);\n\t StringBuilder out;\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tsort(a);\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t StringBuilder out;\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tsort(a);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder out;", "out", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] a = new int[n];", "a", "new int[n]", "n", "for(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "sort(a)", "sort", "a", "String[] args", "args", "static void sort(int[] a) {\n\n\t\tprintArray(a);\n\n\t\tfor(int i = 1; i < a.length; i++ ) {\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}\n\n\t}", "sort", "{\n\n\t\tprintArray(a);\n\n\t\tfor(int i = 1; i < a.length; i++ ) {\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}\n\n\t}", "printArray(a)", "printArray", "a", "for(int i = 1; i < a.length; i++ ) {\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}", "{\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}", "int v = a[i];", "v", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && a[j] > v", "j >= 0", "j", "0", "a[j] > v", "a[j]", "a", "j", "v", "{\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "a[j + 1] = a[j]", "a[j + 1]", "a", "j + 1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j + 1] = v", "a[j + 1]", "a", "j + 1", "j", "1", "v", "printArray(a)", "printArray", "a", "int[] a", "a", "static void printArray(int[] a) {\n\n\t\tfor(int i = 0; i < a.length - 1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\n\t\tSystem.out.println(a[a.length - 1]);\n\t}", "printArray", "{\n\n\t\tfor(int i = 0; i < a.length - 1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\n\t\tSystem.out.println(a[a.length - 1]);\n\t}", "for(int i = 0; i < a.length - 1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a.length - 1", "i", "a.length - 1", "a.length", "a", "a.length", "1", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}", "{\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}", "System.out.print(a[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "a[i] + \" \"", "a[i]", "a", "i", "\" \"", "System.out.println(a[a.length - 1])", "System.out.println", "System.out", "System", "System.out", "a[a.length - 1]", "a", "a.length - 1", "a.length", "a", "a.length", "1", "int[] a", "a", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tScanner sc = new Scanner(System.in);\n\t StringBuilder out;\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tsort(a);\n\n\t}\n\n\tstatic void sort(int[] a) {\n\n\t\tprintArray(a);\n\n\t\tfor(int i = 1; i < a.length; i++ ) {\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}\n\n\t}\n\n\tstatic void printArray(int[] a) {\n\n\t\tfor(int i = 0; i < a.length - 1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\n\t\tSystem.out.println(a[a.length - 1]);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tScanner sc = new Scanner(System.in);\n\t StringBuilder out;\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tsort(a);\n\n\t}\n\n\tstatic void sort(int[] a) {\n\n\t\tprintArray(a);\n\n\t\tfor(int i = 1; i < a.length; i++ ) {\n\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\n\t\t\twhile(j >= 0 && a[j] > v) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\ta[j + 1] = v;\n\t\t\tprintArray(a);\n\n\t\t}\n\n\t}\n\n\tstatic void printArray(int[] a) {\n\n\t\tfor(int i = 0; i < a.length - 1; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\n\t\tSystem.out.println(a[a.length - 1]);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); StringBuilder out; int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0; i < a.length; i++) { a[i] = sc.nextInt(); } sort(a); } static void sort(int[] a) { printArray(a); for(int i = 1; i < a.length; i++ ) { int v = a[i]; int j = i - 1; while(j >= 0 && a[j] > v) { a[j + 1] = a[j]; j--; } a[j + 1] = v; printArray(a); } } static void printArray(int[] a) { for(int i = 0; i < a.length - 1; i++) { System.out.print(a[i] + " "); } System.out.println(a[a.length - 1]); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 4, 18, 13, 13, 13, 30, 4, 18, 13, 2, 13, 17, 4, 18, 13, 13, 40, 13, 4, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 2, 4, 18, 13, 17, 4, 18, 13, 17, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 157, 14 ], [ 157, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 17, 47 ], [ 47, 48 ], [ 48, 49 ], [ 17, 50 ], [ 50, 51 ], [ 50, 52 ], [ 17, 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 ], [ 68, 71 ], [ 65, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 65, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 77, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 88, 99 ], [ 99, 100 ], [ 65, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 65, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 108, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 133, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 65, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 17, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 151, 152 ], [ 152, 153 ], [ 15, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "import java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Throwable {\n\t\tScanner sc = new Scanner(System.in);\n//\t\tScanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tint N = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++)\n\t\t\ta.add(sc.nextInt());\n\t\tsc.close();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "import java.io.File;", "File", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws Throwable {\n\t\tScanner sc = new Scanner(System.in);\n//\t\tScanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tint N = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++)\n\t\t\ta.add(sc.nextInt());\n\t\tsc.close();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "Main", "public static void main(String[] args) throws Throwable {\n\t\tScanner sc = new Scanner(System.in);\n//\t\tScanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tint N = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++)\n\t\t\ta.add(sc.nextInt());\n\t\tsc.close();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n//\t\tScanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tint N = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++)\n\t\t\ta.add(sc.nextInt());\n\t\tsc.close();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<Integer> a = new ArrayList<Integer>();", "a", "new ArrayList<Integer>()", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < N; i++)\n\t\t\ta.add(sc.nextInt());", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "a.add(sc.nextInt());", "a.add(sc.nextInt())", "a.add", "a", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int i = 0; i < N; i++) {\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}", "{\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}", "int a_i = a.get(i);", "a_i", "a.get(i)", "a.get", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && a.get(j) > a_i", "j >= 0", "j", "0", "a.get(j) > a_i", "a.get(j)", "a.get", "a", "j", "a_i", "{\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}", "a.set(j + 1, a.get(j))", "a.set", "a", "j + 1", "j", "1", "a.get(j)", "a.get", "a", "j", "j--", "j", "a.set(j + 1, a_i)", "a.set", "a", "j + 1", "j", "1", "a_i", "for (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < a.size()", "k", "a.size()", "a.size", "a", "k++", "k++", "k", "{\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}", "{\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}", "sb.append(a.get(k))", "sb.append", "sb", "a.get(k)", "a.get", "a", "k", "if (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');", "k != a.size() - 1", "k", "a.size() - 1", "a.size()", "a.size", "a", "1", "sb.append(' ')", "sb.append", "sb", "' '", "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) throws Throwable {\n\t\tScanner sc = new Scanner(System.in);\n//\t\tScanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tint N = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++)\n\t\t\ta.add(sc.nextInt());\n\t\tsc.close();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Throwable {\n\t\tScanner sc = new Scanner(System.in);\n//\t\tScanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\tList<Integer> a = new ArrayList<Integer>();\n\t\tint N = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++)\n\t\t\ta.add(sc.nextInt());\n\t\tsc.close();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\t// 0..i-1??????????????????\n\t\t\tint a_i = a.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a.get(j) > a_i) {\n\t\t\t\ta.set(j + 1, a.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta.set(j + 1, a_i);\n\t\t\t\n\t\t\t// ??????\n\t\t\tfor (int k = 0; k < a.size(); k++) {\n\t\t\t\tsb.append(a.get(k));\n\t\t\t\tif (k != a.size() - 1)\n\t\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "Main" ]
import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Throwable { Scanner sc = new Scanner(System.in); // Scanner sc = new Scanner(new File("test_1.txt")); List<Integer> a = new ArrayList<Integer>(); int N = sc.nextInt(); for (int i = 0; i < N; i++) a.add(sc.nextInt()); sc.close(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < N; i++) { // 0..i-1?????????????????? int a_i = a.get(i); int j = i - 1; while (j >= 0 && a.get(j) > a_i) { a.set(j + 1, a.get(j)); j--; } a.set(j + 1, a_i); // ?????? for (int k = 0; k < a.size(); k++) { sb.append(a.get(k)); if (k != a.size() - 1) sb.append(' '); } sb.append('\n'); } System.out.print(sb.toString()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 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, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 17, 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 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 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 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 56, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 71, 77 ], [ 77, 78 ], [ 77, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 8, 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 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 102, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 113, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 130, 131 ], [ 130, 132 ], [ 123, 133 ], [ 133, 134 ], [ 102, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 102, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 147, 148 ], [ 147, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 142, 153 ], [ 154, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 160, 166 ], [ 166, 167 ], [ 166, 168 ], [ 155, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 170, 176 ], [ 176, 177 ], [ 176, 178 ], [ 102, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 6, 185 ], [ 185, 186 ], [ 0, 187 ], [ 187, 188 ], [ 187, 189 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n int total;\n\n Scanner inp = new Scanner(System.in);\n total = inp.nextInt();\n\n int[] a = new int[total];\n\n for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n }\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n\n for (int i = 1; i <= a.length-1; i++) {\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n int total;\n\n Scanner inp = new Scanner(System.in);\n total = inp.nextInt();\n\n int[] a = new int[total];\n\n for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n }\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n\n for (int i = 1; i <= a.length-1; i++) {\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n int total;\n\n Scanner inp = new Scanner(System.in);\n total = inp.nextInt();\n\n int[] a = new int[total];\n\n for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n }\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n\n for (int i = 1; i <= a.length-1; i++) {\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }\n }", "main", "{\n int total;\n\n Scanner inp = new Scanner(System.in);\n total = inp.nextInt();\n\n int[] a = new int[total];\n\n for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n }\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n\n for (int i = 1; i <= a.length-1; i++) {\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }\n }", "int total;", "total", "Scanner inp = new Scanner(System.in);", "inp", "new Scanner(System.in)", "total = inp.nextInt()", "total", "inp.nextInt()", "inp.nextInt", "inp", "int[] a = new int[total];", "a", "new int[total]", "total", "for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n }", "int k = 0;", "int k = 0;", "k", "0", "k < total", "k", "total", "k++", "k++", "k", "{\n a[k] = inp.nextInt();\n }", "{\n a[k] = inp.nextInt();\n }", "a[k] = inp.nextInt()", "a[k]", "a", "k", "inp.nextInt()", "inp.nextInt", "inp", "for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }", "int l = 0;", "int l = 0;", "l", "0", "l < total", "l", "total", "l++", "l++", "l", "{\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }", "{\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }", "if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }", "l == 0", "l", "0", "{\n System.out.printf(\"%d\", a[l]);\n }", "System.out.printf(\"%d\", a[l])", "System.out.printf", "System.out", "System", "System.out", "\"%d\"", "a[l]", "a", "l", "{\n System.out.printf(\" %d\", a[l]);\n }", "System.out.printf(\" %d\", a[l])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "a[l]", "a", "l", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "for (int i = 1; i <= a.length-1; i++) {\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= a.length-1", "i", "a.length-1", "a.length", "a", "a.length", "1", "i++", "i++", "i", "{\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }", "{\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }", "int key = a[i];", "key", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }", "j >= 0 && a[j] > key", "j >= 0", "j", "0", "a[j] > key", "a[j]", "a", "j", "key", "{\n a[j+1] = a[j];\n j--;\n }", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = key", "a[j+1]", "a", "j+1", "j", "1", "key", "for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }", "int l = 0;", "int l = 0;", "l", "0", "l < total", "l", "total", "l++", "l++", "l", "{\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }", "{\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }", "if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }", "l == 0", "l", "0", "{\n System.out.printf(\"%d\", a[l]);\n }", "System.out.printf(\"%d\", a[l])", "System.out.printf", "System.out", "System", "System.out", "\"%d\"", "a[l]", "a", "l", "{\n System.out.printf(\" %d\", a[l]);\n }", "System.out.printf(\" %d\", a[l])", "System.out.printf", "System.out", "System", "System.out", "\" %d\"", "a[l]", "a", "l", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n int total;\n\n Scanner inp = new Scanner(System.in);\n total = inp.nextInt();\n\n int[] a = new int[total];\n\n for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n }\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n\n for (int i = 1; i <= a.length-1; i++) {\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n int total;\n\n Scanner inp = new Scanner(System.in);\n total = inp.nextInt();\n\n int[] a = new int[total];\n\n for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n }\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n\n for (int i = 1; i <= a.length-1; i++) {\n int key = a[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j+1] = a[j];\n j--;\n }\n a[j+1] = key;\n\n for (int l = 0; l < total; l++) {\n if (l == 0) {\n System.out.printf(\"%d\", a[l]);\n } else {\n System.out.printf(\" %d\", a[l]);\n }\n }\n\n System.out.printf(\"\\n\");\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { int total; Scanner inp = new Scanner(System.in); total = inp.nextInt(); int[] a = new int[total]; for (int k = 0; k < total; k++) { a[k] = inp.nextInt(); } for (int l = 0; l < total; l++) { if (l == 0) { System.out.printf("%d", a[l]); } else { System.out.printf(" %d", a[l]); } } System.out.printf("\n"); for (int i = 1; i <= a.length-1; i++) { int key = a[i]; /* insert A[i] into the sorted sequence A[0,...,j-1] */ int j = i - 1; while (j >= 0 && a[j] > key) { a[j+1] = a[j]; j--; } a[j+1] = key; for (int l = 0; l < total; l++) { if (l == 0) { System.out.printf("%d", a[l]); } else { System.out.printf(" %d", a[l]); } } System.out.printf("\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 40, 13, 4, 18, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 4, 18, 13, 18, 13, 13, 17, 4, 18, 4, 18, 13, 18, 13, 2, 13, 17, 17, 29, 4, 18, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 199, 5 ], [ 199, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 9, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 30, 35 ], [ 16, 36 ], [ 36, 37 ], [ 36, 38 ], [ 16, 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 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 16, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 6, 67 ], [ 67, 68 ], [ 199, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 71, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 82, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 94, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 115, 130 ], [ 130, 131 ], [ 94, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 135, 137 ], [ 135, 138 ], [ 71, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 69, 145 ], [ 145, 146 ], [ 69, 147 ], [ 147, 148 ], [ 199, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 162, 164 ], [ 155, 165 ], [ 165, 166 ], [ 166, 167 ], [ 155, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 172, 175 ], [ 175, 176 ], [ 175, 177 ], [ 170, 178 ], [ 151, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 186, 188 ], [ 179, 189 ], [ 151, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 149, 194 ], [ 194, 195 ], [ 149, 196 ], [ 196, 197 ], [ 0, 198 ], [ 198, 199 ], [ 198, 200 ] ]
[ "import java.io.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void gyalaxySort(int[] a, int len)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(giganticBunshou(a,len));\n\t\tfor(int i = 1 ; i < len ; i++)\n\t\t{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\tpublic static String giganticBunshou(int[] b, int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i=0 ; i<l-1 ; i++)\n\t\t{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}\n\t\tsb.append(b[l-1]).append(\"\\n\");\n\t\treturn sb.toString();\n\t}\n\t\n}", "import java.io.*;", "io.*", "java", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void gyalaxySort(int[] a, int len)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(giganticBunshou(a,len));\n\t\tfor(int i = 1 ; i < len ; i++)\n\t\t{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\tpublic static String giganticBunshou(int[] b, int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i=0 ; i<l-1 ; i++)\n\t\t{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}\n\t\tsb.append(b[l-1]).append(\"\\n\");\n\t\treturn sb.toString();\n\t}\n\t\n}", "Main", "public static void main(String[] args)\n\t{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}catch(Exception 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\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}", "catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}", "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", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] ar = new int[n];", "ar", "new int[n]", "n", "for(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}", "int i= 0 ;", "int i= 0 ;", "i", "0", "i< n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}", "{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}", "ar[i] = Integer.parseInt(str[i])", "ar[i]", "ar", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "gyalaxySort(ar,n)", "gyalaxySort", "ar", "n", "String[] args", "args", "public static void gyalaxySort(int[] a, int len)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(giganticBunshou(a,len));\n\t\tfor(int i = 1 ; i < len ; i++)\n\t\t{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "gyalaxySort", "{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(giganticBunshou(a,len));\n\t\tfor(int i = 1 ; i < len ; i++)\n\t\t{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "sb.append(giganticBunshou(a,len))", "sb.append", "sb", "giganticBunshou(a,len)", "giganticBunshou", "a", "len", "for(int i = 1 ; i < len ; i++)\n\t\t{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}", "int i = 1 ;", "int i = 1 ;", "i", "1", "i < len", "i", "len", "i++", "i++", "i", "{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}", "{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}", "int tar = a[i];", "tar", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}", "j >= 0 && a[j] > tar", "j >= 0", "j", "0", "a[j] > tar", "a[j]", "a", "j", "tar", "{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}", "a[j+1] =a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "a[j] = tar", "a[j]", "a", "j", "tar", "j--", "j", "sb.append(giganticBunshou(a,len))", "sb.append", "sb", "giganticBunshou(a,len)", "giganticBunshou", "a", "len", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "int[] a", "a", "int len", "len", "public static String giganticBunshou(int[] b, int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i=0 ; i<l-1 ; i++)\n\t\t{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}\n\t\tsb.append(b[l-1]).append(\"\\n\");\n\t\treturn sb.toString();\n\t}", "giganticBunshou", "{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i=0 ; i<l-1 ; i++)\n\t\t{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}\n\t\tsb.append(b[l-1]).append(\"\\n\");\n\t\treturn sb.toString();\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int i=0 ; i<l-1 ; i++)\n\t\t{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}", "int i=0 ;", "int i=0 ;", "i", "0", "i<l-1", "i", "l-1", "l", "1", "i++", "i++", "i", "{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}", "{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}", "sb.append(b[i]).append(\" \")", "sb.append(b[i]).append", "sb.append(b[i])", "sb.append", "sb", "b[i]", "b", "i", "\" \"", "sb.append(b[l-1]).append(\"\\n\")", "sb.append(b[l-1]).append", "sb.append(b[l-1])", "sb.append", "sb", "b[l-1]", "b", "l-1", "l", "1", "\"\\n\"", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "int[] b", "b", "int l", "l", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void gyalaxySort(int[] a, int len)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(giganticBunshou(a,len));\n\t\tfor(int i = 1 ; i < len ; i++)\n\t\t{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\tpublic static String giganticBunshou(int[] b, int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i=0 ; i<l-1 ; i++)\n\t\t{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}\n\t\tsb.append(b[l-1]).append(\"\\n\");\n\t\treturn sb.toString();\n\t}\n\t\n}", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i= 0 ; i< n ; i++)\n\t\t\t{\n\t\t\t\tar[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tgyalaxySort(ar,n);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void gyalaxySort(int[] a, int len)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(giganticBunshou(a,len));\n\t\tfor(int i = 1 ; i < len ; i++)\n\t\t{\n\t\t\tint tar = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && a[j] > tar )\n\t\t\t{\n\t\t\t\ta[j+1] =a[j]; \n\t\t\t\ta[j] = tar;\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tsb.append(giganticBunshou(a,len));\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\tpublic static String giganticBunshou(int[] b, int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i=0 ; i<l-1 ; i++)\n\t\t{\n\t\t\tsb.append(b[i]).append(\" \");\n\t\t}\n\t\tsb.append(b[l-1]).append(\"\\n\");\n\t\treturn sb.toString();\n\t}\n\t\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] str = br.readLine().split(" "); int[] ar = new int[n]; for(int i= 0 ; i< n ; i++) { ar[i] = Integer.parseInt(str[i]); } gyalaxySort(ar,n); }catch(Exception e){ e.printStackTrace(); } } public static void gyalaxySort(int[] a, int len) { StringBuilder sb = new StringBuilder(); sb.append(giganticBunshou(a,len)); for(int i = 1 ; i < len ; i++) { int tar = a[i]; int j = i - 1; while(j >= 0 && a[j] > tar ) { a[j+1] =a[j]; a[j] = tar; j--; } sb.append(giganticBunshou(a,len)); } System.out.print(sb); } public static String giganticBunshou(int[] b, int l) { StringBuilder sb = new StringBuilder(); for(int i=0 ; i<l-1 ; i++) { sb.append(b[i]).append(" "); } sb.append(b[l-1]).append("\n"); return sb.toString(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 208, 11 ], [ 208, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 21, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 34, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 34, 54 ], [ 54, 55 ], [ 54, 56 ], [ 34, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 34, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 34, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 89, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 34, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 34, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 117, 128 ], [ 129, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 129, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 129, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 140, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 154, 156 ], [ 151, 157 ], [ 157, 158 ], [ 157, 159 ], [ 150, 160 ], [ 160, 161 ], [ 150, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 165, 167 ], [ 162, 168 ], [ 129, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 174, 175 ], [ 174, 176 ], [ 129, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 182, 183 ], [ 182, 184 ], [ 177, 185 ], [ 185, 186 ], [ 186, 187 ], [ 177, 188 ], [ 189, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 197, 199 ], [ 129, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 12, 205 ], [ 205, 206 ], [ 0, 207 ], [ 207, 208 ], [ 207, 209 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String x = \"\";", "x", "\"\"", "try {\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "int num = Integer.parseInt(in.readLine());", "num", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "x = in.readLine()", "x", "in.readLine()", "in.readLine", "in", "String[] nums = x.split(\" \");", "nums", "x.split(\" \")", "x.split", "x", "\" \"", "int[] a = new int[num];", "a", "new int[num]", "num", "for (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}", "{\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}", "a[i] = Integer.parseInt(nums[i])", "a[i]", "a", "i", "Integer.parseInt(nums[i])", "Integer.parseInt", "Integer", "nums[i]", "nums", "i", "System.out.print(a[0])", "System.out.print", "System.out", "System", "System.out", "a[0]", "a", "0", "for (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < num", "j", "num", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}", "System.out.print(\" \" + a[j])", "System.out.print", "System.out", "System", "System.out", "\" \" + a[j]", "\" \"", "a[j]", "a", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int key = a[i];", "key", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}", "(j >= 0) && (a[j] > key)", "(j >= 0)", "j", "0", "(a[j] > key)", "a[j]", "a", "j", "key", "{\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}", "a[j + 1] = a[j]", "a[j + 1]", "a", "j + 1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j + 1] = key", "a[j + 1]", "a", "j + 1", "j", "1", "key", "System.out.print(a[0])", "System.out.print", "System.out", "System", "System.out", "a[0]", "a", "0", "for (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}", "j = 1;", "j = 1", "j", "1", "j < num", "j", "num", "j++", "j++", "j", "{\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}", "System.out.print(\" \" + a[j])", "System.out.print", "System.out", "System", "System.out", "\" \" + a[j]", "\" \"", "a[j]", "a", "j", "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\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tint num = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tx = in.readLine();\n\t\t\tString[] nums = x.split(\" \");\n\t\t\t\n\t\t\tint[] a = new int[num];\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\ta[i] = Integer.parseInt(nums[i]);\n\t\t\t}\n\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int j = 1; j < num; j++) {\n\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tint key = a[i];\n\t\t\t\t\n\t\t\t\tint j = i - 1;\n\t\t\t\twhile ((j >= 0) && (a[j] > key)) {\n\t\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t\tj--;\n\t\t\t\t\ta[j + 1] = key;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(a[0]);\n\t\t\t\tfor (j = 1; j < num; j++) {\n\t\t\t\t\tSystem.out.print(\" \" + a[j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String x = ""; try { int num = Integer.parseInt(in.readLine()); x = in.readLine(); String[] nums = x.split(" "); int[] a = new int[num]; for (int i = 0; i < num; i++) { a[i] = Integer.parseInt(nums[i]); } System.out.print(a[0]); for (int j = 1; j < num; j++) { System.out.print(" " + a[j]); } System.out.println(); for (int i = 1; i < num; i++) { int key = a[i]; int j = i - 1; while ((j >= 0) && (a[j] > key)) { a[j + 1] = a[j]; j--; a[j + 1] = key; } System.out.print(a[0]); for (j = 1; j < num; j++) { System.out.print(" " + a[j]); } System.out.println(); } } catch (NumberFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 203, 11 ], [ 203, 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 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 66, 78 ], [ 78, 79 ], [ 79, 80 ], [ 66, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 14, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 14, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 105, 117 ], [ 117, 118 ], [ 118, 119 ], [ 105, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 121, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 143, 149 ], [ 149, 150 ], [ 149, 151 ], [ 142, 152 ], [ 152, 153 ], [ 121, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 157, 159 ], [ 154, 160 ], [ 121, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 161, 173 ], [ 173, 174 ], [ 174, 175 ], [ 161, 176 ], [ 177, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 178, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 121, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 12, 200 ], [ 200, 201 ], [ 0, 202 ], [ 202, 203 ], [ 202, 204 ] ]
[ "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\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tString line = br.readLine();\n\t\tString[] numbers = line.split(\" \");\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}\n\t\t\n\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println(a[a.length - 1]);\n\t\t\n\t\tfor (int i = 1; i <= a.length - 1; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tString line = br.readLine();\n\t\tString[] numbers = line.split(\" \");\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}\n\t\t\n\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println(a[a.length - 1]);\n\t\t\n\t\tfor (int i = 1; i <= a.length - 1; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tString line = br.readLine();\n\t\tString[] numbers = line.split(\" \");\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}\n\t\t\n\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println(a[a.length - 1]);\n\t\t\n\t\tfor (int i = 1; i <= a.length - 1; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tString line = br.readLine();\n\t\tString[] numbers = line.split(\" \");\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}\n\t\t\n\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println(a[a.length - 1]);\n\t\t\n\t\tfor (int i = 1; i <= a.length - 1; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}\n\t\t\n\t}", "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", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] numbers = line.split(\" \");", "numbers", "line.split(\" \")", "line.split", "line", "\" \"", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < numbers.length; i++) {\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < numbers.length", "i", "numbers.length", "numbers", "numbers.length", "i++", "i++", "i", "{\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}", "{\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}", "a[i] = Integer.parseInt(numbers[i])", "a[i]", "a", "i", "Integer.parseInt(numbers[i])", "Integer.parseInt", "Integer", "numbers[i]", "numbers", "i", "for (int k = 0; k < a.length - 1; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < a.length - 1", "k", "a.length - 1", "a.length", "a", "a.length", "1", "k++", "k++", "k", "{\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}", "{\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}", "System.out.print(a[k] + \" \")", "System.out.print", "System.out", "System", "System.out", "a[k] + \" \"", "a[k]", "a", "k", "\" \"", "System.out.println(a[a.length - 1])", "System.out.println", "System.out", "System", "System.out", "a[a.length - 1]", "a", "a.length - 1", "a.length", "a", "a.length", "1", "for (int i = 1; i <= a.length - 1; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= a.length - 1", "i", "a.length - 1", "a.length", "a", "a.length", "1", "i++", "i++", "i", "{\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}", "{\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}", "int v = a[i];", "v", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && a[j] > v", "j >= 0", "j", "0", "a[j] > v", "a[j]", "a", "j", "v", "{\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "a[j + 1] = a[j]", "a[j + 1]", "a", "j + 1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j + 1] = v", "a[j + 1]", "a", "j + 1", "j", "1", "v", "for (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < a.length - 1", "k", "a.length - 1", "a.length", "a", "a.length", "1", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}", "System.out.print(a[k] + \" \")", "System.out.print", "System.out", "System", "System.out", "a[k] + \" \"", "a[k]", "a", "k", "\" \"", "System.out.println(a[a.length - 1])", "System.out.println", "System.out", "System", "System.out", "a[a.length - 1]", "a", "a.length - 1", "a.length", "a", "a.length", "1", "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\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tString line = br.readLine();\n\t\tString[] numbers = line.split(\" \");\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}\n\t\t\n\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println(a[a.length - 1]);\n\t\t\n\t\tfor (int i = 1; i <= a.length - 1; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tString line = br.readLine();\n\t\tString[] numbers = line.split(\" \");\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\ta[i] = Integer.parseInt(numbers[i]);\n\t\t}\n\t\t\n\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println(a[a.length - 1]);\n\t\t\n\t\tfor (int i = 1; i <= a.length - 1; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && a[j] > v){\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\ta[j + 1] = v;\n\t\t\t\n\t\t\tfor (int k = 0; k < a.length - 1; k++) {\n\t\t\t\tSystem.out.print(a[k] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[a.length - 1]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main (String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String line = br.readLine(); String[] numbers = line.split(" "); int[] a = new int[n]; for (int i = 0; i < numbers.length; i++) { a[i] = Integer.parseInt(numbers[i]); } for (int k = 0; k < a.length - 1; k++) { System.out.print(a[k] + " "); } System.out.println(a[a.length - 1]); for (int i = 1; i <= a.length - 1; i++) { int v = a[i]; int j = i - 1; while(j >= 0 && a[j] > v){ a[j + 1] = a[j]; j--; } a[j + 1] = v; for (int k = 0; k < a.length - 1; k++) { System.out.print(a[k] + " "); } System.out.println(a[a.length - 1]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 170, 5 ], [ 170, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ], [ 14, 15 ], [ 14, 16 ], [ 9, 17 ], [ 17, 18 ], [ 18, 19 ], [ 9, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 21, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 21, 61 ], [ 61, 62 ], [ 61, 63 ], [ 6, 64 ], [ 64, 65 ], [ 6, 66 ], [ 66, 67 ], [ 170, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 71, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 85, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 94, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 70, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 68, 113 ], [ 113, 114 ], [ 170, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 117, 124 ], [ 124, 125 ], [ 117, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 117, 131 ], [ 131, 132 ], [ 132, 133 ], [ 117, 134 ], [ 134, 135 ], [ 134, 136 ], [ 117, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 143, 144 ], [ 143, 145 ], [ 138, 146 ], [ 146, 147 ], [ 147, 148 ], [ 138, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 117, 157 ], [ 157, 158 ], [ 157, 159 ], [ 117, 160 ], [ 160, 161 ], [ 160, 162 ], [ 160, 163 ], [ 117, 164 ], [ 164, 165 ], [ 165, 166 ], [ 115, 167 ], [ 167, 168 ], [ 0, 169 ], [ 169, 170 ], [ 169, 171 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t// sort method :: sort given array using insertion Sort\n\tpublic static void sort(int[] _A, int _n) {\n\t\tfor (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}\n\t\t\n\t}\n\t\n\t// print method :: print array\n\tpublic static void print(int[] _A) {\n\t\tfor (int i = 0; i < _A.length; ++i) {\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t////////////////////////////////////\n\t\tint n = 0;\n\t\tint[] A;\n\t\t\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\tA = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tA[i] = sc.nextInt();\n\t\t\n\t\tprint(A);\n\t\tsort(A, n);\n\t\t\n\t\t////////////////////////////////////\n\t\tsc.close();\n\t}\n\t\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\t// sort method :: sort given array using insertion Sort\n\tpublic static void sort(int[] _A, int _n) {\n\t\tfor (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}\n\t\t\n\t}\n\t\n\t// print method :: print array\n\tpublic static void print(int[] _A) {\n\t\tfor (int i = 0; i < _A.length; ++i) {\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t////////////////////////////////////\n\t\tint n = 0;\n\t\tint[] A;\n\t\t\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\tA = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tA[i] = sc.nextInt();\n\t\t\n\t\tprint(A);\n\t\tsort(A, n);\n\t\t\n\t\t////////////////////////////////////\n\t\tsc.close();\n\t}\n\t\n}", "Main", "// sort method :: sort given array using insertion Sort\n\tpublic static void sort(int[] _A, int _n) {\n\t\tfor (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}\n\t\t\n\t}", "sort", "{\n\t\tfor (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}\n\t\t\n\t}", "for (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < _n", "i", "_n", "++i", "++i", "i", "{\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}", "{\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}", "int tmp = _A[i];", "tmp", "_A[i]", "_A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}", "j >= 0 && _A[j] > tmp", "j >= 0", "j", "0", "_A[j] > tmp", "_A[j]", "_A", "j", "tmp", "{\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}", "_A[j + 1] = _A[j]", "_A[j + 1]", "_A", "j + 1", "j", "1", "_A[j]", "_A", "j", "--j", "j", "_A[j + 1] = tmp", "_A[j + 1]", "_A", "j + 1", "j", "1", "tmp", "print(_A)", "print", "_A", "int[] _A", "_A", "int _n", "_n", "// print method :: print array\n\tpublic static void print(int[] _A) {\n\t\tfor (int i = 0; i < _A.length; ++i) {\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "print", "{\n\t\tfor (int i = 0; i < _A.length; ++i) {\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "for (int i = 0; i < _A.length; ++i) {\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < _A.length", "i", "_A.length", "_A", "_A.length", "++i", "++i", "i", "{\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}", "{\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}", "System.out.print(_A[i])", "System.out.print", "System.out", "System", "System.out", "_A[i]", "_A", "i", "if (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");", "i != _A.length - 1", "i", "_A.length - 1", "_A.length", "_A", "_A.length", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] _A", "_A", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t////////////////////////////////////\n\t\tint n = 0;\n\t\tint[] A;\n\t\t\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\tA = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tA[i] = sc.nextInt();\n\t\t\n\t\tprint(A);\n\t\tsort(A, n);\n\t\t\n\t\t////////////////////////////////////\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t////////////////////////////////////\n\t\tint n = 0;\n\t\tint[] A;\n\t\t\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\tA = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tA[i] = sc.nextInt();\n\t\t\n\t\tprint(A);\n\t\tsort(A, n);\n\t\t\n\t\t////////////////////////////////////\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = 0;", "n", "0", "int[] A;", "A", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextLine()", "sc.nextLine", "sc", "A = new int[n]", "A", "new int[n]", "n", "for (int i = 0; i < n; ++i)\n\t\t\tA[i] = sc.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "A[i] = sc.nextInt();", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "print(A)", "print", "A", "sort(A, n)", "sort", "A", "n", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\t// sort method :: sort given array using insertion Sort\n\tpublic static void sort(int[] _A, int _n) {\n\t\tfor (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}\n\t\t\n\t}\n\t\n\t// print method :: print array\n\tpublic static void print(int[] _A) {\n\t\tfor (int i = 0; i < _A.length; ++i) {\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t////////////////////////////////////\n\t\tint n = 0;\n\t\tint[] A;\n\t\t\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\tA = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tA[i] = sc.nextInt();\n\t\t\n\t\tprint(A);\n\t\tsort(A, n);\n\t\t\n\t\t////////////////////////////////////\n\t\tsc.close();\n\t}\n\t\n}", "public class Main {\n\n\t// sort method :: sort given array using insertion Sort\n\tpublic static void sort(int[] _A, int _n) {\n\t\tfor (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\t_A[j + 1] = _A[j];\n\t\t\t\t--j;\n\t\t\t}\n\t\t\t_A[j + 1] = tmp;\n\t\t\tprint(_A);\n\t\t\t// System.out.println(\"i = \" + i);\n\t\t}\n\t\t\n\t}\n\t\n\t// print method :: print array\n\tpublic static void print(int[] _A) {\n\t\tfor (int i = 0; i < _A.length; ++i) {\n\t\t\tSystem.out.print(_A[i]);\n\t\t\tif (i != _A.length - 1)\n\t\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t////////////////////////////////////\n\t\tint n = 0;\n\t\tint[] A;\n\t\t\n\t\tn = sc.nextInt();\n\t\tsc.nextLine();\n\t\tA = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tA[i] = sc.nextInt();\n\t\t\n\t\tprint(A);\n\t\tsort(A, n);\n\t\t\n\t\t////////////////////////////////////\n\t\tsc.close();\n\t}\n\t\n}", "Main" ]
import java.util.Scanner; public class Main { // sort method :: sort given array using insertion Sort public static void sort(int[] _A, int _n) { for (int i = 1; i < _n; ++i) { // print(_A); int tmp = _A[i]; int j = i - 1; while (j >= 0 && _A[j] > tmp) { _A[j + 1] = _A[j]; --j; } _A[j + 1] = tmp; print(_A); // System.out.println("i = " + i); } } // print method :: print array public static void print(int[] _A) { for (int i = 0; i < _A.length; ++i) { System.out.print(_A[i]); if (i != _A.length - 1) System.out.print(" "); } System.out.println(); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); //////////////////////////////////// int n = 0; int[] A; n = sc.nextInt(); sc.nextLine(); A = new int[n]; for (int i = 0; i < n; ++i) A[i] = sc.nextInt(); print(A); sort(A, n); //////////////////////////////////// sc.close(); } }
[ 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, 20, 13, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 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 ], [ 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, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 32, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 14, 66 ], [ 66, 67 ], [ 14, 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 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 80, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 80, 120 ], [ 120, 121 ], [ 120, 122 ], [ 12, 123 ], [ 123, 124 ], [ 10, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 128, 138 ], [ 138, 139 ], [ 139, 140 ], [ 128, 141 ], [ 142, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 142, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 127, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 125, 167 ], [ 167, 168 ] ]
[ "/* 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{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\t\t\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] arrayStr = scanner.nextLine().split(\" \");\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tA[i] = Integer.parseInt(arrayStr[i]);\n\t\t}\n\t\t\n\t\tprintArray(A);\n\t\t\n\t\tint v,j;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tprintArray(A);\t\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\t\t\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] arrayStr = scanner.nextLine().split(\" \");\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tA[i] = Integer.parseInt(arrayStr[i]);\n\t\t}\n\t\t\n\t\tprintArray(A);\n\t\t\n\t\tint v,j;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tprintArray(A);\t\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}", "Main", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\t\t\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] arrayStr = scanner.nextLine().split(\" \");\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tA[i] = Integer.parseInt(arrayStr[i]);\n\t\t}\n\t\t\n\t\tprintArray(A);\n\t\t\n\t\tint v,j;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tprintArray(A);\t\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\t\t\n\t\tint[] A = new int[n];\n\t\t\n\t\tString[] arrayStr = scanner.nextLine().split(\" \");\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tA[i] = Integer.parseInt(arrayStr[i]);\n\t\t}\n\t\t\n\t\tprintArray(A);\n\t\t\n\t\tint v,j;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tprintArray(A);\t\n\t\t}\n\t\t\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = Integer.parseInt(scanner.nextLine());", "n", "Integer.parseInt(scanner.nextLine())", "Integer.parseInt", "Integer", "scanner.nextLine()", "scanner.nextLine", "scanner", "int[] A = new int[n];", "A", "new int[n]", "n", "String[] arrayStr = scanner.nextLine().split(\" \");", "arrayStr", "scanner.nextLine().split(\" \")", "scanner.nextLine().split", "scanner.nextLine()", "scanner.nextLine", "scanner", "\" \"", "for (int i = 0; i < n; i++) {\n\t\t\tA[i] = Integer.parseInt(arrayStr[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tA[i] = Integer.parseInt(arrayStr[i]);\n\t\t}", "{\n\t\t\tA[i] = Integer.parseInt(arrayStr[i]);\n\t\t}", "A[i] = Integer.parseInt(arrayStr[i])", "A[i]", "A", "i", "Integer.parseInt(arrayStr[i])", "Integer.parseInt", "Integer", "arrayStr[i]", "arrayStr", "i", "printArray(A)", "printArray", "A", "int v", "v", "j;", "j", "for (int i = 1; i < n; i++) {\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tprintArray(A);\t\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tprintArray(A);\t\n\t\t}", "{\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tprintArray(A);\t\n\t\t}", "v = A[i]", "v", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "printArray(A)", "printArray", "A", "String[] args", "args", "static void printArray(int[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "printArray", "{\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "for (int i = 0; i < array.length; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}", "{\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[i]);\n\t\t}", "if (i > 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "i > 0", "i", "0", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(array[i])", "System.out.print", "System.out", "System", "System.out", "array[i]", "array", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] array", "array" ]
/* 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 scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int[] A = new int[n]; String[] arrayStr = scanner.nextLine().split(" "); for (int i = 0; i < n; i++) { A[i] = Integer.parseInt(arrayStr[i]); } printArray(A); int v,j; for (int i = 1; i < n; i++) { v = A[i]; j = i - 1; while (j >= 0 && A[j] > v) { A[j+1] = A[j]; j--; } A[j+1] = v; printArray(A); } } static void printArray(int[] array) { for (int i = 0; i < array.length; i++) { if (i > 0) { System.out.print(" "); } System.out.print(array[i]); } System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 171, 8 ], [ 171, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 22, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 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 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 11, 55 ], [ 55, 56 ], [ 55, 57 ], [ 11, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 70, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 70, 110 ], [ 110, 111 ], [ 110, 112 ], [ 9, 113 ], [ 113, 114 ], [ 171, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 122, 123 ], [ 123, 124 ], [ 115, 125 ], [ 125, 126 ], [ 171, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 140, 142 ], [ 133, 143 ], [ 143, 144 ], [ 144, 145 ], [ 133, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 151, 153 ], [ 147, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 129, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 127, 168 ], [ 168, 169 ], [ 0, 170 ], [ 170, 171 ], [ 170, 172 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n//?????\\?????????\npublic class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = readInt(r);\n\t\tString[] numArrayStr = r.readLine().split(\" \");\n\n\t\tint[] numArrayInt = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}\n\n\t\tprintBlank(numArrayInt);\n\n\t\tfor(int y = 1; y < n; y++){\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}\n\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n return Integer.parseInt(r.readLine());\n }\n\n\tpublic static void printBlank(int[] numArrayInt){\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor(int i = 0; i < numArrayInt.length; i++){\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\n\t\tSystem.out.println(builder.toString().trim());\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = readInt(r);\n\t\tString[] numArrayStr = r.readLine().split(\" \");\n\n\t\tint[] numArrayInt = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}\n\n\t\tprintBlank(numArrayInt);\n\n\t\tfor(int y = 1; y < n; y++){\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}\n\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n return Integer.parseInt(r.readLine());\n }\n\n\tpublic static void printBlank(int[] numArrayInt){\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor(int i = 0; i < numArrayInt.length; i++){\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\n\t\tSystem.out.println(builder.toString().trim());\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = readInt(r);\n\t\tString[] numArrayStr = r.readLine().split(\" \");\n\n\t\tint[] numArrayInt = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}\n\n\t\tprintBlank(numArrayInt);\n\n\t\tfor(int y = 1; y < n; y++){\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = readInt(r);\n\t\tString[] numArrayStr = r.readLine().split(\" \");\n\n\t\tint[] numArrayInt = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}\n\n\t\tprintBlank(numArrayInt);\n\n\t\tfor(int y = 1; y < n; y++){\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}\n\n\t}", "BufferedReader r = new BufferedReader(new InputStreamReader(System.in));", "r", "new BufferedReader(new InputStreamReader(System.in))", "int n = readInt(r);", "n", "readInt(r)", "readInt", "r", "String[] numArrayStr = r.readLine().split(\" \");", "numArrayStr", "r.readLine().split(\" \")", "r.readLine().split", "r.readLine()", "r.readLine", "r", "\" \"", "int[] numArrayInt = new int[n];", "numArrayInt", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}", "{\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}", "numArrayInt[i] = Integer.parseInt(numArrayStr[i])", "numArrayInt[i]", "numArrayInt", "i", "Integer.parseInt(numArrayStr[i])", "Integer.parseInt", "Integer", "numArrayStr[i]", "numArrayStr", "i", "printBlank(numArrayInt)", "printBlank", "numArrayInt", "for(int y = 1; y < n; y++){\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}", "int y = 1;", "int y = 1;", "y", "1", "y < n", "y", "n", "y++", "y++", "y", "{\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}", "{\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}", "int kijun = numArrayInt[y];", "kijun", "numArrayInt[y]", "numArrayInt", "y", "int j = y - 1;", "j", "y - 1", "y", "1", "while(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && numArrayInt[j] > kijun", "j >= 0", "j", "0", "numArrayInt[j] > kijun", "numArrayInt[j]", "numArrayInt", "j", "kijun", "{\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}", "numArrayInt[j + 1] = numArrayInt[j]", "numArrayInt[j + 1]", "numArrayInt", "j + 1", "j", "1", "numArrayInt[j]", "numArrayInt", "j", "j--", "j", "numArrayInt[j + 1] = kijun", "numArrayInt[j + 1]", "numArrayInt", "j + 1", "j", "1", "kijun", "printBlank(numArrayInt)", "printBlank", "numArrayInt", "String[] args", "args", "public static int readInt(BufferedReader r) throws Exception{\n return Integer.parseInt(r.readLine());\n }", "readInt", "{\n return Integer.parseInt(r.readLine());\n }", "return Integer.parseInt(r.readLine());", "Integer.parseInt(r.readLine())", "Integer.parseInt", "Integer", "r.readLine()", "r.readLine", "r", "BufferedReader r", "r", "public static void printBlank(int[] numArrayInt){\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor(int i = 0; i < numArrayInt.length; i++){\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\n\t\tSystem.out.println(builder.toString().trim());\n\t}", "printBlank", "{\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor(int i = 0; i < numArrayInt.length; i++){\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\n\t\tSystem.out.println(builder.toString().trim());\n\t}", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "for(int i = 0; i < numArrayInt.length; i++){\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < numArrayInt.length", "i", "numArrayInt.length", "numArrayInt", "numArrayInt.length", "i++", "i++", "i", "{\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}", "{\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}", "builder.append(numArrayInt[i])", "builder.append", "builder", "numArrayInt[i]", "numArrayInt", "i", "builder.append(\" \")", "builder.append", "builder", "\" \"", "System.out.println(builder.toString().trim())", "System.out.println", "System.out", "System", "System.out", "builder.toString().trim()", "builder.toString().trim", "builder.toString()", "builder.toString", "builder", "int[] numArrayInt", "numArrayInt", "public class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = readInt(r);\n\t\tString[] numArrayStr = r.readLine().split(\" \");\n\n\t\tint[] numArrayInt = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}\n\n\t\tprintBlank(numArrayInt);\n\n\t\tfor(int y = 1; y < n; y++){\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}\n\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n return Integer.parseInt(r.readLine());\n }\n\n\tpublic static void printBlank(int[] numArrayInt){\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor(int i = 0; i < numArrayInt.length; i++){\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\n\t\tSystem.out.println(builder.toString().trim());\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = readInt(r);\n\t\tString[] numArrayStr = r.readLine().split(\" \");\n\n\t\tint[] numArrayInt = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tnumArrayInt[i] = Integer.parseInt(numArrayStr[i]);\n\t\t}\n\n\t\tprintBlank(numArrayInt);\n\n\t\tfor(int y = 1; y < n; y++){\n\t\t\tint kijun = numArrayInt[y];\n\t\t\tint j = y - 1;\n\t\t\twhile(j >= 0 && numArrayInt[j] > kijun){\n\t\t\t\tnumArrayInt[j + 1] = numArrayInt[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tnumArrayInt[j + 1] = kijun;\n\t\t\tprintBlank(numArrayInt);\n\t\t}\n\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n return Integer.parseInt(r.readLine());\n }\n\n\tpublic static void printBlank(int[] numArrayInt){\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor(int i = 0; i < numArrayInt.length; i++){\n\t\t\tbuilder.append(numArrayInt[i]);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\n\t\tSystem.out.println(builder.toString().trim());\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; //?????\????????? public class Main{ public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = readInt(r); String[] numArrayStr = r.readLine().split(" "); int[] numArrayInt = new int[n]; for(int i = 0; i < n; i++){ numArrayInt[i] = Integer.parseInt(numArrayStr[i]); } printBlank(numArrayInt); for(int y = 1; y < n; y++){ int kijun = numArrayInt[y]; int j = y - 1; while(j >= 0 && numArrayInt[j] > kijun){ numArrayInt[j + 1] = numArrayInt[j]; j--; } numArrayInt[j + 1] = kijun; printBlank(numArrayInt); } } public static int readInt(BufferedReader r) throws Exception{ return Integer.parseInt(r.readLine()); } public static void printBlank(int[] numArrayInt){ StringBuilder builder = new StringBuilder(); for(int i = 0; i < numArrayInt.length; i++){ builder.append(numArrayInt[i]); builder.append(" "); } System.out.println(builder.toString().trim()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 8, 2, 13, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 8, 2, 13, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 169, 5 ], [ 169, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 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 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 74, 80 ], [ 74, 81 ], [ 52, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 52, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 52, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 52, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 117 ], [ 117, 118 ], [ 52, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 8, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 126, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 147, 154 ], [ 8, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 169, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 160, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}\n\t\tfor (int k = 0; k < n; k++)\n\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}\n\t\tfor (int k = 0; k < n; k++)\n\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}\n\t\tfor (int k = 0; k < n; k++)\n\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\tSystem.out.println();\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}\n\t\tfor (int k = 0; k < n; k++)\n\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\tSystem.out.println();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[] array = new int[n];", "array", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "array[i] = scan.nextInt();", "array[i] = scan.nextInt()", "array[i]", "array", "i", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}", "{\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}", "for (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "System.out.print(array[k] + (k == n - 1 ? \"\": \" \"));", "System.out.print(array[k] + (k == n - 1 ? \"\": \" \"))", "System.out.print", "System.out", "System", "System.out", "array[k] + (k == n - 1 ? \"\": \" \")", "array[k]", "array", "k", "(k == n - 1 ? \"\": \" \")", "k == n - 1", "k", "n - 1", "n", "1", "\"\"", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int v = array[i];", "v", "array[i]", "array", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && array[j] > v", "j >= 0", "j", "0", "array[j] > v", "array[j]", "array", "j", "v", "{\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "array[j + 1] = array[j]", "array[j + 1]", "array", "j + 1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j + 1] = v", "array[j + 1]", "array", "j + 1", "j", "1", "v", "for (int k = 0; k < n; k++)\n\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "System.out.print(array[k] + (k == n - 1 ? \"\": \" \"));", "System.out.print(array[k] + (k == n - 1 ? \"\": \" \"))", "System.out.print", "System.out", "System", "System.out", "array[k] + (k == n - 1 ? \"\": \" \")", "array[k]", "array", "k", "(k == n - 1 ? \"\": \" \")", "k == n - 1", "k", "n - 1", "n", "1", "\"\"", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}\n\t\tfor (int k = 0; k < n; k++)\n\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\t\tSystem.out.println();\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && array[j] > v) {\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j + 1] = v;\n\t\t}\n\t\tfor (int k = 0; k < n; k++)\n\t\t\tSystem.out.print(array[k] + (k == n - 1 ? \"\": \" \"));\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] array = new int[n]; for (int i = 0; i < n; i++) array[i] = scan.nextInt(); for (int i = 1; i < n; i++) { for (int k = 0; k < n; k++) System.out.print(array[k] + (k == n - 1 ? "": " ")); System.out.println(); int v = array[i]; int j = i - 1; while (j >= 0 && array[j] > v) { array[j + 1] = array[j]; j--; } array[j + 1] = v; } for (int k = 0; k < n; k++) System.out.print(array[k] + (k == n - 1 ? "": " ")); System.out.println(); } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 4, 18, 13, 18, 13, 13, 4, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 111, 11 ], [ 111, 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 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 31, 36 ], [ 31, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 52, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 68, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 80, 86 ], [ 86, 87 ], [ 86, 88 ], [ 79, 89 ], [ 89, 90 ], [ 52, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 52, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 103, 107 ], [ 12, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.*;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\npublic class Main{\n\tpublic static void main(String [] args)throws Exception{\n\t\tBufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));\n\t\tint j=0;\n\t\tint N = Integer.parseInt(Reader.readLine());\n\t\tString A[] = Reader.readLine().split(\" \",0);\n\t\tfor(int i=0;i<=N-1;i++){\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "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 Reader = new BufferedReader (new InputStreamReader(System.in));\n\t\tint j=0;\n\t\tint N = Integer.parseInt(Reader.readLine());\n\t\tString A[] = Reader.readLine().split(\" \",0);\n\t\tfor(int i=0;i<=N-1;i++){\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}\n\t}\n}", "Main", "public static void main(String [] args)throws Exception{\n\t\tBufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));\n\t\tint j=0;\n\t\tint N = Integer.parseInt(Reader.readLine());\n\t\tString A[] = Reader.readLine().split(\" \",0);\n\t\tfor(int i=0;i<=N-1;i++){\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));\n\t\tint j=0;\n\t\tint N = Integer.parseInt(Reader.readLine());\n\t\tString A[] = Reader.readLine().split(\" \",0);\n\t\tfor(int i=0;i<=N-1;i++){\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}\n\t}", "BufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));", "Reader", "new BufferedReader (new InputStreamReader(System.in))", "int j=0;", "j", "0", "int N = Integer.parseInt(Reader.readLine());", "N", "Integer.parseInt(Reader.readLine())", "Integer.parseInt", "Integer", "Reader.readLine()", "Reader.readLine", "Reader", "String A[] = Reader.readLine().split(\" \",0);", "A", "Reader.readLine().split(\" \",0)", "Reader.readLine().split", "Reader.readLine()", "Reader.readLine", "Reader", "\" \"", "0", "for(int i=0;i<=N-1;i++){\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<=N-1", "i", "N-1", "N", "1", "i++", "i++", "i", "{\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}", "{\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}", "String v = A[i];", "v", "A[i]", "A", "i", "j = i-1", "j", "i-1", "i", "1", "while (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)", "j>=0", "j", "0", "Integer.parseInt(A[j])>Integer.parseInt(v)", "Integer.parseInt(A[j])", "Integer.parseInt", "Integer", "A[j]", "A", "j", "Integer.parseInt(v)", "Integer.parseInt", "Integer", "v", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "System.out.println(String.join(\" \",A))", "System.out.println", "System.out", "System", "System.out", "String.join(\" \",A)", "String.join", "String", "\" \"", "A", "String [] args", "args", "public class Main{\n\tpublic static void main(String [] args)throws Exception{\n\t\tBufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));\n\t\tint j=0;\n\t\tint N = Integer.parseInt(Reader.readLine());\n\t\tString A[] = Reader.readLine().split(\" \",0);\n\t\tfor(int i=0;i<=N-1;i++){\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String [] args)throws Exception{\n\t\tBufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));\n\t\tint j=0;\n\t\tint N = Integer.parseInt(Reader.readLine());\n\t\tString A[] = Reader.readLine().split(\" \",0);\n\t\tfor(int i=0;i<=N-1;i++){\n\t\t\tString v = A[i];\n\t\t\tj = i-1;\n\t\t\twhile (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tSystem.out.println(String.join(\" \",A));\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main{ public static void main(String [] args)throws Exception{ BufferedReader Reader = new BufferedReader (new InputStreamReader(System.in)); int j=0; int N = Integer.parseInt(Reader.readLine()); String A[] = Reader.readLine().split(" ",0); for(int i=0;i<=N-1;i++){ String v = A[i]; j = i-1; while (j>=0 && Integer.parseInt(A[j])>Integer.parseInt(v)){ A[j+1] = A[j]; j--; } A[j+1] = v; System.out.println(String.join(" ",A)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 11, 1, 0, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 13, 13, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 155, 5 ], [ 155, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 11, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 6, 45 ], [ 45, 46 ], [ 155, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 49, 57 ], [ 57, 58 ], [ 49, 59 ], [ 59, 60 ], [ 49, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 49, 66 ], [ 66, 67 ], [ 66, 68 ], [ 49, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 49, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 103, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 103, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 134, 135 ], [ 134, 136 ], [ 127, 137 ], [ 137, 138 ], [ 103, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 139, 145 ], [ 49, 146 ], [ 146, 147 ], [ 146, 148 ], [ 49, 149 ], [ 149, 150 ], [ 150, 151 ], [ 47, 152 ], [ 152, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void output(int array[]){\n int k;\n for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");\n System.out.println(array[k]);\n }\n\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int i, j, k, key, n = scanner.nextInt();\n int[] array = new int[n];\n for(i = 0; i < n; ++i) array[i] = scanner.nextInt();\n\n for(i = 1; i < array.length; ++i){\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }\n output(array);\n scanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void output(int array[]){\n int k;\n for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");\n System.out.println(array[k]);\n }\n\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int i, j, k, key, n = scanner.nextInt();\n int[] array = new int[n];\n for(i = 0; i < n; ++i) array[i] = scanner.nextInt();\n\n for(i = 1; i < array.length; ++i){\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }\n output(array);\n scanner.close();\n }\n}", "Main", "public static void output(int array[]){\n int k;\n for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");\n System.out.println(array[k]);\n }", "output", "{\n int k;\n for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");\n System.out.println(array[k]);\n }", "int k;", "k", "for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");", "k = 0;", "k = 0", "k", "0", "k < array.length - 1", "k", "array.length - 1", "array.length", "array", "array.length", "1", "++k", "++k", "k", "System.out.print(array[k] + \" \");", "System.out.print(array[k] + \" \")", "System.out.print", "System.out", "System", "System.out", "array[k] + \" \"", "array[k]", "array", "k", "\" \"", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "int array[]", "array", "public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int i, j, k, key, n = scanner.nextInt();\n int[] array = new int[n];\n for(i = 0; i < n; ++i) array[i] = scanner.nextInt();\n\n for(i = 1; i < array.length; ++i){\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }\n output(array);\n scanner.close();\n }", "main", "{\n\n Scanner scanner = new Scanner(System.in);\n int i, j, k, key, n = scanner.nextInt();\n int[] array = new int[n];\n for(i = 0; i < n; ++i) array[i] = scanner.nextInt();\n\n for(i = 1; i < array.length; ++i){\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }\n output(array);\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int i", "i", "j", "j", "k", "k", "key", "key", "n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] array = new int[n];", "array", "new int[n]", "n", "for(i = 0; i < n; ++i) array[i] = scanner.nextInt();", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "array[i] = scanner.nextInt();", "array[i] = scanner.nextInt()", "array[i]", "array", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "for(i = 1; i < array.length; ++i){\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }", "i = 1;", "i = 1", "i", "1", "i < array.length", "i", "array.length", "array", "array.length", "++i", "++i", "i", "{\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }", "{\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }", "output(array)", "output", "array", "key = array[i]", "key", "array[i]", "array", "i", "j = i - 1", "j", "i - 1", "i", "1", "while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }", "j >= 0 && array[j] > key", "j >= 0", "j", "0", "array[j] > key", "array[j]", "array", "j", "key", "{\n array[j + 1] = array[j];\n j--;\n }", "array[j + 1] = array[j]", "array[j + 1]", "array", "j + 1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j + 1] = key", "array[j + 1]", "array", "j + 1", "j", "1", "key", "output(array)", "output", "array", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void output(int array[]){\n int k;\n for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");\n System.out.println(array[k]);\n }\n\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int i, j, k, key, n = scanner.nextInt();\n int[] array = new int[n];\n for(i = 0; i < n; ++i) array[i] = scanner.nextInt();\n\n for(i = 1; i < array.length; ++i){\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }\n output(array);\n scanner.close();\n }\n}", "public class Main {\n public static void output(int array[]){\n int k;\n for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");\n System.out.println(array[k]);\n }\n\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int i, j, k, key, n = scanner.nextInt();\n int[] array = new int[n];\n for(i = 0; i < n; ++i) array[i] = scanner.nextInt();\n\n for(i = 1; i < array.length; ++i){\n output(array);\n key = array[i];\n j = i - 1;\n while(j >= 0 && array[j] > key){\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = key;\n }\n output(array);\n scanner.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void output(int array[]){ int k; for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + " "); System.out.println(array[k]); } public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int i, j, k, key, n = scanner.nextInt(); int[] array = new int[n]; for(i = 0; i < n; ++i) array[i] = scanner.nextInt(); for(i = 1; i < array.length; ++i){ output(array); key = array[i]; j = i - 1; while(j >= 0 && array[j] > key){ array[j + 1] = array[j]; j--; } array[j + 1] = key; } output(array); scanner.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 41, 13, 20, 13, 41, 13, 17, 42, 4, 18, 13, 30, 0, 18, 13, 40, 13, 4, 18, 13, 4, 18, 13, 4, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 2, 13, 17, 14, 2, 13, 13, 30, 4, 13, 13, 2, 13, 17, 13, 30, 3, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 3, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 199, 14 ], [ 199, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 17, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 17, 55 ], [ 55, 56 ], [ 55, 57 ], [ 15, 58 ], [ 58, 59 ], [ 199, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 93, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 106, 118 ], [ 118, 119 ], [ 80, 120 ], [ 120, 121 ], [ 120, 122 ], [ 60, 123 ], [ 123, 124 ], [ 199, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 127, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 137, 139 ], [ 127, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 125, 145 ], [ 145, 146 ], [ 125, 147 ], [ 147, 148 ], [ 125, 149 ], [ 149, 150 ], [ 199, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 164, 166 ], [ 157, 167 ], [ 167, 168 ], [ 168, 169 ], [ 157, 170 ], [ 171, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 174, 176 ], [ 171, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 177, 185 ], [ 185, 186 ], [ 171, 187 ], [ 187, 188 ], [ 187, 189 ], [ 153, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 151, 196 ], [ 196, 197 ], [ 0, 198 ], [ 198, 199 ], [ 198, 200 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint len = Integer.parseInt(br.readLine());\n\t\tStringTokenizer tokenizer = new StringTokenizer(br.readLine(), \" \");\n\n\t\tint[] arr = new int[len];\n\t\tint i = 0;\n\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}\n\n\t\tsort(arr);\n\t}\n\n\tpublic static void sort(int[] arr) {\n\t\tprintArr(arr);\n\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}\n\t}\n\t\n\tpublic static void swap(int[] arr, int from, int to) {\n\t\tint temp = arr[from];\n\t\tarr[from] = arr[to];\n\t\tarr[to] = temp;\n\t}\n\t\n\tpublic static void printArr(int[] arr) {\n\t\tString msg = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}\n\t\tSystem.out.println(msg);\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint len = Integer.parseInt(br.readLine());\n\t\tStringTokenizer tokenizer = new StringTokenizer(br.readLine(), \" \");\n\n\t\tint[] arr = new int[len];\n\t\tint i = 0;\n\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}\n\n\t\tsort(arr);\n\t}\n\n\tpublic static void sort(int[] arr) {\n\t\tprintArr(arr);\n\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}\n\t}\n\t\n\tpublic static void swap(int[] arr, int from, int to) {\n\t\tint temp = arr[from];\n\t\tarr[from] = arr[to];\n\t\tarr[to] = temp;\n\t}\n\t\n\tpublic static void printArr(int[] arr) {\n\t\tString msg = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}\n\t\tSystem.out.println(msg);\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint len = Integer.parseInt(br.readLine());\n\t\tStringTokenizer tokenizer = new StringTokenizer(br.readLine(), \" \");\n\n\t\tint[] arr = new int[len];\n\t\tint i = 0;\n\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}\n\n\t\tsort(arr);\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint len = Integer.parseInt(br.readLine());\n\t\tStringTokenizer tokenizer = new StringTokenizer(br.readLine(), \" \");\n\n\t\tint[] arr = new int[len];\n\t\tint i = 0;\n\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}\n\n\t\tsort(arr);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int len = Integer.parseInt(br.readLine());", "len", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "StringTokenizer tokenizer = new StringTokenizer(br.readLine(), \" \");", "tokenizer", "new StringTokenizer(br.readLine(), \" \")", "int[] arr = new int[len];", "arr", "new int[len]", "len", "int i = 0;", "i", "0", "while (tokenizer.hasMoreElements()) {\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}", "tokenizer.hasMoreElements()", "tokenizer.hasMoreElements", "tokenizer", "{\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}", "arr[i++] = Integer.parseInt((String) tokenizer.nextElement())", "arr[i++]", "arr", "i++", "i", "Integer.parseInt((String) tokenizer.nextElement())", "Integer.parseInt", "Integer", "(String) tokenizer.nextElement()", "tokenizer.nextElement", "tokenizer", "sort(arr)", "sort", "arr", "String[] args", "args", "public static void sort(int[] arr) {\n\t\tprintArr(arr);\n\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}\n\t}", "sort", "{\n\t\tprintArr(arr);\n\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}\n\t}", "printArr(arr)", "printArr", "arr", "for (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}", "{\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}", "for (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int j = i;", "int j = i;", "j", "i", "j >= 1", "j", "1", "j--", "j--", "j", "{\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int current = arr[j];", "current", "arr[j]", "arr", "j", "int prev = arr[j - 1];", "prev", "arr[j - 1]", "arr", "j - 1", "j", "1", "if (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "current < prev", "current", "prev", "{\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t}", "swap(arr, j - 1, j)", "swap", "arr", "j - 1", "j", "1", "j", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "printArr(arr)", "printArr", "arr", "int[] arr", "arr", "public static void swap(int[] arr, int from, int to) {\n\t\tint temp = arr[from];\n\t\tarr[from] = arr[to];\n\t\tarr[to] = temp;\n\t}", "swap", "{\n\t\tint temp = arr[from];\n\t\tarr[from] = arr[to];\n\t\tarr[to] = temp;\n\t}", "int temp = arr[from];", "temp", "arr[from]", "arr", "from", "arr[from] = arr[to]", "arr[from]", "arr", "from", "arr[to]", "arr", "to", "arr[to] = temp", "arr[to]", "arr", "to", "temp", "int[] arr", "arr", "int from", "from", "int to", "to", "public static void printArr(int[] arr) {\n\t\tString msg = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}\n\t\tSystem.out.println(msg);\n\t}", "printArr", "{\n\t\tString msg = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}\n\t\tSystem.out.println(msg);\n\t}", "String msg = \"\";", "msg", "\"\"", "for (int i = 0; i < arr.length; i++) {\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}", "{\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}", "msg += arr[i]", "msg", "arr[i]", "arr", "i", "if (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}", "i == arr.length - 1", "i", "arr.length - 1", "arr.length", "arr", "arr.length", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "msg += \" \"", "msg", "\" \"", "System.out.println(msg)", "System.out.println", "System.out", "System", "System.out", "msg", "int[] arr", "arr", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint len = Integer.parseInt(br.readLine());\n\t\tStringTokenizer tokenizer = new StringTokenizer(br.readLine(), \" \");\n\n\t\tint[] arr = new int[len];\n\t\tint i = 0;\n\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}\n\n\t\tsort(arr);\n\t}\n\n\tpublic static void sort(int[] arr) {\n\t\tprintArr(arr);\n\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}\n\t}\n\t\n\tpublic static void swap(int[] arr, int from, int to) {\n\t\tint temp = arr[from];\n\t\tarr[from] = arr[to];\n\t\tarr[to] = temp;\n\t}\n\t\n\tpublic static void printArr(int[] arr) {\n\t\tString msg = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}\n\t\tSystem.out.println(msg);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint len = Integer.parseInt(br.readLine());\n\t\tStringTokenizer tokenizer = new StringTokenizer(br.readLine(), \" \");\n\n\t\tint[] arr = new int[len];\n\t\tint i = 0;\n\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\tarr[i++] = Integer.parseInt((String) tokenizer.nextElement());\n\t\t}\n\n\t\tsort(arr);\n\t}\n\n\tpublic static void sort(int[] arr) {\n\t\tprintArr(arr);\n\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = i; j >= 1; j--) {\n\t\t\t\tint current = arr[j];\n\t\t\t\tint prev = arr[j - 1];\n\t\t\t\t\n\t\t\t\tif (current < prev) {\n\t\t\t\t\tswap(arr, j - 1, j);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tprintArr(arr);\n\t\t}\n\t}\n\t\n\tpublic static void swap(int[] arr, int from, int to) {\n\t\tint temp = arr[from];\n\t\tarr[from] = arr[to];\n\t\tarr[to] = temp;\n\t}\n\t\n\tpublic static void printArr(int[] arr) {\n\t\tString msg = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tmsg += arr[i];\n\t\t\tif (i == arr.length - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmsg += \" \";\n\t\t}\n\t\tSystem.out.println(msg);\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int len = Integer.parseInt(br.readLine()); StringTokenizer tokenizer = new StringTokenizer(br.readLine(), " "); int[] arr = new int[len]; int i = 0; while (tokenizer.hasMoreElements()) { arr[i++] = Integer.parseInt((String) tokenizer.nextElement()); } sort(arr); } public static void sort(int[] arr) { printArr(arr); for (int i = 1; i < arr.length; i++) { for (int j = i; j >= 1; j--) { int current = arr[j]; int prev = arr[j - 1]; if (current < prev) { swap(arr, j - 1, j); } else { break; } } printArr(arr); } } public static void swap(int[] arr, int from, int to) { int temp = arr[from]; arr[from] = arr[to]; arr[to] = temp; } public static void printArr(int[] arr) { String msg = ""; for (int i = 0; i < arr.length; i++) { msg += arr[i]; if (i == arr.length - 1) { break; } msg += " "; } System.out.println(msg); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 181, 5 ], [ 181, 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, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 24, 34 ], [ 34, 35 ], [ 35, 36 ], [ 24, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 46, 58 ], [ 58, 59 ], [ 59, 60 ], [ 46, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 85, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 99, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 127, 128 ], [ 127, 129 ], [ 120, 130 ], [ 130, 131 ], [ 99, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 132, 138 ], [ 99, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 139, 151 ], [ 151, 152 ], [ 152, 153 ], [ 139, 154 ], [ 155, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 99, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 6, 178 ], [ 178, 179 ], [ 0, 180 ], [ 180, 181 ], [ 180, 182 ] ]
[ "import java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint length = input.nextInt();\n\t\tint[] intList = new int[length];\n\t\tint k = 0;\n\t\tfor(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}\n\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}\n\t\tSystem.out.println(intList[intList.length - 1]);\n\t\tfor(int i = 1; i < intList.length; i++) {\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint length = input.nextInt();\n\t\tint[] intList = new int[length];\n\t\tint k = 0;\n\t\tfor(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}\n\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}\n\t\tSystem.out.println(intList[intList.length - 1]);\n\t\tfor(int i = 1; i < intList.length; i++) {\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint length = input.nextInt();\n\t\tint[] intList = new int[length];\n\t\tint k = 0;\n\t\tfor(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}\n\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}\n\t\tSystem.out.println(intList[intList.length - 1]);\n\t\tfor(int i = 1; i < intList.length; i++) {\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}\n\t}", "main", "{\n\t\tScanner input = new Scanner(System.in);\n\t\tint length = input.nextInt();\n\t\tint[] intList = new int[length];\n\t\tint k = 0;\n\t\tfor(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}\n\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}\n\t\tSystem.out.println(intList[intList.length - 1]);\n\t\tfor(int i = 1; i < intList.length; i++) {\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}\n\t}", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int length = input.nextInt();", "length", "input.nextInt()", "input.nextInt", "input", "int[] intList = new int[length];", "intList", "new int[length]", "length", "int k = 0;", "k", "0", "for(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intList.length", "i", "intList.length", "intList", "intList.length", "i++", "i++", "i", "{\n\t\t\tintList[i] = input.nextInt();\n\t\t}", "{\n\t\t\tintList[i] = input.nextInt();\n\t\t}", "intList[i] = input.nextInt()", "intList[i]", "intList", "i", "input.nextInt()", "input.nextInt", "input", "for(int m = 0; m < intList.length - 1; m++) {\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}", "int m = 0;", "int m = 0;", "m", "0", "m < intList.length - 1", "m", "intList.length - 1", "intList.length", "intList", "intList.length", "1", "m++", "m++", "m", "{\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}", "{\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}", "System.out.print(intList[m] + \" \")", "System.out.print", "System.out", "System", "System.out", "intList[m] + \" \"", "intList[m]", "intList", "m", "\" \"", "System.out.println(intList[intList.length - 1])", "System.out.println", "System.out", "System", "System.out", "intList[intList.length - 1]", "intList", "intList.length - 1", "intList.length", "intList", "intList.length", "1", "for(int i = 1; i < intList.length; i++) {\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < intList.length", "i", "intList.length", "intList", "intList.length", "i++", "i++", "i", "{\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}", "{\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}", "int key = intList[i];", "key", "intList[i]", "intList", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && intList[j] > key", "j >= 0", "j", "0", "intList[j] > key", "intList[j]", "intList", "j", "key", "{\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}", "intList[j+1] = intList[j]", "intList[j+1]", "intList", "j+1", "j", "1", "intList[j]", "intList", "j", "j--", "j", "intList[j+1] = key", "intList[j+1]", "intList", "j+1", "j", "1", "key", "for(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}", "int m = 0;", "int m = 0;", "m", "0", "m < intList.length - 1", "m", "intList.length - 1", "intList.length", "intList", "intList.length", "1", "m++", "m++", "m", "{\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}", "System.out.print(intList[m] + \" \")", "System.out.print", "System.out", "System", "System.out", "intList[m] + \" \"", "intList[m]", "intList", "m", "\" \"", "System.out.println(intList[intList.length - 1])", "System.out.println", "System.out", "System", "System.out", "intList[intList.length - 1]", "intList", "intList.length - 1", "intList.length", "intList", "intList.length", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint length = input.nextInt();\n\t\tint[] intList = new int[length];\n\t\tint k = 0;\n\t\tfor(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}\n\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}\n\t\tSystem.out.println(intList[intList.length - 1]);\n\t\tfor(int i = 1; i < intList.length; i++) {\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint length = input.nextInt();\n\t\tint[] intList = new int[length];\n\t\tint k = 0;\n\t\tfor(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}\n\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t}\n\t\tSystem.out.println(intList[intList.length - 1]);\n\t\tfor(int i = 1; i < intList.length; i++) {\n\t\t\tint key = intList[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && intList[j] > key) {\n\t\t\t\tintList[j+1] = intList[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintList[j+1] = key;\n\t\t\tfor(int m = 0; m < intList.length - 1; m++) {\n\t\t\t\tSystem.out.print(intList[m] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(intList[intList.length - 1]);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int length = input.nextInt(); int[] intList = new int[length]; int k = 0; for(int i = 0; i < intList.length; i++) { intList[i] = input.nextInt(); } for(int m = 0; m < intList.length - 1; m++) { System.out.print(intList[m] + " "); } System.out.println(intList[intList.length - 1]); for(int i = 1; i < intList.length; i++) { int key = intList[i]; int j = i - 1; while(j >= 0 && intList[j] > key) { intList[j+1] = intList[j]; j--; } intList[j+1] = key; for(int m = 0; m < intList.length - 1; m++) { System.out.print(intList[m] + " "); } System.out.println(intList[intList.length - 1]); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 4, 18, 13, 41, 13, 20, 13, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 4, 18, 13, 4, 18, 13, 18, 13, 13, 8, 2, 13, 2, 13, 17, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 17, 13, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 4, 18, 13, 4, 18, 13, 18, 13, 13, 8, 2, 13, 2, 13, 17, 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 ], [ 209, 8 ], [ 209, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 19, 28 ], [ 28, 29 ], [ 28, 30 ], [ 19, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 37, 38 ], [ 19, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 41, 46 ], [ 19, 47 ], [ 47, 48 ], [ 48, 49 ], [ 19, 50 ], [ 50, 51 ], [ 50, 52 ], [ 19, 54 ], [ 54, 55 ], [ 54, 56 ], [ 19, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 71, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 82, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 93, 100 ], [ 19, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 19, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 109, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 123, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 123, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 151, 152 ], [ 151, 153 ], [ 144, 154 ], [ 154, 155 ], [ 123, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 159, 161 ], [ 156, 162 ], [ 123, 163 ], [ 163, 164 ], [ 163, 165 ], [ 123, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 171, 172 ], [ 171, 173 ], [ 166, 174 ], [ 174, 175 ], [ 175, 176 ], [ 166, 177 ], [ 178, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 187, 188 ], [ 187, 189 ], [ 179, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 193, 195 ], [ 190, 196 ], [ 190, 197 ], [ 123, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 198, 203 ], [ 203, 204 ], [ 204, 205 ], [ 9, 206 ], [ 206, 207 ], [ 0, 208 ], [ 208, 209 ], [ 208, 210 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t}", "StringBuilder out;", "out", "String lb = System.getProperty(\"line.separator\");", "lb", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(in.readLine());", "n", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "String[] line = in.readLine().split(\"[\\\\s]+\");", "line", "in.readLine().split(\"[\\\\s]+\")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\"[\\\\s]+\"", "in.close()", "in.close", "in", "int[] seq = new int[n];", "seq", "new int[n]", "n", "out = new StringBuilder()", "out", "new StringBuilder()", "for (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < seq.length", "i", "seq.length", "seq", "seq.length", "i++", "i++", "i", "{\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}", "{\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}", "seq[i] = Integer.parseInt(line[i])", "seq[i]", "seq", "i", "Integer.parseInt(line[i])", "Integer.parseInt", "Integer", "line[i]", "line", "i", "out.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb)", "out.append(String.valueOf(seq[i])).append", "out.append(String.valueOf(seq[i]))", "out.append", "out", "String.valueOf(seq[i])", "String.valueOf", "String", "seq[i]", "seq", "i", "i < n-1 ? \" \" : lb", "i < n-1", "i", "n-1", "n", "1", "\" \"", "lb", "System.out.print(out.toString())", "System.out.print", "System.out", "System", "System.out", "out.toString()", "out.toString", "out", "for (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < seq.length", "i", "seq.length", "seq", "seq.length", "i++", "i++", "i", "{\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}", "{\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}", "final int key = seq[i];", "key", "seq[i]", "seq", "i", "int j = i-1;", "j", "i-1", "i", "1", "while (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "0 <= j && key < seq[j]", "0 <= j", "0", "j", "key < seq[j]", "key", "seq[j]", "seq", "j", "{\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "seq[j+1] = seq[j]", "seq[j+1]", "seq", "j+1", "j", "1", "seq[j]", "seq", "j", "j--", "j", "seq[j+1] = key", "seq[j+1]", "seq", "j+1", "j", "1", "key", "out = new StringBuilder()", "out", "new StringBuilder()", "for (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}", "{\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}", "out.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb)", "out.append(String.valueOf(seq[k])).append", "out.append(String.valueOf(seq[k]))", "out.append", "out", "String.valueOf(seq[k])", "String.valueOf", "String", "seq[k]", "seq", "k", "k < n-1 ? \" \" : lb", "k < n-1", "k", "n-1", "n", "1", "\" \"", "lb", "System.out.print(out.toString())", "System.out.print", "System.out", "System", "System.out", "out.toString()", "out.toString", "out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tout = new StringBuilder();\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tout = new StringBuilder();\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(out.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { StringBuilder out; String lb = System.getProperty("line.separator"); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(in.readLine()); String[] line = in.readLine().split("[\\s]+"); in.close(); int[] seq = new int[n]; out = new StringBuilder(); for (int i = 0; i < seq.length; i++) { seq[i] = Integer.parseInt(line[i]); out.append(String.valueOf(seq[i])).append(i < n-1 ? " " : lb); } System.out.print(out.toString()); for (int i = 1; i < seq.length; i++) { final int key = seq[i]; int j = i-1; while (0 <= j && key < seq[j]) { seq[j+1] = seq[j]; j--; } seq[j+1] = key; out = new StringBuilder(); for (int k = 0; k < n; k++) { out.append(String.valueOf(seq[k])).append(k < n-1 ? " " : lb); } System.out.print(out.toString()); } } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 18, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 29, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 29, 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 ], [ 195, 8 ], [ 195, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 22, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 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 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 11, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 9, 59 ], [ 59, 60 ], [ 195, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 73, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 87, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 109, 115 ], [ 115, 116 ], [ 115, 117 ], [ 108, 118 ], [ 118, 119 ], [ 87, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 120, 126 ], [ 87, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 132, 133 ], [ 132, 134 ], [ 132, 135 ], [ 61, 136 ], [ 136, 137 ], [ 61, 138 ], [ 138, 139 ], [ 195, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 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 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 158, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 171, 173 ], [ 142, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 140, 178 ], [ 178, 179 ], [ 140, 180 ], [ 180, 181 ], [ 195, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 186, 189 ], [ 189, 190 ], [ 190, 191 ], [ 182, 192 ], [ 192, 193 ], [ 0, 194 ], [ 194, 195 ], [ 194, 196 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int N = readInt(r);\n String[] numStrings = r.readLine().split(\" \");\n int[] A = new int[N];\n for (int i = 0;i < N;i++) {\n A[i] = Integer.parseInt(numStrings[i]);\n }\n insertionSort(A, N);\n }\n \n public static void insertionSort(int[] A, int N) {\n System.out.println(dump(A, N));\n for (int i = 1;i <= (N - 1);i++) {\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }\n }\n \n public static String dump(int[] A, int N) {\n StringBuilder builder = new StringBuilder();\n for (int i = 0;i < N;i++) {\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n return builder.toString();\n }\n \n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int N = readInt(r);\n String[] numStrings = r.readLine().split(\" \");\n int[] A = new int[N];\n for (int i = 0;i < N;i++) {\n A[i] = Integer.parseInt(numStrings[i]);\n }\n insertionSort(A, N);\n }\n \n public static void insertionSort(int[] A, int N) {\n System.out.println(dump(A, N));\n for (int i = 1;i <= (N - 1);i++) {\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }\n }\n \n public static String dump(int[] A, int N) {\n StringBuilder builder = new StringBuilder();\n for (int i = 0;i < N;i++) {\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n return builder.toString();\n }\n \n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int N = readInt(r);\n String[] numStrings = r.readLine().split(\" \");\n int[] A = new int[N];\n for (int i = 0;i < N;i++) {\n A[i] = Integer.parseInt(numStrings[i]);\n }\n insertionSort(A, N);\n }", "main", "{\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int N = readInt(r);\n String[] numStrings = r.readLine().split(\" \");\n int[] A = new int[N];\n for (int i = 0;i < N;i++) {\n A[i] = Integer.parseInt(numStrings[i]);\n }\n insertionSort(A, N);\n }", "BufferedReader r = new BufferedReader(new InputStreamReader(System.in));", "r", "new BufferedReader(new InputStreamReader(System.in))", "int N = readInt(r);", "N", "readInt(r)", "readInt", "r", "String[] numStrings = r.readLine().split(\" \");", "numStrings", "r.readLine().split(\" \")", "r.readLine().split", "r.readLine()", "r.readLine", "r", "\" \"", "int[] A = new int[N];", "A", "new int[N]", "N", "for (int i = 0;i < N;i++) {\n A[i] = Integer.parseInt(numStrings[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n A[i] = Integer.parseInt(numStrings[i]);\n }", "{\n A[i] = Integer.parseInt(numStrings[i]);\n }", "A[i] = Integer.parseInt(numStrings[i])", "A[i]", "A", "i", "Integer.parseInt(numStrings[i])", "Integer.parseInt", "Integer", "numStrings[i]", "numStrings", "i", "insertionSort(A, N)", "insertionSort", "A", "N", "String[] args", "args", "public static void insertionSort(int[] A, int N) {\n System.out.println(dump(A, N));\n for (int i = 1;i <= (N - 1);i++) {\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }\n }", "insertionSort", "{\n System.out.println(dump(A, N));\n for (int i = 1;i <= (N - 1);i++) {\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }\n }", "System.out.println(dump(A, N))", "System.out.println", "System.out", "System", "System.out", "dump(A, N)", "dump", "A", "N", "for (int i = 1;i <= (N - 1);i++) {\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= (N - 1)", "i", "(N - 1)", "N", "1", "i++", "i++", "i", "{\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }", "{\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n A[j + 1] = A[j];\n j--;\n }", "A[j + 1] = A[j]", "A[j + 1]", "A", "j + 1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j + 1] = v", "A[j + 1]", "A", "j + 1", "j", "1", "v", "System.out.println(dump(A, N))", "System.out.println", "System.out", "System", "System.out", "dump(A, N)", "dump", "A", "N", "int[] A", "A", "int N", "N", "public static String dump(int[] A, int N) {\n StringBuilder builder = new StringBuilder();\n for (int i = 0;i < N;i++) {\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n return builder.toString();\n }", "dump", "{\n StringBuilder builder = new StringBuilder();\n for (int i = 0;i < N;i++) {\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n return builder.toString();\n }", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "for (int i = 0;i < N;i++) {\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }", "{\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }", "if (i != 0) {\n builder.append(\" \");\n }", "i != 0", "i", "0", "{\n builder.append(\" \");\n }", "builder.append(\" \")", "builder.append", "builder", "\" \"", "builder.append(A[i])", "builder.append", "builder", "A[i]", "A", "i", "return builder.toString();", "builder.toString()", "builder.toString", "builder", "int[] A", "A", "int N", "N", "public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }", "readInt", "{\n return Integer.parseInt(r.readLine());\n }", "return Integer.parseInt(r.readLine());", "Integer.parseInt(r.readLine())", "Integer.parseInt", "Integer", "r.readLine()", "r.readLine", "r", "BufferedReader r", "r", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int N = readInt(r);\n String[] numStrings = r.readLine().split(\" \");\n int[] A = new int[N];\n for (int i = 0;i < N;i++) {\n A[i] = Integer.parseInt(numStrings[i]);\n }\n insertionSort(A, N);\n }\n \n public static void insertionSort(int[] A, int N) {\n System.out.println(dump(A, N));\n for (int i = 1;i <= (N - 1);i++) {\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }\n }\n \n public static String dump(int[] A, int N) {\n StringBuilder builder = new StringBuilder();\n for (int i = 0;i < N;i++) {\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n return builder.toString();\n }\n \n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int N = readInt(r);\n String[] numStrings = r.readLine().split(\" \");\n int[] A = new int[N];\n for (int i = 0;i < N;i++) {\n A[i] = Integer.parseInt(numStrings[i]);\n }\n insertionSort(A, N);\n }\n \n public static void insertionSort(int[] A, int N) {\n System.out.println(dump(A, N));\n for (int i = 1;i <= (N - 1);i++) {\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v) {\n A[j + 1] = A[j];\n j--;\n }\n A[j + 1] = v;\n System.out.println(dump(A, N));\n }\n }\n \n public static String dump(int[] A, int N) {\n StringBuilder builder = new StringBuilder();\n for (int i = 0;i < N;i++) {\n if (i != 0) {\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n return builder.toString();\n }\n \n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int N = readInt(r); String[] numStrings = r.readLine().split(" "); int[] A = new int[N]; for (int i = 0;i < N;i++) { A[i] = Integer.parseInt(numStrings[i]); } insertionSort(A, N); } public static void insertionSort(int[] A, int N) { System.out.println(dump(A, N)); for (int i = 1;i <= (N - 1);i++) { int v = A[i]; int j = i - 1; while (j >= 0 && A[j] > v) { A[j + 1] = A[j]; j--; } A[j + 1] = v; System.out.println(dump(A, N)); } } public static String dump(int[] A, int N) { StringBuilder builder = new StringBuilder(); for (int i = 0;i < N;i++) { if (i != 0) { builder.append(" "); } builder.append(A[i]); } return builder.toString(); } public static int readInt(BufferedReader r) throws Exception { return Integer.parseInt(r.readLine()); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 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, 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 ], [ 153, 14 ], [ 153, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 18, 23 ], [ 23, 24 ], [ 23, 25 ], [ 18, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 30, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 61 ], [ 61, 62 ], [ 30, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 30, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 82, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 30, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 15, 107 ], [ 107, 108 ], [ 15, 109 ], [ 109, 110 ], [ 153, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 113, 122 ], [ 122, 123 ], [ 122, 124 ], [ 113, 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 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 113, 146 ], [ 146, 147 ], [ 146, 148 ], [ 146, 149 ], [ 111, 150 ], [ 150, 151 ], [ 0, 152 ], [ 152, 153 ], [ 152, 154 ] ]
[ "import java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void InsertionSort(final int N, int[] A){\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tInsertionSort(N, A);\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\t\n\tpublic static void InsertionSort(final int N, int[] A){\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tInsertionSort(N, A);\n\t\t\n\t}\n}", "Main", "public static void InsertionSort(final int N, int[] A){\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "InsertionSort", "{\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "for(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "final int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "for(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < N", "k", "N", "k++", "k++", "k", "{\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}", "{\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}", "if(k != 0){ System.out.print(\" \"); }", "k != 0", "k", "0", "{ System.out.print(\" \"); }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(A[k])", "System.out.print", "System.out", "System", "System.out", "A[k]", "A", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "final int N", "N", "int[] A", "A", "public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tInsertionSort(N, A);\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tInsertionSort(N, A);\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] A = new int[N];", "A", "new int[N]", "N", "for(int i = 0; i < N; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "InsertionSort(N, A)", "InsertionSort", "N", "A", "String args[]", "args", "public class Main {\n\t\n\tpublic static void InsertionSort(final int N, int[] A){\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tInsertionSort(N, A);\n\t\t\n\t}\n}", "public class Main {\n\t\n\tpublic static void InsertionSort(final int N, int[] A){\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\t\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tif(k != 0){ System.out.print(\" \"); }\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tInsertionSort(N, A);\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 InsertionSort(final int N, int[] A){ for(int i = 0; i < N; i++){ final int v = A[i]; int j = i - 1; while(j >= 0 && A[j] > v){ A[j+1] = A[j]; j--; } A[j+1] = v; for(int k = 0; k < N; k++){ if(k != 0){ System.out.print(" "); } System.out.print(A[k]); } System.out.println(); } } public static void main(String args[]) { Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); int[] A = new int[N]; for(int i = 0; i < N; i++){ A[i] = sc.nextInt(); } InsertionSort(N, A); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 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, 21 ], [ 21, 22 ], [ 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 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 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 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 62, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 62, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 62, 102 ], [ 102, 103 ], [ 102, 104 ], [ 6, 105 ], [ 105, 106 ], [ 4, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 110, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 124, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 109, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 107, 148 ], [ 148, 149 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tint i, j, key;\n\t\tfor(i=0; i<n; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tprint(A);\n\t\tfor(i=1; i<n; i++){\n\t\t\tkey = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = key;\n\t\t\tprint(A);\n\t\t}\n\t}\n\tpublic static void print(int A[]){\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tif(i!=0) System.out.print(\" \");\n\t\t\tSystem.out.print(A[i]);\n\t\t}\n\t\tSystem.out.println();\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\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tint i, j, key;\n\t\tfor(i=0; i<n; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tprint(A);\n\t\tfor(i=1; i<n; i++){\n\t\t\tkey = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = key;\n\t\t\tprint(A);\n\t\t}\n\t}\n\tpublic static void print(int A[]){\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tif(i!=0) System.out.print(\" \");\n\t\t\tSystem.out.print(A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tint i, j, key;\n\t\tfor(i=0; i<n; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tprint(A);\n\t\tfor(i=1; i<n; i++){\n\t\t\tkey = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = key;\n\t\t\tprint(A);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tint i, j, key;\n\t\tfor(i=0; i<n; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tprint(A);\n\t\tfor(i=1; i<n; i++){\n\t\t\tkey = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = key;\n\t\t\tprint(A);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int A[] = new int[n];", "A", "new int[n]", "n", "int i", "i", "j", "j", "key;", "key", "for(i=0; i<n; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "print(A)", "print", "A", "for(i=1; i<n; i++){\n\t\t\tkey = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = key;\n\t\t\tprint(A);\n\t\t}", "i=1;", "i=1", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tkey = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = key;\n\t\t\tprint(A);\n\t\t}", "{\n\t\t\tkey = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = key;\n\t\t\tprint(A);\n\t\t}", "key = A[i]", "key", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while(j>=0 && A[j]>key){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0 && A[j]>key", "j>=0", "j", "0", "A[j]>key", "A[j]", "A", "j", "key", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = key", "A[j+1]", "A", "j+1", "j", "1", "key", "print(A)", "print", "A", "String[] args", "args", "public static void print(int A[]){\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tif(i!=0) System.out.print(\" \");\n\t\t\tSystem.out.print(A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "print", "{\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tif(i!=0) System.out.print(\" \");\n\t\t\tSystem.out.print(A[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "for(int i=0; i<A.length; i++){\n\t\t\tif(i!=0) System.out.print(\" \");\n\t\t\tSystem.out.print(A[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tif(i!=0) System.out.print(\" \");\n\t\t\tSystem.out.print(A[i]);\n\t\t}", "{\n\t\t\tif(i!=0) System.out.print(\" \");\n\t\t\tSystem.out.print(A[i]);\n\t\t}", "if(i!=0) System.out.print(\" \");", "i!=0", "i", "0", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(A[i])", "System.out.print", "System.out", "System", "System.out", "A[i]", "A", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int A[]", "A" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n]; int i, j, key; for(i=0; i<n; i++){ A[i] = sc.nextInt(); } print(A); for(i=1; i<n; i++){ key = A[i]; j = i - 1; while(j>=0 && A[j]>key){ A[j+1] = A[j]; j--; } A[j+1] = key; print(A); } } public static void print(int A[]){ for(int i=0; i<A.length; i++){ if(i!=0) System.out.print(" "); System.out.print(A[i]); } System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 2, 13, 17, 2, 18, 13, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 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 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 23, 24 ], [ 13, 25 ], [ 25, 26 ], [ 25, 27 ], [ 13, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 13, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 13, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 13, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 13, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 104, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 104, 120 ], [ 120, 121 ], [ 121, 122 ], [ 104, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 125, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 98, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 144, 146 ], [ 98, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 147, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 166, 168 ], [ 98, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 6, 174 ], [ 174, 175 ] ]
[ "import java.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args){\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] A = new int[N];\n\t\t\tfor(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());\n\t\t\tSystem.out.print(A[0]);\n\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args){\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] A = new int[N];\n\t\t\tfor(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());\n\t\t\tSystem.out.print(A[0]);\n\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] A = new int[N];\n\t\t\tfor(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());\n\t\t\tSystem.out.print(A[0]);\n\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] A = new int[N];\n\t\t\tfor(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());\n\t\t\tSystem.out.print(A[0]);\n\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "final int Number=100;", "Number", "100", "try(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] A = new int[N];\n\t\t\tfor(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());\n\t\t\tSystem.out.print(A[0]);\n\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "{\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] A = new int[N];\n\t\t\tfor(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());\n\t\t\tSystem.out.print(A[0]);\n\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "int N = Integer.parseInt(sc.next());", "N", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int[] A = new int[N];", "A", "new int[N]", "N", "for(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "A[i]=Integer.parseInt(sc.next());", "A[i]=Integer.parseInt(sc.next())", "A[i]", "A", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "System.out.print(A[0])", "System.out.print", "System.out", "System", "System.out", "A[0]", "A", "0", "for(int j=1;j<N;j++)System.out.print(\" \"+A[j]);", "int j=1;", "int j=1;", "j", "1", "j<N", "j", "N", "j++", "j++", "j", "System.out.print(\" \"+A[j]);", "System.out.print(\" \"+A[j])", "System.out.print", "System.out", "System", "System.out", "\" \"+A[j]", "\" \"", "A[j]", "A", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(int i=1;i<N;i++){\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tint v = A[i];\n\t\t\t\tfor(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(A[0]);\n\t\t\t\tfor(int j=1;j<N;j++)System.out.print(\" \"+A[j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int v = A[i];", "v", "A[i]", "A", "i", "for(int j = i-1;(j>=0)&&(A[j]>v);j--){\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}", "int j = i-1;", "int j = i-1;", "j", "i-1", "i", "1", "(j>=0)&&(A[j]>v)", "(j>=0)", "j", "0", "(A[j]>v)", "A[j]", "A", "j", "v", "j--", "j--", "j", "{\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}", "{\n\t\t\t\t\tA[j+1]=A[j];\n\t\t\t\t\tA[j]=v;\n\t\t\t\t}", "A[j+1]=A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "A[j]=v", "A[j]", "A", "j", "v", "System.out.print(A[0])", "System.out.print", "System.out", "System", "System.out", "A[0]", "A", "0", "for(int j=1;j<N;j++)System.out.print(\" \"+A[j]);", "int j=1;", "int j=1;", "j", "1", "j<N", "j", "N", "j++", "j++", "j", "System.out.print(\" \"+A[j]);", "System.out.print(\" \"+A[j])", "System.out.print", "System.out", "System", "System.out", "\" \"+A[j]", "\" \"", "A[j]", "A", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args){ final int Number=100; try(Scanner sc = new Scanner(System.in)){ int N = Integer.parseInt(sc.next()); int[] A = new int[N]; for(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next()); System.out.print(A[0]); for(int j=1;j<N;j++)System.out.print(" "+A[j]); System.out.println(); for(int i=1;i<N;i++){ int v = A[i]; for(int j = i-1;(j>=0)&&(A[j]>v);j--){ A[j+1]=A[j]; A[j]=v; } System.out.print(A[0]); for(int j=1;j<N;j++)System.out.print(" "+A[j]); System.out.println(); } } } }
[ 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, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 20, 4, 18, 4, 18, 13, 4, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 4, 18, 13, 4, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 13, 17, 29, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 194, 8 ], [ 194, 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 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 34, 35 ], [ 34, 36 ], [ 11, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 11, 62 ], [ 62, 63 ], [ 62, 64 ], [ 11, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 11, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 74, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 88, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 88, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 88, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 133, 135 ], [ 128, 136 ], [ 11, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 143, 144 ], [ 9, 145 ], [ 145, 146 ], [ 194, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 153, 163 ], [ 163, 164 ], [ 164, 165 ], [ 153, 166 ], [ 167, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 171, 173 ], [ 167, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 174, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 149, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 147, 191 ], [ 191, 192 ], [ 0, 193 ], [ 193, 194 ], [ 193, 195 ] ]
[ "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 int N = Integer.parseInt(br.readLine());\n\t String[] line = br.readLine().split(\" \");\n\t int[] data = new int[line.length];\n\n\t for (int i = 0; i < line.length; i++) {\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }\n\n\t StringBuilder sb = new StringBuilder();\n\t sb.append(disp(data)).append(\"\\n\");\n\n\t for (int i = 1; i <= N - 1; i++) {\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }\n\t System.out.print(sb.toString());\n\t}\n\n\tpublic static String disp(int[] data) {\n\t StringBuilder sb = new StringBuilder();\n \tfor (int k = 0; k < data.length; k++) {\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}\n\t return sb.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 int N = Integer.parseInt(br.readLine());\n\t String[] line = br.readLine().split(\" \");\n\t int[] data = new int[line.length];\n\n\t for (int i = 0; i < line.length; i++) {\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }\n\n\t StringBuilder sb = new StringBuilder();\n\t sb.append(disp(data)).append(\"\\n\");\n\n\t for (int i = 1; i <= N - 1; i++) {\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }\n\t System.out.print(sb.toString());\n\t}\n\n\tpublic static String disp(int[] data) {\n\t StringBuilder sb = new StringBuilder();\n \tfor (int k = 0; k < data.length; k++) {\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}\n\t return sb.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 int N = Integer.parseInt(br.readLine());\n\t String[] line = br.readLine().split(\" \");\n\t int[] data = new int[line.length];\n\n\t for (int i = 0; i < line.length; i++) {\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }\n\n\t StringBuilder sb = new StringBuilder();\n\t sb.append(disp(data)).append(\"\\n\");\n\n\t for (int i = 1; i <= N - 1; i++) {\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }\n\t System.out.print(sb.toString());\n\t}", "main", "{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t int N = Integer.parseInt(br.readLine());\n\t String[] line = br.readLine().split(\" \");\n\t int[] data = new int[line.length];\n\n\t for (int i = 0; i < line.length; i++) {\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }\n\n\t StringBuilder sb = new StringBuilder();\n\t sb.append(disp(data)).append(\"\\n\");\n\n\t for (int i = 1; i <= N - 1; i++) {\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }\n\t System.out.print(sb.toString());\n\t}", "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", "String[] line = br.readLine().split(\" \");", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] data = new int[line.length];", "data", "new int[line.length]", "line.length", "line", "line.length", "for (int i = 0; i < line.length; i++) {\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < line.length", "i", "line.length", "line", "line.length", "i++", "i++", "i", "{\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }", "{\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }", "data[i] = Integer.parseInt(line[i])", "data[i]", "data", "i", "Integer.parseInt(line[i])", "Integer.parseInt", "Integer", "line[i]", "line", "i", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "sb.append(disp(data)).append(\"\\n\")", "sb.append(disp(data)).append", "sb.append(disp(data))", "sb.append", "sb", "disp(data)", "disp", "data", "\"\\n\"", "for (int i = 1; i <= N - 1; i++) {\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= N - 1", "i", "N - 1", "N", "1", "i++", "i++", "i", "{\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }", "{\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }", "int v = data[i];", "v", "data[i]", "data", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}", "j >= 0 && data[j] > v", "j >= 0", "j", "0", "data[j] > v", "data[j]", "data", "j", "v", "{\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}", "data[j + 1] = data[j]", "data[j + 1]", "data", "j + 1", "j", "1", "data[j]", "data", "j", "j--", "j", "data[j + 1] = v", "data[j + 1]", "data", "j + 1", "j", "1", "v", "sb.append(disp(data)).append(\"\\n\")", "sb.append(disp(data)).append", "sb.append(disp(data))", "sb.append", "sb", "disp(data)", "disp", "data", "\"\\n\"", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "public static String disp(int[] data) {\n\t StringBuilder sb = new StringBuilder();\n \tfor (int k = 0; k < data.length; k++) {\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}\n\t return sb.toString();\n\t}", "disp", "{\n\t StringBuilder sb = new StringBuilder();\n \tfor (int k = 0; k < data.length; k++) {\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}\n\t return sb.toString();\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int k = 0; k < data.length; k++) {\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}", "int k = 0;", "int k = 0;", "k", "0", "k < data.length", "k", "data.length", "data", "data.length", "k++", "k++", "k", "{\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}", "{\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}", "sb.append(data[k])", "sb.append", "sb", "data[k]", "data", "k", "if (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}", "k != data.length - 1", "k", "data.length - 1", "data.length", "data", "data.length", "1", "{\n \t\t\tsb.append(\" \");\n \t\t}", "sb.append(\" \")", "sb.append", "sb", "\" \"", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "int[] data", "data", "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 int N = Integer.parseInt(br.readLine());\n\t String[] line = br.readLine().split(\" \");\n\t int[] data = new int[line.length];\n\n\t for (int i = 0; i < line.length; i++) {\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }\n\n\t StringBuilder sb = new StringBuilder();\n\t sb.append(disp(data)).append(\"\\n\");\n\n\t for (int i = 1; i <= N - 1; i++) {\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }\n\t System.out.print(sb.toString());\n\t}\n\n\tpublic static String disp(int[] data) {\n\t StringBuilder sb = new StringBuilder();\n \tfor (int k = 0; k < data.length; k++) {\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}\n\t return sb.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 int N = Integer.parseInt(br.readLine());\n\t String[] line = br.readLine().split(\" \");\n\t int[] data = new int[line.length];\n\n\t for (int i = 0; i < line.length; i++) {\n\t \tdata[i] = Integer.parseInt(line[i]);\n\t }\n\n\t StringBuilder sb = new StringBuilder();\n\t sb.append(disp(data)).append(\"\\n\");\n\n\t for (int i = 1; i <= N - 1; i++) {\n\t \tint v = data[i];\n\t \tint j = i - 1;\n\t \twhile (j >= 0 && data[j] > v) {\n\t \t\tdata[j + 1] = data[j];\n\t \t\tj--;\n\t \t}\n\t \tdata[j + 1] = v;\n\t\t sb.append(disp(data)).append(\"\\n\");\n\t }\n\t System.out.print(sb.toString());\n\t}\n\n\tpublic static String disp(int[] data) {\n\t StringBuilder sb = new StringBuilder();\n \tfor (int k = 0; k < data.length; k++) {\n\t \tsb.append(data[k]);\n \t\tif (k != data.length - 1) {\n \t\t\tsb.append(\" \");\n \t\t}\n \t}\n\t return sb.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)); int N = Integer.parseInt(br.readLine()); String[] line = br.readLine().split(" "); int[] data = new int[line.length]; for (int i = 0; i < line.length; i++) { data[i] = Integer.parseInt(line[i]); } StringBuilder sb = new StringBuilder(); sb.append(disp(data)).append("\n"); for (int i = 1; i <= N - 1; i++) { int v = data[i]; int j = i - 1; while (j >= 0 && data[j] > v) { data[j + 1] = data[j]; j--; } data[j + 1] = v; sb.append(disp(data)).append("\n"); } System.out.print(sb.toString()); } public static String disp(int[] data) { StringBuilder sb = new StringBuilder(); for (int k = 0; k < data.length; k++) { sb.append(data[k]); if (k != data.length - 1) { sb.append(" "); } } return sb.toString(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 29, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 6, 48 ], [ 48, 49 ], [ 6, 50 ], [ 50, 51 ], [ 142, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 54, 63 ], [ 63, 64 ], [ 63, 65 ], [ 54, 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 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 54, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 87, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 100, 103 ], [ 99, 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 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 99, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 52, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void sort(int[] a,int i){\n\t\tint key=a[i];\n\t\tint j=i-1;\n\t\twhile(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}\n\t\ta[j+1]=key;\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint[] a=new int[n];\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void sort(int[] a,int i){\n\t\tint key=a[i];\n\t\tint j=i-1;\n\t\twhile(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}\n\t\ta[j+1]=key;\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint[] a=new int[n];\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}\n\t}\n}", "Main", "public static void sort(int[] a,int i){\n\t\tint key=a[i];\n\t\tint j=i-1;\n\t\twhile(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}\n\t\ta[j+1]=key;\n\t}", "sort", "{\n\t\tint key=a[i];\n\t\tint j=i-1;\n\t\twhile(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}\n\t\ta[j+1]=key;\n\t}", "int key=a[i];", "key", "a[i]", "a", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}", "j>=0 && a[j]>key", "j>=0", "j", "0", "a[j]>key", "a[j]", "a", "j", "key", "{\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}", "a[j+1]=a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1]=key", "a[j+1]", "a", "j+1", "j", "1", "key", "int[] a", "a", "int i", "i", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint[] a=new int[n];\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint[] a=new int[n];\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] a=new int[n];", "a", "new int[n]", "n", "for (int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i]=sc.nextInt();\n\t\t}", "{\n\t\t\ta[i]=sc.nextInt();\n\t\t}", "a[i]=sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<n;i++){\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}", "{\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}", "sort(a,i)", "sort", "a", "i", "for(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<n-1", "k", "n-1", "n", "1", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}", "System.out.print(a[k]+\" \")", "System.out.print", "System.out", "System", "System.out", "a[k]+\" \"", "a[k]", "a", "k", "\" \"", "System.out.println(a[n-1])", "System.out.println", "System.out", "System", "System.out", "a[n-1]", "a", "n-1", "n", "1", "String[] args", "args", "public class Main {\n\tpublic static void sort(int[] a,int i){\n\t\tint key=a[i];\n\t\tint j=i-1;\n\t\twhile(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}\n\t\ta[j+1]=key;\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint[] a=new int[n];\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void sort(int[] a,int i){\n\t\tint key=a[i];\n\t\tint j=i-1;\n\t\twhile(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}\n\t\ta[j+1]=key;\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint[] a=new int[n];\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsort(a,i);\n\t\t\tfor(int k=0;k<n-1;k++){\n\t\t\t\tSystem.out.print(a[k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(a[n-1]);;\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void sort(int[] a,int i){ int key=a[i]; int j=i-1; while(j>=0 && a[j]>key){ a[j+1]=a[j]; j--; } a[j+1]=key; } public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[n]; for (int i=0;i<n;i++){ a[i]=sc.nextInt(); } for(int i=0;i<n;i++){ sort(a,i); for(int k=0;k<n-1;k++){ System.out.print(a[k]+" "); } System.out.println(a[n-1]);; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 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 ], [ 164, 5 ], [ 164, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 6, 11 ], [ 11, 12 ], [ 164, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 15, 24 ], [ 24, 25 ], [ 24, 26 ], [ 15, 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 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 15, 48 ], [ 48, 49 ], [ 49, 50 ], [ 15, 51 ], [ 51, 52 ], [ 15, 53 ], [ 53, 54 ], [ 15, 55 ], [ 55, 56 ], [ 55, 57 ], [ 15, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 91, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 70, 110 ], [ 110, 111 ], [ 110, 112 ], [ 164, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 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 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 137, 139 ], [ 133, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 140, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 115, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 159, 160 ], [ 113, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tprivate static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\tint v;\n\t\tint j;\n\t\tprintArray(nums);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}\n\t}\n\n\tprivate static void printArray(int[] array) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tprivate static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\tint v;\n\t\tint j;\n\t\tprintArray(nums);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}\n\t}\n\n\tprivate static void printArray(int[] array) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tsolve();\n\t}", "main", "{\n\t\tsolve();\n\t}", "solve()", "solve", "String[] args", "args", "private static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\tint v;\n\t\tint j;\n\t\tprintArray(nums);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}\n\t}", "solve", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\tint v;\n\t\tint j;\n\t\tprintArray(nums);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] nums = new int[n];", "nums", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnums[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tnums[i] = sc.nextInt();\n\t\t}", "nums[i] = sc.nextInt()", "nums[i]", "nums", "i", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "int v;", "v", "int j;", "j", "printArray(nums)", "printArray", "nums", "for (int i = 1; i < n; i++) {\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}", "{\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}", "v = nums[i]", "v", "nums[i]", "nums", "i", "j = i - 1", "j", "i - 1", "i", "1", "while (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}", "j >= 0 && nums[j] > v", "j >= 0", "j", "0", "nums[j] > v", "nums[j]", "nums", "j", "v", "{\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}", "nums[j + 1] = nums[j]", "nums[j + 1]", "nums", "j + 1", "j", "1", "nums[j]", "nums", "j", "j--", "j", "nums[j + 1] = v", "nums[j + 1]", "nums", "j + 1", "j", "1", "v", "printArray(nums)", "printArray", "nums", "private static void printArray(int[] array) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "printArray", "{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int i = 0; i < array.length; i++) {\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}", "{\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}", "sb.append(array[i])", "sb.append", "sb", "array[i]", "array", "i", "if (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}", "i != array.length - 1", "i", "array.length - 1", "array.length", "array", "array.length", "1", "{\n\t\t\t\tsb.append(\" \");\n\t\t\t}", "sb.append(\" \")", "sb.append", "sb", "\" \"", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "int[] array", "array", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tprivate static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\tint v;\n\t\tint j;\n\t\tprintArray(nums);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}\n\t}\n\n\tprivate static void printArray(int[] array) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tprivate static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\tint v;\n\t\tint j;\n\t\tprintArray(nums);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tv = nums[i];\n\t\t\tj = i - 1;\n\t\t\twhile (j >= 0 && nums[j] > v) {\n\t\t\t\tnums[j + 1] = nums[j];\n\t\t\t\tj--;\n\t\t\t\tnums[j + 1] = v;\n\t\t\t}\n\t\t\tprintArray(nums);\n\t\t}\n\t}\n\n\tprivate static void printArray(int[] array) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsb.append(array[i]);\n\t\t\tif (i != array.length - 1) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { solve(); } private static void solve() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] nums = new int[n]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } sc.close(); int v; int j; printArray(nums); for (int i = 1; i < n; i++) { v = nums[i]; j = i - 1; while (j >= 0 && nums[j] > v) { nums[j + 1] = nums[j]; j--; nums[j + 1] = v; } printArray(nums); } } private static void printArray(int[] array) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < array.length; i++) { sb.append(array[i]); if (i != array.length - 1) { sb.append(" "); } } System.out.println(sb.toString()); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 13, 11, 1, 2, 2, 17, 13, 2, 13, 18, 13, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 8, 2, 13, 17, 17, 17, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 130, 8 ], [ 130, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 11, 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 ], [ 58, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 55, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 64, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 55, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 55, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 95, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 113, 118 ], [ 112, 119 ], [ 119, 120 ], [ 119, 121 ], [ 55, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 9, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt();\n int arr[] = new int[size];\n for(int i = 0; i < size; i++) arr[i] = scan.nextInt();\n for(int i = 0; i < size; i++){\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt();\n int arr[] = new int[size];\n for(int i = 0; i < size; i++) arr[i] = scan.nextInt();\n for(int i = 0; i < size; i++){\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt();\n int arr[] = new int[size];\n for(int i = 0; i < size; i++) arr[i] = scan.nextInt();\n for(int i = 0; i < size; i++){\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt();\n int arr[] = new int[size];\n for(int i = 0; i < size; i++) arr[i] = scan.nextInt();\n for(int i = 0; i < size; i++){\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int size = scan.nextInt();", "size", "scan.nextInt()", "scan.nextInt", "scan", "int arr[] = new int[size];", "arr", "new int[size]", "size", "for(int i = 0; i < size; i++) arr[i] = scan.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "arr[i] = scan.nextInt();", "arr[i] = scan.nextInt()", "arr[i]", "arr", "i", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0; i < size; i++){\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "{\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }", "{\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }", "int tmp = arr[i]", "tmp", "arr[i]", "arr", "i", "j = i;", "j", "i", "for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];", ";", "0 < j && tmp <= arr[j - 1]", "0 < j", "0", "j", "tmp <= arr[j - 1]", "tmp", "arr[j - 1]", "arr", "j - 1", "j", "1", "j--", "j--", "j", "arr[j] = arr[j - 1];", "arr[j] = arr[j - 1]", "arr[j]", "arr", "j", "arr[j - 1]", "arr", "j - 1", "j", "1", "arr[j] = tmp", "arr[j]", "arr", "j", "tmp", "for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);", "j = 0;", "j = 0", "j", "0", "j < size", "j", "size", "j++", "j++", "j", "System.out.print((j == 0 ? \"\" : \" \") + arr[j]);", "System.out.print((j == 0 ? \"\" : \" \") + arr[j])", "System.out.print", "System.out", "System", "System.out", "(j == 0 ? \"\" : \" \") + arr[j]", "(j == 0 ? \"\" : \" \")", "j == 0", "j", "0", "\"\"", "\" \"", "arr[j]", "arr", "j", "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 scan = new Scanner(System.in);\n int size = scan.nextInt();\n int arr[] = new int[size];\n for(int i = 0; i < size; i++) arr[i] = scan.nextInt();\n for(int i = 0; i < size; i++){\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt();\n int arr[] = new int[size];\n for(int i = 0; i < size; i++) arr[i] = scan.nextInt();\n for(int i = 0; i < size; i++){\n int tmp = arr[i], j = i;\n for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1];\n arr[j] = tmp;\n for(j = 0; j < size; j++)\n System.out.print((j == 0 ? \"\" : \" \") + arr[j]);\n System.out.println();\n }\n }\n}", "Main" ]
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int size = scan.nextInt(); int arr[] = new int[size]; for(int i = 0; i < size; i++) arr[i] = scan.nextInt(); for(int i = 0; i < size; i++){ int tmp = arr[i], j = i; for(; 0 < j && tmp <= arr[j - 1]; j--) arr[j] = arr[j - 1]; arr[j] = tmp; for(j = 0; j < size; j++) System.out.print((j == 0 ? "" : " ") + arr[j]); System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 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, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 63, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 94, 95 ], [ 63, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 63, 103 ], [ 103, 104 ], [ 103, 105 ], [ 6, 106 ], [ 106, 107 ], [ 4, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 111, 121 ], [ 121, 122 ], [ 122, 123 ], [ 111, 124 ], [ 125, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 125, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 134, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 108, 155 ], [ 155, 156 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint c,d = 0;\n\t\tint[] array = new int[a];\n\t\t\n\t\tfor(int i=0;i<a;i++){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\toutput(array);\n\t\t\n\t\tfor(int b=1;b<array.length;b++){\n\t\t\tc = array[b];\n\t\t\td = b-1;\n\t\t\twhile(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}\n\t\t\tarray[d+1] = c;\n\t\t\toutput(array);\n\t\t}\n\t}\n\t\t\n\t\tstatic void output(int[] a){\n\t\t\tfor (int i=0; i<a.length; i++) {\n\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\tif(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint c,d = 0;\n\t\tint[] array = new int[a];\n\t\t\n\t\tfor(int i=0;i<a;i++){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\toutput(array);\n\t\t\n\t\tfor(int b=1;b<array.length;b++){\n\t\t\tc = array[b];\n\t\t\td = b-1;\n\t\t\twhile(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}\n\t\t\tarray[d+1] = c;\n\t\t\toutput(array);\n\t\t}\n\t}\n\t\t\n\t\tstatic void output(int[] a){\n\t\t\tfor (int i=0; i<a.length; i++) {\n\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\tif(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\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\tint a = sc.nextInt();\n\t\tint c,d = 0;\n\t\tint[] array = new int[a];\n\t\t\n\t\tfor(int i=0;i<a;i++){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\toutput(array);\n\t\t\n\t\tfor(int b=1;b<array.length;b++){\n\t\t\tc = array[b];\n\t\t\td = b-1;\n\t\t\twhile(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}\n\t\t\tarray[d+1] = c;\n\t\t\toutput(array);\n\t\t}\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint c,d = 0;\n\t\tint[] array = new int[a];\n\t\t\n\t\tfor(int i=0;i<a;i++){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\toutput(array);\n\t\t\n\t\tfor(int b=1;b<array.length;b++){\n\t\t\tc = array[b];\n\t\t\td = b-1;\n\t\t\twhile(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}\n\t\t\tarray[d+1] = c;\n\t\t\toutput(array);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int c", "c", "d = 0;", "d", "0", "int[] array = new int[a];", "array", "new int[a]", "a", "for(int i=0;i<a;i++){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "output(array)", "output", "array", "for(int b=1;b<array.length;b++){\n\t\t\tc = array[b];\n\t\t\td = b-1;\n\t\t\twhile(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}\n\t\t\tarray[d+1] = c;\n\t\t\toutput(array);\n\t\t}", "int b=1;", "int b=1;", "b", "1", "b<array.length", "b", "array.length", "array", "array.length", "b++", "b++", "b", "{\n\t\t\tc = array[b];\n\t\t\td = b-1;\n\t\t\twhile(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}\n\t\t\tarray[d+1] = c;\n\t\t\toutput(array);\n\t\t}", "{\n\t\t\tc = array[b];\n\t\t\td = b-1;\n\t\t\twhile(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}\n\t\t\tarray[d+1] = c;\n\t\t\toutput(array);\n\t\t}", "c = array[b]", "c", "array[b]", "array", "b", "d = b-1", "d", "b-1", "b", "1", "while(d>=0 && array[d] > c){\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}", "d>=0 && array[d] > c", "d>=0", "d", "0", "array[d] > c", "array[d]", "array", "d", "c", "{\n\t\t\t\tarray[d+1] = array[d];\n\t\t\t\td--;\n\t\t\t}", "array[d+1] = array[d]", "array[d+1]", "array", "d+1", "d", "1", "array[d]", "array", "d", "d--", "d", "array[d+1] = c", "array[d+1]", "array", "d+1", "d", "1", "c", "output(array)", "output", "array", "String[] args", "args", "static void output(int[] a){\n\t\t\tfor (int i=0; i<a.length; i++) {\n\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\tif(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "output", "{\n\t\t\tfor (int i=0; i<a.length; i++) {\n\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\tif(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for (int i=0; i<a.length; i++) {\n\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\tif(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\tif(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\tif(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "System.out.print(a[i])", "System.out.print", "System.out", "System", "System.out", "a[i]", "a", "i", "if(i<a.length-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "i<a.length-1", "i", "a.length-1", "a.length", "a", "a.length", "1", "{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] a", "a" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int c,d = 0; int[] array = new int[a]; for(int i=0;i<a;i++){ array[i] = sc.nextInt(); } output(array); for(int b=1;b<array.length;b++){ c = array[b]; d = b-1; while(d>=0 && array[d] > c){ array[d+1] = array[d]; d--; } array[d+1] = c; output(array); } } static void output(int[] a){ for (int i=0; i<a.length; i++) { System.out.print(a[i]); if(i<a.length-1){ System.out.print(" "); }else{ System.out.println(); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 23, 13, 12, 13, 30, 41, 13, 20, 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, 4, 18, 36, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 11, 1, 2, 2, 13, 17, 2, 18, 13, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 36, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 155, 5 ], [ 155, 6 ], [ 6, 7 ], [ 155, 8 ], [ 8, 9 ], [ 155, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 10, 16 ], [ 16, 17 ], [ 155, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 20, 53 ], [ 53, 54 ], [ 54, 55 ], [ 20, 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 ], [ 71, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 68, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 79, 90 ], [ 90, 91 ], [ 91, 92 ], [ 79, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 101, 102 ], [ 101, 103 ], [ 68, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 68, 111 ], [ 111, 112 ], [ 112, 113 ], [ 155, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 117, 128 ], [ 129, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 130, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 151, 152 ], [ 151, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tint n;\n\tint[] array;\n\tpublic static void main(String args[]) {\n\t\tMain main = new Main();\n\t}\n\tMain() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}\n\t\tthis.writeArray();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}\n\t}\n\tpublic void writeArray() {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tint n;\n\tint[] array;\n\tpublic static void main(String args[]) {\n\t\tMain main = new Main();\n\t}\n\tMain() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}\n\t\tthis.writeArray();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}\n\t}\n\tpublic void writeArray() {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}\n}", "Main", "int n;", "n", "int[] array;", "array", "public static void main(String args[]) {\n\t\tMain main = new Main();\n\t}", "main", "{\n\t\tMain main = new Main();\n\t}", "Main main = new Main();", "main", "new Main()", "String args[]", "args", "Main() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}\n\t\tthis.writeArray();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}\n\t}", "Main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}\n\t\tthis.writeArray();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "n = scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "array = new int[n]", "array", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarray[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tarray[i] = scan.nextInt();\n\t\t}", "array[i] = scan.nextInt()", "array[i]", "array", "i", "scan.nextInt()", "scan.nextInt", "scan", "this.writeArray()", "this.writeArray", "this", "for (int i = 1; i < n; i++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}", "{\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}", "int v = array[i];", "v", "array[i]", "array", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "for(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}", ";", "j >= 0 && array[j] > v", "j >= 0", "j", "0", "array[j] > v", "array[j]", "array", "j", "v", "j--", "j--", "j", "{\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}", "{\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "array[j+1] = v", "array[j+1]", "array", "j+1", "j", "1", "v", "this.writeArray()", "this.writeArray", "this", "public void writeArray() {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "writeArray", "{\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "for (int i = 0; i < n; i++) {\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}", "{\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}", "if (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);", "i < n - 1", "i", "n - 1", "n", "1", "System.out.print(array[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "array[i] + \" \"", "array[i]", "array", "i", "\" \"", "System.out.println(array[i])", "System.out.println", "System.out", "System", "System.out", "array[i]", "array", "i", "public class Main {\n\tint n;\n\tint[] array;\n\tpublic static void main(String args[]) {\n\t\tMain main = new Main();\n\t}\n\tMain() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}\n\t\tthis.writeArray();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}\n\t}\n\tpublic void writeArray() {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}\n}", "public class Main {\n\tint n;\n\tint[] array;\n\tpublic static void main(String args[]) {\n\t\tMain main = new Main();\n\t}\n\tMain() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}\n\t\tthis.writeArray();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = array[i];\n\t\t\tint j = i - 1;\n\t\t\tfor(; j >= 0 && array[j] > v; j--) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t\tthis.writeArray();\n\t\t}\n\t}\n\tpublic void writeArray() {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i < n - 1)\n\t\t\t\tSystem.out.print(array[i] + \" \");\n\t\t\telse\n\t\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { int n; int[] array; public static void main(String args[]) { Main main = new Main(); } Main() { Scanner scan = new Scanner(System.in); n = scan.nextInt(); array = new int[n]; for (int i = 0; i < n; i++) { array[i] = scan.nextInt(); } this.writeArray(); for (int i = 1; i < n; i++) { int v = array[i]; int j = i - 1; for(; j >= 0 && array[j] > v; j--) { array[j+1] = array[j]; } array[j+1] = v; this.writeArray(); } } public void writeArray() { for (int i = 0; i < n; i++) { if (i < n - 1) System.out.print(array[i] + " "); else System.out.println(array[i]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 13, 17, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 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 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 52, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 52, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 52, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 52, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 117 ], [ 117, 118 ], [ 52, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 8, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 126, 136 ], [ 136, 137 ], [ 137, 138 ], [ 126, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 8, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 150, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 157, 159 ], [ 6, 160 ], [ 160, 161 ], [ 0, 162 ], [ 162, 163 ], [ 162, 164 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++)A[i]=cin.nextInt();\n\t\t\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}\n\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\tSystem.out.println(A[n-1]);\n\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++)A[i]=cin.nextInt();\n\t\t\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}\n\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\tSystem.out.println(A[n-1]);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++)A[i]=cin.nextInt();\n\t\t\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}\n\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\tSystem.out.println(A[n-1]);\n\n\t}", "main", "{\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++)A[i]=cin.nextInt();\n\t\t\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}\n\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\tSystem.out.println(A[n-1]);\n\n\t}", "Scanner cin=new Scanner(System.in);", "cin", "new Scanner(System.in)", "int n=cin.nextInt()", "n", "cin.nextInt()", "cin.nextInt", "cin", "A[]=new int[n];", "A", "new int[n]", "n", "for(int i=0;i<n;i++)A[i]=cin.nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "A[i]=cin.nextInt();", "A[i]=cin.nextInt()", "A[i]", "A", "i", "cin.nextInt()", "cin.nextInt", "cin", "for(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}", "{\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}", "for(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");", "int j=0;", "int j=0;", "j", "0", "j<n-1", "j", "n-1", "n", "1", "j++", "j++", "j", "System.out.print(A[j]+\" \");", "System.out.print(A[j]+\" \")", "System.out.print", "System.out", "System", "System.out", "A[j]+\" \"", "A[j]", "A", "j", "\" \"", "System.out.println(A[n-1])", "System.out.println", "System.out", "System", "System.out", "A[n-1]", "A", "n-1", "n", "1", "int v=A[i];", "v", "A[i]", "A", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0 && A[j]>v", "j>=0", "j", "0", "A[j]>v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1]=A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1]=v", "A[j+1]", "A", "j+1", "j", "1", "v", "for(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");", "int j=0;", "int j=0;", "j", "0", "j<n-1", "j", "n-1", "n", "1", "j++", "j++", "j", "System.out.print(A[j]+\" \");", "System.out.print(A[j]+\" \")", "System.out.print", "System.out", "System", "System.out", "A[j]+\" \"", "A[j]", "A", "j", "\" \"", "System.out.println(A[n-1])", "System.out.println", "System.out", "System", "System.out", "A[n-1]", "A", "n-1", "n", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++)A[i]=cin.nextInt();\n\t\t\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}\n\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\tSystem.out.println(A[n-1]);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++)A[i]=cin.nextInt();\n\t\t\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\t\tSystem.out.println(A[n-1]);\n\t\t\t\n\t\t\tint v=A[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0 && A[j]>v) {\n\t\t\t\tA[j+1]=A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1]=v;\n\t\t}\n\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\n\t\tSystem.out.println(A[n-1]);\n\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner cin=new Scanner(System.in); int n=cin.nextInt(),A[]=new int[n]; for(int i=0;i<n;i++)A[i]=cin.nextInt(); for(int i=1;i<n;i++) { for(int j=0;j<n-1;j++)System.out.print(A[j]+" "); System.out.println(A[n-1]); int v=A[i]; int j=i-1; while(j>=0 && A[j]>v) { A[j+1]=A[j]; j--; } A[j+1]=v; } for(int j=0;j<n-1;j++)System.out.print(A[j]+" "); System.out.println(A[n-1]); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 20, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 2, 8, 2, 13, 17, 17, 17, 18, 13, 13, 4, 18, 13, 17, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 175, 8 ], [ 175, 9 ], [ 9, 10 ], [ 9, 11 ], [ 175, 12 ], [ 12, 13 ], [ 175, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 16, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 26, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 16, 48 ], [ 48, 49 ], [ 48, 50 ], [ 16, 51 ], [ 51, 52 ], [ 51, 53 ], [ 16, 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 ], [ 69, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 66, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 66, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 66, 106 ], [ 106, 107 ], [ 106, 108 ], [ 16, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 175, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 118, 128 ], [ 128, 129 ], [ 129, 130 ], [ 118, 131 ], [ 132, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 137, 142 ], [ 136, 143 ], [ 143, 144 ], [ 143, 145 ], [ 117, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 115, 150 ], [ 150, 151 ], [ 175, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 152, 164 ], [ 164, 165 ], [ 175, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 166, 172 ], [ 172, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tStringBuilder out;\n\n\tvoid run() {\n\t\tint N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tout = new StringBuilder();\n\t\tprint(A);\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}\n\t\tSystem.out.print(out);\n\t}\n\n\tvoid print(int[] A) {\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}\n\t\tout.append(\"\\n\");\n\t}\n\n\tvoid debug(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tStringBuilder out;\n\n\tvoid run() {\n\t\tint N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tout = new StringBuilder();\n\t\tprint(A);\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}\n\t\tSystem.out.print(out);\n\t}\n\n\tvoid print(int[] A) {\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}\n\t\tout.append(\"\\n\");\n\t}\n\n\tvoid debug(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder out;", "out", "void run() {\n\t\tint N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tout = new StringBuilder();\n\t\tprint(A);\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}\n\t\tSystem.out.print(out);\n\t}", "run", "{\n\t\tint N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tout = new StringBuilder();\n\t\tprint(A);\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}\n\t\tSystem.out.print(out);\n\t}", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] A = new int[N];", "A", "new int[N]", "N", "for (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tA[i] = sc.nextInt();\n\t\t}", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "out = new StringBuilder()", "out", "new StringBuilder()", "print(A)", "print", "A", "for (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j + 1] = A[j]", "A[j + 1]", "A", "j + 1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j + 1] = v", "A[j + 1]", "A", "j + 1", "j", "1", "v", "print(A)", "print", "A", "System.out.print(out)", "System.out.print", "System.out", "System", "System.out", "out", "void print(int[] A) {\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}\n\t\tout.append(\"\\n\");\n\t}", "print", "{\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}\n\t\tout.append(\"\\n\");\n\t}", "for (int i = 0; i < A.length; i++) {\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}", "{\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}", "out.append((i == 0 ? \"\" : \" \") + A[i])", "out.append", "out", "(i == 0 ? \"\" : \" \") + A[i]", "(i == 0 ? \"\" : \" \")", "i == 0", "i", "0", "\"\"", "\" \"", "A[i]", "A", "i", "out.append(\"\\n\")", "out.append", "out", "\"\\n\"", "int[] A", "A", "void debug(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}", "debug", "{\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}", "System.out.println(Arrays.deepToString(o))", "System.out.println", "System.out", "System", "System.out", "Arrays.deepToString(o)", "Arrays.deepToString", "Arrays", "o", "Object... o", "o", "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\tScanner sc = new Scanner(System.in);\n\tStringBuilder out;\n\n\tvoid run() {\n\t\tint N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tout = new StringBuilder();\n\t\tprint(A);\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}\n\t\tSystem.out.print(out);\n\t}\n\n\tvoid print(int[] A) {\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}\n\t\tout.append(\"\\n\");\n\t}\n\n\tvoid debug(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tStringBuilder out;\n\n\tvoid run() {\n\t\tint N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tout = new StringBuilder();\n\t\tprint(A);\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\tprint(A);\n\t\t}\n\t\tSystem.out.print(out);\n\t}\n\n\tvoid print(int[] A) {\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tout.append((i == 0 ? \"\" : \" \") + A[i]);\n\t\t}\n\t\tout.append(\"\\n\");\n\t}\n\n\tvoid debug(Object... o) {\n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); StringBuilder out; void run() { int N = sc.nextInt(); int[] A = new int[N]; for (int i = 0; i < A.length; i++) { A[i] = sc.nextInt(); } out = new StringBuilder(); print(A); for (int i = 1; i < N; i++) { int v = A[i]; int j = i - 1; while (j >= 0 && A[j] > v) { A[j + 1] = A[j]; j--; } A[j + 1] = v; print(A); } System.out.print(out); } void print(int[] A) { for (int i = 0; i < A.length; i++) { out.append((i == 0 ? "" : " ") + A[i]); } out.append("\n"); } void debug(Object... o) { System.out.println(Arrays.deepToString(o)); } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 162, 5 ], [ 162, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 6, 47 ], [ 47, 48 ], [ 162, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 66, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 66, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 66, 106 ], [ 106, 107 ], [ 106, 108 ], [ 49, 109 ], [ 109, 110 ], [ 162, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 114, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 134, 136 ], [ 128, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 137, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 137, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 111, 159 ], [ 159, 160 ], [ 0, 161 ], [ 161, 162 ], [ 161, 163 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] a = new int[N];\n for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }\n print(a);\n insertionSort(a);\n }\n\n private static void insertionSort(int[] a) {\n for (int i = 1; i < a.length; i++) {\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }\n }\n\n private static void print(int[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\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 scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] a = new int[N];\n for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }\n print(a);\n insertionSort(a);\n }\n\n private static void insertionSort(int[] a) {\n for (int i = 1; i < a.length; i++) {\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }\n }\n\n private static void print(int[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] a = new int[N];\n for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }\n print(a);\n insertionSort(a);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] a = new int[N];\n for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }\n print(a);\n insertionSort(a);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] a = new int[N];", "a", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n a[i] = scanner.nextInt();\n }", "{\n a[i] = scanner.nextInt();\n }", "a[i] = scanner.nextInt()", "a[i]", "a", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "print(a)", "print", "a", "insertionSort(a)", "insertionSort", "a", "String[] args", "args", "private static void insertionSort(int[] a) {\n for (int i = 1; i < a.length; i++) {\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }\n }", "insertionSort", "{\n for (int i = 1; i < a.length; i++) {\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }\n }", "for (int i = 1; i < a.length; i++) {\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }", "{\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }", "int v = a[i];", "v", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }", "j >= 0 && a[j] > v", "j >= 0", "j", "0", "a[j] > v", "a[j]", "a", "j", "v", "{\n a[j + 1] = a[j];\n j--;\n }", "a[j + 1] = a[j]", "a[j + 1]", "a", "j + 1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j + 1] = v", "a[j + 1]", "a", "j + 1", "j", "1", "v", "print(a)", "print", "a", "int[] a", "a", "private static void print(int[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }\n }", "print", "{\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }\n }", "for (int i = 0; i < a.length; i++) {\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }", "{\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }", "System.out.print(a[i])", "System.out.print", "System.out", "System", "System.out", "a[i]", "a", "i", "if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }", "i < a.length - 1", "i", "a.length - 1", "a.length", "a", "a.length", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "{\n System.out.println(\"\");\n }", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int[] a", "a", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] a = new int[N];\n for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }\n print(a);\n insertionSort(a);\n }\n\n private static void insertionSort(int[] a) {\n for (int i = 1; i < a.length; i++) {\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }\n }\n\n private static void print(int[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] a = new int[N];\n for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }\n print(a);\n insertionSort(a);\n }\n\n private static void insertionSort(int[] a) {\n for (int i = 1; i < a.length; i++) {\n int v = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > v) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = v;\n print(a);\n }\n }\n\n private static void print(int[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[i]);\n if (i < a.length - 1) {\n System.out.print(\" \");\n } else {\n System.out.println(\"\");\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = scanner.nextInt(); } print(a); insertionSort(a); } private static void insertionSort(int[] a) { for (int i = 1; i < a.length; i++) { int v = a[i]; int j = i - 1; while (j >= 0 && a[j] > v) { a[j + 1] = a[j]; j--; } a[j + 1] = v; print(a); } } private static void print(int[] a) { for (int i = 0; i < a.length; i++) { System.out.print(a[i]); if (i < a.length - 1) { System.out.print(" "); } else { System.out.println(""); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 13, 13, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 2, 18, 13, 2, 18, 13, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 166, 8 ], [ 166, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 44, 47 ], [ 9, 48 ], [ 48, 49 ], [ 166, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 53, 65 ], [ 65, 66 ], [ 66, 67 ], [ 53, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 69, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 69, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 83, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 69, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 52, 112 ], [ 112, 113 ], [ 112, 114 ], [ 50, 115 ], [ 115, 116 ], [ 50, 117 ], [ 117, 118 ], [ 166, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 122, 134 ], [ 134, 135 ], [ 135, 136 ], [ 122, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 121, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 154, 162 ], [ 119, 163 ], [ 163, 164 ], [ 0, 165 ], [ 165, 166 ], [ 165, 167 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n// Get numbers\n int n = input.nextInt();\n int[] nums = new int[n];\n\n// fill array\n for(int i = 0; i < n; i++){\n nums[i] = input.nextInt();\n }\n\n insertSort(n, nums);\n }\n\n public static void insertSort(int n, int[] nums){\n for(int i = 1; i<= nums.length-1; i++){\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }\n printHelp(nums);\n }\n\n private static void printHelp(int[] nums){\n for(int i = 0; i < nums.length - 1; i++){\n System.out.print(nums[i] + \" \");\n }\n System.out.print(nums[nums.length-1] + \"\\n\");\n }\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n// Get numbers\n int n = input.nextInt();\n int[] nums = new int[n];\n\n// fill array\n for(int i = 0; i < n; i++){\n nums[i] = input.nextInt();\n }\n\n insertSort(n, nums);\n }\n\n public static void insertSort(int n, int[] nums){\n for(int i = 1; i<= nums.length-1; i++){\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }\n printHelp(nums);\n }\n\n private static void printHelp(int[] nums){\n for(int i = 0; i < nums.length - 1; i++){\n System.out.print(nums[i] + \" \");\n }\n System.out.print(nums[nums.length-1] + \"\\n\");\n }\n}", "Main", "public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n// Get numbers\n int n = input.nextInt();\n int[] nums = new int[n];\n\n// fill array\n for(int i = 0; i < n; i++){\n nums[i] = input.nextInt();\n }\n\n insertSort(n, nums);\n }", "main", "{\n Scanner input = new Scanner(System.in);\n// Get numbers\n int n = input.nextInt();\n int[] nums = new int[n];\n\n// fill array\n for(int i = 0; i < n; i++){\n nums[i] = input.nextInt();\n }\n\n insertSort(n, nums);\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int n = input.nextInt();", "n", "input.nextInt()", "input.nextInt", "input", "int[] nums = new int[n];", "nums", "new int[n]", "n", "for(int i = 0; i < n; i++){\n nums[i] = input.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n nums[i] = input.nextInt();\n }", "{\n nums[i] = input.nextInt();\n }", "nums[i] = input.nextInt()", "nums[i]", "nums", "i", "input.nextInt()", "input.nextInt", "input", "insertSort(n, nums)", "insertSort", "n", "nums", "String[] args", "args", "public static void insertSort(int n, int[] nums){\n for(int i = 1; i<= nums.length-1; i++){\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }\n printHelp(nums);\n }", "insertSort", "{\n for(int i = 1; i<= nums.length-1; i++){\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }\n printHelp(nums);\n }", "for(int i = 1; i<= nums.length-1; i++){\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }", "int i = 1;", "int i = 1;", "i", "1", "i<= nums.length-1", "i", "nums.length-1", "nums.length", "nums", "nums.length", "1", "i++", "i++", "i", "{\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }", "{\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }", "printHelp(nums)", "printHelp", "nums", "int key = nums[i];", "key", "nums[i]", "nums", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }", "j >= 0 && nums[j] > key", "j >= 0", "j", "0", "nums[j] > key", "nums[j]", "nums", "j", "key", "{\n nums[j+1] = nums[j];\n j--;\n }", "nums[j+1] = nums[j]", "nums[j+1]", "nums", "j+1", "j", "1", "nums[j]", "nums", "j", "j--", "j", "nums[j+1] = key", "nums[j+1]", "nums", "j+1", "j", "1", "key", "printHelp(nums)", "printHelp", "nums", "int n", "n", "int[] nums", "nums", "private static void printHelp(int[] nums){\n for(int i = 0; i < nums.length - 1; i++){\n System.out.print(nums[i] + \" \");\n }\n System.out.print(nums[nums.length-1] + \"\\n\");\n }", "printHelp", "{\n for(int i = 0; i < nums.length - 1; i++){\n System.out.print(nums[i] + \" \");\n }\n System.out.print(nums[nums.length-1] + \"\\n\");\n }", "for(int i = 0; i < nums.length - 1; i++){\n System.out.print(nums[i] + \" \");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < nums.length - 1", "i", "nums.length - 1", "nums.length", "nums", "nums.length", "1", "i++", "i++", "i", "{\n System.out.print(nums[i] + \" \");\n }", "{\n System.out.print(nums[i] + \" \");\n }", "System.out.print(nums[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "nums[i] + \" \"", "nums[i]", "nums", "i", "\" \"", "System.out.print(nums[nums.length-1] + \"\\n\")", "System.out.print", "System.out", "System", "System.out", "nums[nums.length-1] + \"\\n\"", "nums[nums.length-1]", "nums", "nums.length-1", "nums.length", "nums", "nums.length", "1", "\"\\n\"", "int[] nums", "nums", "public class Main {\n public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n// Get numbers\n int n = input.nextInt();\n int[] nums = new int[n];\n\n// fill array\n for(int i = 0; i < n; i++){\n nums[i] = input.nextInt();\n }\n\n insertSort(n, nums);\n }\n\n public static void insertSort(int n, int[] nums){\n for(int i = 1; i<= nums.length-1; i++){\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }\n printHelp(nums);\n }\n\n private static void printHelp(int[] nums){\n for(int i = 0; i < nums.length - 1; i++){\n System.out.print(nums[i] + \" \");\n }\n System.out.print(nums[nums.length-1] + \"\\n\");\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n// Get numbers\n int n = input.nextInt();\n int[] nums = new int[n];\n\n// fill array\n for(int i = 0; i < n; i++){\n nums[i] = input.nextInt();\n }\n\n insertSort(n, nums);\n }\n\n public static void insertSort(int n, int[] nums){\n for(int i = 1; i<= nums.length-1; i++){\n printHelp(nums);\n int key = nums[i];\n // insert A[i] into the sorted sequence A[0,...,j-1]\n int j = i - 1;\n while(j >= 0 && nums[j] > key){\n nums[j+1] = nums[j];\n j--;\n }\n nums[j+1] = key;\n }\n printHelp(nums);\n }\n\n private static void printHelp(int[] nums){\n for(int i = 0; i < nums.length - 1; i++){\n System.out.print(nums[i] + \" \");\n }\n System.out.print(nums[nums.length-1] + \"\\n\");\n }\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner input = new Scanner(System.in); // Get numbers int n = input.nextInt(); int[] nums = new int[n]; // fill array for(int i = 0; i < n; i++){ nums[i] = input.nextInt(); } insertSort(n, nums); } public static void insertSort(int n, int[] nums){ for(int i = 1; i<= nums.length-1; i++){ printHelp(nums); int key = nums[i]; // insert A[i] into the sorted sequence A[0,...,j-1] int j = i - 1; while(j >= 0 && nums[j] > key){ nums[j+1] = nums[j]; j--; } nums[j+1] = key; } printHelp(nums); } private static void printHelp(int[] nums){ for(int i = 0; i < nums.length - 1; i++){ System.out.print(nums[i] + " "); } System.out.print(nums[nums.length-1] + "\n"); } }
[ 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, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 18, 13, 2, 18, 13, 13, 17, 29, 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 ], [ 181, 11 ], [ 181, 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 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 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 ], [ 84, 86 ], [ 81, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 81, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 102, 112 ], [ 112, 113 ], [ 81, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 81, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 12, 129 ], [ 129, 130 ], [ 181, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 137, 149 ], [ 149, 150 ], [ 150, 151 ], [ 137, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 157, 159 ], [ 153, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 133, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 133, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 131, 178 ], [ 178, 179 ], [ 0, 180 ], [ 180, 181 ], [ 180, 182 ] ]
[ "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 NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\n\t\tSystem.out.println(toString(arr));\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}\n\n\t}\n\n\tstatic String toString(int[] arr){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < arr.length - 1;i++){\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tsb.append(arr[arr.length -1]);\n\t\treturn sb.toString();\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 NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\n\t\tSystem.out.println(toString(arr));\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}\n\n\t}\n\n\tstatic String toString(int[] arr){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < arr.length - 1;i++){\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tsb.append(arr[arr.length -1]);\n\t\treturn sb.toString();\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\n\t\tSystem.out.println(toString(arr));\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\n\t\tSystem.out.println(toString(arr));\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}\n\n\t}", "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", "String[] strArr = br.readLine().split(\" \");", "strArr", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for(int i = 0;i < n;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}", "{\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}", "arr[i] = Integer.parseInt(strArr[i])", "arr[i]", "arr", "i", "Integer.parseInt(strArr[i])", "Integer.parseInt", "Integer", "strArr[i]", "strArr", "i", "System.out.println(toString(arr))", "System.out.println", "System.out", "System", "System.out", "toString(arr)", "toString", "arr", "for(int i = 1;i < n;i++){\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}", "{\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}", "int v = arr[i];", "v", "arr[i]", "arr", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && arr[j] > v", "j >= 0", "j", "0", "arr[j] > v", "arr[j]", "arr", "j", "v", "{\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}", "arr[j + 1] = arr[j]", "arr[j + 1]", "arr", "j + 1", "j", "1", "arr[j]", "arr", "j", "j--", "j", "arr[j + 1] = v", "arr[j + 1]", "arr", "j + 1", "j", "1", "v", "System.out.println(toString(arr))", "System.out.println", "System.out", "System", "System.out", "toString(arr)", "toString", "arr", "String[] args", "args", "static String toString(int[] arr){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < arr.length - 1;i++){\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tsb.append(arr[arr.length -1]);\n\t\treturn sb.toString();\n\t}", "toString", "{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < arr.length - 1;i++){\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tsb.append(arr[arr.length -1]);\n\t\treturn sb.toString();\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int i = 0;i < arr.length - 1;i++){\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length - 1", "i", "arr.length - 1", "arr.length", "arr", "arr.length", "1", "i++", "i++", "i", "{\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "{\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "sb.append(arr[i])", "sb.append", "sb", "arr[i]", "arr", "i", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(arr[arr.length -1])", "sb.append", "sb", "arr[arr.length -1]", "arr", "arr.length -1", "arr.length", "arr", "arr.length", "1", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "int[] arr", "arr", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\n\t\tSystem.out.println(toString(arr));\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}\n\n\t}\n\n\tstatic String toString(int[] arr){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < arr.length - 1;i++){\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tsb.append(arr[arr.length -1]);\n\t\treturn sb.toString();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\n\t\tSystem.out.println(toString(arr));\n\t\tfor(int i = 1;i < n;i++){\n\t\t\tint v = arr[i];\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && arr[j] > v){\n\t\t\t\tarr[j + 1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j + 1] = v;\n\t\t\tSystem.out.println(toString(arr));\n\t\t}\n\n\t}\n\n\tstatic String toString(int[] arr){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < arr.length - 1;i++){\n\t\t\tsb.append(arr[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\tsb.append(arr[arr.length -1]);\n\t\treturn sb.toString();\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 NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] strArr = br.readLine().split(" "); int[] arr = new int[n]; for(int i = 0;i < n;i++){ arr[i] = Integer.parseInt(strArr[i]); } System.out.println(toString(arr)); for(int i = 1;i < n;i++){ int v = arr[i]; int j = i - 1; while(j >= 0 && arr[j] > v){ arr[j + 1] = arr[j]; j--; } arr[j + 1] = v; System.out.println(toString(arr)); } } static String toString(int[] arr){ StringBuilder sb = new StringBuilder(); for(int i = 0;i < arr.length - 1;i++){ sb.append(arr[i]); sb.append(" "); } sb.append(arr[arr.length -1]); return sb.toString(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 20, 41, 13, 4, 18, 13, 13, 41, 13, 2, 13, 17, 11, 1, 2, 2, 13, 17, 2, 4, 18, 13, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 13, 4, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 13, 23, 13, 23, 13, 6, 13, 41, 13, 20, 12, 13, 30, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 29, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 4, 18, 13, 17, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 18, 13, 13, 29, 13, 29, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 20, 38 ], [ 38, 39 ], [ 39, 40 ], [ 18, 41 ], [ 41, 42 ], [ 16, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 67, 72 ], [ 45, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 81, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 45, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 103, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 103, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 124, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 118, 133 ], [ 134, 134 ], [ 103, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 103, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 142, 144 ], [ 139, 145 ], [ 103, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 146, 156 ], [ 156, 157 ], [ 157, 158 ], [ 146, 159 ], [ 160, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 164, 169 ], [ 103, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 178, 182 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 43, 186 ], [ 186, 187 ], [ 43, 188 ], [ 188, 189 ], [ 0, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 195, 196 ], [ 195, 197 ], [ 190, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 204, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 214, 217 ], [ 217, 218 ], [ 218, 219 ], [ 200, 220 ], [ 220, 221 ], [ 190, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 225, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 235, 242 ], [ 232, 243 ], [ 243, 244 ], [ 243, 245 ], [ 232, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 246, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 253, 255 ], [ 246, 256 ], [ 256, 257 ], [ 257, 258 ], [ 246, 259 ], [ 260, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 267, 268 ], [ 267, 269 ], [ 232, 270 ], [ 270, 271 ], [ 224, 272 ], [ 272, 273 ], [ 190, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 277, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tInput stdIn = new Input();\n\n\t\tint n = stdIn.getValue();\n\t\tList<Integer> values = stdIn.getLine();\n\n\t\tinsertionSort(values, n);\n\n\t\tstdIn.close();\n\t}\n\n\tpublic static void insertionSort(List<Integer> values, int n) {\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\tsb2.append(values.get(k) + \" \");\n\t\t}\n\t\tSystem.out.println(sb2.delete(sb2.length()-1, sb2.length()));\n\t\tfor (int i = 1; i < values.size(); i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint v = values.get(i);\n\t\t\tint j = i - 1;\n\t\t\tfor (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}\n\t\t\tvalues.remove(i);\n\t\t\tvalues.add(j+1, v);\n\n\t\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(sb.delete(sb.length()-1, sb.length()));\n\t\t}\n\t}\n}\n\nclass Input {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\tpublic Input() {\n\t}\n\n\tpublic int getValue() {\n\t\tint n = 0;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn n;\n\t}\n\n\tpublic List<Integer> getLine() {\n\t\ttry {\n\t\t\tString[] s = br.readLine().trim().split(\" \");\n\t\t\tList<Integer> ary = new ArrayList<>();\n\t\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}\n\t\t\treturn ary;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic void close() {\n\t\ttry {\n\t\t\tbr.close();\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", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tInput stdIn = new Input();\n\n\t\tint n = stdIn.getValue();\n\t\tList<Integer> values = stdIn.getLine();\n\n\t\tinsertionSort(values, n);\n\n\t\tstdIn.close();\n\t}\n\n\tpublic static void insertionSort(List<Integer> values, int n) {\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\tsb2.append(values.get(k) + \" \");\n\t\t}\n\t\tSystem.out.println(sb2.delete(sb2.length()-1, sb2.length()));\n\t\tfor (int i = 1; i < values.size(); i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint v = values.get(i);\n\t\t\tint j = i - 1;\n\t\t\tfor (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}\n\t\t\tvalues.remove(i);\n\t\t\tvalues.add(j+1, v);\n\n\t\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(sb.delete(sb.length()-1, sb.length()));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tInput stdIn = new Input();\n\n\t\tint n = stdIn.getValue();\n\t\tList<Integer> values = stdIn.getLine();\n\n\t\tinsertionSort(values, n);\n\n\t\tstdIn.close();\n\t}", "main", "{\n\n\t\tInput stdIn = new Input();\n\n\t\tint n = stdIn.getValue();\n\t\tList<Integer> values = stdIn.getLine();\n\n\t\tinsertionSort(values, n);\n\n\t\tstdIn.close();\n\t}", "Input stdIn = new Input();", "stdIn", "new Input()", "int n = stdIn.getValue();", "n", "stdIn.getValue()", "stdIn.getValue", "stdIn", "List<Integer> values = stdIn.getLine();", "values", "stdIn.getLine()", "stdIn.getLine", "stdIn", "insertionSort(values, n)", "insertionSort", "values", "n", "stdIn.close()", "stdIn.close", "stdIn", "String[] args", "args", "public static void insertionSort(List<Integer> values, int n) {\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\tsb2.append(values.get(k) + \" \");\n\t\t}\n\t\tSystem.out.println(sb2.delete(sb2.length()-1, sb2.length()));\n\t\tfor (int i = 1; i < values.size(); i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint v = values.get(i);\n\t\t\tint j = i - 1;\n\t\t\tfor (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}\n\t\t\tvalues.remove(i);\n\t\t\tvalues.add(j+1, v);\n\n\t\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(sb.delete(sb.length()-1, sb.length()));\n\t\t}\n\t}", "insertionSort", "{\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\tsb2.append(values.get(k) + \" \");\n\t\t}\n\t\tSystem.out.println(sb2.delete(sb2.length()-1, sb2.length()));\n\t\tfor (int i = 1; i < values.size(); i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint v = values.get(i);\n\t\t\tint j = i - 1;\n\t\t\tfor (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}\n\t\t\tvalues.remove(i);\n\t\t\tvalues.add(j+1, v);\n\n\t\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(sb.delete(sb.length()-1, sb.length()));\n\t\t}\n\t}", "StringBuilder sb2 = new StringBuilder();", "sb2", "new StringBuilder()", "for(int k = 0; k < values.size();k++) {\n\t\t\tsb2.append(values.get(k) + \" \");\n\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < values.size()", "k", "values.size()", "values.size", "values", "k++", "k++", "k", "{\n\t\t\tsb2.append(values.get(k) + \" \");\n\t\t}", "{\n\t\t\tsb2.append(values.get(k) + \" \");\n\t\t}", "sb2.append(values.get(k) + \" \")", "sb2.append", "sb2", "values.get(k) + \" \"", "values.get(k)", "values.get", "values", "k", "\" \"", "System.out.println(sb2.delete(sb2.length()-1, sb2.length()))", "System.out.println", "System.out", "System", "System.out", "sb2.delete(sb2.length()-1, sb2.length())", "sb2.delete", "sb2", "sb2.length()-1", "sb2.length()", "sb2.length", "sb2", "1", "sb2.length()", "sb2.length", "sb2", "for (int i = 1; i < values.size(); i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint v = values.get(i);\n\t\t\tint j = i - 1;\n\t\t\tfor (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}\n\t\t\tvalues.remove(i);\n\t\t\tvalues.add(j+1, v);\n\n\t\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(sb.delete(sb.length()-1, sb.length()));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < values.size()", "i", "values.size()", "values.size", "values", "i++", "i++", "i", "{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint v = values.get(i);\n\t\t\tint j = i - 1;\n\t\t\tfor (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}\n\t\t\tvalues.remove(i);\n\t\t\tvalues.add(j+1, v);\n\n\t\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(sb.delete(sb.length()-1, sb.length()));\n\t\t}", "{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint v = values.get(i);\n\t\t\tint j = i - 1;\n\t\t\tfor (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}\n\t\t\tvalues.remove(i);\n\t\t\tvalues.add(j+1, v);\n\n\t\t\tfor(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(sb.delete(sb.length()-1, sb.length()));\n\t\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int v = values.get(i);", "v", "values.get(i)", "values.get", "values", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "for (; j >= 0 && values.get(j) > v; j--) {\n\t\t\t}", ";", "j >= 0 && values.get(j) > v", "j >= 0", "j", "0", "values.get(j) > v", "values.get(j)", "values.get", "values", "j", "v", "j--", "j--", "j", "{\n\t\t\t}", "{\n\t\t\t}", "values.remove(i)", "values.remove", "values", "i", "values.add(j+1, v)", "values.add", "values", "j+1", "j", "1", "v", "for(int k = 0; k < values.size();k++) {\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < values.size()", "k", "values.size()", "values.size", "values", "k++", "k++", "k", "{\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}", "{\n\t\t\t\tsb.append(values.get(k) + \" \");\n\t\t\t}", "sb.append(values.get(k) + \" \")", "sb.append", "sb", "values.get(k) + \" \"", "values.get(k)", "values.get", "values", "k", "\" \"", "System.out.println(sb.delete(sb.length()-1, sb.length()))", "System.out.println", "System.out", "System", "System.out", "sb.delete(sb.length()-1, sb.length())", "sb.delete", "sb", "sb.length()-1", "sb.length()", "sb.length", "sb", "1", "sb.length()", "sb.length", "sb", "List<Integer> values", "values", "int n", "n", "class Input {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\tpublic Input() {\n\t}\n\n\tpublic int getValue() {\n\t\tint n = 0;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn n;\n\t}\n\n\tpublic List<Integer> getLine() {\n\t\ttry {\n\t\t\tString[] s = br.readLine().trim().split(\" \");\n\t\t\tList<Integer> ary = new ArrayList<>();\n\t\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}\n\t\t\treturn ary;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}\n\n\tpublic void close() {\n\t\ttry {\n\t\t\tbr.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Input", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "public Input() {\n\t}", "Input", "{\n\t}", "public int getValue() {\n\t\tint n = 0;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn n;\n\t}", "getValue", "{\n\t\tint n = 0;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn n;\n\t}", "int n = 0;", "n", "0", "try {\n\t\t\tn = Integer.parseInt(br.readLine());\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\tn = Integer.parseInt(br.readLine());\n\t\t}", "n = Integer.parseInt(br.readLine())", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "return n;", "n", "public List<Integer> getLine() {\n\t\ttry {\n\t\t\tString[] s = br.readLine().trim().split(\" \");\n\t\t\tList<Integer> ary = new ArrayList<>();\n\t\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}\n\t\t\treturn ary;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "getLine", "{\n\t\ttry {\n\t\t\tString[] s = br.readLine().trim().split(\" \");\n\t\t\tList<Integer> ary = new ArrayList<>();\n\t\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}\n\t\t\treturn ary;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "try {\n\t\t\tString[] s = br.readLine().trim().split(\" \");\n\t\t\tList<Integer> ary = new ArrayList<>();\n\t\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}\n\t\t\treturn ary;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tString[] s = br.readLine().trim().split(\" \");\n\t\t\tList<Integer> ary = new ArrayList<>();\n\t\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}\n\t\t\treturn ary;\n\t\t}", "String[] s = br.readLine().trim().split(\" \");", "s", "br.readLine().trim().split(\" \")", "br.readLine().trim().split", "br.readLine().trim()", "br.readLine().trim", "br.readLine()", "br.readLine", "br", "\" \"", "List<Integer> ary = new ArrayList<>();", "ary", "new ArrayList<>()", "for (int i = 0; i < s.length; i++) {\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}", "{\n\t\t\t\tary.add(Integer.parseInt(s[i]));\n\t\t\t}", "ary.add(Integer.parseInt(s[i]))", "ary.add", "ary", "Integer.parseInt(s[i])", "Integer.parseInt", "Integer", "s[i]", "s", "i", "return ary;", "ary", "return null;", "null", "public void close() {\n\t\ttry {\n\t\t\tbr.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "close", "{\n\t\ttry {\n\t\t\tbr.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tbr.close();\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\tbr.close();\n\t\t}", "br.close()", "br.close", "br" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main { public static void main(String[] args) { Input stdIn = new Input(); int n = stdIn.getValue(); List<Integer> values = stdIn.getLine(); insertionSort(values, n); stdIn.close(); } public static void insertionSort(List<Integer> values, int n) { StringBuilder sb2 = new StringBuilder(); for(int k = 0; k < values.size();k++) { sb2.append(values.get(k) + " "); } System.out.println(sb2.delete(sb2.length()-1, sb2.length())); for (int i = 1; i < values.size(); i++) { StringBuilder sb = new StringBuilder(); int v = values.get(i); int j = i - 1; for (; j >= 0 && values.get(j) > v; j--) { } values.remove(i); values.add(j+1, v); for(int k = 0; k < values.size();k++) { sb.append(values.get(k) + " "); } System.out.println(sb.delete(sb.length()-1, sb.length())); } } } class Input { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public Input() { } public int getValue() { int n = 0; try { n = Integer.parseInt(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return n; } public List<Integer> getLine() { try { String[] s = br.readLine().trim().split(" "); List<Integer> ary = new ArrayList<>(); for (int i = 0; i < s.length; i++) { ary.add(Integer.parseInt(s[i])); } return ary; } catch (IOException e) { e.printStackTrace(); } return null; } public void close() { try { br.close(); } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 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 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 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 ], [ 63, 65 ], [ 60, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 60, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 81, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 60, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 100, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 60, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 135, 137 ], [ 124, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 143, 144 ], [ 143, 145 ], [ 6, 146 ], [ 146, 147 ], [ 0, 148 ], [ 148, 149 ], [ 148, 150 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = in.nextInt();\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = in.nextInt();\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = in.nextInt();\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}\n\t}", "main", "{\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = in.nextInt();\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}\n\t}", "int i", "i", "j", "j", "k", "k", "v;", "v", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int array[] = new int[n];", "array", "new int[n]", "n", "for(i=0;i<n;i++)array[i] = in.nextInt();", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "array[i] = in.nextInt();", "array[i] = in.nextInt()", "array[i]", "array", "i", "in.nextInt()", "in.nextInt", "in", "for(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}", "{\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}", "v = array[i]", "v", "array[i]", "array", "i", "j = i-1", "j", "i-1", "i", "1", "while(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}", "j>=0 && array[j]>v", "j>=0", "j", "0", "array[j]>v", "array[j]", "array", "j", "v", "{\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j+1] = v", "array[j+1]", "array", "j+1", "j", "1", "v", "for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");", "k = 0;", "k = 0", "k", "0", "k<n-1", "k", "n-1", "n", "1", "k++", "k++", "k", "System.out.print(array[k]+\" \");", "System.out.print(array[k]+\" \")", "System.out.print", "System.out", "System", "System.out", "array[k]+\" \"", "array[k]", "array", "k", "\" \"", "if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);", "i<(n-1)", "i", "(n-1)", "n", "1", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = in.nextInt();\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = in.nextInt();\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1;\n\t\twhile(j>=0 && array[j]>v){\n\t\t\tarray[j+1] = array[j];\n\t\t\tj--;\n\t\tarray[j+1] = v;\n\t\t}\n\t for(k = 0;k<n-1;k++)System.out.print(array[k]+\" \");\n\t if(i<(n-1))System.out.println(array[k]);\n\t else System.out.println(array[k]);\n\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int i,j,k,v; Scanner in = new Scanner(System.in); int n = in.nextInt(); int array[] = new int[n]; for(i=0;i<n;i++)array[i] = in.nextInt(); for(i=0;i<n;i++){ v = array[i]; j = i-1; while(j>=0 && array[j]>v){ array[j+1] = array[j]; j--; array[j+1] = v; } for(k = 0;k<n-1;k++)System.out.print(array[k]+" "); if(i<(n-1))System.out.println(array[k]); else System.out.println(array[k]); } } }
[ 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, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 4, 13, 13, 2, 13, 17, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 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 ], [ 210, 11 ], [ 210, 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 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 61, 63 ], [ 61, 64 ], [ 12, 65 ], [ 65, 66 ], [ 210, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 85, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 107, 113 ], [ 106, 114 ], [ 114, 115 ], [ 85, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 85, 123 ], [ 123, 124 ], [ 123, 125 ], [ 67, 126 ], [ 126, 127 ], [ 67, 128 ], [ 128, 129 ], [ 210, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 132, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 142, 144 ], [ 132, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 130, 150 ], [ 150, 151 ], [ 130, 152 ], [ 152, 153 ], [ 130, 154 ], [ 154, 155 ], [ 210, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 162, 172 ], [ 172, 173 ], [ 173, 174 ], [ 162, 175 ], [ 176, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 183, 184 ], [ 183, 185 ], [ 176, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 186, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 158, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 204, 205 ], [ 205, 206 ], [ 156, 207 ], [ 207, 208 ], [ 0, 209 ], [ 209, 210 ], [ 209, 211 ] ]
[ " import java.io.IOException;\n import java.io.BufferedReader;\n import java.io.InputStreamReader;\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 String[] arr = br.readLine().split(\" \");\n int[] A = new int[n];\n for (int i = 0; i < n; i++){\n A[i] = Integer.parseInt(arr[i]);\n }\n insertionSort(A, n);\n }\n \n static void insertionSort(int[] A, int n){\n printArray(A);\n for (int i = 1; i < n; i++){\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }\n }\n \n static void swap(int[] A, int i, int j){\n int tmp = A[i];\n A[i] = A[j];\n A[j] = tmp;\n }\n \n static void printArray(int[] A){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < A.length; i++){\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }\n System.out.println(sb.toString());\n }\n }", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String[] arr = br.readLine().split(\" \");\n int[] A = new int[n];\n for (int i = 0; i < n; i++){\n A[i] = Integer.parseInt(arr[i]);\n }\n insertionSort(A, n);\n }\n \n static void insertionSort(int[] A, int n){\n printArray(A);\n for (int i = 1; i < n; i++){\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }\n }\n \n static void swap(int[] A, int i, int j){\n int tmp = A[i];\n A[i] = A[j];\n A[j] = tmp;\n }\n \n static void printArray(int[] A){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < A.length; i++){\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }\n System.out.println(sb.toString());\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 String[] arr = br.readLine().split(\" \");\n int[] A = new int[n];\n for (int i = 0; i < n; i++){\n A[i] = Integer.parseInt(arr[i]);\n }\n insertionSort(A, n);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String[] arr = br.readLine().split(\" \");\n int[] A = new int[n];\n for (int i = 0; i < n; i++){\n A[i] = Integer.parseInt(arr[i]);\n }\n insertionSort(A, 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", "String[] arr = br.readLine().split(\" \");", "arr", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] A = new int[n];", "A", "new int[n]", "n", "for (int i = 0; i < n; i++){\n A[i] = Integer.parseInt(arr[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n A[i] = Integer.parseInt(arr[i]);\n }", "{\n A[i] = Integer.parseInt(arr[i]);\n }", "A[i] = Integer.parseInt(arr[i])", "A[i]", "A", "i", "Integer.parseInt(arr[i])", "Integer.parseInt", "Integer", "arr[i]", "arr", "i", "insertionSort(A, n)", "insertionSort", "A", "n", "String[] args", "args", "static void insertionSort(int[] A, int n){\n printArray(A);\n for (int i = 1; i < n; i++){\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }\n }", "insertionSort", "{\n printArray(A);\n for (int i = 1; i < n; i++){\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }\n }", "printArray(A)", "printArray", "A", "for (int i = 1; i < n; i++){\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }", "{\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n swap(A, j+1, j);\n j--;\n }", "swap(A, j+1, j)", "swap", "A", "j+1", "j", "1", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "printArray(A)", "printArray", "A", "int[] A", "A", "int n", "n", "static void swap(int[] A, int i, int j){\n int tmp = A[i];\n A[i] = A[j];\n A[j] = tmp;\n }", "swap", "{\n int tmp = A[i];\n A[i] = A[j];\n A[j] = tmp;\n }", "int tmp = A[i];", "tmp", "A[i]", "A", "i", "A[i] = A[j]", "A[i]", "A", "i", "A[j]", "A", "j", "A[j] = tmp", "A[j]", "A", "j", "tmp", "int[] A", "A", "int i", "i", "int j", "j", "static void printArray(int[] A){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < A.length; i++){\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }\n System.out.println(sb.toString());\n }", "printArray", "{\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < A.length; i++){\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }\n System.out.println(sb.toString());\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int i = 0; i < A.length; i++){\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }", "{\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }", "sb.append(String.valueOf(A[i]))", "sb.append", "sb", "String.valueOf(A[i])", "String.valueOf", "String", "A[i]", "A", "i", "if (i != A.length - 1){\n sb.append(\" \");\n }", "i != A.length - 1", "i", "A.length - 1", "A.length", "A", "A.length", "1", "{\n sb.append(\" \");\n }", "sb.append(\" \")", "sb.append", "sb", "\" \"", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "int[] A", "A", "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 String[] arr = br.readLine().split(\" \");\n int[] A = new int[n];\n for (int i = 0; i < n; i++){\n A[i] = Integer.parseInt(arr[i]);\n }\n insertionSort(A, n);\n }\n \n static void insertionSort(int[] A, int n){\n printArray(A);\n for (int i = 1; i < n; i++){\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }\n }\n \n static void swap(int[] A, int i, int j){\n int tmp = A[i];\n A[i] = A[j];\n A[j] = tmp;\n }\n \n static void printArray(int[] A){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < A.length; i++){\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }\n System.out.println(sb.toString());\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 String[] arr = br.readLine().split(\" \");\n int[] A = new int[n];\n for (int i = 0; i < n; i++){\n A[i] = Integer.parseInt(arr[i]);\n }\n insertionSort(A, n);\n }\n \n static void insertionSort(int[] A, int n){\n printArray(A);\n for (int i = 1; i < n; i++){\n int v = A[i];\n int j = i - 1;\n while (j >= 0 && A[j] > v){\n swap(A, j+1, j);\n j--;\n }\n A[j+1] = v;\n printArray(A);\n }\n }\n \n static void swap(int[] A, int i, int j){\n int tmp = A[i];\n A[i] = A[j];\n A[j] = tmp;\n }\n \n static void printArray(int[] A){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < A.length; i++){\n sb.append(String.valueOf(A[i]));\n if (i != A.length - 1){\n sb.append(\" \");\n }\n }\n System.out.println(sb.toString());\n }\n }", "Main" ]
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] arr = br.readLine().split(" "); int[] A = new int[n]; for (int i = 0; i < n; i++){ A[i] = Integer.parseInt(arr[i]); } insertionSort(A, n); } static void insertionSort(int[] A, int n){ printArray(A); for (int i = 1; i < n; i++){ int v = A[i]; int j = i - 1; while (j >= 0 && A[j] > v){ swap(A, j+1, j); j--; } A[j+1] = v; printArray(A); } } static void swap(int[] A, int i, int j){ int tmp = A[i]; A[i] = A[j]; A[j] = tmp; } static void printArray(int[] A){ StringBuilder sb = new StringBuilder(); for (int i = 0; i < A.length; i++){ sb.append(String.valueOf(A[i])); if (i != A.length - 1){ sb.append(" "); } } System.out.println(sb.toString()); } }
[ 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, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 18, 13, 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, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 2, 13, 2, 13, 17, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 17, 13, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 2, 13, 2, 13, 17, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 33, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 22, 44 ], [ 44, 45 ], [ 44, 46 ], [ 22, 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 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 22, 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 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 22, 105 ], [ 105, 106 ], [ 22, 107 ], [ 107, 108 ], [ 22, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 109, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 121, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 143, 149 ], [ 149, 150 ], [ 149, 151 ], [ 142, 152 ], [ 152, 153 ], [ 121, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 157, 159 ], [ 154, 160 ], [ 121, 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 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 182, 184 ], [ 179, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 185, 189 ], [ 179, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 22, 195 ], [ 195, 196 ], [ 196, 197 ], [ 6, 198 ], [ 198, 199 ] ]
[ "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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}\n\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}\n\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}\n\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}\n\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t\t\n\t}", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}\n\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\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\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint[] A = new int[ len ];\n\t\t\t\n\t\t\tfor( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}\n\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}\n\t\t\t\n\t\t\tint key;\n\t\t\tint j;\n \t\t\tfor( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}\n\n \t\t\tkb.close();\n\t\t}", "int n = Integer.parseInt( kb.readLine() );", "n", "Integer.parseInt( kb.readLine() )", "Integer.parseInt", "Integer", "kb.readLine()", "kb.readLine", "kb", "String[] nums = kb.readLine().split( \" \" );", "nums", "kb.readLine().split( \" \" )", "kb.readLine().split", "kb.readLine()", "kb.readLine", "kb", "\" \"", "int len = nums.length;", "len", "nums.length", "nums", "nums.length", "int[] A = new int[ len ];", "A", "new int[ len ]", "len", "for( int i=0; i<len; i++ ) {\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<len", "i", "len", "i++", "i++", "i", "{\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}", "{\n\t\t\t\tA[i] = Integer.parseInt( nums[i] );\n\t\t\t}", "A[i] = Integer.parseInt( nums[i] )", "A[i]", "A", "i", "Integer.parseInt( nums[i] )", "Integer.parseInt", "Integer", "nums[i]", "nums", "i", "for( int k=0; k<len; k++ ) {\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<len", "k", "len", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}", "{\n\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t}", "System.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" )", "System.out.print", "System.out", "System", "System.out", "k<(len-1)? A[k]+\" \": A[k]+\"\\n\"", "k<(len-1)", "k", "(len-1)", "len", "1", "A[k]+\" \"", "A[k]", "A", "k", "\" \"", "A[k]+\"\\n\"", "A[k]", "A", "k", "\"\\n\"", "int key;", "key", "int j;", "j", "for( int i=1; i<len; i++ ) {\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<len", "i", "len", "i++", "i++", "i", "{\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tkey = A[i];\n\t\t\t\tj = i - 1;\n\t\t\t\twhile( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tA[ j+1 ] = key;\n\t\t\t\tfor( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}\n\t\t\t}", "key = A[i]", "key", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while( 0 <= j && key < A[j] ) {\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "0 <= j && key < A[j]", "0 <= j", "0", "j", "key < A[j]", "key", "A[j]", "A", "j", "{\n\t\t\t\t\tA[ j+1 ] = A[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "A[ j+1 ] = A[j]", "A[ j+1 ]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[ j+1 ] = key", "A[ j+1 ]", "A", "j+1", "j", "1", "key", "for( int k=0; k<len; k++ ) {\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<len", "k", "len", "k++", "k++", "k", "{\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" );\n\t\t\t\t}", "System.out.print( k<(len-1)? A[k]+\" \": A[k]+\"\\n\" )", "System.out.print", "System.out", "System", "System.out", "k<(len-1)? A[k]+\" \": A[k]+\"\\n\"", "k<(len-1)", "k", "(len-1)", "len", "1", "A[k]+\" \"", "A[k]", "A", "k", "\" \"", "A[k]+\"\\n\"", "A[k]", "A", "k", "\"\\n\"", "kb.close()", "kb.close", "kb", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); String[] nums = kb.readLine().split( " " ); int len = nums.length; int[] A = new int[ len ]; for( int i=0; i<len; i++ ) { A[i] = Integer.parseInt( nums[i] ); } for( int k=0; k<len; k++ ) { System.out.print( k<(len-1)? A[k]+" ": A[k]+"\n" ); } int key; int j; for( int i=1; i<len; i++ ) { key = A[i]; j = i - 1; while( 0 <= j && key < A[j] ) { A[ j+1 ] = A[j]; j--; } A[ j+1 ] = key; for( int k=0; k<len; k++ ) { System.out.print( k<(len-1)? A[k]+" ": A[k]+"\n" ); } } kb.close(); } catch( IOException e ) { System.err.println( e ); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 20, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 13, 18, 36, 13, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 18, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 2, 13, 18, 13, 13, 30, 0, 13, 4, 18, 4, 18, 4, 18, 13, 17, 0, 13, 17, 29, 18, 13, 40, 13, 12, 13, 30, 29, 4, 13, 12, 13, 30, 0, 13, 17, 0, 13, 17, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 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 ], [ 421, 17 ], [ 421, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 20, 53 ], [ 53, 54 ], [ 54, 55 ], [ 18, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 58, 62 ], [ 62, 63 ], [ 58, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 64, 77 ], [ 77, 78 ], [ 64, 79 ], [ 79, 80 ], [ 58, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 83, 92 ], [ 92, 93 ], [ 92, 94 ], [ 92, 95 ], [ 83, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 96, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 108, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 119, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 136, 138 ], [ 129, 139 ], [ 139, 140 ], [ 108, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 144, 146 ], [ 141, 147 ], [ 108, 148 ], [ 148, 149 ], [ 148, 150 ], [ 148, 151 ], [ 58, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 164, 165 ], [ 164, 166 ], [ 159, 167 ], [ 167, 168 ], [ 168, 169 ], [ 159, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 175, 177 ], [ 154, 178 ], [ 178, 179 ], [ 152, 180 ], [ 180, 181 ], [ 152, 182 ], [ 182, 183 ], [ 58, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 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 ], [ 203, 206 ], [ 206, 207 ], [ 206, 208 ], [ 202, 209 ], [ 209, 210 ], [ 210, 211 ], [ 209, 212 ], [ 186, 213 ], [ 213, 214 ], [ 214, 215 ], [ 213, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 216, 220 ], [ 186, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 221, 226 ], [ 226, 227 ], [ 227, 228 ], [ 184, 229 ], [ 229, 230 ], [ 184, 231 ], [ 231, 232 ], [ 0, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 233, 237 ], [ 237, 238 ], [ 233, 239 ], [ 239, 240 ], [ 233, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 233, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 247, 253 ], [ 253, 254 ], [ 233, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 263, 264 ], [ 263, 265 ], [ 265, 266 ], [ 265, 267 ], [ 258, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 276, 277 ], [ 271, 278 ], [ 268, 279 ], [ 279, 280 ], [ 279, 281 ], [ 257, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 233, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 233, 293 ], [ 293, 294 ], [ 293, 295 ], [ 295, 296 ], [ 296, 297 ], [ 296, 298 ], [ 295, 299 ], [ 299, 300 ], [ 299, 301 ], [ 295, 302 ], [ 302, 303 ], [ 303, 304 ], [ 304, 305 ], [ 233, 306 ], [ 306, 307 ], [ 306, 308 ], [ 308, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 310, 313 ], [ 313, 314 ], [ 233, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 319, 322 ], [ 322, 323 ], [ 233, 324 ], [ 324, 325 ], [ 324, 326 ], [ 326, 327 ], [ 327, 328 ], [ 328, 329 ], [ 329, 330 ], [ 328, 331 ], [ 331, 332 ], [ 233, 333 ], [ 333, 334 ], [ 333, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 335, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 340, 345 ], [ 345, 346 ], [ 345, 347 ], [ 340, 348 ], [ 348, 349 ], [ 349, 350 ], [ 340, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 353, 355 ], [ 352, 356 ], [ 356, 357 ], [ 335, 358 ], [ 358, 359 ], [ 333, 360 ], [ 360, 361 ], [ 233, 362 ], [ 362, 363 ], [ 362, 364 ], [ 364, 365 ], [ 365, 366 ], [ 365, 367 ], [ 364, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 369, 374 ], [ 374, 375 ], [ 374, 376 ], [ 369, 377 ], [ 377, 378 ], [ 378, 379 ], [ 369, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 382, 384 ], [ 381, 385 ], [ 385, 386 ], [ 364, 387 ], [ 387, 388 ], [ 362, 389 ], [ 389, 390 ], [ 233, 391 ], [ 391, 392 ], [ 391, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 393, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 398, 403 ], [ 403, 404 ], [ 403, 405 ], [ 398, 406 ], [ 406, 407 ], [ 407, 408 ], [ 398, 409 ], [ 409, 410 ], [ 410, 411 ], [ 411, 412 ], [ 411, 413 ], [ 410, 414 ], [ 414, 415 ], [ 393, 416 ], [ 416, 417 ], [ 391, 418 ], [ 418, 419 ], [ 0, 420 ], [ 420, 421 ], [ 420, 422 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tContestScanner scan = new ContestScanner();\n\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\n\t\t(new Solve(N, A)).solve();\n\t}\n}\nclass Solve {\n\tprivate final int N;\n\tprivate final int[] A;\n\n\tpublic Solve(final int N, final int[] A)\n\t{\n\t\tthis.N = N;\n\t\tthis.A = A;\n\t}\n\n\tpublic void solve()\n\t{\n\t\tint A[] = copyNumbers(N, this.A);\n\n\t\tprintNumList(N, A);\n\n\t\tfor(int i=1; i < N; i++)\n\t\t{\n\t\t\tint v = A[i];\n\t\t\tint j= i - 1;\n\n\t\t\twhile(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tA[j+1] = v;\n\n\t\t\tprintNumList(N, A);\n\t\t}\n\t}\n\n\tpublic int[] copyNumbers(final int N, final int[] A)\n\t{\n\t\tint[] numbers = new int[N];\n\n\t\tfor(int i=0; i < N; i++) numbers[i] = A[i];\n\n\t\treturn numbers;\n\t}\n\n\tpublic void printNumList(final int N, final int[] A)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tsb.append(A[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\n\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(sb.toString());\n\t}\n}\nclass ContestScanner {\n\tBufferedReader reader;\n\tString[] line;\n\tint index;\n\tpublic ContestScanner() {\n\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tpublic ContestScanner(String filename) throws FileNotFoundException {\n\t\treader = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));\n\t}\n\n\tpublic String nextToken() throws IOException {\n\t\tif(line == null || index >= line.length)\n\t\t{\n\t\t\tline = reader.readLine().trim().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\n\t\treturn line[index++];\n\t}\n\n\tpublic String next() throws IOException {\n\t\treturn nextToken();\n\t}\n\n\tpublic String readLine() throws IOException {\n\t\tline = null;\n\t\tindex = 0;\n\n\t\treturn reader.readLine();\n\t}\n\n\tpublic int nextInt() throws IOException, NumberFormatException {\n\t\treturn Integer.parseInt(nextToken());\n\t}\n\n\tpublic long nextLong() throws IOException, NumberFormatException {\n\t\treturn Long.parseLong(nextToken());\n\t}\n\n\tpublic double nextDouble() throws IOException, NumberFormatException {\n\t\treturn Double.parseDouble(nextToken());\n\t}\n\n\tpublic int[] nextIntArray(int N) throws IOException, NumberFormatException {\n\t\tint[] result = new int[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextInt();\n\n\t\treturn result;\n\t}\n\n\tpublic long[] nextLongArray(int N) throws IOException, NumberFormatException {\n\t\tlong[] result = new long[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextLong();\n\n\t\treturn result;\n\t}\n\n\tpublic double[] nexDoubleArray(int N) throws IOException, NumberFormatException {\n\t\tdouble[] result = new double[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextDouble();\n\n\t\treturn result;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.FileInputStream;", "FileInputStream", "java.io", "import java.io.FileNotFoundException;", "FileNotFoundException", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tContestScanner scan = new ContestScanner();\n\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\n\t\t(new Solve(N, A)).solve();\n\t}\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tContestScanner scan = new ContestScanner();\n\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\n\t\t(new Solve(N, A)).solve();\n\t}", "main", "{\n\t\tContestScanner scan = new ContestScanner();\n\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\n\t\t(new Solve(N, A)).solve();\n\t}", "ContestScanner scan = new ContestScanner();", "scan", "new ContestScanner()", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int[] A = new int[N];", "A", "new int[N]", "N", "for(int i=0; i < N; i++)\n\t\t{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "A[i] = scan.nextInt()", "A[i]", "A", "i", "scan.nextInt()", "scan.nextInt", "scan", "(new Solve(N, A)).solve()", "(new Solve(N, A)).solve", "(new Solve(N, A))", "String[] args", "args", "class Solve {\n\tprivate final int N;\n\tprivate final int[] A;\n\n\tpublic Solve(final int N, final int[] A)\n\t{\n\t\tthis.N = N;\n\t\tthis.A = A;\n\t}\n\n\tpublic void solve()\n\t{\n\t\tint A[] = copyNumbers(N, this.A);\n\n\t\tprintNumList(N, A);\n\n\t\tfor(int i=1; i < N; i++)\n\t\t{\n\t\t\tint v = A[i];\n\t\t\tint j= i - 1;\n\n\t\t\twhile(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tA[j+1] = v;\n\n\t\t\tprintNumList(N, A);\n\t\t}\n\t}\n\n\tpublic int[] copyNumbers(final int N, final int[] A)\n\t{\n\t\tint[] numbers = new int[N];\n\n\t\tfor(int i=0; i < N; i++) numbers[i] = A[i];\n\n\t\treturn numbers;\n\t}\n\n\tpublic void printNumList(final int N, final int[] A)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tsb.append(A[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\n\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(sb.toString());\n\t}\n}", "Solve", "private final int N;", "N", "private final int[] A;", "A", "public Solve(final int N, final int[] A)\n\t{\n\t\tthis.N = N;\n\t\tthis.A = A;\n\t}", "Solve", "{\n\t\tthis.N = N;\n\t\tthis.A = A;\n\t}", "this.N = N", "this.N", "this", "this.N", "N", "this.A = A", "this.A", "this", "this.A", "A", "final int N", "N", "final int[] A", "A", "public void solve()\n\t{\n\t\tint A[] = copyNumbers(N, this.A);\n\n\t\tprintNumList(N, A);\n\n\t\tfor(int i=1; i < N; i++)\n\t\t{\n\t\t\tint v = A[i];\n\t\t\tint j= i - 1;\n\n\t\t\twhile(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tA[j+1] = v;\n\n\t\t\tprintNumList(N, A);\n\t\t}\n\t}", "solve", "{\n\t\tint A[] = copyNumbers(N, this.A);\n\n\t\tprintNumList(N, A);\n\n\t\tfor(int i=1; i < N; i++)\n\t\t{\n\t\t\tint v = A[i];\n\t\t\tint j= i - 1;\n\n\t\t\twhile(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tA[j+1] = v;\n\n\t\t\tprintNumList(N, A);\n\t\t}\n\t}", "int A[] = copyNumbers(N, this.A);", "A", "copyNumbers(N, this.A)", "copyNumbers", "N", "this.A", "this", "this.A", "printNumList(N, A)", "printNumList", "N", "A", "for(int i=1; i < N; i++)\n\t\t{\n\t\t\tint v = A[i];\n\t\t\tint j= i - 1;\n\n\t\t\twhile(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tA[j+1] = v;\n\n\t\t\tprintNumList(N, A);\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tint v = A[i];\n\t\t\tint j= i - 1;\n\n\t\t\twhile(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tA[j+1] = v;\n\n\t\t\tprintNumList(N, A);\n\t\t}", "{\n\t\t\tint v = A[i];\n\t\t\tint j= i - 1;\n\n\t\t\twhile(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tA[j+1] = v;\n\n\t\t\tprintNumList(N, A);\n\t\t}", "int v = A[i];", "v", "A[i]", "A", "i", "int j= i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && v < A[j])\n\t\t\t{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && v < A[j]", "j >= 0", "j", "0", "v < A[j]", "v", "A[j]", "A", "j", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "printNumList(N, A)", "printNumList", "N", "A", "public int[] copyNumbers(final int N, final int[] A)\n\t{\n\t\tint[] numbers = new int[N];\n\n\t\tfor(int i=0; i < N; i++) numbers[i] = A[i];\n\n\t\treturn numbers;\n\t}", "copyNumbers", "{\n\t\tint[] numbers = new int[N];\n\n\t\tfor(int i=0; i < N; i++) numbers[i] = A[i];\n\n\t\treturn numbers;\n\t}", "int[] numbers = new int[N];", "numbers", "new int[N]", "N", "for(int i=0; i < N; i++) numbers[i] = A[i];", "int i=0;", "int i=0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "numbers[i] = A[i];", "numbers[i] = A[i]", "numbers[i]", "numbers", "i", "A[i]", "A", "i", "return numbers;", "numbers", "final int N", "N", "final int[] A", "A", "public void printNumList(final int N, final int[] A)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tsb.append(A[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\n\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(sb.toString());\n\t}", "printNumList", "{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tsb.append(A[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\n\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(sb.toString());\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int i=0; i < N; i++)\n\t\t{\n\t\t\tsb.append(A[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tsb.append(A[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "{\n\t\t\tsb.append(A[i]);\n\t\t\tsb.append(\" \");\n\t\t}", "sb.append(A[i])", "sb.append", "sb", "A[i]", "A", "i", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.deleteCharAt(sb.length() - 1)", "sb.deleteCharAt", "sb", "sb.length() - 1", "sb.length()", "sb.length", "sb", "1", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "final int N", "N", "final int[] A", "A", "class ContestScanner {\n\tBufferedReader reader;\n\tString[] line;\n\tint index;\n\tpublic ContestScanner() {\n\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tpublic ContestScanner(String filename) throws FileNotFoundException {\n\t\treader = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));\n\t}\n\n\tpublic String nextToken() throws IOException {\n\t\tif(line == null || index >= line.length)\n\t\t{\n\t\t\tline = reader.readLine().trim().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\n\t\treturn line[index++];\n\t}\n\n\tpublic String next() throws IOException {\n\t\treturn nextToken();\n\t}\n\n\tpublic String readLine() throws IOException {\n\t\tline = null;\n\t\tindex = 0;\n\n\t\treturn reader.readLine();\n\t}\n\n\tpublic int nextInt() throws IOException, NumberFormatException {\n\t\treturn Integer.parseInt(nextToken());\n\t}\n\n\tpublic long nextLong() throws IOException, NumberFormatException {\n\t\treturn Long.parseLong(nextToken());\n\t}\n\n\tpublic double nextDouble() throws IOException, NumberFormatException {\n\t\treturn Double.parseDouble(nextToken());\n\t}\n\n\tpublic int[] nextIntArray(int N) throws IOException, NumberFormatException {\n\t\tint[] result = new int[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextInt();\n\n\t\treturn result;\n\t}\n\n\tpublic long[] nextLongArray(int N) throws IOException, NumberFormatException {\n\t\tlong[] result = new long[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextLong();\n\n\t\treturn result;\n\t}\n\n\tpublic double[] nexDoubleArray(int N) throws IOException, NumberFormatException {\n\t\tdouble[] result = new double[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextDouble();\n\n\t\treturn result;\n\t}\n}", "ContestScanner", "BufferedReader reader;", "reader", "String[] line;", "line", "int index;", "index", "public ContestScanner() {\n\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t}", "ContestScanner", "{\n\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t}", "reader = new BufferedReader(new InputStreamReader(System.in))", "reader", "new BufferedReader(new InputStreamReader(System.in))", "public ContestScanner(String filename) throws FileNotFoundException {\n\t\treader = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));\n\t}", "ContestScanner", "{\n\t\treader = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));\n\t}", "reader = new BufferedReader(new InputStreamReader(new FileInputStream(filename)))", "reader", "new BufferedReader(new InputStreamReader(new FileInputStream(filename)))", "String filename", "filename", "public String nextToken() throws IOException {\n\t\tif(line == null || index >= line.length)\n\t\t{\n\t\t\tline = reader.readLine().trim().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\n\t\treturn line[index++];\n\t}", "nextToken", "{\n\t\tif(line == null || index >= line.length)\n\t\t{\n\t\t\tline = reader.readLine().trim().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\n\t\treturn line[index++];\n\t}", "if(line == null || index >= line.length)\n\t\t{\n\t\t\tline = reader.readLine().trim().split(\" \");\n\t\t\tindex = 0;\n\t\t}", "line == null || index >= line.length", "line == null", "line", "null", "index >= line.length", "index", "line.length", "line", "line.length", "{\n\t\t\tline = reader.readLine().trim().split(\" \");\n\t\t\tindex = 0;\n\t\t}", "line = reader.readLine().trim().split(\" \")", "line", "reader.readLine().trim().split(\" \")", "reader.readLine().trim().split", "reader.readLine().trim()", "reader.readLine().trim", "reader.readLine()", "reader.readLine", "reader", "\" \"", "index = 0", "index", "0", "return line[index++];", "line[index++]", "line", "index++", "index", "public String next() throws IOException {\n\t\treturn nextToken();\n\t}", "next", "{\n\t\treturn nextToken();\n\t}", "return nextToken();", "nextToken()", "nextToken", "public String readLine() throws IOException {\n\t\tline = null;\n\t\tindex = 0;\n\n\t\treturn reader.readLine();\n\t}", "readLine", "{\n\t\tline = null;\n\t\tindex = 0;\n\n\t\treturn reader.readLine();\n\t}", "line = null", "line", "null", "index = 0", "index", "0", "return reader.readLine();", "reader.readLine()", "reader.readLine", "reader", "public int nextInt() throws IOException, NumberFormatException {\n\t\treturn Integer.parseInt(nextToken());\n\t}", "nextInt", "{\n\t\treturn Integer.parseInt(nextToken());\n\t}", "return Integer.parseInt(nextToken());", "Integer.parseInt(nextToken())", "Integer.parseInt", "Integer", "nextToken()", "nextToken", "public long nextLong() throws IOException, NumberFormatException {\n\t\treturn Long.parseLong(nextToken());\n\t}", "nextLong", "{\n\t\treturn Long.parseLong(nextToken());\n\t}", "return Long.parseLong(nextToken());", "Long.parseLong(nextToken())", "Long.parseLong", "Long", "nextToken()", "nextToken", "public double nextDouble() throws IOException, NumberFormatException {\n\t\treturn Double.parseDouble(nextToken());\n\t}", "nextDouble", "{\n\t\treturn Double.parseDouble(nextToken());\n\t}", "return Double.parseDouble(nextToken());", "Double.parseDouble(nextToken())", "Double.parseDouble", "Double", "nextToken()", "nextToken", "public int[] nextIntArray(int N) throws IOException, NumberFormatException {\n\t\tint[] result = new int[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextInt();\n\n\t\treturn result;\n\t}", "nextIntArray", "{\n\t\tint[] result = new int[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextInt();\n\n\t\treturn result;\n\t}", "int[] result = new int[N];", "result", "new int[N]", "N", "for(int i=0; i < N; i++) result[i] = nextInt();", "int i=0;", "int i=0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "result[i] = nextInt();", "result[i] = nextInt()", "result[i]", "result", "i", "nextInt()", "nextInt", "return result;", "result", "int N", "N", "public long[] nextLongArray(int N) throws IOException, NumberFormatException {\n\t\tlong[] result = new long[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextLong();\n\n\t\treturn result;\n\t}", "nextLongArray", "{\n\t\tlong[] result = new long[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextLong();\n\n\t\treturn result;\n\t}", "long[] result = new long[N];", "result", "new long[N]", "N", "for(int i=0; i < N; i++) result[i] = nextLong();", "int i=0;", "int i=0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "result[i] = nextLong();", "result[i] = nextLong()", "result[i]", "result", "i", "nextLong()", "nextLong", "return result;", "result", "int N", "N", "public double[] nexDoubleArray(int N) throws IOException, NumberFormatException {\n\t\tdouble[] result = new double[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextDouble();\n\n\t\treturn result;\n\t}", "nexDoubleArray", "{\n\t\tdouble[] result = new double[N];\n\n\t\tfor(int i=0; i < N; i++) result[i] = nextDouble();\n\n\t\treturn result;\n\t}", "double[] result = new double[N];", "result", "new double[N]", "N", "for(int i=0; i < N; i++) result[i] = nextDouble();", "int i=0;", "int i=0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "result[i] = nextDouble();", "result[i] = nextDouble()", "result[i]", "result", "i", "nextDouble()", "nextDouble", "return result;", "result", "int N", "N", "public class Main {\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tContestScanner scan = new ContestScanner();\n\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\n\t\t(new Solve(N, A)).solve();\n\t}\n}", "public class Main {\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tContestScanner scan = new ContestScanner();\n\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\n\t\tfor(int i=0; i < N; i++)\n\t\t{\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\n\t\t(new Solve(N, A)).solve();\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; public class Main { /** * @param args */ public static void main(String[] args) throws IOException { ContestScanner scan = new ContestScanner(); int N = scan.nextInt(); int[] A = new int[N]; for(int i=0; i < N; i++) { A[i] = scan.nextInt(); } (new Solve(N, A)).solve(); } } class Solve { private final int N; private final int[] A; public Solve(final int N, final int[] A) { this.N = N; this.A = A; } public void solve() { int A[] = copyNumbers(N, this.A); printNumList(N, A); for(int i=1; i < N; i++) { int v = A[i]; int j= i - 1; while(j >= 0 && v < A[j]) { A[j+1] = A[j]; j--; } A[j+1] = v; printNumList(N, A); } } public int[] copyNumbers(final int N, final int[] A) { int[] numbers = new int[N]; for(int i=0; i < N; i++) numbers[i] = A[i]; return numbers; } public void printNumList(final int N, final int[] A) { StringBuilder sb = new StringBuilder(); for(int i=0; i < N; i++) { sb.append(A[i]); sb.append(" "); } sb.deleteCharAt(sb.length() - 1); System.out.println(sb.toString()); } } class ContestScanner { BufferedReader reader; String[] line; int index; public ContestScanner() { reader = new BufferedReader(new InputStreamReader(System.in)); } public ContestScanner(String filename) throws FileNotFoundException { reader = new BufferedReader(new InputStreamReader(new FileInputStream(filename))); } public String nextToken() throws IOException { if(line == null || index >= line.length) { line = reader.readLine().trim().split(" "); index = 0; } return line[index++]; } public String next() throws IOException { return nextToken(); } public String readLine() throws IOException { line = null; index = 0; return reader.readLine(); } public int nextInt() throws IOException, NumberFormatException { return Integer.parseInt(nextToken()); } public long nextLong() throws IOException, NumberFormatException { return Long.parseLong(nextToken()); } public double nextDouble() throws IOException, NumberFormatException { return Double.parseDouble(nextToken()); } public int[] nextIntArray(int N) throws IOException, NumberFormatException { int[] result = new int[N]; for(int i=0; i < N; i++) result[i] = nextInt(); return result; } public long[] nextLongArray(int N) throws IOException, NumberFormatException { long[] result = new long[N]; for(int i=0; i < N; i++) result[i] = nextLong(); return result; } public double[] nexDoubleArray(int N) throws IOException, NumberFormatException { double[] result = new double[N]; for(int i=0; i < N; i++) result[i] = nextDouble(); return result; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 161, 8 ], [ 161, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 11, 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 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 62, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 62, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 62, 102 ], [ 102, 103 ], [ 102, 104 ], [ 9, 105 ], [ 105, 106 ], [ 161, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 110, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 125, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 150, 151 ], [ 150, 152 ], [ 109, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 107, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.next());\n }\n print(arr);\n for (int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }\n }\n\n private static void print(int[] arr) {\n for (int k = 0; k < arr.length; k++) {\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }\n System.out.println();\n }\n}\n", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.next());\n }\n print(arr);\n for (int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }\n }\n\n private static void print(int[] arr) {\n for (int k = 0; k < arr.length; k++) {\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }\n System.out.println();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.next());\n }\n print(arr);\n for (int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.next());\n }\n print(arr);\n for (int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.next());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr[i] = Integer.parseInt(sc.next());\n }", "{\n arr[i] = Integer.parseInt(sc.next());\n }", "arr[i] = Integer.parseInt(sc.next())", "arr[i]", "arr", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "print(arr)", "print", "arr", "for (int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }", "{\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }", "int v = arr[i];", "v", "arr[i]", "arr", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }", "j >= 0 && arr[j] > v", "j >= 0", "j", "0", "arr[j] > v", "arr[j]", "arr", "j", "v", "{\n arr[j+1] = arr[j];\n j --;\n }", "arr[j+1] = arr[j]", "arr[j+1]", "arr", "j+1", "j", "1", "arr[j]", "arr", "j", "j --", "j", "arr[j+1] = v", "arr[j+1]", "arr", "j+1", "j", "1", "v", "print(arr)", "print", "arr", "String[] args", "args", "private static void print(int[] arr) {\n for (int k = 0; k < arr.length; k++) {\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }\n System.out.println();\n }", "print", "{\n for (int k = 0; k < arr.length; k++) {\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }\n System.out.println();\n }", "for (int k = 0; k < arr.length; k++) {\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }", "int k = 0;", "int k = 0;", "k", "0", "k < arr.length", "k", "arr.length", "arr", "arr.length", "k++", "k++", "k", "{\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }", "{\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }", "if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }", "k != arr.length-1", "k", "arr.length-1", "arr.length", "arr", "arr.length", "1", "{\n System.out.print(arr[k] + \" \");\n }", "System.out.print(arr[k] + \" \")", "System.out.print", "System.out", "System", "System.out", "arr[k] + \" \"", "arr[k]", "arr", "k", "\" \"", "{\n System.out.print(arr[k]);\n }", "System.out.print(arr[k])", "System.out.print", "System.out", "System", "System.out", "arr[k]", "arr", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] arr", "arr", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.next());\n }\n print(arr);\n for (int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }\n }\n\n private static void print(int[] arr) {\n for (int k = 0; k < arr.length; k++) {\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }\n System.out.println();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.next());\n }\n print(arr);\n for (int i = 1; i < n; i++) {\n int v = arr[i];\n int j = i - 1;\n while (j >= 0 && arr[j] > v) {\n arr[j+1] = arr[j];\n j --;\n }\n arr[j+1] = v;\n print(arr);\n }\n }\n\n private static void print(int[] arr) {\n for (int k = 0; k < arr.length; k++) {\n if (k != arr.length-1) {\n System.out.print(arr[k] + \" \");\n } else {\n System.out.print(arr[k]);\n }\n }\n System.out.println();\n }\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = Integer.parseInt(sc.next()); } print(arr); for (int i = 1; i < n; i++) { int v = arr[i]; int j = i - 1; while (j >= 0 && arr[j] > v) { arr[j+1] = arr[j]; j --; } arr[j+1] = v; print(arr); } } private static void print(int[] arr) { for (int k = 0; k < arr.length; k++) { if (k != arr.length-1) { System.out.print(arr[k] + " "); } else { System.out.print(arr[k]); } } System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 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, 4, 18, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 173, 5 ], [ 173, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 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 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 88, 95 ], [ 95, 96 ], [ 95, 97 ], [ 88, 98 ], [ 98, 99 ], [ 99, 100 ], [ 88, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 82, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 60, 117 ], [ 117, 118 ], [ 117, 119 ], [ 6, 120 ], [ 120, 121 ], [ 173, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 125, 135 ], [ 135, 136 ], [ 136, 137 ], [ 125, 138 ], [ 139, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 145, 147 ], [ 139, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 148, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 122, 170 ], [ 170, 171 ], [ 0, 172 ], [ 172, 173 ], [ 172, 174 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\t// a[0]は整列済のため、結果を出力\n\t\tprint(a);\n\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}\n\n\n\t}\n\n\tstatic void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\t// a[0]は整列済のため、結果を出力\n\t\tprint(a);\n\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}\n\n\n\t}\n\n\tstatic void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tint n;\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\t// a[0]は整列済のため、結果を出力\n\t\tprint(a);\n\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}\n\n\n\t}", "main", "{\n\n\t\tint n;\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\t// a[0]は整列済のため、結果を出力\n\t\tprint(a);\n\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}\n\n\n\t}", "int n;", "n", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "print(a)", "print", "a", "for (int i = 1; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}", "{\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}", "for (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < i", "j", "i", "j++", "j++", "j", "{\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}", "if (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}", "a[i] < a[j]", "a[i]", "a", "i", "a[j]", "a", "j", "{\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}", "int tmp = a[i];", "tmp", "a[i]", "a", "i", "for (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}", "int k = i - 1;", "int k = i - 1;", "k", "i - 1", "i", "1", "k >= j", "k", "j", "k--", "k--", "k", "{\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}", "{\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}", "a[k+1] = a[k]", "a[k+1]", "a", "k+1", "k", "1", "a[k]", "a", "k", "a[j] = tmp", "a[j]", "a", "j", "tmp", "print(a)", "print", "a", "String[] args", "args", "static void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t}", "print", "{\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t}", "for (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}", "System.out.print(a[i])", "System.out.print", "System.out", "System", "System.out", "a[i]", "a", "i", "if (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "i != a.length-1", "i", "a.length-1", "a.length", "a", "a.length", "1", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "{\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "int[] a", "a", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\t// a[0]は整列済のため、結果を出力\n\t\tprint(a);\n\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}\n\n\n\t}\n\n\tstatic void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\t// a[0]は整列済のため、結果を出力\n\t\tprint(a);\n\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (a[i] < a[j]) {\n\t\t\t\t\tint tmp = a[i];\n\t\t\t\t\tfor (int k = i - 1; k >= j; k--) {\n\t\t\t\t\t\ta[k+1] = a[k];\n\t\t\t\t\t}\n\t\t\t\t\ta[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprint(a);\n\t\t}\n\n\n\t}\n\n\tstatic void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int n; Scanner sc = new Scanner(System.in); n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } // a[0]は整列済のため、結果を出力 print(a); for (int i = 1; i < a.length; i++) { for (int j = 0; j < i; j++) { if (a[i] < a[j]) { int tmp = a[i]; for (int k = i - 1; k >= j; k--) { a[k+1] = a[k]; } a[j] = tmp; } } print(a); } } static void print(int[] a) { for (int i = 0; i < a.length; i++) { System.out.print(a[i]); if (i != a.length-1) { System.out.print(" "); } else { System.out.print("\n"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 148, 5 ], [ 148, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 57, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 57, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 57, 97 ], [ 97, 98 ], [ 97, 99 ], [ 97, 100 ], [ 6, 101 ], [ 101, 102 ], [ 148, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 106, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 135, 137 ], [ 105, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 103, 143 ], [ 143, 144 ], [ 103, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }\n printArray(n, a);\n for (int i = 1; i < n; i++) {\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }\n }\n\n private static void printArray(int n, int[] a) {\n for (int k = 0; k < n; k++) {\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }\n System.out.println();\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }\n printArray(n, a);\n for (int i = 1; i < n; i++) {\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }\n }\n\n private static void printArray(int n, int[] a) {\n for (int k = 0; k < n; k++) {\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }\n System.out.println();\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }\n printArray(n, a);\n for (int i = 1; i < n; i++) {\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }\n printArray(n, a);\n for (int i = 1; i < n; i++) {\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = scanner.nextInt();\n }", "{\n a[i] = scanner.nextInt();\n }", "a[i] = scanner.nextInt()", "a[i]", "a", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "printArray(n, a)", "printArray", "n", "a", "for (int i = 1; i < n; i++) {\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }", "{\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }", "int key = a[i];", "key", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }", "j >= 0 && a[j] > key", "j >= 0", "j", "0", "a[j] > key", "a[j]", "a", "j", "key", "{\n a[j + 1] = a[j];\n j--;\n }", "a[j + 1] = a[j]", "a[j + 1]", "a", "j + 1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j + 1] = key", "a[j + 1]", "a", "j + 1", "j", "1", "key", "printArray(n, a)", "printArray", "n", "a", "String[] args", "args", "private static void printArray(int n, int[] a) {\n for (int k = 0; k < n; k++) {\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }\n System.out.println();\n }", "printArray", "{\n for (int k = 0; k < n; k++) {\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }\n System.out.println();\n }", "for (int k = 0; k < n; k++) {\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }", "{\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }", "if (k != 0) {\n System.out.print(\" \");\n }", "k != 0", "k", "0", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(a[k])", "System.out.print", "System.out", "System", "System.out", "a[k]", "a", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int n", "n", "int[] a", "a", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }\n printArray(n, a);\n for (int i = 1; i < n; i++) {\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }\n }\n\n private static void printArray(int n, int[] a) {\n for (int k = 0; k < n; k++) {\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }\n System.out.println();\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }\n printArray(n, a);\n for (int i = 1; i < n; i++) {\n int key = a[i];\n int j = i - 1;\n while (j >= 0 && a[j] > key) {\n a[j + 1] = a[j];\n j--;\n }\n a[j + 1] = key;\n printArray(n, a);\n }\n }\n\n private static void printArray(int n, int[] a) {\n for (int k = 0; k < n; k++) {\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(a[k]);\n }\n System.out.println();\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = scanner.nextInt(); } printArray(n, a); for (int i = 1; i < n; i++) { int key = a[i]; int j = i - 1; while (j >= 0 && a[j] > key) { a[j + 1] = a[j]; j--; } a[j + 1] = key; printArray(n, a); } } private static void printArray(int n, int[] a) { for (int k = 0; k < n; k++) { if (k != 0) { System.out.print(" "); } System.out.print(a[k]); } System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 13, 17, 17, 4, 18, 18, 13, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 0, 13, 4, 18, 4, 18, 13, 13, 17, 17, 4, 18, 18, 13, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 158, 8 ], [ 158, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 44, 47 ], [ 9, 48 ], [ 48, 49 ], [ 158, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 55, 61 ], [ 55, 62 ], [ 52, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 72, 76 ], [ 52, 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 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 117, 118 ], [ 117, 119 ], [ 110, 120 ], [ 120, 121 ], [ 110, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 89, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 131, 137 ], [ 131, 138 ], [ 89, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 144, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 148, 152 ], [ 50, 153 ], [ 153, 154 ], [ 50, 155 ], [ 155, 156 ], [ 0, 157 ], [ 157, 158 ], [ 157, 159 ] ]
[ "\n\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tinsertionSort(A, N);\n\t}\n\n\tpublic static void insertionSort(int[] A, int N) {\n\t\t// ??????????????????\n\t\tString output = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t// ?????????????????????\n\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tinsertionSort(A, N);\n\t}\n\n\tpublic static void insertionSort(int[] A, int N) {\n\t\t// ??????????????????\n\t\tString output = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t// ?????????????????????\n\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tinsertionSort(A, N);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tinsertionSort(A, N);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int[] A = new int[N];", "A", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "A[i] = scan.nextInt()", "A[i]", "A", "i", "scan.nextInt()", "scan.nextInt", "scan", "insertionSort(A, N)", "insertionSort", "A", "N", "String[] args", "args", "public static void insertionSort(int[] A, int N) {\n\t\t// ??????????????????\n\t\tString output = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t// ?????????????????????\n\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}\n\t}", "insertionSort", "{\n\t\t// ??????????????????\n\t\tString output = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t// ?????????????????????\n\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}\n\t}", "String output = Arrays.toString(A).replaceAll(\",\", \"\");", "output", "Arrays.toString(A).replaceAll(\",\", \"\")", "Arrays.toString(A).replaceAll", "Arrays.toString(A)", "Arrays.toString", "Arrays", "A", "\",\"", "\"\"", "System.out.println(output.substring(1, output.length() - 1))", "System.out.println", "System.out", "System", "System.out", "output.substring(1, output.length() - 1)", "output.substring", "output", "1", "output.length() - 1", "output.length()", "output.length", "output", "1", "for (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}", "A[j + 1] = A[j]", "A[j + 1]", "A", "j + 1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j + 1] = v", "A[j + 1]", "A", "j + 1", "j", "1", "v", "output = Arrays.toString(A).replaceAll(\",\", \"\")", "output", "Arrays.toString(A).replaceAll(\",\", \"\")", "Arrays.toString(A).replaceAll", "Arrays.toString(A)", "Arrays.toString", "Arrays", "A", "\",\"", "\"\"", "System.out.println(output.substring(1, output.length() - 1))", "System.out.println", "System.out", "System", "System.out", "output.substring(1, output.length() - 1)", "output.substring", "output", "1", "output.length() - 1", "output.length()", "output.length", "output", "1", "int[] A", "A", "int N", "N", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tinsertionSort(A, N);\n\t}\n\n\tpublic static void insertionSort(int[] A, int N) {\n\t\t// ??????????????????\n\t\tString output = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t// ?????????????????????\n\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tinsertionSort(A, N);\n\t}\n\n\tpublic static void insertionSort(int[] A, int N) {\n\t\t// ??????????????????\n\t\tString output = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t// ?????????????????????\n\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\t// ?????§???????????????????????°???????????????????????\\????????????????????????????????§??????\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t\tA[j + 1] = v;\n\t\t\t}\n\n\t\t\toutput = Arrays.toString(A).replaceAll(\",\", \"\");\n\t\t\tSystem.out.println(output.substring(1, output.length() - 1));\n\t\t}\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = scan.nextInt(); } insertionSort(A, N); } public static void insertionSort(int[] A, int N) { // ?????????????????? String output = Arrays.toString(A).replaceAll(",", ""); // ????????????????????? System.out.println(output.substring(1, output.length() - 1)); for (int i = 1; i < N; i++) { int v = A[i]; int j = i - 1; // ?????§???????????????????????°???????????????????????\????????????????????????????????§?????? while (j >= 0 && A[j] > v) { A[j + 1] = A[j]; j--; A[j + 1] = v; } output = Arrays.toString(A).replaceAll(",", ""); System.out.println(output.substring(1, output.length() - 1)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 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 ], [ 220, 11 ], [ 220, 12 ], [ 12, 13 ], [ 12, 14 ], [ 220, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 37, 42 ], [ 17, 43 ], [ 43, 44 ], [ 43, 45 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 17, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 17, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 75, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 100, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 114, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 121, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 89, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 140, 141 ], [ 89, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 89, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 146, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 157, 163 ], [ 163, 164 ], [ 163, 165 ], [ 156, 166 ], [ 166, 167 ], [ 89, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 171, 173 ], [ 168, 174 ], [ 17, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 182, 184 ], [ 175, 185 ], [ 185, 186 ], [ 186, 187 ], [ 175, 188 ], [ 189, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 193, 194 ], [ 193, 195 ], [ 189, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 196, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 205, 208 ], [ 17, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 209, 214 ], [ 214, 215 ], [ 215, 216 ], [ 15, 217 ], [ 217, 218 ], [ 0, 219 ], [ 219, 220 ], [ 219, 221 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//1???????????\\????????¢\n\t StringBuilder buider = new StringBuilder();\n\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String n = br.readLine();\n int key = 0;\n int kari = 0;\n\n\n //2???????????\\????????¢\n String[] input2 = br.readLine().split(\" \");\n\n //???????????????\n int[] num = new int[Integer.parseInt(n)];\n\n for(int set = 0; set < num.length; set++){\n \tnum[set] = Integer.parseInt(input2[set]);\n }\n\n //???????????????????????¨???\n for(int out = 1;out < num.length; out++){\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }\n\n //??????????????¢??¨???\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\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 void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//1???????????\\????????¢\n\t StringBuilder buider = new StringBuilder();\n\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String n = br.readLine();\n int key = 0;\n int kari = 0;\n\n\n //2???????????\\????????¢\n String[] input2 = br.readLine().split(\" \");\n\n //???????????????\n int[] num = new int[Integer.parseInt(n)];\n\n for(int set = 0; set < num.length; set++){\n \tnum[set] = Integer.parseInt(input2[set]);\n }\n\n //???????????????????????¨???\n for(int out = 1;out < num.length; out++){\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }\n\n //??????????????¢??¨???\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\t}\n}", "Main", "public void maain(){\n\n\t}", "maain", "{\n\n\t}", "public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//1???????????\\????????¢\n\t StringBuilder buider = new StringBuilder();\n\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String n = br.readLine();\n int key = 0;\n int kari = 0;\n\n\n //2???????????\\????????¢\n String[] input2 = br.readLine().split(\" \");\n\n //???????????????\n int[] num = new int[Integer.parseInt(n)];\n\n for(int set = 0; set < num.length; set++){\n \tnum[set] = Integer.parseInt(input2[set]);\n }\n\n //???????????????????????¨???\n for(int out = 1;out < num.length; out++){\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }\n\n //??????????????¢??¨???\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//1???????????\\????????¢\n\t StringBuilder buider = new StringBuilder();\n\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String n = br.readLine();\n int key = 0;\n int kari = 0;\n\n\n //2???????????\\????????¢\n String[] input2 = br.readLine().split(\" \");\n\n //???????????????\n int[] num = new int[Integer.parseInt(n)];\n\n for(int set = 0; set < num.length; set++){\n \tnum[set] = Integer.parseInt(input2[set]);\n }\n\n //???????????????????????¨???\n for(int out = 1;out < num.length; out++){\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }\n\n //??????????????¢??¨???\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\t}", "StringBuilder buider = new StringBuilder();", "buider", "new StringBuilder()", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String n = br.readLine();", "n", "br.readLine()", "br.readLine", "br", "int key = 0;", "key", "0", "int kari = 0;", "kari", "0", "String[] input2 = br.readLine().split(\" \");", "input2", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] num = new int[Integer.parseInt(n)];", "num", "new int[Integer.parseInt(n)]", "Integer.parseInt(n)", "Integer.parseInt", "Integer", "n", "for(int set = 0; set < num.length; set++){\n \tnum[set] = Integer.parseInt(input2[set]);\n }", "int set = 0;", "int set = 0;", "set", "0", "set < num.length", "set", "num.length", "num", "num.length", "set++", "set++", "set", "{\n \tnum[set] = Integer.parseInt(input2[set]);\n }", "{\n \tnum[set] = Integer.parseInt(input2[set]);\n }", "num[set] = Integer.parseInt(input2[set])", "num[set]", "num", "set", "Integer.parseInt(input2[set])", "Integer.parseInt", "Integer", "input2[set]", "input2", "set", "for(int out = 1;out < num.length; out++){\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }", "int out = 1;", "int out = 1;", "out", "1", "out < num.length", "out", "num.length", "num", "num.length", "out++", "out++", "out", "{\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }", "{\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }", "key = num[out]", "key", "num[out]", "num", "out", "kari = out -1", "kari", "out -1", "out", "1", "for(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}", "int set = 0;", "int set = 0;", "set", "0", "set < num.length", "set", "num.length", "num", "num.length", "set++", "set++", "set", "{\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}", "{\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}", "buider.append(num[set])", "buider.append", "buider", "num[set]", "num", "set", "if(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}", "set != num.length -1", "set", "num.length -1", "num.length", "num", "num.length", "1", "{\n \t\t\tbuider.append(\" \");\n \t\t}", "buider.append(\" \")", "buider.append", "buider", "\" \"", "System.out.println(buider.toString())", "System.out.println", "System.out", "System", "System.out", "buider.toString()", "buider.toString", "buider", "buider.setLength(0)", "buider.setLength", "buider", "0", "while(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}", "kari >= 0 && num[kari] > key", "kari >= 0", "kari", "0", "num[kari] > key", "num[kari]", "num", "kari", "key", "{\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}", "num[kari + 1] = num[kari]", "num[kari + 1]", "num", "kari + 1", "kari", "1", "num[kari]", "num", "kari", "kari--", "kari", "num[kari + 1] = key", "num[kari + 1]", "num", "kari + 1", "kari", "1", "key", "for(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}", "int set = 0;", "int set = 0;", "set", "0", "set < num.length", "set", "num.length", "num", "num.length", "set++", "set++", "set", "{\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}", "{\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}", "buider.append(num[set])", "buider.append", "buider", "num[set]", "num", "set", "if(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}", "set != num.length -1", "set", "num.length -1", "num.length", "num", "num.length", "1", "{\n \t\t\tbuider.append(\" \");\n \t\t}", "buider.append(\" \")", "buider.append", "buider", "\" \"", "System.out.println(buider.toString())", "System.out.println", "System.out", "System", "System.out", "buider.toString()", "buider.toString", "buider", "String[] args", "args", "public class Main {\n\tpublic void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//1???????????\\????????¢\n\t StringBuilder buider = new StringBuilder();\n\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String n = br.readLine();\n int key = 0;\n int kari = 0;\n\n\n //2???????????\\????????¢\n String[] input2 = br.readLine().split(\" \");\n\n //???????????????\n int[] num = new int[Integer.parseInt(n)];\n\n for(int set = 0; set < num.length; set++){\n \tnum[set] = Integer.parseInt(input2[set]);\n }\n\n //???????????????????????¨???\n for(int out = 1;out < num.length; out++){\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }\n\n //??????????????¢??¨???\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\t}\n}", "public class Main {\n\tpublic void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//1???????????\\????????¢\n\t StringBuilder buider = new StringBuilder();\n\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String n = br.readLine();\n int key = 0;\n int kari = 0;\n\n\n //2???????????\\????????¢\n String[] input2 = br.readLine().split(\" \");\n\n //???????????????\n int[] num = new int[Integer.parseInt(n)];\n\n for(int set = 0; set < num.length; set++){\n \tnum[set] = Integer.parseInt(input2[set]);\n }\n\n //???????????????????????¨???\n for(int out = 1;out < num.length; out++){\n \tkey = num[out];\n \tkari = out -1;\n \t//???????????\\\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\n \t//????????¢?????????\n \tbuider.setLength(0);\n\n \t//????????????\n \twhile(kari >= 0 && num[kari] > key){\n \t\tnum[kari + 1] = num[kari];\n \t\tkari--;\n \t}\n\n \t//while?????\\???????????´???\n \tnum[kari + 1] = key;\n }\n\n //??????????????¢??¨???\n \tfor(int set = 0; set < num.length; set++){\n \t\tbuider.append(num[set]);\n \t\tif(set != num.length -1){\n \t\t\tbuider.append(\" \");\n \t\t}\n \t}\n \tSystem.out.println(buider.toString());\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public void maain(){ } public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? //1???????????\????????¢ StringBuilder buider = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String n = br.readLine(); int key = 0; int kari = 0; //2???????????\????????¢ String[] input2 = br.readLine().split(" "); //??????????????? int[] num = new int[Integer.parseInt(n)]; for(int set = 0; set < num.length; set++){ num[set] = Integer.parseInt(input2[set]); } //???????????????????????¨??? for(int out = 1;out < num.length; out++){ key = num[out]; kari = out -1; //???????????\ for(int set = 0; set < num.length; set++){ buider.append(num[set]); if(set != num.length -1){ buider.append(" "); } } System.out.println(buider.toString()); //????????¢????????? buider.setLength(0); //???????????? while(kari >= 0 && num[kari] > key){ num[kari + 1] = num[kari]; kari--; } //while?????\???????????´??? num[kari + 1] = key; } //??????????????¢??¨??? for(int set = 0; set < num.length; set++){ buider.append(num[set]); if(set != num.length -1){ buider.append(" "); } } System.out.println(buider.toString()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 14, 2, 2, 13, 17, 18, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 14, 2, 2, 13, 17, 18, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 195, 5 ], [ 195, 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, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 28, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 8, 90 ], [ 90, 91 ], [ 90, 92 ], [ 6, 93 ], [ 93, 94 ], [ 195, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 98, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 112, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 112, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 123, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 134, 140 ], [ 140, 141 ], [ 140, 142 ], [ 133, 143 ], [ 143, 144 ], [ 112, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 112, 152 ], [ 152, 153 ], [ 152, 154 ], [ 112, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 162, 164 ], [ 155, 165 ], [ 165, 166 ], [ 166, 167 ], [ 155, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 172, 174 ], [ 169, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 180, 181 ], [ 180, 182 ], [ 175, 183 ], [ 183, 184 ], [ 183, 185 ], [ 112, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 95, 192 ], [ 192, 193 ], [ 0, 194 ], [ 194, 195 ], [ 194, 196 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint[] values = new int[a];\n\t\tString sr[] = new String[a];\n\t\tString str = \"\";\n\n\t\tfor(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] = s.nextInt();\n\t\t}\n\t\tString disp = \"\";\n\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}\n\t\tSystem.out.println(disp);\n\t\tsolve(values);\n\t}\n\n\tpublic static void solve(int[] values) {\n\t\tfor(int i=1 ; i<values.length ; i++) {\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint[] values = new int[a];\n\t\tString sr[] = new String[a];\n\t\tString str = \"\";\n\n\t\tfor(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] = s.nextInt();\n\t\t}\n\t\tString disp = \"\";\n\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}\n\t\tSystem.out.println(disp);\n\t\tsolve(values);\n\t}\n\n\tpublic static void solve(int[] values) {\n\t\tfor(int i=1 ; i<values.length ; i++) {\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint[] values = new int[a];\n\t\tString sr[] = new String[a];\n\t\tString str = \"\";\n\n\t\tfor(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] = s.nextInt();\n\t\t}\n\t\tString disp = \"\";\n\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}\n\t\tSystem.out.println(disp);\n\t\tsolve(values);\n\t}", "main", "{\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint[] values = new int[a];\n\t\tString sr[] = new String[a];\n\t\tString str = \"\";\n\n\t\tfor(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] = s.nextInt();\n\t\t}\n\t\tString disp = \"\";\n\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}\n\t\tSystem.out.println(disp);\n\t\tsolve(values);\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int a = s.nextInt();", "a", "s.nextInt()", "s.nextInt", "s", "int[] values = new int[a];", "values", "new int[a]", "a", "String sr[] = new String[a];", "sr", "new String[a]", "a", "String str = \"\";", "str", "\"\"", "for(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] = s.nextInt();\n\t\t}", "int i=0 ;", "int i=0 ;", "i", "0", "i<sr.length", "i", "sr.length", "sr", "sr.length", "i++", "i++", "i", "{\n\t\t\tvalues[i] = s.nextInt();\n\t\t}", "{\n\t\t\tvalues[i] = s.nextInt();\n\t\t}", "values[i] = s.nextInt()", "values[i]", "values", "i", "s.nextInt()", "s.nextInt", "s", "String disp = \"\";", "disp", "\"\"", "for(int j=0 ; j<values.length ; j++) {\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}", "int j=0 ;", "int j=0 ;", "j", "0", "j<values.length", "j", "values.length", "values", "values.length", "j++", "j++", "j", "{\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}", "{\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}", "disp += values[j]", "disp", "values[j]", "values", "j", "if(j+1<values.length)\n\t\t\t\tdisp += \" \";", "j+1<values.length", "j+1", "j", "1", "values.length", "values", "values.length", "disp += \" \"", "disp", "\" \"", "System.out.println(disp)", "System.out.println", "System.out", "System", "System.out", "disp", "solve(values)", "solve", "values", "String[] args", "args", "public static void solve(int[] values) {\n\t\tfor(int i=1 ; i<values.length ; i++) {\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}", "solve", "{\n\t\tfor(int i=1 ; i<values.length ; i++) {\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}", "for(int i=1 ; i<values.length ; i++) {\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}", "int i=1 ;", "int i=1 ;", "i", "1", "i<values.length", "i", "values.length", "values", "values.length", "i++", "i++", "i", "{\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}", "{\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}", "int targetV = values[i];", "targetV", "values[i]", "values", "i", "int movableIndex = i - 1;", "movableIndex", "i - 1", "i", "1", "while(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}", "movableIndex >= 0 && values[movableIndex] > targetV", "movableIndex >= 0", "movableIndex", "0", "values[movableIndex] > targetV", "values[movableIndex]", "values", "movableIndex", "targetV", "{\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}", "values[movableIndex + 1] = values[movableIndex]", "values[movableIndex + 1]", "values", "movableIndex + 1", "movableIndex", "1", "values[movableIndex]", "values", "movableIndex", "movableIndex--", "movableIndex", "values[movableIndex + 1] = targetV", "values[movableIndex + 1]", "values", "movableIndex + 1", "movableIndex", "1", "targetV", "String disp = \"\";", "disp", "\"\"", "for(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}", "int j=0 ;", "int j=0 ;", "j", "0", "j<values.length", "j", "values.length", "values", "values.length", "j++", "j++", "j", "{\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}", "{\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}", "disp += values[j]", "disp", "values[j]", "values", "j", "if(j+1<values.length)\n\t\t\t\t\tdisp += \" \";", "j+1<values.length", "j+1", "j", "1", "values.length", "values", "values.length", "disp += \" \"", "disp", "\" \"", "System.out.println(disp)", "System.out.println", "System.out", "System", "System.out", "disp", "int[] values", "values", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint[] values = new int[a];\n\t\tString sr[] = new String[a];\n\t\tString str = \"\";\n\n\t\tfor(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] = s.nextInt();\n\t\t}\n\t\tString disp = \"\";\n\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}\n\t\tSystem.out.println(disp);\n\t\tsolve(values);\n\t}\n\n\tpublic static void solve(int[] values) {\n\t\tfor(int i=1 ; i<values.length ; i++) {\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint[] values = new int[a];\n\t\tString sr[] = new String[a];\n\t\tString str = \"\";\n\n\t\tfor(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] = s.nextInt();\n\t\t}\n\t\tString disp = \"\";\n\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\tdisp += values[j];\n\t\t\tif(j+1<values.length)\n\t\t\t\tdisp += \" \";\n\t\t}\n\t\tSystem.out.println(disp);\n\t\tsolve(values);\n\t}\n\n\tpublic static void solve(int[] values) {\n\t\tfor(int i=1 ; i<values.length ; i++) {\n\t\t\tint targetV = values[i];\n\t\t\tint movableIndex = i - 1;\n\t\t\twhile(movableIndex >= 0 && values[movableIndex] > targetV) {\n\t\t\t\tvalues[movableIndex + 1] = values[movableIndex];\n\t\t\t\tmovableIndex--;\n\t\t\t}\n\t\t\tvalues[movableIndex + 1] = targetV;\n\t\t\tString disp = \"\";\n\t\t\tfor(int j=0 ; j<values.length ; j++) {\n\t\t\t\tdisp += values[j];\n\t\t\t\tif(j+1<values.length)\n\t\t\t\t\tdisp += \" \";\n\t\t\t}\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int[] values = new int[a]; String sr[] = new String[a]; String str = ""; for(int i=0 ; i<sr.length ; i++) { values[i] = s.nextInt(); } String disp = ""; for(int j=0 ; j<values.length ; j++) { disp += values[j]; if(j+1<values.length) disp += " "; } System.out.println(disp); solve(values); } public static void solve(int[] values) { for(int i=1 ; i<values.length ; i++) { int targetV = values[i]; int movableIndex = i - 1; while(movableIndex >= 0 && values[movableIndex] > targetV) { values[movableIndex + 1] = values[movableIndex]; movableIndex--; } values[movableIndex + 1] = targetV; String disp = ""; for(int j=0 ; j<values.length ; j++) { disp += values[j]; if(j+1<values.length) disp += " "; } System.out.println(disp); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 4, 18, 13, 4, 18, 13, 18, 13, 13, 8, 2, 13, 2, 13, 17, 17, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 17, 13, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 4, 18, 13, 4, 18, 13, 18, 13, 13, 8, 2, 13, 2, 13, 17, 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 ], [ 196, 8 ], [ 196, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 19, 29 ], [ 29, 30 ], [ 29, 31 ], [ 19, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 19, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 42, 47 ], [ 19, 48 ], [ 48, 49 ], [ 49, 50 ], [ 19, 51 ], [ 51, 52 ], [ 51, 53 ], [ 19, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 91, 98 ], [ 19, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 99, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 113, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 113, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 146, 152 ], [ 113, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 158, 160 ], [ 153, 161 ], [ 161, 162 ], [ 162, 163 ], [ 153, 164 ], [ 165, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 174, 175 ], [ 174, 176 ], [ 166, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 180, 182 ], [ 177, 183 ], [ 177, 184 ], [ 19, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 185, 190 ], [ 190, 191 ], [ 191, 192 ], [ 9, 193 ], [ 193, 194 ], [ 0, 195 ], [ 195, 196 ], [ 195, 197 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t}", "StringBuilder out = new StringBuilder();", "out", "new StringBuilder()", "String lb = System.getProperty(\"line.separator\");", "lb", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(in.readLine());", "n", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "String[] line = in.readLine().split(\"[\\\\s]+\");", "line", "in.readLine().split(\"[\\\\s]+\")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\"[\\\\s]+\"", "in.close()", "in.close", "in", "int[] seq = new int[n];", "seq", "new int[n]", "n", "for (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < seq.length", "i", "seq.length", "seq", "seq.length", "i++", "i++", "i", "{\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}", "{\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}", "seq[i] = Integer.parseInt(line[i])", "seq[i]", "seq", "i", "Integer.parseInt(line[i])", "Integer.parseInt", "Integer", "line[i]", "line", "i", "out.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb)", "out.append(String.valueOf(seq[i])).append", "out.append(String.valueOf(seq[i]))", "out.append", "out", "String.valueOf(seq[i])", "String.valueOf", "String", "seq[i]", "seq", "i", "i < n-1 ? \" \" : lb", "i < n-1", "i", "n-1", "n", "1", "\" \"", "lb", "for (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < seq.length", "i", "seq.length", "seq", "seq.length", "i++", "i++", "i", "{\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}", "final int key = seq[i];", "key", "seq[i]", "seq", "i", "int j = i-1;", "j", "i-1", "i", "1", "while (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "0 <= j && key < seq[j]", "0 <= j", "0", "j", "key < seq[j]", "key", "seq[j]", "seq", "j", "{\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "seq[j+1] = seq[j]", "seq[j+1]", "seq", "j+1", "j", "1", "seq[j]", "seq", "j", "j--", "j", "seq[j+1] = key", "seq[j+1]", "seq", "j+1", "j", "1", "key", "for (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}", "{\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}", "out.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb)", "out.append(String.valueOf(seq[k])).append", "out.append(String.valueOf(seq[k]))", "out.append", "out", "String.valueOf(seq[k])", "String.valueOf", "String", "seq[k]", "seq", "k", "k < n-1 ? \" \" : lb", "k < n-1", "k", "n-1", "n", "1", "\" \"", "lb", "System.out.print(out.toString())", "System.out.print", "System.out", "System", "System.out", "out.toString()", "out.toString", "out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\tString[] line = in.readLine().split(\"[\\\\s]+\");\n\t\t\tin.close();\n\t\t\t\n\t\t\tint[] seq = new int[n];\n\t\t\tfor (int i = 0; i < seq.length; i++) {\n\t\t\t\tseq[i] = Integer.parseInt(line[i]);\n\t\t\t\tout.append(String.valueOf(seq[i])).append(i < n-1 ? \" \" : lb);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 1; i < seq.length; i++) {\n\t\t\t\tfinal int key = seq[i];\n\t\t\t\tint j = i-1;\n\t\t\t\twhile (0 <= j && key < seq[j]) {\n\t\t\t\t\tseq[j+1] = seq[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tseq[j+1] = key;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tout.append(String.valueOf(seq[k])).append(k < n-1 ? \" \" : lb);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(out.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { StringBuilder out = new StringBuilder(); String lb = System.getProperty("line.separator"); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(in.readLine()); String[] line = in.readLine().split("[\\s]+"); in.close(); int[] seq = new int[n]; for (int i = 0; i < seq.length; i++) { seq[i] = Integer.parseInt(line[i]); out.append(String.valueOf(seq[i])).append(i < n-1 ? " " : lb); } for (int i = 1; i < seq.length; i++) { final int key = seq[i]; int j = i-1; while (0 <= j && key < seq[j]) { seq[j+1] = seq[j]; j--; } seq[j+1] = key; for (int k = 0; k < n; k++) { out.append(String.valueOf(seq[k])).append(k < n-1 ? " " : lb); } } System.out.print(out.toString()); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 4, 13, 4, 13, 12, 13, 30, 41, 13, 20, 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, 12, 13, 30, 41, 13, 11, 1, 41, 13, 17, 41, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 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, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 165, 5 ], [ 165, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 6, 12 ], [ 12, 13 ], [ 0, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 38, 40 ], [ 29, 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 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 14, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 67, 74 ], [ 74, 75 ], [ 74, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 67, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 81, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 102, 112 ], [ 112, 113 ], [ 81, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 81, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 121, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 135, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 144, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 81, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "import java.util.Scanner; public class Main { public static void main(String[] args) { Solve.run(); } } class Solve { private static int N; private static int[] vec; static void run() { input(); solve(); } static void input() { Scanner sc = new Scanner(System.in); N = sc.nextInt(); vec = new int[N]; for (int i = 0; i < N; i++) { vec[i] = sc.nextInt(); } } static void solve() { int tmp; for (int i = 0, j; i < N; i++) { tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } } System.out.println(); } } } ", "import java.util.Scanner;", "Scanner", "java.util", "public class Main { public static void main(String[] args) { Solve.run(); } }", "Main", "public static void main(String[] args) { Solve.run(); }", "main", "{ Solve.run(); }", "Solve.run()", "Solve.run", "Solve", "String[] args", "args", "class Solve { private static int N; private static int[] vec; static void run() { input(); solve(); } static void input() { Scanner sc = new Scanner(System.in); N = sc.nextInt(); vec = new int[N]; for (int i = 0; i < N; i++) { vec[i] = sc.nextInt(); } } static void solve() { int tmp; for (int i = 0, j; i < N; i++) { tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } } System.out.println(); } } }", "Solve", "private static int N;", "N", "private static int[] vec;", "vec", "static void run() { input(); solve(); }", "run", "{ input(); solve(); }", "input()", "input", "solve()", "solve", "static void input() { Scanner sc = new Scanner(System.in); N = sc.nextInt(); vec = new int[N]; for (int i = 0; i < N; i++) { vec[i] = sc.nextInt(); } }", "input", "{ Scanner sc = new Scanner(System.in); N = sc.nextInt(); vec = new int[N]; for (int i = 0; i < N; i++) { vec[i] = sc.nextInt(); } }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "N = sc.nextInt()", "N", "sc.nextInt()", "sc.nextInt", "sc", "vec = new int[N]", "vec", "new int[N]", "N", "for (int i = 0; i < N; i++) { vec[i] = sc.nextInt(); }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{ vec[i] = sc.nextInt(); }", "{ vec[i] = sc.nextInt(); }", "vec[i] = sc.nextInt()", "vec[i]", "vec", "i", "sc.nextInt()", "sc.nextInt", "sc", "static void solve() { int tmp; for (int i = 0, j; i < N; i++) { tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } } System.out.println(); } }", "solve", "{ int tmp; for (int i = 0, j; i < N; i++) { tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } } System.out.println(); } }", "int tmp;", "tmp", "for (int i = 0, j; i < N; i++) { tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } } System.out.println(); }", "int i = 0, j;", "int i = 0", "i", "0", "j;", "j", "i < N", "i", "N", "i++", "i++", "i", "{ tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } } System.out.println(); }", "{ tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } } System.out.println(); }", "tmp = vec[i]", "tmp", "vec[i]", "vec", "i", "j = i - 1", "j", "i - 1", "i", "1", "while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; }", "j >= 0 && vec[j] > tmp", "j >= 0", "j", "0", "vec[j] > tmp", "vec[j]", "vec", "j", "tmp", "{ vec[j + 1] = vec[j]; j--; }", "vec[j + 1] = vec[j]", "vec[j + 1]", "vec", "j + 1", "j", "1", "vec[j]", "vec", "j", "j--", "j", "vec[j + 1] = tmp", "vec[j + 1]", "vec", "j + 1", "j", "1", "tmp", "for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } }", "int i1 = 0;", "int i1 = 0;", "i1", "0", "i1 < vec.length", "i1", "vec.length", "vec", "vec.length", "i1++", "i1++", "i1", "{ System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } }", "{ System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(\" \"); } }", "System.out.print(vec[i1])", "System.out.print", "System.out", "System", "System.out", "vec[i1]", "vec", "i1", "if (i1 != vec.length - 1) { System.out.print(\" \"); }", "i1 != vec.length - 1", "i1", "vec.length - 1", "vec.length", "vec", "vec.length", "1", "{ System.out.print(\" \"); }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "public class Main { public static void main(String[] args) { Solve.run(); } }", "public class Main { public static void main(String[] args) { Solve.run(); } }", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Solve.run(); } } class Solve { private static int N; private static int[] vec; static void run() { input(); solve(); } static void input() { Scanner sc = new Scanner(System.in); N = sc.nextInt(); vec = new int[N]; for (int i = 0; i < N; i++) { vec[i] = sc.nextInt(); } } static void solve() { int tmp; for (int i = 0, j; i < N; i++) { tmp = vec[i]; j = i - 1; while (j >= 0 && vec[j] > tmp) { vec[j + 1] = vec[j]; j--; } vec[j + 1] = tmp; for (int i1 = 0; i1 < vec.length; i1++) { System.out.print(vec[i1]); if (i1 != vec.length - 1) { System.out.print(" "); } } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 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 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 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 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 57, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 95, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 106, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 117, 123 ], [ 123, 124 ], [ 123, 125 ], [ 116, 126 ], [ 126, 127 ], [ 95, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 95, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 135, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 147, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 159, 161 ], [ 156, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 95, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 6, 173 ], [ 173, 174 ] ]
[ "\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint N = scan.nextInt();\n\t\t\n\t\tint v, j;\n\t\tint[] A = new int[N];\n\t\t\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int k = 0; k < N; k++){\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i = 1; i < N; i++){\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\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 scan = new Scanner(System.in);\n\t\t\n\t\tint N = scan.nextInt();\n\t\t\n\t\tint v, j;\n\t\tint[] A = new int[N];\n\t\t\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int k = 0; k < N; k++){\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i = 1; i < N; i++){\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\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 scan = new Scanner(System.in);\n\t\t\n\t\tint N = scan.nextInt();\n\t\t\n\t\tint v, j;\n\t\tint[] A = new int[N];\n\t\t\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int k = 0; k < N; k++){\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i = 1; i < N; i++){\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint N = scan.nextInt();\n\t\t\n\t\tint v, j;\n\t\tint[] A = new int[N];\n\t\t\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int k = 0; k < N; k++){\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i = 1; i < N; i++){\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\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)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int v", "v", "j;", "j", "int[] A = new int[N];", "A", "new int[N]", "N", "for(int i = 0; i < N; i++){\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tA[i] = scan.nextInt();\n\t\t}", "A[i] = scan.nextInt()", "A[i]", "A", "i", "scan.nextInt()", "scan.nextInt", "scan", "for(int k = 0; k < N; k++){\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < N", "k", "N", "k++", "k++", "k", "{\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t}", "{\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t}", "System.out.print(A[k])", "System.out.print", "System.out", "System", "System.out", "A[k]", "A", "k", "if(k < N-1)System.out.print(\" \");", "k < N-1", "k", "N-1", "N", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(int i = 1; i < N; i++){\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\t\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tfor(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "v = A[i]", "v", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while(j >= 0 && A[j] > v){\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "for(int k = 0; k < N; k++){\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < N", "k", "N", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(A[k]);\n\t\t\t\tif(k < N-1)System.out.print(\" \");\n\t\t\t}", "System.out.print(A[k])", "System.out.print", "System.out", "System", "System.out", "A[k]", "A", "k", "if(k < N-1)System.out.print(\" \");", "k < N-1", "k", "N-1", "N", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int v, j; int[] A = new int[N]; for(int i = 0; i < N; i++){ A[i] = scan.nextInt(); } for(int k = 0; k < N; k++){ System.out.print(A[k]); if(k < N-1)System.out.print(" "); } System.out.println(); for(int i = 1; i < N; i++){ v = A[i]; j = i - 1; while(j >= 0 && A[j] > v){ A[j+1] = A[j]; j--; } A[j+1] = v; for(int k = 0; k < N; k++){ System.out.print(A[k]); if(k < N-1)System.out.print(" "); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 11, 1, 0, 13, 2, 13, 17, 2, 2, 17, 13, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 29, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 29, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 29, 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 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 16, 26 ], [ 26, 27 ], [ 27, 28 ], [ 16, 29 ], [ 30, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 36, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 36, 52 ], [ 52, 53 ], [ 53, 54 ], [ 36, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 30, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 65, 71 ], [ 30, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 6, 76 ], [ 76, 77 ], [ 4, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 96, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 80, 124 ], [ 78, 125 ], [ 125, 126 ], [ 4, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 129, 138 ], [ 138, 139 ], [ 138, 140 ], [ 129, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 147, 148 ], [ 147, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 142, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 159, 160 ], [ 129, 161 ], [ 161, 162 ], [ 161, 163 ], [ 129, 164 ], [ 127, 165 ], [ 165, 166 ] ]
[ "import java.util.Scanner;\nclass Main\n{\n\tstatic void sort( int A[] )\n\t{\n\t\tputArray(A);\n\t\tint v, j;\n\t\tfor( int i = 1 ; i < A.length ; i++ )\n\t\t{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}\n\t\treturn;\n\t}\n\tstatic void putArray( int A[] )\n\t{\n\t\tfor( int i = 0 ; i < A.length ; i++ )\n\t\t{\n\t\t\tif( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );\n\t\t}\n\t\treturn;\n\t}\n\tpublic static void main( String[] args )\n\t{\n\t\tScanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tfor( int i = 0 ; i < n ; i++ )\n\t\t\tA[i] = sc.nextInt();\n\t\tsort( A );\n\t\t\n\t\treturn;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n\tstatic void sort( int A[] )\n\t{\n\t\tputArray(A);\n\t\tint v, j;\n\t\tfor( int i = 1 ; i < A.length ; i++ )\n\t\t{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}\n\t\treturn;\n\t}\n\tstatic void putArray( int A[] )\n\t{\n\t\tfor( int i = 0 ; i < A.length ; i++ )\n\t\t{\n\t\t\tif( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );\n\t\t}\n\t\treturn;\n\t}\n\tpublic static void main( String[] args )\n\t{\n\t\tScanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tfor( int i = 0 ; i < n ; i++ )\n\t\t\tA[i] = sc.nextInt();\n\t\tsort( A );\n\t\t\n\t\treturn;\n\t}\n}", "Main", "static void sort( int A[] )\n\t{\n\t\tputArray(A);\n\t\tint v, j;\n\t\tfor( int i = 1 ; i < A.length ; i++ )\n\t\t{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}\n\t\treturn;\n\t}", "sort", "{\n\t\tputArray(A);\n\t\tint v, j;\n\t\tfor( int i = 1 ; i < A.length ; i++ )\n\t\t{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}\n\t\treturn;\n\t}", "putArray(A)", "putArray", "A", "int v", "v", "j;", "j", "for( int i = 1 ; i < A.length ; i++ )\n\t\t{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}", "int i = 1 ;", "int i = 1 ;", "i", "1", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}", "{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}", "v = A[i]", "v", "A[i]", "A", "i", "for( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];", "j = i-1 ;", "j = i-1", "j", "i-1", "i", "1", "0<=j && v<A[j]", "0<=j", "0", "j", "v<A[j]", "v", "A[j]", "A", "j", "j--", "j--", "j", "A[j+1] = A[j];", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "putArray(A)", "putArray", "A", "return;", "int A[]", "A", "static void putArray( int A[] )\n\t{\n\t\tfor( int i = 0 ; i < A.length ; i++ )\n\t\t{\n\t\t\tif( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );\n\t\t}\n\t\treturn;\n\t}", "putArray", "{\n\t\tfor( int i = 0 ; i < A.length ; i++ )\n\t\t{\n\t\t\tif( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );\n\t\t}\n\t\treturn;\n\t}", "for( int i = 0 ; i < A.length ; i++ )\n\t\t{\n\t\t\tif( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tif( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );\n\t\t}", "{\n\t\t\tif( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );\n\t\t}", "if( i==A.length-1 )\n\t\t\t\tSystem.out.print( A[i]+\"\\n\" );\n\t\t\telse\n\t\t\t\tSystem.out.print( A[i]+\" \" );", "i==A.length-1", "i", "A.length-1", "A.length", "A", "A.length", "1", "System.out.print( A[i]+\"\\n\" )", "System.out.print", "System.out", "System", "System.out", "A[i]+\"\\n\"", "A[i]", "A", "i", "\"\\n\"", "System.out.print( A[i]+\" \" )", "System.out.print", "System.out", "System", "System.out", "A[i]+\" \"", "A[i]", "A", "i", "\" \"", "return;", "int A[]", "A", "public static void main( String[] args )\n\t{\n\t\tScanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tfor( int i = 0 ; i < n ; i++ )\n\t\t\tA[i] = sc.nextInt();\n\t\tsort( A );\n\t\t\n\t\treturn;\n\t}", "main", "{\n\t\tScanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tfor( int i = 0 ; i < n ; i++ )\n\t\t\tA[i] = sc.nextInt();\n\t\tsort( A );\n\t\t\n\t\treturn;\n\t}", "Scanner sc = new java.util.Scanner( System.in );", "sc", "new java.util.Scanner( System.in )", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int A[] = new int[n];", "A", "new int[n]", "n", "for( int i = 0 ; i < n ; i++ )\n\t\t\tA[i] = sc.nextInt();", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "A[i] = sc.nextInt();", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "sort( A )", "sort", "A", "return;", "String[] args", "args" ]
import java.util.Scanner; class Main { static void sort( int A[] ) { putArray(A); int v, j; for( int i = 1 ; i < A.length ; i++ ) { v = A[i]; for( j = i-1 ; 0<=j && v<A[j] ; j-- ) A[j+1] = A[j]; A[j+1] = v; putArray(A); } return; } static void putArray( int A[] ) { for( int i = 0 ; i < A.length ; i++ ) { if( i==A.length-1 ) System.out.print( A[i]+"\n" ); else System.out.print( A[i]+" " ); } return; } public static void main( String[] args ) { Scanner sc = new java.util.Scanner( System.in ); int n = sc.nextInt(); int A[] = new int[n]; for( int i = 0 ; i < n ; i++ ) A[i] = sc.nextInt(); sort( A ); return; } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 4, 18, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 6 ], [ 6, 7 ], [ 6, 8 ], [ 150, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 11, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 11, 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 ], [ 62, 64 ], [ 59, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 59, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 59, 99 ], [ 99, 100 ], [ 99, 101 ], [ 99, 102 ], [ 11, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 9, 109 ], [ 109, 110 ], [ 150, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 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 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 126, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 138, 140 ], [ 113, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 111, 145 ], [ 145, 146 ], [ 111, 147 ], [ 147, 148 ], [ 0, 149 ], [ 149, 150 ], [ 149, 151 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tstatic StringBuilder builder = new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.nextInt();\n\t\t\n\t\ttrace(A, n);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tprivate static void trace(int[] A, int n) {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}\n\t\tbuilder.append(\"\\n\");\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tstatic StringBuilder builder = new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.nextInt();\n\t\t\n\t\ttrace(A, n);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tprivate static void trace(int[] A, int n) {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}\n\t\tbuilder.append(\"\\n\");\n\t}\n}", "Main", "static StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.nextInt();\n\t\t\n\t\ttrace(A, n);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}\n\t\tSystem.out.print(builder);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.nextInt();\n\t\t\n\t\ttrace(A, n);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}\n\t\tSystem.out.print(builder);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] A = new int[n];", "A", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "A[i] = scanner.nextInt();", "A[i] = scanner.nextInt()", "A[i]", "A", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "trace(A, n)", "trace", "A", "n", "for (int i = 1; i < n; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}", "{\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}", "A[j + 1] = A[j]", "A[j + 1]", "A", "j + 1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j + 1] = v", "A[j + 1]", "A", "j + 1", "j", "1", "v", "trace(A, n)", "trace", "A", "n", "System.out.print(builder)", "System.out.print", "System.out", "System", "System.out", "builder", "String[] args", "args", "private static void trace(int[] A, int n) {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}\n\t\tbuilder.append(\"\\n\");\n\t}", "trace", "{\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}\n\t\tbuilder.append(\"\\n\");\n\t}", "for (int i = 0; i < n; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}", "{\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}", "if (i > 0)\n\t\t\t\tbuilder.append(\" \");", "i > 0", "i", "0", "builder.append(\" \")", "builder.append", "builder", "\" \"", "builder.append(A[i])", "builder.append", "builder", "A[i]", "A", "i", "builder.append(\"\\n\")", "builder.append", "builder", "\"\\n\"", "int[] A", "A", "int n", "n", "public class Main {\n\tstatic StringBuilder builder = new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.nextInt();\n\t\t\n\t\ttrace(A, n);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tprivate static void trace(int[] A, int n) {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}\n\t\tbuilder.append(\"\\n\");\n\t}\n}", "public class Main {\n\tstatic StringBuilder builder = new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.nextInt();\n\t\t\n\t\ttrace(A, n);\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j + 1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j + 1] = v;\n\t\t\ttrace(A, n);\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tprivate static void trace(int[] A, int n) {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (i > 0)\n\t\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(A[i]);\n\t\t}\n\t\tbuilder.append(\"\\n\");\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static StringBuilder builder = new StringBuilder(); public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] A = new int[n]; for (int i = 0; i < n; i++) A[i] = scanner.nextInt(); trace(A, n); for (int i = 1; i < n; i++) { int v = A[i]; int j = i - 1; while (j >= 0 && A[j] > v) { A[j + 1] = A[j]; j--; } A[j + 1] = v; trace(A, n); } System.out.print(builder); } private static void trace(int[] A, int n) { for (int i = 0; i < n; i++) { if (i > 0) builder.append(" "); builder.append(A[i]); } builder.append("\n"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 17, 41, 13, 41, 13, 41, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 4, 18, 13, 13, 4, 18, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 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 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 25, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 8, 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 ], [ 63, 65 ], [ 60, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 60, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 71, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 60, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 60, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 111, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.io.*;\n \npublic class Main {\n public static void main(String[] args) throws IOException{\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n int n = Integer.parseInt(br.readLine());\n String[] A = br.readLine().split(\" \", 0);\n int i, j;\n String v;\n \n System.out.println(String.join(\" \", A));\n \n for(i=1; i<n; i++){\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws IOException{\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n int n = Integer.parseInt(br.readLine());\n String[] A = br.readLine().split(\" \", 0);\n int i, j;\n String v;\n \n System.out.println(String.join(\" \", A));\n \n for(i=1; i<n; i++){\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n int n = Integer.parseInt(br.readLine());\n String[] A = br.readLine().split(\" \", 0);\n int i, j;\n String v;\n \n System.out.println(String.join(\" \", A));\n \n for(i=1; i<n; i++){\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }\n }", "main", "{\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n int n = Integer.parseInt(br.readLine());\n String[] A = br.readLine().split(\" \", 0);\n int i, j;\n String v;\n \n System.out.println(String.join(\" \", A));\n \n for(i=1; i<n; i++){\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }\n }", "InputStreamReader is = new InputStreamReader(System.in);", "is", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(is);", "br", "new BufferedReader(is)", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String[] A = br.readLine().split(\" \", 0);", "A", "br.readLine().split(\" \", 0)", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "0", "int i", "i", "j;", "j", "String v;", "v", "System.out.println(String.join(\" \", A))", "System.out.println", "System.out", "System", "System.out", "String.join(\" \", A)", "String.join", "String", "\" \"", "A", "for(i=1; i<n; i++){\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }", "i=1;", "i=1", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }", "{\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }", "v = A[i]", "v", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }", "j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])", "j>=0", "j", "0", "Integer.parseInt(v)<Integer.parseInt(A[j])", "Integer.parseInt(v)", "Integer.parseInt", "Integer", "v", "Integer.parseInt(A[j])", "Integer.parseInt", "Integer", "A[j]", "A", "j", "{\n A[j+1] = A[j];\n j--;\n }", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "System.out.println(String.join(\" \", A))", "System.out.println", "System.out", "System", "System.out", "String.join(\" \", A)", "String.join", "String", "\" \"", "A", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException{\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n int n = Integer.parseInt(br.readLine());\n String[] A = br.readLine().split(\" \", 0);\n int i, j;\n String v;\n \n System.out.println(String.join(\" \", A));\n \n for(i=1; i<n; i++){\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException{\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n int n = Integer.parseInt(br.readLine());\n String[] A = br.readLine().split(\" \", 0);\n int i, j;\n String v;\n \n System.out.println(String.join(\" \", A));\n \n for(i=1; i<n; i++){\n v = A[i];\n j = i - 1;\n while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n System.out.println(String.join(\" \", A));\n }\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); int n = Integer.parseInt(br.readLine()); String[] A = br.readLine().split(" ", 0); int i, j; String v; System.out.println(String.join(" ", A)); for(i=1; i<n; i++){ v = A[i]; j = i - 1; while(j>=0 && Integer.parseInt(v)<Integer.parseInt(A[j])){ A[j+1] = A[j]; j--; } A[j+1] = v; System.out.println(String.join(" ", A)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 13, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 17, 42, 4, 18, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 40, 13, 0, 13, 17, 41, 13, 2, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 41, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 41, 13, 2, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 29, 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 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 53, 55 ], [ 43, 56 ], [ 56, 57 ], [ 56, 58 ], [ 43, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 74, 75 ], [ 43, 76 ], [ 76, 77 ], [ 76, 78 ], [ 43, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 43, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 104, 104 ], [ 104, 105 ], [ 104, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 43, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 43, 116 ], [ 116, 117 ], [ 116, 118 ], [ 43, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 15, 124 ], [ 124, 125 ], [ 13, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 132, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 146, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 154, 156 ], [ 146, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 157, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 171, 173 ], [ 168, 174 ], [ 174, 175 ], [ 174, 176 ], [ 167, 177 ], [ 177, 178 ], [ 146, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 182, 184 ], [ 179, 185 ], [ 146, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 190, 192 ], [ 146, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 200, 202 ], [ 193, 203 ], [ 203, 204 ], [ 204, 205 ], [ 193, 206 ], [ 207, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 211, 211 ], [ 211, 212 ], [ 211, 213 ], [ 211, 214 ], [ 214, 215 ], [ 214, 216 ], [ 146, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 217, 222 ], [ 146, 223 ], [ 223, 224 ], [ 223, 225 ], [ 128, 226 ], [ 226, 227 ], [ 126, 228 ], [ 228, 229 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString SORT_LENGTH=br.readLine();\n\t\tint LENGTH=Integer.parseInt(SORT_LENGTH);\n\t\twhile (true){\n\t\t\ttry{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int[] Insert_srt(int[] a){\t\t//????????????????????????????????°??¨????????£??\\\n\t\tint[] ary=a;\n\t\tfor(int i=1; i<ary.length; i++){\n\t\t\tint v=ary[i];\n\t\t\tint j=i-1;\n\n\t\t\twhile(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tary[j+1]=v;\n\t\t\tString ketsugou=\"\"+ary[0];\n\t\t\tfor(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}\n\t\t\tSystem.out.println(ketsugou);\n\t\t\tketsugou=\"\";\n\t\t}\n\t\treturn ary;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString SORT_LENGTH=br.readLine();\n\t\tint LENGTH=Integer.parseInt(SORT_LENGTH);\n\t\twhile (true){\n\t\t\ttry{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int[] Insert_srt(int[] a){\t\t//????????????????????????????????°??¨????????£??\\\n\t\tint[] ary=a;\n\t\tfor(int i=1; i<ary.length; i++){\n\t\t\tint v=ary[i];\n\t\t\tint j=i-1;\n\n\t\t\twhile(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tary[j+1]=v;\n\t\t\tString ketsugou=\"\"+ary[0];\n\t\t\tfor(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}\n\t\t\tSystem.out.println(ketsugou);\n\t\t\tketsugou=\"\";\n\t\t}\n\t\treturn ary;\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString SORT_LENGTH=br.readLine();\n\t\tint LENGTH=Integer.parseInt(SORT_LENGTH);\n\t\twhile (true){\n\t\t\ttry{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString SORT_LENGTH=br.readLine();\n\t\tint LENGTH=Integer.parseInt(SORT_LENGTH);\n\t\twhile (true){\n\t\t\ttry{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String SORT_LENGTH=br.readLine();", "SORT_LENGTH", "br.readLine()", "br.readLine", "br", "int LENGTH=Integer.parseInt(SORT_LENGTH);", "LENGTH", "Integer.parseInt(SORT_LENGTH)", "Integer.parseInt", "Integer", "SORT_LENGTH", "while (true){\n\t\t\ttry{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\ttry{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}", "try{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "Exception e", "{\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "System.exit(0)", "System.exit", "System", "0", "{\n\t\t\t\tint[] hako=new int[LENGTH];\n\t\t\t\tString obj=br.readLine();\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(obj,\" \");\n\t\t\t\tint i=0;\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t String nakami=\"\"+hako[0];\n\t\t\t\t\tfor(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(nakami);\n\t\t\t\t\tnakami=\"\";\n\n\t\t\t\tint[] res=Insert_srt(hako);\n\t\t\t}", "int[] hako=new int[LENGTH];", "hako", "new int[LENGTH]", "LENGTH", "String obj=br.readLine();", "obj", "br.readLine()", "br.readLine", "br", "StringTokenizer st=new StringTokenizer(obj,\" \");", "st", "new StringTokenizer(obj,\" \")", "int i=0;", "i", "0", "while (st.hasMoreTokens()) {\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t\t\t \t hako[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }", "hako[i]=Integer.parseInt(st.nextToken())", "hako[i]", "hako", "i", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "i++", "i", "i=0", "i", "0", "String nakami=\"\"+hako[0];", "nakami", "\"\"+hako[0]", "\"\"", "hako[0]", "hako", "0", "for(int s=1; s<hako.length; s++){\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}", "int s=1;", "int s=1;", "s", "1", "s<hako.length", "s", "hako.length", "hako", "hako.length", "s++", "s++", "s", "{\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tnakami=nakami+\" \"+hako[s];\n\t\t\t\t\t}", "nakami=nakami+\" \"+hako[s]", "nakami", "nakami+\" \"+hako[s]", "nakami+\" \"+hako[s]", "nakami", "\" \"", "hako[s]", "hako", "s", "System.out.println(nakami)", "System.out.println", "System.out", "System", "System.out", "nakami", "nakami=\"\"", "nakami", "\"\"", "int[] res=Insert_srt(hako);", "res", "Insert_srt(hako)", "Insert_srt", "hako", "String[] args", "args", "public static int[] Insert_srt(int[] a){\t\t//????????????????????????????????°??¨????????£??\\\n\t\tint[] ary=a;\n\t\tfor(int i=1; i<ary.length; i++){\n\t\t\tint v=ary[i];\n\t\t\tint j=i-1;\n\n\t\t\twhile(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tary[j+1]=v;\n\t\t\tString ketsugou=\"\"+ary[0];\n\t\t\tfor(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}\n\t\t\tSystem.out.println(ketsugou);\n\t\t\tketsugou=\"\";\n\t\t}\n\t\treturn ary;\n\t}", "Insert_srt", "{\t\t//????????????????????????????????°??¨????????£??\\\n\t\tint[] ary=a;\n\t\tfor(int i=1; i<ary.length; i++){\n\t\t\tint v=ary[i];\n\t\t\tint j=i-1;\n\n\t\t\twhile(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tary[j+1]=v;\n\t\t\tString ketsugou=\"\"+ary[0];\n\t\t\tfor(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}\n\t\t\tSystem.out.println(ketsugou);\n\t\t\tketsugou=\"\";\n\t\t}\n\t\treturn ary;\n\t}", "int[] ary=a;", "ary", "a", "for(int i=1; i<ary.length; i++){\n\t\t\tint v=ary[i];\n\t\t\tint j=i-1;\n\n\t\t\twhile(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tary[j+1]=v;\n\t\t\tString ketsugou=\"\"+ary[0];\n\t\t\tfor(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}\n\t\t\tSystem.out.println(ketsugou);\n\t\t\tketsugou=\"\";\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<ary.length", "i", "ary.length", "ary", "ary.length", "i++", "i++", "i", "{\n\t\t\tint v=ary[i];\n\t\t\tint j=i-1;\n\n\t\t\twhile(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tary[j+1]=v;\n\t\t\tString ketsugou=\"\"+ary[0];\n\t\t\tfor(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}\n\t\t\tSystem.out.println(ketsugou);\n\t\t\tketsugou=\"\";\n\t\t}", "{\n\t\t\tint v=ary[i];\n\t\t\tint j=i-1;\n\n\t\t\twhile(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tary[j+1]=v;\n\t\t\tString ketsugou=\"\"+ary[0];\n\t\t\tfor(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}\n\t\t\tSystem.out.println(ketsugou);\n\t\t\tketsugou=\"\";\n\t\t}", "int v=ary[i];", "v", "ary[i]", "ary", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0 && ary[j]>v){\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0 && ary[j]>v", "j>=0", "j", "0", "ary[j]>v", "ary[j]", "ary", "j", "v", "{\n\t\t\t\tary[j+1] = ary[j];\n\t\t\t\tj--;\n\t\t\t}", "ary[j+1] = ary[j]", "ary[j+1]", "ary", "j+1", "j", "1", "ary[j]", "ary", "j", "j--", "j", "ary[j+1]=v", "ary[j+1]", "ary", "j+1", "j", "1", "v", "String ketsugou=\"\"+ary[0];", "ketsugou", "\"\"+ary[0]", "\"\"", "ary[0]", "ary", "0", "for(int s=1; s<ary.length; s++){\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}", "int s=1;", "int s=1;", "s", "1", "s<ary.length", "s", "ary.length", "ary", "ary.length", "s++", "s++", "s", "{\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}", "{\n\t\t\t\tketsugou=ketsugou+\" \"+ary[s];\n\t\t\t}", "ketsugou=ketsugou+\" \"+ary[s]", "ketsugou", "ketsugou+\" \"+ary[s]", "ketsugou+\" \"+ary[s]", "ketsugou", "\" \"", "ary[s]", "ary", "s", "System.out.println(ketsugou)", "System.out.println", "System.out", "System", "System.out", "ketsugou", "ketsugou=\"\"", "ketsugou", "\"\"", "return ary;", "ary", "int[] a", "a" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String SORT_LENGTH=br.readLine(); int LENGTH=Integer.parseInt(SORT_LENGTH); while (true){ try{ int[] hako=new int[LENGTH]; String obj=br.readLine(); StringTokenizer st=new StringTokenizer(obj," "); int i=0; while (st.hasMoreTokens()) { hako[i]=Integer.parseInt(st.nextToken()); i++; }i=0; String nakami=""+hako[0]; for(int s=1; s<hako.length; s++){ nakami=nakami+" "+hako[s]; } System.out.println(nakami); nakami=""; int[] res=Insert_srt(hako); } catch(Exception e){ System.exit(0); } } } public static int[] Insert_srt(int[] a){ //????????????????????????????????°??¨????????£??\ int[] ary=a; for(int i=1; i<ary.length; i++){ int v=ary[i]; int j=i-1; while(j>=0 && ary[j]>v){ ary[j+1] = ary[j]; j--; } ary[j+1]=v; String ketsugou=""+ary[0]; for(int s=1; s<ary.length; s++){ ketsugou=ketsugou+" "+ary[s]; } System.out.println(ketsugou); ketsugou=""; } return ary; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 20, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 179, 5 ], [ 179, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 57, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 57, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 57, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 57, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 105, 116 ], [ 117, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 57, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 6, 133 ], [ 133, 134 ], [ 6, 135 ], [ 135, 136 ], [ 179, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 139, 148 ], [ 148, 149 ], [ 148, 150 ], [ 139, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 157, 158 ], [ 157, 159 ], [ 152, 160 ], [ 160, 161 ], [ 161, 162 ], [ 152, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 169, 170 ], [ 139, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 171, 175 ], [ 137, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tvoid insertionSort(int[] a, int n) {\n\t\tSystem.out.print(a[0]);\n\t\tfor (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\t\tnew Main().insertionSort(a, n);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid insertionSort(int[] a, int n) {\n\t\tSystem.out.print(a[0]);\n\t\tfor (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\t\tnew Main().insertionSort(a, n);\n\t}\n}", "Main", "void insertionSort(int[] a, int n) {\n\t\tSystem.out.print(a[0]);\n\t\tfor (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "insertionSort", "{\n\t\tSystem.out.print(a[0]);\n\t\tfor (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "System.out.print(a[0])", "System.out.print", "System.out", "System", "System.out", "a[0]", "a", "0", "for (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}", "int k = 1;", "int k = 1;", "k", "1", "k < n", "k", "n", "k++", "k++", "k", "{\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}", "{\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}", "System.out.print(\" \" + a[k])", "System.out.print", "System.out", "System", "System.out", "\" \" + a[k]", "\" \"", "a[k]", "a", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int v = a[i];", "v", "a[i]", "a", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && a[j] > v", "j >= 0", "j", "0", "a[j] > v", "a[j]", "a", "j", "v", "{\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}", "a[j+1] = a[j]", "a[j+1]", "a", "j+1", "j", "1", "a[j]", "a", "j", "j--", "j", "a[j+1] = v", "a[j+1]", "a", "j+1", "j", "1", "v", "System.out.print(a[0])", "System.out.print", "System.out", "System", "System.out", "a[0]", "a", "0", "for (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}", "int k = 1;", "int k = 1;", "k", "1", "k < n", "k", "n", "k++", "k++", "k", "{\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}", "System.out.print(\" \" + a[k])", "System.out.print", "System.out", "System", "System.out", "\" \" + a[k]", "\" \"", "a[k]", "a", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] a", "a", "int n", "n", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\t\tnew Main().insertionSort(a, n);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\t\tnew Main().insertionSort(a, n);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = scan.nextInt();", "a[i] = scan.nextInt()", "a[i]", "a", "i", "scan.nextInt()", "scan.nextInt", "scan", "new Main().insertionSort(a, n)", "new Main().insertionSort", "new Main()", "a", "n", "String[] args", "args", "public class Main {\n\tvoid insertionSort(int[] a, int n) {\n\t\tSystem.out.print(a[0]);\n\t\tfor (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\t\tnew Main().insertionSort(a, n);\n\t}\n}", "public class Main {\n\tvoid insertionSort(int[] a, int n) {\n\t\tSystem.out.print(a[0]);\n\t\tfor (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && a[j] > v) {\n\t\t\t\ta[j+1] = a[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\ta[j+1] = v;\n\t\t\tSystem.out.print(a[0]);\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\t\tnew Main().insertionSort(a, n);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void insertionSort(int[] a, int n) { System.out.print(a[0]); for (int k = 1; k < n; k++) { System.out.print(" " + a[k]); } System.out.println(); for (int i = 1; i < n; i++) { int v = a[i]; int j = i - 1; while (j >= 0 && a[j] > v) { a[j+1] = a[j]; j--; } a[j+1] = v; System.out.print(a[0]); for (int k = 1; k < n; k++) { System.out.print(" " + a[k]); } System.out.println(); } } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = scan.nextInt(); new Main().insertionSort(a, n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 174, 5 ], [ 174, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 54, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 92, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 103, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 120, 121 ], [ 120, 122 ], [ 113, 123 ], [ 123, 124 ], [ 92, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 125, 131 ], [ 92, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 132, 140 ], [ 140, 141 ], [ 141, 142 ], [ 132, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 157, 158 ], [ 157, 159 ], [ 145, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 6, 171 ], [ 171, 172 ], [ 0, 173 ], [ 173, 174 ], [ 173, 175 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint array[] = new int [size];\n\t\tfor(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int k=0; k<size; k++){\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}\n\t\t//?????\\?????????\n\t\tfor(int i=1; i<size; i++){\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint array[] = new int [size];\n\t\tfor(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int k=0; k<size; k++){\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}\n\t\t//?????\\?????????\n\t\tfor(int i=1; i<size; i++){\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint array[] = new int [size];\n\t\tfor(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int k=0; k<size; k++){\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}\n\t\t//?????\\?????????\n\t\tfor(int i=1; i<size; i++){\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint array[] = new int [size];\n\t\tfor(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int k=0; k<size; k++){\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}\n\t\t//?????\\?????????\n\t\tfor(int i=1; i<size; i++){\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int size = sc.nextInt();", "size", "sc.nextInt()", "sc.nextInt", "sc", "int array[] = new int [size];", "array", "new int [size]", "size", "for(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<size", "i", "size", "i++", "i++", "i", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int k=0; k<size; k++){\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}", "int k=0;", "int k=0;", "k", "0", "k<size", "k", "size", "k++", "k++", "k", "{\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}", "{\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}", "if(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}", "k == size-1", "k", "size-1", "size", "1", "{\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}", "System.out.print(array[k] + \" \")", "System.out.print", "System.out", "System", "System.out", "array[k] + \" \"", "array[k]", "array", "k", "\" \"", "for(int i=1; i<size; i++){\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<size", "i", "size", "i++", "i++", "i", "{\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int v = array[i];", "v", "array[i]", "array", "i", "int j = i-1;", "j", "i-1", "i", "1", "while(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && array[j] > v", "j >= 0", "j", "0", "array[j] > v", "array[j]", "array", "j", "v", "{\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j+1] = v", "array[j+1]", "array", "j+1", "j", "1", "v", "for(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<size", "k", "size", "k++", "k++", "k", "{\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}", "if(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}", "k == size-1", "k", "size-1", "size", "1", "{\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}", "System.out.println(array[k])", "System.out.println", "System.out", "System", "System.out", "array[k]", "array", "k", "{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}", "System.out.print(array[k] + \" \")", "System.out.print", "System.out", "System", "System.out", "array[k] + \" \"", "array[k]", "array", "k", "\" \"", "String [] args", "args", "public class Main {\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint array[] = new int [size];\n\t\tfor(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int k=0; k<size; k++){\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}\n\t\t//?????\\?????????\n\t\tfor(int i=1; i<size; i++){\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint array[] = new int [size];\n\t\tfor(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int k=0; k<size; k++){\n\t\t\t\n\t\t\tif(k == size-1){\n\t\t\t\tSystem.out.println(array[k]);\n\t\t\t}else{\n\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t}\n\t\t}\n\t\t//?????\\?????????\n\t\tfor(int i=1; i<size; i++){\n\t\t\tint v = array[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && array[j] > v){\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1] = v;\n\t\t//???????????§\n\t\t\tfor(int k=0; k<size; k++){\n\t\t\t\tif(k == size-1){\n\t\t\t\t\tSystem.out.println(array[k]);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(array[k] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); int size = sc.nextInt(); int array[] = new int [size]; for(int i=0; i<size; i++ ){ array[i] = sc.nextInt(); } for(int k=0; k<size; k++){ if(k == size-1){ System.out.println(array[k]); }else{ System.out.print(array[k] + " "); } } //?????\????????? for(int i=1; i<size; i++){ int v = array[i]; int j = i-1; while(j >= 0 && array[j] > v){ array[j+1] = array[j]; j--; } array[j+1] = v; //???????????§ for(int k=0; k<size; k++){ if(k == size-1){ System.out.println(array[k]); }else{ System.out.print(array[k] + " "); } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 28, 13, 13, 30, 30, 11, 1, 41, 13, 2, 13, 17, 2, 2, 13, 17, 2, 4, 18, 13, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 2, 13, 17, 4, 18, 13, 13, 4, 18, 13, 13, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 2, 4, 18, 13, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 153, 11 ], [ 153, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 14, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 12, 52 ], [ 52, 53 ], [ 153, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 56, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 68, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 79, 84 ], [ 68, 85 ], [ 85, 86 ], [ 86, 87 ], [ 68, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 100, 104 ], [ 67, 105 ], [ 105, 106 ], [ 67, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 107, 117 ], [ 117, 118 ], [ 118, 119 ], [ 107, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 122, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 142, 147 ], [ 54, 148 ], [ 148, 149 ], [ 54, 150 ], [ 150, 151 ], [ 0, 152 ], [ 152, 153 ], [ 152, 154 ] ]
[ "\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n List<Integer> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n int num = input.nextInt();\n list.add(num);\n }\n iSort(list,n);\n }\n\n private static void iSort(List<Integer> list, int n){\n int count=0;\n List<Integer> sbList = new ArrayList<>(list);\n for(int num : list){\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }\n }\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n List<Integer> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n int num = input.nextInt();\n list.add(num);\n }\n iSort(list,n);\n }\n\n private static void iSort(List<Integer> list, int n){\n int count=0;\n List<Integer> sbList = new ArrayList<>(list);\n for(int num : list){\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n List<Integer> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n int num = input.nextInt();\n list.add(num);\n }\n iSort(list,n);\n }", "main", "{\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n List<Integer> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n int num = input.nextInt();\n list.add(num);\n }\n iSort(list,n);\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int n = input.nextInt();", "n", "input.nextInt()", "input.nextInt", "input", "List<Integer> list = new ArrayList<>();", "list", "new ArrayList<>()", "for(int i=0;i<n;i++){\n int num = input.nextInt();\n list.add(num);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n int num = input.nextInt();\n list.add(num);\n }", "{\n int num = input.nextInt();\n list.add(num);\n }", "int num = input.nextInt();", "num", "input.nextInt()", "input.nextInt", "input", "list.add(num)", "list.add", "list", "num", "iSort(list,n)", "iSort", "list", "n", "String[] args", "args", "private static void iSort(List<Integer> list, int n){\n int count=0;\n List<Integer> sbList = new ArrayList<>(list);\n for(int num : list){\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }\n }", "iSort", "{\n int count=0;\n List<Integer> sbList = new ArrayList<>(list);\n for(int num : list){\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }\n }", "int count=0;", "count", "0", "List<Integer> sbList = new ArrayList<>(list);", "sbList", "new ArrayList<>(list)", "for(int num : list){\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }", "int num", "list", "{\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }", "{\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }", "for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }", "int i = count-1;", "int i = count-1;", "i", "count-1", "count", "1", "i >= 0 && sbList.get(i)>num", "i >= 0", "i", "0", "sbList.get(i)>num", "sbList.get(i)", "sbList.get", "sbList", "i", "num", "i--", "i--", "i", "{\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }", "{\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }", "sbList.set(i+1,sbList.get(i))", "sbList.set", "sbList", "i+1", "i", "1", "sbList.get(i)", "sbList.get", "sbList", "i", "sbList.set(i,num)", "sbList.set", "sbList", "i", "num", "count++", "count", "for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < list.size()", "i", "list.size()", "list.size", "list", "i ++", "i ++", "i", "{\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }", "{\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }", "if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");", "i == n-1", "i", "n-1", "n", "1", "System.out.println(sbList.get(i))", "System.out.println", "System.out", "System", "System.out", "sbList.get(i)", "sbList.get", "sbList", "i", "System.out.print(sbList.get(i) + \" \")", "System.out.print", "System.out", "System", "System.out", "sbList.get(i) + \" \"", "sbList.get(i)", "sbList.get", "sbList", "i", "\" \"", "List<Integer> list", "list", "int n", "n", "public class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n List<Integer> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n int num = input.nextInt();\n list.add(num);\n }\n iSort(list,n);\n }\n\n private static void iSort(List<Integer> list, int n){\n int count=0;\n List<Integer> sbList = new ArrayList<>(list);\n for(int num : list){\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n List<Integer> list = new ArrayList<>();\n for(int i=0;i<n;i++){\n int num = input.nextInt();\n list.add(num);\n }\n iSort(list,n);\n }\n\n private static void iSort(List<Integer> list, int n){\n int count=0;\n List<Integer> sbList = new ArrayList<>(list);\n for(int num : list){\n for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){\n sbList.set(i+1,sbList.get(i));\n sbList.set(i,num);\n }\n count++;\n\n for(int i = 0; i < list.size(); i ++){\n if(i == n-1)System.out.println(sbList.get(i));\n else System.out.print(sbList.get(i) + \" \");\n }\n }\n }\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); List<Integer> list = new ArrayList<>(); for(int i=0;i<n;i++){ int num = input.nextInt(); list.add(num); } iSort(list,n); } private static void iSort(List<Integer> list, int n){ int count=0; List<Integer> sbList = new ArrayList<>(list); for(int num : list){ for(int i = count-1; i >= 0 && sbList.get(i)>num; i--){ sbList.set(i+1,sbList.get(i)); sbList.set(i,num); } count++; for(int i = 0; i < list.size(); i ++){ if(i == n-1)System.out.println(sbList.get(i)); else System.out.print(sbList.get(i) + " "); } } } }
[ 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, 20, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 13, 42, 2, 40, 13, 17, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 176, 11 ], [ 176, 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, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 32, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 12, 63 ], [ 63, 64 ], [ 176, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 68, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 82, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 82, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 115, 121 ], [ 82, 122 ], [ 122, 123 ], [ 122, 124 ], [ 65, 125 ], [ 125, 126 ], [ 176, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 130, 140 ], [ 140, 141 ], [ 141, 142 ], [ 130, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 150, 151 ], [ 150, 152 ], [ 144, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 153, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 129, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 127, 173 ], [ 173, 174 ], [ 0, 175 ], [ 175, 176 ], [ 175, 177 ] ]
[ "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[] list = new int[n];\n String[] lines = br.readLine().split(\" \");\n int m = n;\n while (m-- > 0) {\n list[m] = Integer.parseInt(lines[m]);\n }\n print(list);\n insertionSort(list);\n\n }\n\n static void insertionSort(int[] list) {\n for (int i = 1; i < list.length; i++) {\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }\n }\n\n private static void print(int[] list) {\n for (int i = 0; i < list.length; i++) {\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }\n System.out.println();\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[] list = new int[n];\n String[] lines = br.readLine().split(\" \");\n int m = n;\n while (m-- > 0) {\n list[m] = Integer.parseInt(lines[m]);\n }\n print(list);\n insertionSort(list);\n\n }\n\n static void insertionSort(int[] list) {\n for (int i = 1; i < list.length; i++) {\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }\n }\n\n private static void print(int[] list) {\n for (int i = 0; i < list.length; i++) {\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }\n System.out.println();\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[] list = new int[n];\n String[] lines = br.readLine().split(\" \");\n int m = n;\n while (m-- > 0) {\n list[m] = Integer.parseInt(lines[m]);\n }\n print(list);\n insertionSort(list);\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] list = new int[n];\n String[] lines = br.readLine().split(\" \");\n int m = n;\n while (m-- > 0) {\n list[m] = Integer.parseInt(lines[m]);\n }\n print(list);\n insertionSort(list);\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[] list = new int[n];", "list", "new int[n]", "n", "String[] lines = br.readLine().split(\" \");", "lines", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int m = n;", "m", "n", "while (m-- > 0) {\n list[m] = Integer.parseInt(lines[m]);\n }", "m-- > 0", "m--", "m", "0", "{\n list[m] = Integer.parseInt(lines[m]);\n }", "list[m] = Integer.parseInt(lines[m])", "list[m]", "list", "m", "Integer.parseInt(lines[m])", "Integer.parseInt", "Integer", "lines[m]", "lines", "m", "print(list)", "print", "list", "insertionSort(list)", "insertionSort", "list", "String[] args", "args", "static void insertionSort(int[] list) {\n for (int i = 1; i < list.length; i++) {\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }\n }", "insertionSort", "{\n for (int i = 1; i < list.length; i++) {\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }\n }", "for (int i = 1; i < list.length; i++) {\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < list.length", "i", "list.length", "list", "list.length", "i++", "i++", "i", "{\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }", "{\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }", "int v = list[i];", "v", "list[i]", "list", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }", "j >= 0 && list[j] > v", "j >= 0", "j", "0", "list[j] > v", "list[j]", "list", "j", "v", "{\n list[j + 1] = list[j];\n j--;\n }", "list[j + 1] = list[j]", "list[j + 1]", "list", "j + 1", "j", "1", "list[j]", "list", "j", "j--", "j", "list[j + 1] = v", "list[j + 1]", "list", "j + 1", "j", "1", "v", "print(list)", "print", "list", "int[] list", "list", "private static void print(int[] list) {\n for (int i = 0; i < list.length; i++) {\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }\n System.out.println();\n }", "print", "{\n for (int i = 0; i < list.length; i++) {\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }\n System.out.println();\n }", "for (int i = 0; i < list.length; i++) {\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < list.length", "i", "list.length", "list", "list.length", "i++", "i++", "i", "{\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }", "{\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }", "System.out.print(list[i])", "System.out.print", "System.out", "System", "System.out", "list[i]", "list", "i", "if (i < list.length - 1) {\n System.out.print(\" \");\n }", "i < list.length - 1", "i", "list.length - 1", "list.length", "list", "list.length", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] list", "list", "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[] list = new int[n];\n String[] lines = br.readLine().split(\" \");\n int m = n;\n while (m-- > 0) {\n list[m] = Integer.parseInt(lines[m]);\n }\n print(list);\n insertionSort(list);\n\n }\n\n static void insertionSort(int[] list) {\n for (int i = 1; i < list.length; i++) {\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }\n }\n\n private static void print(int[] list) {\n for (int i = 0; i < list.length; i++) {\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }\n System.out.println();\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[] list = new int[n];\n String[] lines = br.readLine().split(\" \");\n int m = n;\n while (m-- > 0) {\n list[m] = Integer.parseInt(lines[m]);\n }\n print(list);\n insertionSort(list);\n\n }\n\n static void insertionSort(int[] list) {\n for (int i = 1; i < list.length; i++) {\n int v = list[i];\n int j = i - 1;\n while (j >= 0 && list[j] > v) {\n list[j + 1] = list[j];\n j--;\n }\n list[j + 1] = v;\n print(list);\n }\n }\n\n private static void print(int[] list) {\n for (int i = 0; i < list.length; i++) {\n System.out.print(list[i]);\n if (i < list.length - 1) {\n System.out.print(\" \");\n }\n }\n System.out.println();\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[] list = new int[n]; String[] lines = br.readLine().split(" "); int m = n; while (m-- > 0) { list[m] = Integer.parseInt(lines[m]); } print(list); insertionSort(list); } static void insertionSort(int[] list) { for (int i = 1; i < list.length; i++) { int v = list[i]; int j = i - 1; while (j >= 0 && list[j] > v) { list[j + 1] = list[j]; j--; } list[j + 1] = v; print(list); } } private static void print(int[] list) { for (int i = 0; i < list.length; i++) { System.out.print(list[i]); if (i < list.length - 1) { System.out.print(" "); } } System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 4, 18, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 41, 13, 17, 28, 13, 4, 18, 4, 18, 13, 17, 30, 30, 0, 18, 13, 40, 13, 4, 18, 13, 13, 4, 13, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 184, 14 ], [ 184, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 184, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 22, 37 ], [ 37, 38 ], [ 37, 39 ], [ 22, 41 ], [ 41, 42 ], [ 41, 43 ], [ 22, 44 ], [ 44, 45 ], [ 44, 46 ], [ 22, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 49, 54 ], [ 47, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 57, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 22, 66 ], [ 66, 67 ], [ 66, 68 ], [ 66, 69 ], [ 22, 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 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 82, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 82, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 115, 121 ], [ 82, 122 ], [ 122, 123 ], [ 122, 124 ], [ 122, 125 ], [ 22, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 130, 131 ], [ 22, 132 ], [ 132, 133 ], [ 133, 134 ], [ 184, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 138, 148 ], [ 148, 149 ], [ 149, 150 ], [ 138, 151 ], [ 152, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 152, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 164, 165 ], [ 164, 166 ], [ 137, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 135, 171 ], [ 171, 172 ], [ 135, 173 ], [ 173, 174 ], [ 184, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 175, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n \npublic class Main {\n\tprivate static final String CRLF = System.lineSeparator();\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n int N = Integer.parseInt(br.readLine());\n int[] A = new int[N];\n StringBuilder sb = new StringBuilder();\n int i=0;\n for(String s: br.readLine().split(\" \")){\n \tA[i++] = Integer.parseInt(s);\n }\n intArrayToString(A,sb);\n for(i=1; i<N; i++){\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }\n out.print(sb.toString());\n out.flush();\n }\n\tprivate void intArrayToString(int[] a, StringBuilder sb) {\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}\n sb.append(CRLF);\n\t}\n\t\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "public class Main {\n\tprivate static final String CRLF = System.lineSeparator();\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n int N = Integer.parseInt(br.readLine());\n int[] A = new int[N];\n StringBuilder sb = new StringBuilder();\n int i=0;\n for(String s: br.readLine().split(\" \")){\n \tA[i++] = Integer.parseInt(s);\n }\n intArrayToString(A,sb);\n for(i=1; i<N; i++){\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }\n out.print(sb.toString());\n out.flush();\n }\n\tprivate void intArrayToString(int[] a, StringBuilder sb) {\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}\n sb.append(CRLF);\n\t}\n\t\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}", "Main", "private static final String CRLF = System.lineSeparator();", "CRLF", "System.lineSeparator()", "System.lineSeparator", "System", "public void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n int N = Integer.parseInt(br.readLine());\n int[] A = new int[N];\n StringBuilder sb = new StringBuilder();\n int i=0;\n for(String s: br.readLine().split(\" \")){\n \tA[i++] = Integer.parseInt(s);\n }\n intArrayToString(A,sb);\n for(i=1; i<N; i++){\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }\n out.print(sb.toString());\n out.flush();\n }", "exec", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n int N = Integer.parseInt(br.readLine());\n int[] A = new int[N];\n StringBuilder sb = new StringBuilder();\n int i=0;\n for(String s: br.readLine().split(\" \")){\n \tA[i++] = Integer.parseInt(s);\n }\n intArrayToString(A,sb);\n for(i=1; i<N; i++){\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }\n out.print(sb.toString());\n out.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int N = Integer.parseInt(br.readLine());", "N", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] A = new int[N];", "A", "new int[N]", "N", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int i=0;", "i", "0", "for(String s: br.readLine().split(\" \")){\n \tA[i++] = Integer.parseInt(s);\n }", "String s", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "{\n \tA[i++] = Integer.parseInt(s);\n }", "{\n \tA[i++] = Integer.parseInt(s);\n }", "A[i++] = Integer.parseInt(s)", "A[i++]", "A", "i++", "i", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "intArrayToString(A,sb)", "intArrayToString", "A", "sb", "for(i=1; i<N; i++){\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }", "i=1;", "i=1", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }", "{\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i-1;", "j", "i-1", "i", "1", "while(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}", "j>=0 && A[j]>v", "j>=0", "j", "0", "A[j]>v", "A[j]", "A", "j", "v", "{\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "intArrayToString(A,sb)", "intArrayToString", "A", "sb", "out.print(sb.toString())", "out.print", "out", "sb.toString()", "sb.toString", "sb", "out.flush()", "out.flush", "out", "private void intArrayToString(int[] a, StringBuilder sb) {\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}\n sb.append(CRLF);\n\t}", "intArrayToString", "{\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}\n sb.append(CRLF);\n\t}", "for(int i=0; i<a.length; i++) {\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}", "{\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}", "if (i>0)\n\t\t\t\tsb.append(\" \");", "i>0", "i", "0", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(a[i])", "sb.append", "sb", "a[i]", "a", "i", "sb.append(CRLF)", "sb.append", "sb", "CRLF", "int[] a", "a", "StringBuilder sb", "sb", "public static void main(String[] args) throws IOException {\n new Main().exec();\n }", "main", "{\n new Main().exec();\n }", "new Main().exec()", "new Main().exec", "new Main()", "String[] args", "args", "public class Main {\n\tprivate static final String CRLF = System.lineSeparator();\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n int N = Integer.parseInt(br.readLine());\n int[] A = new int[N];\n StringBuilder sb = new StringBuilder();\n int i=0;\n for(String s: br.readLine().split(\" \")){\n \tA[i++] = Integer.parseInt(s);\n }\n intArrayToString(A,sb);\n for(i=1; i<N; i++){\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }\n out.print(sb.toString());\n out.flush();\n }\n\tprivate void intArrayToString(int[] a, StringBuilder sb) {\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}\n sb.append(CRLF);\n\t}\n\t\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}", "public class Main {\n\tprivate static final String CRLF = System.lineSeparator();\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n int N = Integer.parseInt(br.readLine());\n int[] A = new int[N];\n StringBuilder sb = new StringBuilder();\n int i=0;\n for(String s: br.readLine().split(\" \")){\n \tA[i++] = Integer.parseInt(s);\n }\n intArrayToString(A,sb);\n for(i=1; i<N; i++){\n \tint v = A[i];\n \tint j = i-1;\n \twhile(j>=0 && A[j]>v) {\n \t\tA[j+1] = A[j];\n \t\tj--;\n \t}\n \tA[j+1] = v;\n intArrayToString(A,sb);\t\n }\n out.print(sb.toString());\n out.flush();\n }\n\tprivate void intArrayToString(int[] a, StringBuilder sb) {\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tif (i>0)\n\t\t\t\tsb.append(\" \");\n\t\t\tsb.append(a[i]);\n\t\t}\n sb.append(CRLF);\n\t}\n\t\n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { private static final String CRLF = System.lineSeparator(); public void exec() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); int N = Integer.parseInt(br.readLine()); int[] A = new int[N]; StringBuilder sb = new StringBuilder(); int i=0; for(String s: br.readLine().split(" ")){ A[i++] = Integer.parseInt(s); } intArrayToString(A,sb); for(i=1; i<N; i++){ int v = A[i]; int j = i-1; while(j>=0 && A[j]>v) { A[j+1] = A[j]; j--; } A[j+1] = v; intArrayToString(A,sb); } out.print(sb.toString()); out.flush(); } private void intArrayToString(int[] a, StringBuilder sb) { for(int i=0; i<a.length; i++) { if (i>0) sb.append(" "); sb.append(a[i]); } sb.append(CRLF); } public static void main(String[] args) throws IOException { new Main().exec(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 4, 18, 13, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 42, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 23, 32 ], [ 32, 33 ], [ 32, 34 ], [ 23, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 21, 39 ], [ 39, 40 ], [ 19, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 45, 55 ], [ 55, 56 ], [ 55, 57 ], [ 45, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 70, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 45, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 45, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 45, 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 ], [ 114, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 114, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 125, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 136, 142 ], [ 142, 143 ], [ 142, 144 ], [ 135, 145 ], [ 145, 146 ], [ 114, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 114, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 154, 162 ], [ 162, 163 ], [ 163, 164 ], [ 154, 165 ], [ 166, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 166, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 178, 180 ], [ 114, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 114, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 43, 191 ], [ 191, 192 ], [ 19, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 193, 197 ], [ 197, 198 ], [ 193, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 202, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 208, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 201, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 193, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 226, 229 ], [ 229, 230 ], [ 193, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 237 ], [ 237, 238 ], [ 237, 239 ], [ 231, 240 ], [ 240, 241 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.InputMismatchException;\nimport java.util.StringTokenizer;\n\nclass Main {\n\t\n\tstatic class InsertionSort {\n\t\tpublic void insertionsort (InputReader ir) {\n\t\t\t\n\t\t\tint n = ir.nextInt();\n\t\t\tint array[] = new int[n];\n\t\t\tStringBuilder sb = new StringBuilder ();\n\t\t\t\n\t\t\t//配列入力\n\t\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.setLength(0);\n\t\t\n\t\t\t//挿入ソート\n\t\t\tfor (int i = 1; i < n; i++) {\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n\t\n\tstatic class InputReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\t\t\t\t\t\n\t\tpublic InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}\n\t\t\n\t}\n\t\n\tpublic static void main (String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tInsertionSort obj = new InsertionSort ();\n\t\tobj.insertionsort (in);\n\t}\n\t\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "class Main {\n\t\n\tstatic class InsertionSort {\n\t\tpublic void insertionsort (InputReader ir) {\n\t\t\t\n\t\t\tint n = ir.nextInt();\n\t\t\tint array[] = new int[n];\n\t\t\tStringBuilder sb = new StringBuilder ();\n\t\t\t\n\t\t\t//配列入力\n\t\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.setLength(0);\n\t\t\n\t\t\t//挿入ソート\n\t\t\tfor (int i = 1; i < n; i++) {\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n\t\n\tstatic class InputReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\t\t\t\t\t\n\t\tpublic InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}\n\t\t\n\t}\n\t\n\tpublic static void main (String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tInsertionSort obj = new InsertionSort ();\n\t\tobj.insertionsort (in);\n\t}\n\t\n}", "Main", "public static void main (String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tInsertionSort obj = new InsertionSort ();\n\t\tobj.insertionsort (in);\n\t}", "main", "{\n\t\tInputStream inputStream = System.in;\n\t\tInputReader in = new InputReader (inputStream);\n\t\tInsertionSort obj = new InsertionSort ();\n\t\tobj.insertionsort (in);\n\t}", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "InputReader in = new InputReader (inputStream);", "in", "new InputReader (inputStream)", "InsertionSort obj = new InsertionSort ();", "obj", "new InsertionSort ()", "obj.insertionsort (in)", "obj.insertionsort", "obj", "in", "String[] args", "args", "static class InsertionSort {\n\t\tpublic void insertionsort (InputReader ir) {\n\t\t\t\n\t\t\tint n = ir.nextInt();\n\t\t\tint array[] = new int[n];\n\t\t\tStringBuilder sb = new StringBuilder ();\n\t\t\t\n\t\t\t//配列入力\n\t\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.setLength(0);\n\t\t\n\t\t\t//挿入ソート\n\t\t\tfor (int i = 1; i < n; i++) {\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "InsertionSort", "public void insertionsort (InputReader ir) {\n\t\t\t\n\t\t\tint n = ir.nextInt();\n\t\t\tint array[] = new int[n];\n\t\t\tStringBuilder sb = new StringBuilder ();\n\t\t\t\n\t\t\t//配列入力\n\t\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.setLength(0);\n\t\t\n\t\t\t//挿入ソート\n\t\t\tfor (int i = 1; i < n; i++) {\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "insertionsort", "{\n\t\t\t\n\t\t\tint n = ir.nextInt();\n\t\t\tint array[] = new int[n];\n\t\t\tStringBuilder sb = new StringBuilder ();\n\t\t\t\n\t\t\t//配列入力\n\t\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.setLength(0);\n\t\t\n\t\t\t//挿入ソート\n\t\t\tfor (int i = 1; i < n; i++) {\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "int n = ir.nextInt();", "n", "ir.nextInt()", "ir.nextInt", "ir", "int array[] = new int[n];", "array", "new int[n]", "n", "StringBuilder sb = new StringBuilder ();", "sb", "new StringBuilder ()", "for (int i = 0; i < n; i++ ) {\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}", "{\n\t\t\t\tarray[i] = ir.nextInt();\n\t\t\t\t\n\t\t\t\tif (i != 0) sb.append(\" \");\n\t\t\t\tsb.append(array[i]);\n\t\t\t}", "array[i] = ir.nextInt()", "array[i]", "array", "i", "ir.nextInt()", "ir.nextInt", "ir", "if (i != 0) sb.append(\" \");", "i != 0", "i", "0", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(array[i])", "sb.append", "sb", "array[i]", "array", "i", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "sb.setLength(0)", "sb.setLength", "sb", "0", "for (int i = 1; i < n; i++) {\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}", "{\n\t\t\t\tint v = array[i];\n\t\t\t\tint j = i - 1;\n\t\t\t\t\n\t\t\t\twhile ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = v;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.setLength(0);\n\t\t\t}", "int v = array[i];", "v", "array[i]", "array", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while ( j >= 0 && array[j] > v) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "j >= 0 && array[j] > v", "j >= 0", "j", "0", "array[j] > v", "array[j]", "array", "j", "v", "{\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t\tj--;\n\t\t\t\t}", "array[j + 1] = array[j]", "array[j + 1]", "array", "j + 1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j + 1] = v", "array[j + 1]", "array", "j + 1", "j", "1", "v", "for (int k = 0; k < n; k++ ) {\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < n", "k", "n", "k++", "k++", "k", "{\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}", "{\n\t\t\t\t\tif (k != 0) sb.append(\" \");\n\t\t\t\t\tsb.append(array[k]);\n\t\t\t\t}", "if (k != 0) sb.append(\" \");", "k != 0", "k", "0", "sb.append(\" \")", "sb.append", "sb", "\" \"", "sb.append(array[k])", "sb.append", "sb", "array[k]", "array", "k", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "sb.setLength(0)", "sb.setLength", "sb", "0", "InputReader ir", "ir", "static class InputReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}\n\t\t\t\t\t\n\t\tpublic InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}\n\t\t\n\t}", "InputReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public String nextString() {\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}", "nextString", "{\n\t\t\t\n\t\t\t while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }\n\t\t\treturn st.nextToken();\n\t\t}", "while (!st.hasMoreTokens()) {\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }\n\t }", "try {\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t } catch (IOException e) {\n\t throw new InputMismatchException();\n\t }", "catch (IOException e) {\n\t throw new InputMismatchException();\n\t }", "IOException e", "{\n\t throw new InputMismatchException();\n\t }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n\t st = new StringTokenizer(br.readLine(), \" \");\n\t }", "st = new StringTokenizer(br.readLine(), \" \")", "st", "new StringTokenizer(br.readLine(), \" \")", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int nextInt() {\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(nextString());\n\t\t}", "return Integer.parseInt(nextString());", "Integer.parseInt(nextString())", "Integer.parseInt", "Integer", "nextString()", "nextString", "public InputReader (InputStream inputStream) {\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}", "InputReader", "{\n\t\t\tbr = new BufferedReader (new InputStreamReader (inputStream));\n\t\t\tst = new StringTokenizer (\"\");\n\t\t}", "br = new BufferedReader (new InputStreamReader (inputStream))", "br", "new BufferedReader (new InputStreamReader (inputStream))", "st = new StringTokenizer (\"\")", "st", "new StringTokenizer (\"\")", "InputStream inputStream", "inputStream" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.InputMismatchException; import java.util.StringTokenizer; class Main { static class InsertionSort { public void insertionsort (InputReader ir) { int n = ir.nextInt(); int array[] = new int[n]; StringBuilder sb = new StringBuilder (); //配列入力 for (int i = 0; i < n; i++ ) { array[i] = ir.nextInt(); if (i != 0) sb.append(" "); sb.append(array[i]); } System.out.println(sb); sb.setLength(0); //挿入ソート for (int i = 1; i < n; i++) { int v = array[i]; int j = i - 1; while ( j >= 0 && array[j] > v) { array[j + 1] = array[j]; j--; } array[j + 1] = v; for (int k = 0; k < n; k++ ) { if (k != 0) sb.append(" "); sb.append(array[k]); } System.out.println(sb); sb.setLength(0); } } } static class InputReader { BufferedReader br; StringTokenizer st; public String nextString() { while (!st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine(), " "); } catch (IOException e) { throw new InputMismatchException(); } } return st.nextToken(); } public int nextInt() { return Integer.parseInt(nextString()); } public InputReader (InputStream inputStream) { br = new BufferedReader (new InputStreamReader (inputStream)); st = new StringTokenizer (""); } } public static void main (String[] args) { InputStream inputStream = System.in; InputReader in = new InputReader (inputStream); InsertionSort obj = new InsertionSort (); obj.insertionsort (in); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 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, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 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 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 73, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 59, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 59, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 59, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 59, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 126, 132 ], [ 132, 133 ], [ 132, 134 ], [ 125, 135 ], [ 135, 136 ], [ 125, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 140, 142 ], [ 137, 143 ], [ 8, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 149, 150 ], [ 149, 151 ], [ 144, 152 ], [ 152, 153 ], [ 153, 154 ], [ 144, 155 ], [ 156, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 157, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 157, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 180, 181 ], [ 180, 182 ], [ 6, 183 ], [ 183, 184 ] ]
[ "import java.util.Scanner;\nclass Main {\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint input = scan.nextInt();\n \tint[] num = new int[input];\n \tint v;\n \tint j;\n \t\n \tfor(int i = 0; i < input; i++){\n \t\tnum[i] = scan.nextInt();\n \t}\n \t\n \tfor(int i = 1; i <= input - 1; i++){\n \t\tfor(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}\n \t\tSystem.out.println(\"\");\n \t\tv = num[i];\n \t\tj = i - 1;\n \t\twhile(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}\n \t}\n \t\n \tfor(int n = 0; n < input; n++){\n \t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}\n \t}\n }\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 \tint input = scan.nextInt();\n \tint[] num = new int[input];\n \tint v;\n \tint j;\n \t\n \tfor(int i = 0; i < input; i++){\n \t\tnum[i] = scan.nextInt();\n \t}\n \t\n \tfor(int i = 1; i <= input - 1; i++){\n \t\tfor(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}\n \t\tSystem.out.println(\"\");\n \t\tv = num[i];\n \t\tj = i - 1;\n \t\twhile(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}\n \t}\n \t\n \tfor(int n = 0; n < input; n++){\n \t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}\n \t}\n }\n \n}", "Main", "public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint input = scan.nextInt();\n \tint[] num = new int[input];\n \tint v;\n \tint j;\n \t\n \tfor(int i = 0; i < input; i++){\n \t\tnum[i] = scan.nextInt();\n \t}\n \t\n \tfor(int i = 1; i <= input - 1; i++){\n \t\tfor(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}\n \t\tSystem.out.println(\"\");\n \t\tv = num[i];\n \t\tj = i - 1;\n \t\twhile(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}\n \t}\n \t\n \tfor(int n = 0; n < input; n++){\n \t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}\n \t}\n }", "main", "{\n \tScanner scan = new Scanner(System.in);\n \tint input = scan.nextInt();\n \tint[] num = new int[input];\n \tint v;\n \tint j;\n \t\n \tfor(int i = 0; i < input; i++){\n \t\tnum[i] = scan.nextInt();\n \t}\n \t\n \tfor(int i = 1; i <= input - 1; i++){\n \t\tfor(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}\n \t\tSystem.out.println(\"\");\n \t\tv = num[i];\n \t\tj = i - 1;\n \t\twhile(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}\n \t}\n \t\n \tfor(int n = 0; n < input; n++){\n \t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}\n \t}\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int input = scan.nextInt();", "input", "scan.nextInt()", "scan.nextInt", "scan", "int[] num = new int[input];", "num", "new int[input]", "input", "int v;", "v", "int j;", "j", "for(int i = 0; i < input; i++){\n \t\tnum[i] = scan.nextInt();\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < input", "i", "input", "i++", "i++", "i", "{\n \t\tnum[i] = scan.nextInt();\n \t}", "{\n \t\tnum[i] = scan.nextInt();\n \t}", "num[i] = scan.nextInt()", "num[i]", "num", "i", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 1; i <= input - 1; i++){\n \t\tfor(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}\n \t\tSystem.out.println(\"\");\n \t\tv = num[i];\n \t\tj = i - 1;\n \t\twhile(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}\n \t}", "int i = 1;", "int i = 1;", "i", "1", "i <= input - 1", "i", "input - 1", "input", "1", "i++", "i++", "i", "{\n \t\tfor(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}\n \t\tSystem.out.println(\"\");\n \t\tv = num[i];\n \t\tj = i - 1;\n \t\twhile(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}\n \t}", "{\n \t\tfor(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}\n \t\tSystem.out.println(\"\");\n \t\tv = num[i];\n \t\tj = i - 1;\n \t\twhile(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}\n \t}", "for(int n = 0; n < input; n++){\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}", "int n = 0;", "int n = 0;", "n", "0", "n < input", "n", "input", "n++", "n++", "n", "{\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}", "{\n \t\t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}\n \t}", "if(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.print(num[n]);\n \t\t}", "n != input - 1", "n", "input - 1", "input", "1", "{\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}", "System.out.print(num[n] + \" \")", "System.out.print", "System.out", "System", "System.out", "num[n] + \" \"", "num[n]", "num", "n", "\" \"", "{\n \t\t\tSystem.out.print(num[n]);\n \t\t}", "System.out.print(num[n])", "System.out.print", "System.out", "System", "System.out", "num[n]", "num", "n", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "v = num[i]", "v", "num[i]", "num", "i", "j = i - 1", "j", "i - 1", "i", "1", "while(j >= 0 && num[j] > v){\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}", "j >= 0 && num[j] > v", "j >= 0", "j", "0", "num[j] > v", "num[j]", "num", "j", "v", "{\n \t\t\tnum[j + 1] = num[j];\n \t\t\tj--;\n \t\t\tnum[j + 1] = v;\n \t\t}", "num[j + 1] = num[j]", "num[j + 1]", "num", "j + 1", "j", "1", "num[j]", "num", "j", "j--", "j", "num[j + 1] = v", "num[j + 1]", "num", "j + 1", "j", "1", "v", "for(int n = 0; n < input; n++){\n \t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}\n \t}", "int n = 0;", "int n = 0;", "n", "0", "n < input", "n", "input", "n++", "n++", "n", "{\n \t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}\n \t}", "{\n \t\tif(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}\n \t}", "if(n != input - 1){\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}else{\n \t\t\tSystem.out.println(num[n]);\n \t\t}", "n != input - 1", "n", "input - 1", "input", "1", "{\n \t\t\tSystem.out.print(num[n] + \" \");\n \t\t}", "System.out.print(num[n] + \" \")", "System.out.print", "System.out", "System", "System.out", "num[n] + \" \"", "num[n]", "num", "n", "\" \"", "{\n \t\t\tSystem.out.println(num[n]);\n \t\t}", "System.out.println(num[n])", "System.out.println", "System.out", "System", "System.out", "num[n]", "num", "n", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int input = scan.nextInt(); int[] num = new int[input]; int v; int j; for(int i = 0; i < input; i++){ num[i] = scan.nextInt(); } for(int i = 1; i <= input - 1; i++){ for(int n = 0; n < input; n++){ if(n != input - 1){ System.out.print(num[n] + " "); }else{ System.out.print(num[n]); } } System.out.println(""); v = num[i]; j = i - 1; while(j >= 0 && num[j] > v){ num[j + 1] = num[j]; j--; num[j + 1] = v; } } for(int n = 0; n < input; n++){ if(n != input - 1){ System.out.print(num[n] + " "); }else{ System.out.println(num[n]); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 2, 17, 18, 13, 13, 14, 2, 13, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 12, 13, 30, 4, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 13, 17, 30, 14, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 3, 0, 18, 13, 2, 13, 17, 13, 4, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 2, 13, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 0, 13, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 2, 13, 17, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 13, 17, 30, 0, 13, 17, 40, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 13, 14, 40, 13, 3, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 382, 11 ], [ 382, 12 ], [ 12, 13 ], [ 382, 14 ], [ 14, 15 ], [ 382, 16 ], [ 16, 17 ], [ 382, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 18, 30 ], [ 30, 31 ], [ 382, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 34, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 382, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 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 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 84, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 68, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 68, 107 ], [ 107, 108 ], [ 108, 109 ], [ 382, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 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 ], [ 130, 132 ], [ 127, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 127, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 143, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 153, 155 ], [ 150, 156 ], [ 156, 157 ], [ 156, 158 ], [ 149, 159 ], [ 159, 160 ], [ 143, 161 ], [ 127, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 165, 167 ], [ 162, 168 ], [ 127, 169 ], [ 169, 170 ], [ 382, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 181, 183 ], [ 174, 184 ], [ 184, 185 ], [ 185, 186 ], [ 174, 187 ], [ 188, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 191, 193 ], [ 188, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 194, 201 ], [ 201, 202 ], [ 201, 203 ], [ 194, 204 ], [ 204, 205 ], [ 205, 206 ], [ 194, 207 ], [ 208, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 214, 216 ], [ 209, 217 ], [ 217, 218 ], [ 217, 219 ], [ 188, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 221, 225 ], [ 225, 226 ], [ 225, 227 ], [ 220, 228 ], [ 228, 229 ], [ 229, 230 ], [ 228, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 233, 235 ], [ 228, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 240, 241 ], [ 240, 242 ], [ 228, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 382, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 250, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 254, 259 ], [ 259, 260 ], [ 259, 261 ], [ 261, 262 ], [ 261, 263 ], [ 254, 264 ], [ 264, 265 ], [ 265, 266 ], [ 254, 267 ], [ 268, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 268, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 272, 277 ], [ 277, 278 ], [ 277, 279 ], [ 280, 280 ], [ 280, 281 ], [ 280, 282 ], [ 280, 283 ], [ 272, 284 ], [ 284, 285 ], [ 285, 286 ], [ 272, 287 ], [ 288, 288 ], [ 288, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 290, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 296, 298 ], [ 289, 299 ], [ 299, 300 ], [ 300, 301 ], [ 300, 302 ], [ 299, 303 ], [ 303, 304 ], [ 299, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 307, 309 ], [ 299, 310 ], [ 310, 311 ], [ 311, 312 ], [ 311, 313 ], [ 310, 314 ], [ 314, 315 ], [ 314, 316 ], [ 316, 317 ], [ 316, 318 ], [ 299, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 322, 324 ], [ 319, 325 ], [ 268, 326 ], [ 326, 327 ], [ 327, 328 ], [ 326, 329 ], [ 382, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 330, 334 ], [ 334, 335 ], [ 330, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 336, 342 ], [ 342, 343 ], [ 330, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 348, 352 ], [ 352, 353 ], [ 353, 354 ], [ 354, 355 ], [ 347, 356 ], [ 356, 357 ], [ 357, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 361, 362 ], [ 362, 363 ], [ 357, 364 ], [ 364, 365 ], [ 365, 366 ], [ 365, 367 ], [ 346, 368 ], [ 368, 369 ], [ 369, 370 ], [ 370, 371 ], [ 330, 372 ], [ 372, 373 ], [ 372, 374 ], [ 374, 375 ], [ 375, 376 ], [ 376, 377 ], [ 377, 378 ], [ 376, 379 ], [ 379, 380 ], [ 0, 381 ], [ 381, 382 ], [ 381, 383 ] ]
[ "import java.io.*;\nimport java.util.List;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n int[] arr;\n\n int size;\n\n int swaps;\n\n public static void main(String[] args)\n {\n\n Main g = new Main();\n\n g.readArray();\n\n g.insertionSort();\n\n //g.printArray();\n\n //System.out.println(g.swaps);\n }\n\n private void readArray() {\n\n InputReader reader = new InputReader(System.in);\n\n size = reader.nextInt();\n\n arr = new int[size];\n\n for(int i=0; i<size; ++i)\n arr[i] = reader.nextInt();\n }\n\n private void printArray() {\n\n PrintWriter writer = new PrintWriter(System.out);\n\n for(int i=0; i<size; ++i) {\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }\n\n writer.write(\"\\n\");\n\n writer.flush();\n }\n\n\n private void insertionSort() {\n\n printArray();\n\n for(int i=1; i<size; ++i) {\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }\n }\n\n\n private void selectionSort() {\n\n for(int i=0; i<size-1; ++i) {\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }\n }\n\n\n private void bubbleSort() {\n\n boolean flag=false;\n\n for(int i=0; i<size-1; ++i) {\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }\n\n }\n\n\n class InputReader {\n\n private BufferedReader reader;\n\n private StringTokenizer tokenizer;\n\n InputReader(InputStream ip) {\n\n reader = new BufferedReader(new InputStreamReader(ip));\n }\n\n String next() {\n\n if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n\n return Integer.parseInt(next());\n }\n }\n}\n", "import java.io.*;", "io.*", "java", "import java.util.List;", "List", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n int[] arr;\n\n int size;\n\n int swaps;\n\n public static void main(String[] args)\n {\n\n Main g = new Main();\n\n g.readArray();\n\n g.insertionSort();\n\n //g.printArray();\n\n //System.out.println(g.swaps);\n }\n\n private void readArray() {\n\n InputReader reader = new InputReader(System.in);\n\n size = reader.nextInt();\n\n arr = new int[size];\n\n for(int i=0; i<size; ++i)\n arr[i] = reader.nextInt();\n }\n\n private void printArray() {\n\n PrintWriter writer = new PrintWriter(System.out);\n\n for(int i=0; i<size; ++i) {\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }\n\n writer.write(\"\\n\");\n\n writer.flush();\n }\n\n\n private void insertionSort() {\n\n printArray();\n\n for(int i=1; i<size; ++i) {\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }\n }\n\n\n private void selectionSort() {\n\n for(int i=0; i<size-1; ++i) {\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }\n }\n\n\n private void bubbleSort() {\n\n boolean flag=false;\n\n for(int i=0; i<size-1; ++i) {\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }\n\n }\n\n\n class InputReader {\n\n private BufferedReader reader;\n\n private StringTokenizer tokenizer;\n\n InputReader(InputStream ip) {\n\n reader = new BufferedReader(new InputStreamReader(ip));\n }\n\n String next() {\n\n if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n\n return Integer.parseInt(next());\n }\n }\n}", "Main", "int[] arr;", "arr", "int size;", "size", "int swaps;", "swaps", "public static void main(String[] args)\n {\n\n Main g = new Main();\n\n g.readArray();\n\n g.insertionSort();\n\n //g.printArray();\n\n //System.out.println(g.swaps);\n }", "main", "{\n\n Main g = new Main();\n\n g.readArray();\n\n g.insertionSort();\n\n //g.printArray();\n\n //System.out.println(g.swaps);\n }", "Main g = new Main();", "g", "new Main()", "g.readArray()", "g.readArray", "g", "g.insertionSort()", "g.insertionSort", "g", "String[] args", "args", "private void readArray() {\n\n InputReader reader = new InputReader(System.in);\n\n size = reader.nextInt();\n\n arr = new int[size];\n\n for(int i=0; i<size; ++i)\n arr[i] = reader.nextInt();\n }", "readArray", "{\n\n InputReader reader = new InputReader(System.in);\n\n size = reader.nextInt();\n\n arr = new int[size];\n\n for(int i=0; i<size; ++i)\n arr[i] = reader.nextInt();\n }", "InputReader reader = new InputReader(System.in);", "reader", "new InputReader(System.in)", "size = reader.nextInt()", "size", "reader.nextInt()", "reader.nextInt", "reader", "arr = new int[size]", "arr", "new int[size]", "size", "for(int i=0; i<size; ++i)\n arr[i] = reader.nextInt();", "int i=0;", "int i=0;", "i", "0", "i<size", "i", "size", "++i", "++i", "i", "arr[i] = reader.nextInt();", "arr[i] = reader.nextInt()", "arr[i]", "arr", "i", "reader.nextInt()", "reader.nextInt", "reader", "private void printArray() {\n\n PrintWriter writer = new PrintWriter(System.out);\n\n for(int i=0; i<size; ++i) {\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }\n\n writer.write(\"\\n\");\n\n writer.flush();\n }", "printArray", "{\n\n PrintWriter writer = new PrintWriter(System.out);\n\n for(int i=0; i<size; ++i) {\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }\n\n writer.write(\"\\n\");\n\n writer.flush();\n }", "PrintWriter writer = new PrintWriter(System.out);", "writer", "new PrintWriter(System.out)", "for(int i=0; i<size; ++i) {\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }", "int i=0;", "int i=0;", "i", "0", "i<size", "i", "size", "++i", "++i", "i", "{\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }", "{\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }", "writer.write(\"\" + arr[i])", "writer.write", "writer", "\"\" + arr[i]", "\"\"", "arr[i]", "arr", "i", "if(i<size-1) writer.write(\" \");", "i<size-1", "i", "size-1", "size", "1", "writer.write(\" \")", "writer.write", "writer", "\" \"", "writer.write(\"\\n\")", "writer.write", "writer", "\"\\n\"", "writer.flush()", "writer.flush", "writer", "private void insertionSort() {\n\n printArray();\n\n for(int i=1; i<size; ++i) {\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }\n }", "insertionSort", "{\n\n printArray();\n\n for(int i=1; i<size; ++i) {\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }\n }", "printArray()", "printArray", "for(int i=1; i<size; ++i) {\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }", "int i=1;", "int i=1;", "i", "1", "i<size", "i", "size", "++i", "++i", "i", "{\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }", "{\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }", "int t1=arr[i];", "t1", "arr[i]", "arr", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }", "j>=0", "j", "0", "{\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }", "if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;", "t1 < arr[j]", "t1", "arr[j]", "arr", "j", "{\n arr[j+1] = arr[j];\n --j;\n }", "arr[j+1] = arr[j]", "arr[j+1]", "arr", "j+1", "j", "1", "arr[j]", "arr", "j", "--j", "j", "break;", "arr[j+1]=t1", "arr[j+1]", "arr", "j+1", "j", "1", "t1", "printArray()", "printArray", "private void selectionSort() {\n\n for(int i=0; i<size-1; ++i) {\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }\n }", "selectionSort", "{\n\n for(int i=0; i<size-1; ++i) {\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }\n }", "for(int i=0; i<size-1; ++i) {\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<size-1", "i", "size-1", "size", "1", "++i", "++i", "i", "{\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }", "{\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }", "int min=i+1;", "min", "i+1", "i", "1", "for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }", "int j=i+1;", "int j=i+1;", "j", "i+1", "i", "1", "j<size", "j", "size", "++j", "++j", "j", "{\n if(arr[j] < arr[min])\n min=j;\n }", "{\n if(arr[j] < arr[min])\n min=j;\n }", "if(arr[j] < arr[min])\n min=j;", "arr[j] < arr[min]", "arr[j]", "arr", "j", "arr[min]", "arr", "min", "min=j", "min", "j", "if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }", "arr[min] < arr[i]", "arr[min]", "arr", "min", "arr[i]", "arr", "i", "{\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }", "++swaps", "swaps", "int tmp = arr[min];", "tmp", "arr[min]", "arr", "min", "arr[min] = arr[i]", "arr[min]", "arr", "min", "arr[i]", "arr", "i", "arr[i] = tmp", "arr[i]", "arr", "i", "tmp", "private void bubbleSort() {\n\n boolean flag=false;\n\n for(int i=0; i<size-1; ++i) {\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }\n\n }", "bubbleSort", "{\n\n boolean flag=false;\n\n for(int i=0; i<size-1; ++i) {\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }\n\n }", "boolean flag=false;", "flag", "false", "for(int i=0; i<size-1; ++i) {\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }", "int i=0;", "int i=0;", "i", "0", "i<size-1", "i", "size-1", "size", "1", "++i", "++i", "i", "{\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }", "{\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }", "flag=false", "flag", "false", "for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<size-1-i", "j", "size-1-i", "size-1-i", "size", "1", "i", "++j", "++j", "j", "{\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }", "{\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }", "if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }", "arr[j]>arr[j+1]", "arr[j]", "arr", "j", "arr[j+1]", "arr", "j+1", "j", "1", "{\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }", "flag=true", "flag", "true", "++swaps", "swaps", "int tmp = arr[j];", "tmp", "arr[j]", "arr", "j", "arr[j] = arr[j+1]", "arr[j]", "arr", "j", "arr[j+1]", "arr", "j+1", "j", "1", "arr[j+1] = tmp", "arr[j+1]", "arr", "j+1", "j", "1", "tmp", "if(!flag) break;", "!flag", "flag", "break;", "class InputReader {\n\n private BufferedReader reader;\n\n private StringTokenizer tokenizer;\n\n InputReader(InputStream ip) {\n\n reader = new BufferedReader(new InputStreamReader(ip));\n }\n\n String next() {\n\n if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n\n return Integer.parseInt(next());\n }\n }", "InputReader", "private BufferedReader reader;", "reader", "private StringTokenizer tokenizer;", "tokenizer", "InputReader(InputStream ip) {\n\n reader = new BufferedReader(new InputStreamReader(ip));\n }", "InputReader", "{\n\n reader = new BufferedReader(new InputStreamReader(ip));\n }", "reader = new BufferedReader(new InputStreamReader(ip))", "reader", "new BufferedReader(new InputStreamReader(ip))", "InputStream ip", "ip", "String next() {\n\n if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return tokenizer.nextToken();\n }", "next", "{\n\n if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return tokenizer.nextToken();\n }", "if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "tokenizer==null || !tokenizer.hasMoreTokens()", "tokenizer==null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "int nextInt() {\n\n return Integer.parseInt(next());\n }", "nextInt", "{\n\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public class Main {\n\n int[] arr;\n\n int size;\n\n int swaps;\n\n public static void main(String[] args)\n {\n\n Main g = new Main();\n\n g.readArray();\n\n g.insertionSort();\n\n //g.printArray();\n\n //System.out.println(g.swaps);\n }\n\n private void readArray() {\n\n InputReader reader = new InputReader(System.in);\n\n size = reader.nextInt();\n\n arr = new int[size];\n\n for(int i=0; i<size; ++i)\n arr[i] = reader.nextInt();\n }\n\n private void printArray() {\n\n PrintWriter writer = new PrintWriter(System.out);\n\n for(int i=0; i<size; ++i) {\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }\n\n writer.write(\"\\n\");\n\n writer.flush();\n }\n\n\n private void insertionSort() {\n\n printArray();\n\n for(int i=1; i<size; ++i) {\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }\n }\n\n\n private void selectionSort() {\n\n for(int i=0; i<size-1; ++i) {\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }\n }\n\n\n private void bubbleSort() {\n\n boolean flag=false;\n\n for(int i=0; i<size-1; ++i) {\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }\n\n }\n\n\n class InputReader {\n\n private BufferedReader reader;\n\n private StringTokenizer tokenizer;\n\n InputReader(InputStream ip) {\n\n reader = new BufferedReader(new InputStreamReader(ip));\n }\n\n String next() {\n\n if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n\n return Integer.parseInt(next());\n }\n }\n}", "public class Main {\n\n int[] arr;\n\n int size;\n\n int swaps;\n\n public static void main(String[] args)\n {\n\n Main g = new Main();\n\n g.readArray();\n\n g.insertionSort();\n\n //g.printArray();\n\n //System.out.println(g.swaps);\n }\n\n private void readArray() {\n\n InputReader reader = new InputReader(System.in);\n\n size = reader.nextInt();\n\n arr = new int[size];\n\n for(int i=0; i<size; ++i)\n arr[i] = reader.nextInt();\n }\n\n private void printArray() {\n\n PrintWriter writer = new PrintWriter(System.out);\n\n for(int i=0; i<size; ++i) {\n\n writer.write(\"\" + arr[i]);\n\n if(i<size-1) writer.write(\" \");\n }\n\n writer.write(\"\\n\");\n\n writer.flush();\n }\n\n\n private void insertionSort() {\n\n printArray();\n\n for(int i=1; i<size; ++i) {\n\n int t1=arr[i];\n int j=i-1;\n\n while(j>=0) {\n if(t1 < arr[j]) {\n arr[j+1] = arr[j];\n --j;\n }\n else break;\n }\n\n arr[j+1]=t1;\n\n printArray();\n }\n }\n\n\n private void selectionSort() {\n\n for(int i=0; i<size-1; ++i) {\n\n int min=i+1;\n\n for(int j=i+1; j<size; ++j) {\n if(arr[j] < arr[min])\n min=j;\n }\n\n if(arr[min] < arr[i]) {\n\n ++swaps;\n\n int tmp = arr[min];\n arr[min] = arr[i];\n arr[i] = tmp;\n }\n }\n }\n\n\n private void bubbleSort() {\n\n boolean flag=false;\n\n for(int i=0; i<size-1; ++i) {\n\n flag=false;\n\n for(int j=0; j<size-1-i; ++j) {\n\n if(arr[j]>arr[j+1]) {\n\n flag=true;\n\n ++swaps;\n\n int tmp = arr[j];\n arr[j] = arr[j+1];\n arr[j+1] = tmp;\n }\n }\n\n // no swap has taken place so array is already sorted at this point\n if(!flag) break;\n }\n\n }\n\n\n class InputReader {\n\n private BufferedReader reader;\n\n private StringTokenizer tokenizer;\n\n InputReader(InputStream ip) {\n\n reader = new BufferedReader(new InputStreamReader(ip));\n }\n\n String next() {\n\n if(tokenizer==null || !tokenizer.hasMoreTokens()) {\n\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n\n return Integer.parseInt(next());\n }\n }\n}", "Main" ]
import java.io.*; import java.util.List; import java.util.StringTokenizer; public class Main { int[] arr; int size; int swaps; public static void main(String[] args) { Main g = new Main(); g.readArray(); g.insertionSort(); //g.printArray(); //System.out.println(g.swaps); } private void readArray() { InputReader reader = new InputReader(System.in); size = reader.nextInt(); arr = new int[size]; for(int i=0; i<size; ++i) arr[i] = reader.nextInt(); } private void printArray() { PrintWriter writer = new PrintWriter(System.out); for(int i=0; i<size; ++i) { writer.write("" + arr[i]); if(i<size-1) writer.write(" "); } writer.write("\n"); writer.flush(); } private void insertionSort() { printArray(); for(int i=1; i<size; ++i) { int t1=arr[i]; int j=i-1; while(j>=0) { if(t1 < arr[j]) { arr[j+1] = arr[j]; --j; } else break; } arr[j+1]=t1; printArray(); } } private void selectionSort() { for(int i=0; i<size-1; ++i) { int min=i+1; for(int j=i+1; j<size; ++j) { if(arr[j] < arr[min]) min=j; } if(arr[min] < arr[i]) { ++swaps; int tmp = arr[min]; arr[min] = arr[i]; arr[i] = tmp; } } } private void bubbleSort() { boolean flag=false; for(int i=0; i<size-1; ++i) { flag=false; for(int j=0; j<size-1-i; ++j) { if(arr[j]>arr[j+1]) { flag=true; ++swaps; int tmp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = tmp; } } // no swap has taken place so array is already sorted at this point if(!flag) break; } } class InputReader { private BufferedReader reader; private StringTokenizer tokenizer; InputReader(InputStream ip) { reader = new BufferedReader(new InputStreamReader(ip)); } String next() { if(tokenizer==null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { e.printStackTrace(); } } return tokenizer.nextToken(); } int nextInt() { return Integer.parseInt(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 4, 18, 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, 4, 18, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 13, 4, 18, 13, 18, 13, 13, 30, 4, 18, 4, 18, 13, 4, 18, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 13, 4, 18, 13, 18, 13, 13, 30, 4, 18, 4, 18, 13, 4, 18, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 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 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 67, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 84, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 8, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 108, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 122, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 133, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 144, 150 ], [ 150, 151 ], [ 150, 152 ], [ 143, 153 ], [ 153, 154 ], [ 122, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 155, 161 ], [ 122, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 167, 168 ], [ 167, 169 ], [ 162, 170 ], [ 170, 171 ], [ 171, 172 ], [ 162, 173 ], [ 174, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 178, 180 ], [ 175, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 182, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 188, 189 ], [ 188, 190 ], [ 175, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 200, 201 ], [ 200, 202 ], [ 192, 203 ], [ 122, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 204, 209 ], [ 209, 210 ], [ 210, 211 ], [ 122, 212 ], [ 212, 213 ], [ 213, 214 ], [ 212, 215 ], [ 6, 216 ], [ 216, 217 ] ]
[ "import java.util.Scanner;\n\n/**\n * \n */\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\tint N = 0;\n\t\tint v = 0;\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint A[];\n\t\tString str = \"\";\n\t\t\n\t\tN = Integer.parseInt(as.next());\n\t\t\n\t\tA = new int[N];\n\t\t\n\t\tfor(i=0;i<N;i++){\n\t\t\t\n\t\t\tA[i] = Integer.parseInt(as.next());\n\t\t\t\t\n\t\t\tif(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t\t\n\t\tsb.setLength(0);\n\t\t\n\t\tfor(i=1;i<=N-1;i++){\n\t\t\t\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tfor(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t\t//System.out.println(\"!!\");\n\t\t\t\n\t\t}\n\t\t\n\t\t//System.out.println(\"::\");\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\tint N = 0;\n\t\tint v = 0;\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint A[];\n\t\tString str = \"\";\n\t\t\n\t\tN = Integer.parseInt(as.next());\n\t\t\n\t\tA = new int[N];\n\t\t\n\t\tfor(i=0;i<N;i++){\n\t\t\t\n\t\t\tA[i] = Integer.parseInt(as.next());\n\t\t\t\t\n\t\t\tif(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t\t\n\t\tsb.setLength(0);\n\t\t\n\t\tfor(i=1;i<=N-1;i++){\n\t\t\t\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tfor(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t\t//System.out.println(\"!!\");\n\t\t\t\n\t\t}\n\t\t\n\t\t//System.out.println(\"::\");\n\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\tint N = 0;\n\t\tint v = 0;\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint A[];\n\t\tString str = \"\";\n\t\t\n\t\tN = Integer.parseInt(as.next());\n\t\t\n\t\tA = new int[N];\n\t\t\n\t\tfor(i=0;i<N;i++){\n\t\t\t\n\t\t\tA[i] = Integer.parseInt(as.next());\n\t\t\t\t\n\t\t\tif(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t\t\n\t\tsb.setLength(0);\n\t\t\n\t\tfor(i=1;i<=N-1;i++){\n\t\t\t\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tfor(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t\t//System.out.println(\"!!\");\n\t\t\t\n\t\t}\n\t\t\n\t\t//System.out.println(\"::\");\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\tint N = 0;\n\t\tint v = 0;\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint A[];\n\t\tString str = \"\";\n\t\t\n\t\tN = Integer.parseInt(as.next());\n\t\t\n\t\tA = new int[N];\n\t\t\n\t\tfor(i=0;i<N;i++){\n\t\t\t\n\t\t\tA[i] = Integer.parseInt(as.next());\n\t\t\t\t\n\t\t\tif(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t\t\n\t\tsb.setLength(0);\n\t\t\n\t\tfor(i=1;i<=N-1;i++){\n\t\t\t\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tfor(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t\t//System.out.println(\"!!\");\n\t\t\t\n\t\t}\n\t\t\n\t\t//System.out.println(\"::\");\n\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "Scanner as = new Scanner(System.in);", "as", "new Scanner(System.in)", "int N = 0;", "N", "0", "int v = 0;", "v", "0", "int i = 0;", "i", "0", "int j = 0;", "j", "0", "int A[];", "A", "String str = \"\";", "str", "\"\"", "N = Integer.parseInt(as.next())", "N", "Integer.parseInt(as.next())", "Integer.parseInt", "Integer", "as.next()", "as.next", "as", "A = new int[N]", "A", "new int[N]", "N", "for(i=0;i<N;i++){\n\t\t\t\n\t\t\tA[i] = Integer.parseInt(as.next());\n\t\t\t\t\n\t\t\tif(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "i=0;", "i=0", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tA[i] = Integer.parseInt(as.next());\n\t\t\t\t\n\t\t\tif(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tA[i] = Integer.parseInt(as.next());\n\t\t\t\t\n\t\t\tif(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "A[i] = Integer.parseInt(as.next())", "A[i]", "A", "i", "Integer.parseInt(as.next())", "Integer.parseInt", "Integer", "as.next()", "as.next", "as", "if(i == N - 1){\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}", "i == N - 1", "i", "N - 1", "N", "1", "{\n\t\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i]));\n\t\t\t\t\n\t\t\t}", "sb.append(String.valueOf(A[i]))", "sb.append", "sb", "String.valueOf(A[i])", "String.valueOf", "String", "A[i]", "A", "i", "{\n\t\t\t\n\t\t\t\tsb.append(String.valueOf(A[i])).append(' ');\n\t\t\t\n\t\t\t}", "sb.append(String.valueOf(A[i])).append(' ')", "sb.append(String.valueOf(A[i])).append", "sb.append(String.valueOf(A[i]))", "sb.append", "sb", "String.valueOf(A[i])", "String.valueOf", "String", "A[i]", "A", "i", "' '", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "sb.setLength(0)", "sb.setLength", "sb", "0", "for(i=1;i<=N-1;i++){\n\t\t\t\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tfor(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t\t//System.out.println(\"!!\");\n\t\t\t\n\t\t}", "i=1;", "i=1", "i", "1", "i<=N-1", "i", "N-1", "N", "1", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tfor(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t\t//System.out.println(\"!!\");\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tv = A[i];\n\t\t\tj = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\t\n\t\t\tfor(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sb.toString());\n\t\t\tsb.setLength(0);\n\t\t\t//System.out.println(\"!!\");\n\t\t\t\n\t\t}", "v = A[i]", "v", "A[i]", "A", "i", "j = i - 1", "j", "i - 1", "i", "1", "while(j >= 0 && A[j] > v){\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t\t\t\t\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t\t\n\t\t\t}", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "for(int k=0;k<N;k++){\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<N", "k", "N", "k++", "k++", "k", "{\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\tif(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "if(k == N - 1){\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}", "k == N - 1", "k", "N - 1", "N", "1", "{\n\t\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k]));\n\t\t\t\t\t\n\t\t\t\t}", "sb.append(String.valueOf(A[k]))", "sb.append", "sb", "String.valueOf(A[k])", "String.valueOf", "String", "A[k]", "A", "k", "{\n\t\t\t\t\n\t\t\t\t\tsb.append(String.valueOf(A[k])).append(' ');\n\t\t\t\t\n\t\t\t\t}", "sb.append(String.valueOf(A[k])).append(' ')", "sb.append(String.valueOf(A[k])).append", "sb.append(String.valueOf(A[k]))", "sb.append", "sb", "String.valueOf(A[k])", "String.valueOf", "String", "A[k]", "A", "k", "' '", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "sb.setLength(0)", "sb.setLength", "sb", "0", "String[] args", "args" ]
import java.util.Scanner; /** * */ /** * @author kawakami * */ class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub StringBuilder sb = new StringBuilder(); Scanner as = new Scanner(System.in); int N = 0; int v = 0; int i = 0; int j = 0; int A[]; String str = ""; N = Integer.parseInt(as.next()); A = new int[N]; for(i=0;i<N;i++){ A[i] = Integer.parseInt(as.next()); if(i == N - 1){ sb.append(String.valueOf(A[i])); } else{ sb.append(String.valueOf(A[i])).append(' '); } } System.out.println(sb.toString()); sb.setLength(0); for(i=1;i<=N-1;i++){ v = A[i]; j = i - 1; while(j >= 0 && A[j] > v){ A[j+1] = A[j]; j--; } A[j+1] = v; for(int k=0;k<N;k++){ if(k == N - 1){ sb.append(String.valueOf(A[k])); } else{ sb.append(String.valueOf(A[k])).append(' '); } } System.out.println(sb.toString()); sb.setLength(0); //System.out.println("!!"); } //System.out.println("::"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 4, 18, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 13, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 13, 13, 3, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 154, 14 ], [ 154, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 17, 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 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 83, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 83, 115 ], [ 61, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 61, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 124, 132 ], [ 132, 133 ], [ 133, 134 ], [ 124, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 61, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 15, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.io.FileReader;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint[] in=new int[n];\n\t\tfor (int i=0;sc.hasNext();i++)\n\t\t\tin[i]=sc.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}", "import java.io.FileReader;", "FileReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint[] in=new int[n];\n\t\tfor (int i=0;sc.hasNext();i++)\n\t\t\tin[i]=sc.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint[] in=new int[n];\n\t\tfor (int i=0;sc.hasNext();i++)\n\t\t\tin[i]=sc.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint[] in=new int[n];\n\t\tfor (int i=0;sc.hasNext();i++)\n\t\t\tin[i]=sc.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] in=new int[n];", "in", "new int[n]", "n", "for (int i=0;sc.hasNext();i++)\n\t\t\tin[i]=sc.nextInt();", "int i=0;", "int i=0;", "i", "0", "sc.hasNext()", "sc.hasNext", "sc", "i++", "i++", "i", "in[i]=sc.nextInt();", "in[i]=sc.nextInt()", "in[i]", "in", "i", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}", "for (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < i", "j", "i", "j++", "j++", "j", "{\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}", "{\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}", "if (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}", "in[i] < in[j]", "in[i]", "in", "i", "in[j]", "in", "j", "{\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}", "int tmp = in[i];", "tmp", "in[i]", "in", "i", "for (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];", "int l=i;", "int l=i;", "l", "i", "l > j", "l", "j", "l--", "l--", "l", "in[l] = in[l - 1];", "in[l] = in[l - 1]", "in[l]", "in", "l", "in[l - 1]", "in", "l - 1", "l", "1", "in[j] = tmp", "in[j]", "in", "j", "tmp", "break;", "System.out.print(in[0])", "System.out.print", "System.out", "System", "System.out", "in[0]", "in", "0", "for (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);", "int l = 1;", "int l = 1;", "l", "1", "l < n", "l", "n", "l++", "l++", "l", "System.out.print(\" \" + in[l]);", "System.out.print(\" \" + in[l])", "System.out.print", "System.out", "System", "System.out", "\" \" + in[l]", "\" \"", "in[l]", "in", "l", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint[] in=new int[n];\n\t\tfor (int i=0;sc.hasNext();i++)\n\t\t\tin[i]=sc.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint[] in=new int[n];\n\t\tfor (int i=0;sc.hasNext();i++)\n\t\t\tin[i]=sc.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (in[i] < in[j]) {\n\t\t\t\t\tint tmp = in[i];\n\t\t\t\t\tfor (int l=i; l > j; l--)\n\t\t\t\t\t\tin[l] = in[l - 1];\n\t\t\t\t\tin[j] = tmp;break;\n\t\t\t\t\t}\n\n\t\t\t}System.out.print(in[0]);\n\t\t\t\t\tfor (int l = 1; l < n; l++)\n\t\t\t\t\t\tSystem.out.print(\" \" + in[l]);\n\t\t\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] in=new int[n]; for (int i=0;sc.hasNext();i++) in[i]=sc.nextInt(); for (int i = 0; i < n; i++) { for (int j = 0; j < i; j++) { if (in[i] < in[j]) { int tmp = in[i]; for (int l=i; l > j; l--) in[l] = in[l - 1]; in[j] = tmp;break; } }System.out.print(in[0]); for (int l = 1; l < n; l++) System.out.print(" " + in[l]); System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 170, 5 ], [ 170, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 6, 52 ], [ 52, 53 ], [ 170, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 69, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 56, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 54, 96 ], [ 96, 97 ], [ 54, 98 ], [ 98, 99 ], [ 170, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 102, 107 ], [ 107, 108 ], [ 102, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 109, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 121, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 143, 149 ], [ 149, 150 ], [ 149, 151 ], [ 142, 152 ], [ 152, 153 ], [ 121, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 157, 159 ], [ 154, 160 ], [ 121, 161 ], [ 161, 162 ], [ 161, 163 ], [ 161, 164 ], [ 100, 165 ], [ 165, 166 ], [ 100, 167 ], [ 167, 168 ], [ 0, 169 ], [ 169, 170 ], [ 169, 171 ] ]
[ "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\tint x = sc.nextInt();\n\t\tint[] array = new int[x];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\n\t\tshow(array, x);\n\t\tinsertionSort(array, x);\n\n\t\tsc.close();\n\t}\n\n\tpublic static void show(int[] array, int x) {\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void insertionSort(int[] array, int x) {\n\t\tint j,i,v;\n\t\tfor(i=1;i<x;i++) {\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\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\tint x = sc.nextInt();\n\t\tint[] array = new int[x];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\n\t\tshow(array, x);\n\t\tinsertionSort(array, x);\n\n\t\tsc.close();\n\t}\n\n\tpublic static void show(int[] array, int x) {\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void insertionSort(int[] array, int x) {\n\t\tint j,i,v;\n\t\tfor(i=1;i<x;i++) {\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[] array = new int[x];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\n\t\tshow(array, x);\n\t\tinsertionSort(array, x);\n\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[] array = new int[x];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\n\t\tshow(array, x);\n\t\tinsertionSort(array, x);\n\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int x = sc.nextInt();", "x", "sc.nextInt()", "sc.nextInt", "sc", "int[] array = new int[x];", "array", "new int[x]", "x", "for(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "show(array, x)", "show", "array", "x", "insertionSort(array, x)", "insertionSort", "array", "x", "sc.close()", "sc.close", "sc", "String[] args", "args", "public static void show(int[] array, int x) {\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "show", "{\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "for(int i=0;i<x;i++) {\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "System.out.print(array[i])", "System.out.print", "System.out", "System", "System.out", "array[i]", "array", "i", "if(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "i!=x-1", "i", "x-1", "x", "1", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] array", "array", "int x", "x", "public static void insertionSort(int[] array, int x) {\n\t\tint j,i,v;\n\t\tfor(i=1;i<x;i++) {\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\n\t\t}\n\t}", "insertionSort", "{\n\t\tint j,i,v;\n\t\tfor(i=1;i<x;i++) {\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\n\t\t}\n\t}", "int j", "j", "i", "i", "v;", "v", "for(i=1;i<x;i++) {\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\n\t\t}", "i=1;", "i=1", "i", "1", "i<x", "i", "x", "i++", "i++", "i", "{\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\n\t\t}", "{\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\n\t\t}", "v=array[i]", "v", "array[i]", "array", "i", "j=i-1", "j", "i-1", "i", "1", "while(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0 && array[j]>v", "j>=0", "j", "0", "array[j]>v", "array[j]", "array", "j", "v", "{\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j+1]=v", "array[j+1]", "array", "j+1", "j", "1", "v", "show(array,x)", "show", "array", "x", "int[] array", "array", "int x", "x", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[] array = new int[x];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\n\t\tshow(array, x);\n\t\tinsertionSort(array, x);\n\n\t\tsc.close();\n\t}\n\n\tpublic static void show(int[] array, int x) {\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void insertionSort(int[] array, int x) {\n\t\tint j,i,v;\n\t\tfor(i=1;i<x;i++) {\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\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\tint x = sc.nextInt();\n\t\tint[] array = new int[x];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\n\t\tshow(array, x);\n\t\tinsertionSort(array, x);\n\n\t\tsc.close();\n\t}\n\n\tpublic static void show(int[] array, int x) {\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tSystem.out.print(array[i]);\n\t\t\tif(i!=x-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void insertionSort(int[] array, int x) {\n\t\tint j,i,v;\n\t\tfor(i=1;i<x;i++) {\n\t\t\tv=array[i];\n\t\t\tj=i-1;\n\t\t\twhile(j>=0 && array[j]>v) {\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarray[j+1]=v;\n\t\t\tshow(array,x);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int[] array = new int[x]; for(int i=0;i<x;i++) { array[i] = sc.nextInt(); } show(array, x); insertionSort(array, x); sc.close(); } public static void show(int[] array, int x) { for(int i=0;i<x;i++) { System.out.print(array[i]); if(i!=x-1) { System.out.print(" "); } } System.out.println(); } public static void insertionSort(int[] array, int x) { int j,i,v; for(i=1;i<x;i++) { v=array[i]; j=i-1; while(j>=0 && array[j]>v) { array[j+1] = array[j]; j--; } array[j+1]=v; show(array,x); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 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, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 184, 5 ], [ 184, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 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 ], [ 74, 76 ], [ 68, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 53, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 53, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 53, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 53, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 125, 126 ], [ 125, 127 ], [ 118, 128 ], [ 128, 129 ], [ 53, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 8, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 144, 146 ], [ 137, 147 ], [ 147, 148 ], [ 148, 149 ], [ 137, 150 ], [ 151, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 157, 158 ], [ 157, 159 ], [ 151, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 160, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 8, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 6, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int[] ints=new int[N];\n for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n }\n for(int i=1;i<N;i++){\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int[] ints=new int[N];\n for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n }\n for(int i=1;i<N;i++){\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n }\n}", "Main", "public static void main(String[] args) {\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int[] ints=new int[N];\n for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n }\n for(int i=1;i<N;i++){\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n }", "main", "{\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int[] ints=new int[N];\n for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n }\n for(int i=1;i<N;i++){\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n }", "Scanner scanner =new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N=scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] ints=new int[N];", "ints", "new int[N]", "N", "for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n ints[i]=scanner.nextInt();\n }", "{\n ints[i]=scanner.nextInt();\n }", "ints[i]=scanner.nextInt()", "ints[i]", "ints", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "for(int i=1;i<N;i++){\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }", "int i=1;", "int i=1;", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }", "{\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }", "for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<ints.length", "j", "ints.length", "ints", "ints.length", "j++", "j++", "j", "{\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }", "{\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }", "System.out.print(ints[j])", "System.out.print", "System.out", "System", "System.out", "ints[j]", "ints", "j", "if(j!=ints.length-1){\n System.out.print(\" \");\n }", "j!=ints.length-1", "j", "ints.length-1", "ints.length", "ints", "ints.length", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int v=ints[i];", "v", "ints[i]", "ints", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }", "j>=0&&ints[j]>v", "j>=0", "j", "0", "ints[j]>v", "ints[j]", "ints", "j", "v", "{\n ints[j+1]=ints[j];\n j--;\n }", "ints[j+1]=ints[j]", "ints[j+1]", "ints", "j+1", "j", "1", "ints[j]", "ints", "j", "j--", "j", "ints[j+1]=v", "ints[j+1]", "ints", "j+1", "j", "1", "v", "for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<ints.length", "j", "ints.length", "ints", "ints.length", "j++", "j++", "j", "{\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }", "{\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }", "System.out.print(ints[j])", "System.out.print", "System.out", "System", "System.out", "ints[j]", "ints", "j", "if(j!=ints.length-1){\n System.out.print(\" \");\n }", "j!=ints.length-1", "j", "ints.length-1", "ints.length", "ints", "ints.length", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int[] ints=new int[N];\n for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n }\n for(int i=1;i<N;i++){\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int[] ints=new int[N];\n for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n }\n for(int i=1;i<N;i++){\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n int v=ints[i];\n int j=i-1;\n while(j>=0&&ints[j]>v){\n ints[j+1]=ints[j];\n j--;\n }\n ints[j+1]=v;\n }\n for(int j=0;j<ints.length;j++){\n System.out.print(ints[j]);\n if(j!=ints.length-1){\n System.out.print(\" \");\n }\n }\n System.out.println(\"\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner scanner =new Scanner(System.in); int N=scanner.nextInt(); int[] ints=new int[N]; for(int i=0;i<N;i++){ ints[i]=scanner.nextInt(); } for(int i=1;i<N;i++){ for(int j=0;j<ints.length;j++){ System.out.print(ints[j]); if(j!=ints.length-1){ System.out.print(" "); } } System.out.println(""); int v=ints[i]; int j=i-1; while(j>=0&&ints[j]>v){ ints[j+1]=ints[j]; j--; } ints[j+1]=v; } for(int j=0;j<ints.length;j++){ System.out.print(ints[j]); if(j!=ints.length-1){ System.out.print(" "); } } System.out.println(""); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 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, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 173, 5 ], [ 173, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 33, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 8, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 72, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 86, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 117 ], [ 117, 118 ], [ 86, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 86, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 126, 136 ], [ 136, 137 ], [ 137, 138 ], [ 126, 139 ], [ 140, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 146, 147 ], [ 146, 148 ], [ 140, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 149, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 149, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 6, 170 ], [ 170, 171 ], [ 0, 172 ], [ 172, 173 ], [ 172, 174 ] ]
[ "import java.util.*;\n\n/**\n * A\n */\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }\n\n System.out.println();\n\n sc.close();\n\n for(int i=1; i<array.length; i++) {\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\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\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }\n\n System.out.println();\n\n sc.close();\n\n for(int i=1; i<array.length; i++) {\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }\n\n System.out.println();\n\n sc.close();\n\n for(int i=1; i<array.length; i++) {\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }\n\n System.out.println();\n\n sc.close();\n\n for(int i=1; i<array.length; i++) {\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int array[] = new int[n];", "array", "new int[n]", "n", "for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }", "{\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "System.out.print(array[i])", "System.out.print", "System.out", "System", "System.out", "array[i]", "array", "i", "if(i<array.length-1) {\n System.out.print(\" \");\n \n }", "i<array.length-1", "i", "array.length-1", "array.length", "array", "array.length", "1", "{\n System.out.print(\" \");\n \n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "sc.close()", "sc.close", "sc", "for(int i=1; i<array.length; i++) {\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }", "int i=1;", "int i=1;", "i", "1", "i<array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }", "{\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }", "int key = array[i];", "key", "array[i]", "array", "i", "int j = i-1;", "j", "i-1", "i", "1", "while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }", "j>=0 && array[j]>key", "j>=0", "j", "0", "array[j]>key", "array[j]", "array", "j", "key", "{\n array[j+1] = array[j];\n j--;\n }", "array[j+1] = array[j]", "array[j+1]", "array", "j+1", "j", "1", "array[j]", "array", "j", "j--", "j", "array[j+1] = key", "array[j+1]", "array", "j+1", "j", "1", "key", "for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }", "int num=0;", "int num=0;", "num", "0", "num<array.length", "num", "array.length", "array", "array.length", "num++", "num++", "num", "{\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }", "{\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }", "System.out.print(array[num])", "System.out.print", "System.out", "System", "System.out", "array[num]", "array", "num", "if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }", "num != array.length-1", "num", "array.length-1", "array.length", "array", "array.length", "1", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "{\n System.out.println();\n }", "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\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }\n\n System.out.println();\n\n sc.close();\n\n for(int i=1; i<array.length; i++) {\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n System.out.print(array[i]);\n \n if(i<array.length-1) {\n System.out.print(\" \");\n \n }\n \n }\n\n System.out.println();\n\n sc.close();\n\n for(int i=1; i<array.length; i++) {\n \n int key = array[i];\n /* insert A[i] into the sorted sequence A[0,...,j-1] */\n int j = i-1;\n while(j>=0 && array[j]>key) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = key;\n\n for(int num=0; num<array.length; num++) {\n System.out.print(array[num]);\n if(num != array.length-1) {\n System.out.print(\" \");\n } else {\n System.out.println();\n }\n }\n }\n\n }\n}", "Main" ]
import java.util.*; /** * A */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int array[] = new int[n]; for(int i=0; i<n; i++) { array[i] = sc.nextInt(); System.out.print(array[i]); if(i<array.length-1) { System.out.print(" "); } } System.out.println(); sc.close(); for(int i=1; i<array.length; i++) { int key = array[i]; /* insert A[i] into the sorted sequence A[0,...,j-1] */ int j = i-1; while(j>=0 && array[j]>key) { array[j+1] = array[j]; j--; } array[j+1] = key; for(int num=0; num<array.length; num++) { System.out.print(array[num]); if(num != array.length-1) { System.out.print(" "); } else { System.out.println(); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 13, 18, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 159, 5 ], [ 159, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 6, 49 ], [ 49, 50 ], [ 159, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 66, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 66, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 66, 106 ], [ 106, 107 ], [ 106, 108 ], [ 106, 109 ], [ 51, 110 ], [ 110, 111 ], [ 51, 112 ], [ 112, 113 ], [ 159, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 120, 131 ], [ 132, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 145, 147 ], [ 116, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 114, 154 ], [ 154, 155 ], [ 114, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] A = new int[N];\n for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }\n printList(A,N);\n insertionSort(A,N);\n }\n \n static void insertionSort(int[] A,int N){\n for(int i=1;i<N;i++){\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }\n }\n static void printList(int[] A,int N){\n StringBuilder builder = new StringBuilder();\n for(int i=0;i<N;i++){\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n System.out.println(builder);\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 int N = scanner.nextInt();\n int[] A = new int[N];\n for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }\n printList(A,N);\n insertionSort(A,N);\n }\n \n static void insertionSort(int[] A,int N){\n for(int i=1;i<N;i++){\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }\n }\n static void printList(int[] A,int N){\n StringBuilder builder = new StringBuilder();\n for(int i=0;i<N;i++){\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n System.out.println(builder);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] A = new int[N];\n for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }\n printList(A,N);\n insertionSort(A,N);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] A = new int[N];\n for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }\n printList(A,N);\n insertionSort(A,N);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] A = new int[N];", "A", "new int[N]", "N", "for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n A[i]=scanner.nextInt();\n }", "{\n A[i]=scanner.nextInt();\n }", "A[i]=scanner.nextInt()", "A[i]", "A", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "printList(A,N)", "printList", "A", "N", "insertionSort(A,N)", "insertionSort", "A", "N", "String[] args", "args", "static void insertionSort(int[] A,int N){\n for(int i=1;i<N;i++){\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }\n }", "insertionSort", "{\n for(int i=1;i<N;i++){\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }\n }", "for(int i=1;i<N;i++){\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }", "int i=1;", "int i=1;", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }", "{\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }", "int v = A[i];", "v", "A[i]", "A", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }", "j>=0 && (v < A[j])", "j>=0", "j", "0", "(v < A[j])", "v", "A[j]", "A", "j", "{\n A[j+1]=A[j];\n j--;\n }", "A[j+1]=A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1]= v", "A[j+1]", "A", "j+1", "j", "1", "v", "printList(A,N)", "printList", "A", "N", "int[] A", "A", "int N", "N", "static void printList(int[] A,int N){\n StringBuilder builder = new StringBuilder();\n for(int i=0;i<N;i++){\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n System.out.println(builder);\n }", "printList", "{\n StringBuilder builder = new StringBuilder();\n for(int i=0;i<N;i++){\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n System.out.println(builder);\n }", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "for(int i=0;i<N;i++){\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }", "{\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }", "if(i>0){\n builder.append(\" \");\n }", "i>0", "i", "0", "{\n builder.append(\" \");\n }", "builder.append(\" \")", "builder.append", "builder", "\" \"", "builder.append(A[i])", "builder.append", "builder", "A[i]", "A", "i", "System.out.println(builder)", "System.out.println", "System.out", "System", "System.out", "builder", "int[] A", "A", "int N", "N", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] A = new int[N];\n for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }\n printList(A,N);\n insertionSort(A,N);\n }\n \n static void insertionSort(int[] A,int N){\n for(int i=1;i<N;i++){\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }\n }\n static void printList(int[] A,int N){\n StringBuilder builder = new StringBuilder();\n for(int i=0;i<N;i++){\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n System.out.println(builder);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] A = new int[N];\n for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }\n printList(A,N);\n insertionSort(A,N);\n }\n \n static void insertionSort(int[] A,int N){\n for(int i=1;i<N;i++){\n int v = A[i];\n int j=i-1;\n while(j>=0 && (v < A[j])){\n A[j+1]=A[j];\n j--;\n }\n A[j+1]= v;\n printList(A,N);\n }\n }\n static void printList(int[] A,int N){\n StringBuilder builder = new StringBuilder();\n for(int i=0;i<N;i++){\n if(i>0){\n builder.append(\" \");\n }\n builder.append(A[i]);\n }\n System.out.println(builder);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] A = new int[N]; for(int i=0;i<N;i++){ A[i]=scanner.nextInt(); } printList(A,N); insertionSort(A,N); } static void insertionSort(int[] A,int N){ for(int i=1;i<N;i++){ int v = A[i]; int j=i-1; while(j>=0 && (v < A[j])){ A[j+1]=A[j]; j--; } A[j+1]= v; printList(A,N); } } static void printList(int[] A,int N){ StringBuilder builder = new StringBuilder(); for(int i=0;i<N;i++){ if(i>0){ builder.append(" "); } builder.append(A[i]); } System.out.println(builder); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 11, 1, 0, 13, 13, 2, 2, 13, 17, 2, 18, 13, 2, 13, 17, 13, 1, 40, 13, 30, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 6, 49 ], [ 49, 50 ], [ 4, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 66, 72 ], [ 72, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 74, 90 ], [ 90, 91 ], [ 91, 92 ], [ 74, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 66, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 66, 108 ], [ 108, 109 ], [ 108, 110 ], [ 108, 111 ], [ 51, 112 ], [ 112, 113 ], [ 51, 114 ], [ 114, 115 ], [ 4, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 124, 125 ], [ 124, 126 ], [ 118, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 132, 133 ], [ 132, 134 ], [ 127, 135 ], [ 135, 136 ], [ 136, 137 ], [ 127, 138 ], [ 139, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 118, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 116, 155 ], [ 155, 156 ], [ 116, 157 ], [ 157, 158 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] ags){\n Scanner nyuryoku = new Scanner(System.in);\n int N = nyuryoku.nextInt();\n int[] A = new int[N];\n for (int i = 0; i < N; i++){\n A[i] = nyuryoku.nextInt();\n }\n show(A, N);\n insertionSort(A, N);\n }\n static void insertionSort(int[] A, int N){\n for(int i = 1; i < N; i++){\n int tmp = A[i];\n int j;\n for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];\n A[j] = tmp;\n show(A, N);\n }\n }\n static void show(int[] A, int N){\n System.out.print(A[0]);\n for (int i = 1; i < N; i++){\n System.out.print(\" \" + A[i]);\n }\n System.out.println();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] ags){\n Scanner nyuryoku = new Scanner(System.in);\n int N = nyuryoku.nextInt();\n int[] A = new int[N];\n for (int i = 0; i < N; i++){\n A[i] = nyuryoku.nextInt();\n }\n show(A, N);\n insertionSort(A, N);\n }\n static void insertionSort(int[] A, int N){\n for(int i = 1; i < N; i++){\n int tmp = A[i];\n int j;\n for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];\n A[j] = tmp;\n show(A, N);\n }\n }\n static void show(int[] A, int N){\n System.out.print(A[0]);\n for (int i = 1; i < N; i++){\n System.out.print(\" \" + A[i]);\n }\n System.out.println();\n }\n}", "Main", "public static void main(String[] ags){\n Scanner nyuryoku = new Scanner(System.in);\n int N = nyuryoku.nextInt();\n int[] A = new int[N];\n for (int i = 0; i < N; i++){\n A[i] = nyuryoku.nextInt();\n }\n show(A, N);\n insertionSort(A, N);\n }", "main", "{\n Scanner nyuryoku = new Scanner(System.in);\n int N = nyuryoku.nextInt();\n int[] A = new int[N];\n for (int i = 0; i < N; i++){\n A[i] = nyuryoku.nextInt();\n }\n show(A, N);\n insertionSort(A, N);\n }", "Scanner nyuryoku = new Scanner(System.in);", "nyuryoku", "new Scanner(System.in)", "int N = nyuryoku.nextInt();", "N", "nyuryoku.nextInt()", "nyuryoku.nextInt", "nyuryoku", "int[] A = new int[N];", "A", "new int[N]", "N", "for (int i = 0; i < N; i++){\n A[i] = nyuryoku.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n A[i] = nyuryoku.nextInt();\n }", "{\n A[i] = nyuryoku.nextInt();\n }", "A[i] = nyuryoku.nextInt()", "A[i]", "A", "i", "nyuryoku.nextInt()", "nyuryoku.nextInt", "nyuryoku", "show(A, N)", "show", "A", "N", "insertionSort(A, N)", "insertionSort", "A", "N", "String[] ags", "ags", "static void insertionSort(int[] A, int N){\n for(int i = 1; i < N; i++){\n int tmp = A[i];\n int j;\n for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];\n A[j] = tmp;\n show(A, N);\n }\n }", "insertionSort", "{\n for(int i = 1; i < N; i++){\n int tmp = A[i];\n int j;\n for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];\n A[j] = tmp;\n show(A, N);\n }\n }", "for(int i = 1; i < N; i++){\n int tmp = A[i];\n int j;\n for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];\n A[j] = tmp;\n show(A, N);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < N", "i", "N", "i++", "i++", "i", "{\n int tmp = A[i];\n int j;\n for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];\n A[j] = tmp;\n show(A, N);\n }", "{\n int tmp = A[i];\n int j;\n for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];\n A[j] = tmp;\n show(A, N);\n }", "int tmp = A[i];", "tmp", "A[i]", "A", "i", "int j;", "j", "for (j = i; j > 0 && A[j-1] > tmp; j--)\n A[j] = A[j - 1];", "j = i;", "j = i", "j", "i", "j > 0 && A[j-1] > tmp", "j > 0", "j", "0", "A[j-1] > tmp", "A[j-1]", "A", "j-1", "j", "1", "tmp", "j--", "j--", "j", "A[j] = A[j - 1];", "A[j] = A[j - 1]", "A[j]", "A", "j", "A[j - 1]", "A", "j - 1", "j", "1", "A[j] = tmp", "A[j]", "A", "j", "tmp", "show(A, N)", "show", "A", "N", "int[] A", "A", "int N", "N", "static void show(int[] A, int N){\n System.out.print(A[0]);\n for (int i = 1; i < N; i++){\n System.out.print(\" \" + A[i]);\n }\n System.out.println();\n }", "show", "{\n System.out.print(A[0]);\n for (int i = 1; i < N; i++){\n System.out.print(\" \" + A[i]);\n }\n System.out.println();\n }", "System.out.print(A[0])", "System.out.print", "System.out", "System", "System.out", "A[0]", "A", "0", "for (int i = 1; i < N; i++){\n System.out.print(\" \" + A[i]);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < N", "i", "N", "i++", "i++", "i", "{\n System.out.print(\" \" + A[i]);\n }", "{\n System.out.print(\" \" + A[i]);\n }", "System.out.print(\" \" + A[i])", "System.out.print", "System.out", "System", "System.out", "\" \" + A[i]", "\" \"", "A[i]", "A", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] A", "A", "int N", "N" ]
import java.util.Scanner; class Main{ public static void main(String[] ags){ Scanner nyuryoku = new Scanner(System.in); int N = nyuryoku.nextInt(); int[] A = new int[N]; for (int i = 0; i < N; i++){ A[i] = nyuryoku.nextInt(); } show(A, N); insertionSort(A, N); } static void insertionSort(int[] A, int N){ for(int i = 1; i < N; i++){ int tmp = A[i]; int j; for (j = i; j > 0 && A[j-1] > tmp; j--) A[j] = A[j - 1]; A[j] = tmp; show(A, N); } } static void show(int[] A, int N){ System.out.print(A[0]); for (int i = 1; i < N; i++){ System.out.print(" " + A[i]); } System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 12, 13, 30, 4, 13, 4, 13, 4, 13, 23, 13, 12, 13, 30, 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, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 13, 42, 2, 13, 17, 30, 14, 2, 18, 13, 2, 13, 17, 18, 13, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 13, 40, 13, 4, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 2, 13, 17, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 163, 9 ], [ 9, 10 ], [ 163, 11 ], [ 11, 12 ], [ 163, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 15, 18 ], [ 18, 19 ], [ 15, 20 ], [ 20, 21 ], [ 13, 22 ], [ 22, 23 ], [ 163, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 163, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 90, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 79, 112 ], [ 112, 113 ], [ 71, 114 ], [ 114, 115 ], [ 163, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 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 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 133, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 147, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 118, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 0, 162 ], [ 162, 163 ], [ 162, 164 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n\n public static void main(String[] args) {\n read();\n output();\n solve();\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n }\n\n public static void solve() {\n for(int i=1;i<n;i++){\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }\n }\n public static void output(){\n for(int i = 0;i<a.length;i++){\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n\n public static void main(String[] args) {\n read();\n output();\n solve();\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n }\n\n public static void solve() {\n for(int i=1;i<n;i++){\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }\n }\n public static void output(){\n for(int i = 0;i<a.length;i++){\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "static int n;", "n", "static int a[];", "a", "public static void main(String[] args) {\n read();\n output();\n solve();\n }", "main", "{\n read();\n output();\n solve();\n }", "read()", "read", "output()", "output", "solve()", "solve", "String[] args", "args", "public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n }", "read", "{\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "a = new int[n]", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = sc.nextInt();\n }", "{\n a[i] = sc.nextInt();\n }", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "public static void solve() {\n for(int i=1;i<n;i++){\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }\n }", "solve", "{\n for(int i=1;i<n;i++){\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }\n }", "for(int i=1;i<n;i++){\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }", "{\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }", "int v = i;", "v", "i", "while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }", "v>0", "v", "0", "{\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }", "if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }", "a[v - 1] > a[v]", "a[v - 1]", "a", "v - 1", "v", "1", "a[v]", "a", "v", "{\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }", "int tmp = a[v];", "tmp", "a[v]", "a", "v", "a[v] = a[v - 1]", "a[v]", "a", "v", "a[v - 1]", "a", "v - 1", "v", "1", "a[v - 1] = tmp", "a[v - 1]", "a", "v - 1", "v", "1", "tmp", "v--", "v", "output()", "output", "public static void output(){\n for(int i = 0;i<a.length;i++){\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }", "output", "{\n for(int i = 0;i<a.length;i++){\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }", "for(int i = 0;i<a.length;i++){\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }", "{\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }", "System.out.print(a[i])", "System.out.print", "System.out", "System", "System.out", "a[i]", "a", "i", "if(i+1<a.length){\n System.out.print(\" \");\n }", "i+1<a.length", "i+1", "i", "1", "a.length", "a", "a.length", "{\n System.out.print(\" \");\n }", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n\n public static void main(String[] args) {\n read();\n output();\n solve();\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n }\n\n public static void solve() {\n for(int i=1;i<n;i++){\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }\n }\n public static void output(){\n for(int i = 0;i<a.length;i++){\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n}", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n\n public static void main(String[] args) {\n read();\n output();\n solve();\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n }\n\n public static void solve() {\n for(int i=1;i<n;i++){\n int v = i;\n while(v>0) {\n if (a[v - 1] > a[v]) {\n int tmp = a[v];\n a[v] = a[v - 1];\n a[v - 1] = tmp;\n }\n v--;\n }\n output();\n }\n }\n public static void output(){\n for(int i = 0;i<a.length;i++){\n System.out.print(a[i]);\n if(i+1<a.length){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static int n; static int a[]; public static void main(String[] args) { read(); output(); solve(); } public static void read() { n = sc.nextInt(); a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } } public static void solve() { for(int i=1;i<n;i++){ int v = i; while(v>0) { if (a[v - 1] > a[v]) { int tmp = a[v]; a[v] = a[v - 1]; a[v - 1] = tmp; } v--; } output(); } } public static void output(){ for(int i = 0;i<a.length;i++){ System.out.print(a[i]); if(i+1<a.length){ System.out.print(" "); } } System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 20, 4, 18, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 13, 13, 18, 13, 13, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 191, 8 ], [ 191, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 18, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 18, 28 ], [ 28, 29 ], [ 29, 30 ], [ 18, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 11, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 48, 52 ], [ 9, 53 ], [ 53, 54 ], [ 191, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 72, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 72, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 83, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 72, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 72, 112 ], [ 112, 113 ], [ 112, 114 ], [ 55, 115 ], [ 115, 116 ], [ 55, 117 ], [ 117, 118 ], [ 191, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 130, 136 ], [ 129, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 137, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 137, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 137, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 163, 165 ], [ 156, 166 ], [ 166, 167 ], [ 167, 168 ], [ 156, 169 ], [ 170, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 178, 180 ], [ 137, 181 ], [ 181, 182 ], [ 181, 183 ], [ 181, 184 ], [ 184, 185 ], [ 184, 186 ], [ 137, 187 ], [ 119, 188 ], [ 188, 189 ], [ 0, 190 ], [ 190, 191 ], [ 190, 192 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tprivate static void print(int[] A){\n\t\tString[] V=new String[A.length];\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}\n\t\tSystem.out.println(String.join(\" \",V));\n\t}\n\t\n\tpublic static void insertionSort(int[] A,int N){ // N??????????´??????????0-?????????????????????\n\t for(int i=0;i<A.length;i++){\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }\n\t}\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tprivate static void print(int[] A){\n\t\tString[] V=new String[A.length];\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}\n\t\tSystem.out.println(String.join(\" \",V));\n\t}\n\t\n\tpublic static void insertionSort(int[] A,int N){ // N??????????´??????????0-?????????????????????\n\t for(int i=0;i<A.length;i++){\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }\n\t}\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }\n\t}\n}", "Main", "private static void print(int[] A){\n\t\tString[] V=new String[A.length];\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}\n\t\tSystem.out.println(String.join(\" \",V));\n\t}", "print", "{\n\t\tString[] V=new String[A.length];\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}\n\t\tSystem.out.println(String.join(\" \",V));\n\t}", "String[] V=new String[A.length];", "V", "new String[A.length]", "A.length", "A", "A.length", "for(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}", "{\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}", "V[i]=String.valueOf(A[i])", "V[i]", "V", "i", "String.valueOf(A[i])", "String.valueOf", "String", "A[i]", "A", "i", "System.out.println(String.join(\" \",V))", "System.out.println", "System.out", "System", "System.out", "String.join(\" \",V)", "String.join", "String", "\" \"", "V", "int[] A", "A", "public static void insertionSort(int[] A,int N){ // N??????????´??????????0-?????????????????????\n\t for(int i=0;i<A.length;i++){\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }\n\t}", "insertionSort", "{ // N??????????´??????????0-?????????????????????\n\t for(int i=0;i<A.length;i++){\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }\n\t}", "for(int i=0;i<A.length;i++){\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }", "int i=0;", "int i=0;", "i", "0", "i<A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }", "{\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i - 1;", "j", "i - 1", "i", "1", "while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }", "j >= 0 && A[j] > v", "j >= 0", "j", "0", "A[j] > v", "A[j]", "A", "j", "v", "{\n\t A[j+1] = A[j];\n\t j--;\n\t }", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "print(A)", "print", "A", "int[] A", "A", "int N", "N", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }\n\t}", "main", "{\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }\n\t}", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }", "{\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }", "int[] A=new int[Integer.parseInt(line)];", "A", "new int[Integer.parseInt(line)]", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "line=br.readLine()", "line", "br.readLine()", "br.readLine", "br", "String[] str=line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "for(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}", "int i=0;", "int i=0;", "i", "0", "i<A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}", "{\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}", "A[i]=Integer.parseInt(str[i])", "A[i]", "A", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "insertionSort(A,A.length)", "insertionSort", "A", "A.length", "A", "A.length", "break;", "String[] args", "args", "public class Main {\n\tprivate static void print(int[] A){\n\t\tString[] V=new String[A.length];\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}\n\t\tSystem.out.println(String.join(\" \",V));\n\t}\n\t\n\tpublic static void insertionSort(int[] A,int N){ // N??????????´??????????0-?????????????????????\n\t for(int i=0;i<A.length;i++){\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }\n\t}\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }\n\t}\n}", "public class Main {\n\tprivate static void print(int[] A){\n\t\tString[] V=new String[A.length];\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}\n\t\tSystem.out.println(String.join(\" \",V));\n\t}\n\t\n\tpublic static void insertionSort(int[] A,int N){ // N??????????´??????????0-?????????????????????\n\t for(int i=0;i<A.length;i++){\n\t\t \n\t int v = A[i];\n\t int j = i - 1;\n\t while(j >= 0 && A[j] > v){\n\t A[j+1] = A[j];\n\t j--;\n\t }\n\t A[j+1] = v;\n\t print(A);\n\t }\n\t}\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tint[] A=new int[Integer.parseInt(line)];\n \tline=br.readLine();\n \tString[] str=line.split(\" \");\n \tfor(int i=0;i<A.length;i++){\n \t\tA[i]=Integer.parseInt(str[i]);\n \t}\n \tinsertionSort(A,A.length);\n \tbreak;\n }\n }\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { private static void print(int[] A){ String[] V=new String[A.length]; for(int i=0;i<A.length;i++){ V[i]=String.valueOf(A[i]); } System.out.println(String.join(" ",V)); } public static void insertionSort(int[] A,int N){ // N??????????´??????????0-????????????????????? for(int i=0;i<A.length;i++){ int v = A[i]; int j = i - 1; while(j >= 0 && A[j] > v){ A[j+1] = A[j]; j--; } A[j+1] = v; print(A); } } public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; while ((line = br.readLine()) != null) { int[] A=new int[Integer.parseInt(line)]; line=br.readLine(); String[] str=line.split(" "); for(int i=0;i<A.length;i++){ A[i]=Integer.parseInt(str[i]); } insertionSort(A,A.length); break; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 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 ], [ 154, 8 ], [ 154, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 47, 50 ], [ 9, 51 ], [ 51, 52 ], [ 154, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 68, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 68, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 68, 108 ], [ 108, 109 ], [ 108, 110 ], [ 53, 111 ], [ 111, 112 ], [ 53, 113 ], [ 113, 114 ], [ 154, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 121, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 117, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 149, 150 ], [ 115, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\n/**\n * 挿入ソート\n * \n *\n */\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr[i] = s.nextInt();\n\t\t}\n\t\t\n\t\tprintArray(arr);\n\t\tinsertionSort(arr, n);\n\t}\n\t\n\tpublic static void insertionSort(int[] arr, int n) {\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}\n\t}\n\t\n\tpublic static void printArray(int[] arr) {\n\t\tString ans = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tans += arr[i] + \" \";\n\t\t}\n\t\tSystem.out.println(ans.trim());\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr[i] = s.nextInt();\n\t\t}\n\t\t\n\t\tprintArray(arr);\n\t\tinsertionSort(arr, n);\n\t}\n\t\n\tpublic static void insertionSort(int[] arr, int n) {\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}\n\t}\n\t\n\tpublic static void printArray(int[] arr) {\n\t\tString ans = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tans += arr[i] + \" \";\n\t\t}\n\t\tSystem.out.println(ans.trim());\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr[i] = s.nextInt();\n\t\t}\n\t\t\n\t\tprintArray(arr);\n\t\tinsertionSort(arr, n);\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr[i] = s.nextInt();\n\t\t}\n\t\t\n\t\tprintArray(arr);\n\t\tinsertionSort(arr, n);\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tarr[i] = s.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = s.nextInt();\n\t\t}", "{\n\t\t\tarr[i] = s.nextInt();\n\t\t}", "arr[i] = s.nextInt()", "arr[i]", "arr", "i", "s.nextInt()", "s.nextInt", "s", "printArray(arr)", "printArray", "arr", "insertionSort(arr, n)", "insertionSort", "arr", "n", "String[] args", "args", "public static void insertionSort(int[] arr, int n) {\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}\n\t}", "insertionSort", "{\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}\n\t}", "for (int i = 1; i < n; i++) {\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}", "{\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}", "int v = arr[i];", "v", "arr[i]", "arr", "i", "int j = i-1;", "j", "i-1", "i", "1", "while (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}", "j >= 0 && arr[j] > v", "j >= 0", "j", "0", "arr[j] > v", "arr[j]", "arr", "j", "v", "{\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}", "arr[j+1] = arr[j]", "arr[j+1]", "arr", "j+1", "j", "1", "arr[j]", "arr", "j", "j--", "j", "arr[j+1] = v", "arr[j+1]", "arr", "j+1", "j", "1", "v", "printArray(arr)", "printArray", "arr", "int[] arr", "arr", "int n", "n", "public static void printArray(int[] arr) {\n\t\tString ans = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tans += arr[i] + \" \";\n\t\t}\n\t\tSystem.out.println(ans.trim());\n\t}", "printArray", "{\n\t\tString ans = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tans += arr[i] + \" \";\n\t\t}\n\t\tSystem.out.println(ans.trim());\n\t}", "String ans = \"\";", "ans", "\"\"", "for (int i = 0; i < arr.length; i++) {\n\t\t\tans += arr[i] + \" \";\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\tans += arr[i] + \" \";\n\t\t}", "{\n\t\t\tans += arr[i] + \" \";\n\t\t}", "ans += arr[i] + \" \"", "ans", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "System.out.println(ans.trim())", "System.out.println", "System.out", "System", "System.out", "ans.trim()", "ans.trim", "ans", "int[] arr", "arr", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr[i] = s.nextInt();\n\t\t}\n\t\t\n\t\tprintArray(arr);\n\t\tinsertionSort(arr, n);\n\t}\n\t\n\tpublic static void insertionSort(int[] arr, int n) {\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}\n\t}\n\t\n\tpublic static void printArray(int[] arr) {\n\t\tString ans = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tans += arr[i] + \" \";\n\t\t}\n\t\tSystem.out.println(ans.trim());\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarr[i] = s.nextInt();\n\t\t}\n\t\t\n\t\tprintArray(arr);\n\t\tinsertionSort(arr, n);\n\t}\n\t\n\tpublic static void insertionSort(int[] arr, int n) {\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile (j >= 0 && arr[j] > v) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = v;\n\t\t\tprintArray(arr);\n\t\t}\n\t}\n\t\n\tpublic static void printArray(int[] arr) {\n\t\tString ans = \"\";\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tans += arr[i] + \" \";\n\t\t}\n\t\tSystem.out.println(ans.trim());\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; /** * 挿入ソート * * */ public class Main { public static void main(String[] args) throws IOException { Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = s.nextInt(); } printArray(arr); insertionSort(arr, n); } public static void insertionSort(int[] arr, int n) { for (int i = 1; i < n; i++) { int v = arr[i]; int j = i-1; while (j >= 0 && arr[j] > v) { arr[j+1] = arr[j]; j--; } arr[j+1] = v; printArray(arr); } } public static void printArray(int[] arr) { String ans = ""; for (int i = 0; i < arr.length; i++) { ans += arr[i] + " "; } System.out.println(ans.trim()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 172, 5 ], [ 172, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ], [ 14, 15 ], [ 14, 16 ], [ 9, 17 ], [ 17, 18 ], [ 18, 19 ], [ 9, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 21, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 21, 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 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 73, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 21, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 6, 100 ], [ 100, 101 ], [ 6, 102 ], [ 102, 103 ], [ 172, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 106, 115 ], [ 115, 116 ], [ 115, 117 ], [ 106, 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 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 131, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 144, 146 ], [ 131, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 106, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 106, 165 ], [ 165, 166 ], [ 165, 167 ], [ 165, 168 ], [ 104, 169 ], [ 169, 170 ], [ 0, 171 ], [ 171, 172 ], [ 171, 173 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void insertionSort(int[] A, int N){\n for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }\n \n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[100];\n \n for(int i=0; i<N; i++){\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n \n insertionSort(A,N);\n \n \n \n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void insertionSort(int[] A, int N){\n for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }\n \n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[100];\n \n for(int i=0; i<N; i++){\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n \n insertionSort(A,N);\n \n \n \n }\n}", "Main", "public static void insertionSort(int[] A, int N){\n for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }", "insertionSort", "{\n for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }", "for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }", "int i=1;", "int i=1;", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }", "{\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }", "int v = A[i];", "v", "A[i]", "A", "i", "int j = i-1;", "j", "i-1", "i", "1", "while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }", "j>=0 && A[j]>v", "j>=0", "j", "0", "A[j]>v", "A[j]", "A", "j", "v", "{\n A[j+1] = A[j];\n j--;\n }", "A[j+1] = A[j]", "A[j+1]", "A", "j+1", "j", "1", "A[j]", "A", "j", "j--", "j", "A[j+1] = v", "A[j+1]", "A", "j+1", "j", "1", "v", "for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }", "j=0;", "j=0", "j", "0", "j<N", "j", "N", "j++", "j++", "j", "{\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }", "{\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }", "System.out.print(A[j])", "System.out.print", "System.out", "System", "System.out", "A[j]", "A", "j", "if(j!=N-1) System.out.print(\" \");", "j!=N-1", "j", "N-1", "N", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int[] A", "A", "int N", "N", "public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[100];\n \n for(int i=0; i<N; i++){\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n \n insertionSort(A,N);\n \n \n \n }", "main", "{\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[100];\n \n for(int i=0; i<N; i++){\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n \n insertionSort(A,N);\n \n \n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int A[] = new int[100];", "A", "new int[100]", "100", "for(int i=0; i<N; i++){\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }", "{\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "System.out.print(A[i])", "System.out.print", "System.out", "System", "System.out", "A[i]", "A", "i", "if(i != N-1) System.out.print(\" \");", "i != N-1", "i", "N-1", "N", "1", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "insertionSort(A,N)", "insertionSort", "A", "N", "String[] args", "args", "public class Main {\n public static void insertionSort(int[] A, int N){\n for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }\n \n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[100];\n \n for(int i=0; i<N; i++){\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n \n insertionSort(A,N);\n \n \n \n }\n}", "public class Main {\n public static void insertionSort(int[] A, int N){\n for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\n \n for(j=0; j<N; j++){\n System.out.print(A[j]);\n if(j!=N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }\n \n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[100];\n \n for(int i=0; i<N; i++){\n A[i] = sc.nextInt();\n System.out.print(A[i]);\n if(i != N-1) System.out.print(\" \");\n }\n System.out.println(\"\");\n \n insertionSort(A,N);\n \n \n \n }\n}", "Main" ]
import java.util.*; public class Main { public static void insertionSort(int[] A, int N){ for(int i=1; i<N; i++){ int v = A[i]; int j = i-1; while(j>=0 && A[j]>v ){ A[j+1] = A[j]; j--; } A[j+1] = v; for(j=0; j<N; j++){ System.out.print(A[j]); if(j!=N-1) System.out.print(" "); } System.out.println(""); } } public static void main(String[] args) throws Exception { // Here your code ! Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A[] = new int[100]; for(int i=0; i<N; i++){ A[i] = sc.nextInt(); System.out.print(A[i]); if(i != N-1) System.out.print(" "); } System.out.println(""); insertionSort(A,N); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 187, 5 ], [ 187, 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, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 54, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 8, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 6, 84 ], [ 84, 85 ], [ 187, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 103, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 125, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 103, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 136, 142 ], [ 103, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 143, 154 ], [ 155, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 159, 161 ], [ 156, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 168, 169 ], [ 168, 170 ], [ 156, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 86, 182 ], [ 182, 183 ], [ 86, 184 ], [ 184, 185 ], [ 0, 186 ], [ 186, 187 ], [ 186, 188 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] A=new int[N]; \n\t\tfor(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}\n\t\tinsertionSort(A,N);\n\t}\n\tstatic void insertionSort(int[] ar,int n){\n\t\tfor(int i=1;i<ar.length;i++){\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] A=new int[N]; \n\t\tfor(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}\n\t\tinsertionSort(A,N);\n\t}\n\tstatic void insertionSort(int[] ar,int n){\n\t\tfor(int i=1;i<ar.length;i++){\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] A=new int[N]; \n\t\tfor(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}\n\t\tinsertionSort(A,N);\n\t}", "main", "{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] A=new int[N]; \n\t\tfor(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}\n\t\tinsertionSort(A,N);\n\t}", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N=sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] A=new int[N];", "A", "new int[N]", "N", "for(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tA[i]=sc.nextInt();\n\t\t}", "{\n\t\t\tA[i]=sc.nextInt();\n\t\t}", "A[i]=sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}", "{\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}", "if(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}", "i==N-1", "i", "N-1", "N", "1", "{\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}", "System.out.println(A[i])", "System.out.println", "System.out", "System", "System.out", "A[i]", "A", "i", "{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}", "System.out.print(A[i]+\" \")", "System.out.print", "System.out", "System", "System.out", "A[i]+\" \"", "A[i]", "A", "i", "\" \"", "insertionSort(A,N)", "insertionSort", "A", "N", "String[] args", "args", "static void insertionSort(int[] ar,int n){\n\t\tfor(int i=1;i<ar.length;i++){\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "insertionSort", "{\n\t\tfor(int i=1;i<ar.length;i++){\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "for(int i=1;i<ar.length;i++){\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<ar.length", "i", "ar.length", "ar", "ar.length", "i++", "i++", "i", "{\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int key=ar[i];", "key", "ar[i]", "ar", "i", "int j=i-1;", "j", "i-1", "i", "1", "while(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}", "j>=0&&ar[j]>key", "j>=0", "j", "0", "ar[j]>key", "ar[j]", "ar", "j", "key", "{\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}", "ar[j+1]=ar[j]", "ar[j+1]", "ar", "j+1", "j", "1", "ar[j]", "ar", "j", "j--", "j", "ar[j+1]=key", "ar[j+1]", "ar", "j+1", "j", "1", "key", "for(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<n", "k", "n", "k++", "k++", "k", "{\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}", "if(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}", "k==n-1", "k", "n-1", "n", "1", "{\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}", "System.out.println(ar[k])", "System.out.println", "System.out", "System", "System.out", "ar[k]", "ar", "k", "{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}", "System.out.print(ar[k]+\" \")", "System.out.print", "System.out", "System", "System.out", "ar[k]+\" \"", "ar[k]", "ar", "k", "\" \"", "int[] ar", "ar", "int n", "n", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] A=new int[N]; \n\t\tfor(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}\n\t\tinsertionSort(A,N);\n\t}\n\tstatic void insertionSort(int[] ar,int n){\n\t\tfor(int i=1;i<ar.length;i++){\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] A=new int[N]; \n\t\tfor(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i]);\t\t\t\t\t\n\t\t\t}else{\n\t\t\tSystem.out.print(A[i]+\" \");\n\t\t\t}\n\t\t}\n\t\tinsertionSort(A,N);\n\t}\n\tstatic void insertionSort(int[] ar,int n){\n\t\tfor(int i=1;i<ar.length;i++){\n\t\t\tint key=ar[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&ar[j]>key){\n\t\t\t\tar[j+1]=ar[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tar[j+1]=key;\n\t\t\tfor(int k=0;k<n;k++){\n\t\t\t\tif(k==n-1){\n\t\t\t\t\tSystem.out.println(ar[k]);\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\tSystem.out.print(ar[k]+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc= new Scanner(System.in); int N=sc.nextInt(); int[] A=new int[N]; for(int i=0;i<N;i++){ A[i]=sc.nextInt(); } for(int i=0;i<N;i++){ if(i==N-1){ System.out.println(A[i]); }else{ System.out.print(A[i]+" "); } } insertionSort(A,N); } static void insertionSort(int[] ar,int n){ for(int i=1;i<ar.length;i++){ int key=ar[i]; int j=i-1; while(j>=0&&ar[j]>key){ ar[j+1]=ar[j]; j--; } ar[j+1]=key; for(int k=0;k<n;k++){ if(k==n-1){ System.out.println(ar[k]); }else{ System.out.print(ar[k]+" "); } } } } }