node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 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, 23, 13, 23, 13, 12, 13, 30, 11, 1,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ], ...
[ "import java.util.Scanner;\nclass Main {\n\n\tpublic static void printarray(int[] a,int n){\n \tfor(int f=0;f<n;f++){\n \t\tif(f<n-1)System.out.print(a[f]+\" \");\n \t\telse System.out.println(a[f]);\n \t}\n\t}\n\n\tpublic static void scanarray(int[] a,int n, Scanner s){\n \tfor(int i=0;i<n;i++){\n ...
import java.util.Scanner; class Main { public static void printarray(int[] a,int n){ for(int f=0;f<n;f++){ if(f<n-1)System.out.print(a[f]+" "); else System.out.println(a[f]); } } public static void scanarray(int[] a,int n, Scanner s){ for(int i=0;i<n;i++){ a[i] = s.nextInt(); ...
[ 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, 2, 13, 17, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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 = sc.nextInt();\n\t\tint[] nums = new int[n];\n\t\tfor(int arrayIndex = 0; arrayIndex < n; arrayIndex++) {\n\t\t\tnums[arrayIndex] = sc.nextInt();\n\t\t}\n\t\tprintArr...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] nums = new int[n]; for(int arrayIndex = 0; arrayIndex < n; arrayIndex++) { nums[arrayIndex] = sc.nextInt(); } printArray(nums); for(int i = 1; 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, 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...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 197, 11 ], [ 197, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer...
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....
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 20, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 3...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 175, 8 ], [ 175, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.text.ParseException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] arges) throws ParseException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint v = Integer.parseInt(line);\n\t\tint[] vs = new int[v];\n\t\tString line2 = sc...
import java.text.ParseException; import java.util.Scanner; public class Main { public static void main(String[] arges) throws ParseException { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); int v = Integer.parseInt(line); int[] vs = new int[v]; String line2 = sc.nextLine(); String[] lc...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 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, 18, 13, 13, 4, 1...
[ [ 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 ], [ 170, 14 ], ...
[ "import java.util.Scanner;\nimport java.lang.Integer;\nimport java.lang.StringBuilder;\nimport java.lang.Math;\n\npublic class Main {\n private static int N;\n private static int[] a;\n\n private static void print() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < N; i++) {\n resu...
import java.util.Scanner; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; public class Main { private static int N; private static int[] a; private static void print() { StringBuilder result = new StringBuilder(); for (int i = 0; i < N; i++) { result.append(a[i]); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2...
[ [ 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 ], [...
[ "import java.io.*;\n\nclass Main{\n \n\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try { \n String line1 = reader.readLine();\n int x = Integer.parseInt(line1);\n ...
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { String line1 = reader.readLine(); int x = Integer.parseInt(line1); Strin...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 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, 23, 13, 12, 13, 30, 41, 13, 4...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 161, 5 ], [ 161, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ]...
[ "import java.util.Scanner;\n\npublic class Main {\n\n static void trace(int[] a, int n) {\n for (int i = 0; i < n; i++) {\n if (i > 0) System.out.print(\" \");\n System.out.print(a[i]);\n }\n System.out.println();\n }\n \n static void insertionSort(int[] a, int n) {\n int t, j;\n for ...
import java.util.Scanner; public class Main { static void trace(int[] a, int n) { for (int i = 0; i < n; i++) { if (i > 0) System.out.print(" "); System.out.print(a[i]); } System.out.println(); } static void insertionSort(int[] a, int n) { int t, j; for (int i = 1; i < n; 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 155, 11 ], [ 155, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tin...
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 nums[] = new int[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, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 164, 5 ], [ 164, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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[] untreatedArr = new int[N];\n\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tuntreatedArr[i] = scan.nextInt();\n\t\t}\n\n\t\tdispArr(untreatedAr...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int[] untreatedArr = new int[N]; for(int i = 0; i < N; i++){ untreatedArr[i] = scan.nextInt(); } dispArr(untreatedArr); insertionSort(untreatedArr,N...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 20, 0, 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, ...
[ [ 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 ], [...
[ "import java.util.*;\n\nclass Main{\n public static void main(String args[]){\n\n\tint n;\n\tint i, j;\n\tint v;\n\tScanner scan = new Scanner(System.in);\n\tString str = new String();\n\n\tn = scan.nextInt();\n\tint A[] = new int[n];\n\n\tfor(i=0; i<n; i++)\n\t\tA[i] = scan.nextInt();\n\n\tfor(i=0; i<n ; i++){\n...
import java.util.*; class Main{ public static void main(String args[]){ int n; int i, j; int v; Scanner scan = new Scanner(System.in); String str = new String(); n = scan.nextInt(); int A[] = new int[n]; for(i=0; i<n; i++) A[i] = scan.nextInt(); for(i=0; i<n ; i++){ v = A[i]; j = i-1; while(j >...
[ 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 191, 5 ], [ 191, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint i,j,reg,k;\n \tint[] ary = new int[n];\n \tfor(i=0;i<n;i++){\n \t\tary[i]=sc.nextInt();\n \t}\n \tfor(k=0;k<n;k++){\n\t Syste...
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int i,j,reg,k; int[] ary = new int[n]; for(i=0;i<n;i++){ ary[i]=sc.nextInt(); } for(k=0;k<n;k++){ System.out.print(ary[k]); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 4, 18,...
[ [ 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 ], ...
[ "import java.io.PrintWriter;\nimport java.util.Scanner;\n\nclass Main{\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n final PrintWriter out = new PrintWriter(System.out);\n final int n = Integer.parseInt(sc.next());\n final int[] a = new int[...
import java.io.PrintWriter; import java.util.Scanner; class Main{ public static void main(String[] args) { final Scanner sc = new Scanner(System.in); final PrintWriter out = new PrintWriter(System.out); final int n = Integer.parseInt(sc.next()); final int[] a = new int[n]; f...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 202, 5 ], [ 202, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ...
[ "import java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint length = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] array = new i...
import java.io.*; public class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int length = Integer.parseInt(br.readLine()); String[] str = br.readLine().split(" "); int[] array = new int[length]; for (int i = 0 ; 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, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41,...
[ [ 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 ],...
[ "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\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 = 1; i < N; i++) {\n\t\t\tStringBuil...
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 = 1; i < N; i++) { StringBuilder sb = new StringBuilder(); for ...
[ 7, 15, 13, 17, 6, 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, 2...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ]...
[ "import java.util.Scanner;\n\npublic class Main{\n \n static void putArray(int[] array){\n System.out.print(array[0]);\n for(int i = 1; i < array.length; i++){\n System.out.print(\" \" + array[i]);\n }\n System.out.println();\n }\n \n public static void main(Str...
import java.util.Scanner; public class Main{ static void putArray(int[] array){ System.out.print(array[0]); for(int i = 1; i < array.length; i++){ System.out.print(" " + array[i]); } System.out.println(); } public static void main(String[] args){ ...
[ 7, 15, 13, 17, 6, 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, 41, 13, 4, 18, 13, 0, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint N = in.nextInt();\n\t\t\n\t\tint a[] = new int[100];\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\ta[i] = val;\n\t\t}\n\t\t\n\t\tfor...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int a[] = new int[100]; for (int i = 0; i < N; i++) { int val = in.nextInt(); a[i] = val; } for (int i = 1; i < N; i++) { output(a, N); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 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...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 207, 8 ], [ 207, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "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\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\n\t\tint n = getInt(breader);\n\t\tint[] ary = getAry(bre...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? BufferedReader breader = getReader(); int n = getInt(breader); int[] ary = getAry(breader); putAry(ary); f...
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 17, 42, 2, 13, 18, 13, 13, 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, 40, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 177, 5 ], [ 177, 6 ], [ 6, 7 ], [ 6, 8 ], [ 177, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static boolean debug = true;\n\t\n\tpublic static void print_arr(int [] arr) {\n\t\tint i = 0;\n\t\twhile(i < arr.length) {\n\t\t\tSystem.out.print(arr[i]);\n\t\t\tif(i < arr.length-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else {\n\t\t\t\tSystem.out...
import java.util.Scanner; public class Main { public static boolean debug = true; public static void print_arr(int [] arr) { int i = 0; while(i < arr.length) { System.out.print(arr[i]); if(i < arr.length-1) { System.out.print(" "); }else { System.out.print("\n"); } i++; } } public...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 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, 2, 18, 13, 13, 17, 1, 40, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 191, 5 ], [ 191, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint[] a = new int[scanner.nextInt()];\n\t\tfor(int i = 0; i < a.length ; i++) {\n\t\t\ta[i] = scanner.nextInt();\n\t\t}\n\t\tfor(int k = 0; k < a.length - 1; k++) {...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int[] a = new int[scanner.nextInt()]; for(int i = 0; i < a.length ; i++) { a[i] = scanner.nextInt(); } for(int k = 0; k < a.length - 1; k++) { System.out.print(a[k] + " "...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.util.Scanner;\n\nclass _insertionSort {\n\n // Default Constructor\n public void _insetrionSort() {\n }\n\n // sort method :: sort given array using insertion Sort\n public static void sort(int[] _A, int _n) {\n for (int i = 1; i < _n; ++i) {\n\n ...
import java.util.Scanner; class _insertionSort { // Default Constructor public void _insetrionSort() { } // sort method :: sort given array using insertion Sort public static void sort(int[] _A, int _n) { for (int i = 1; i < _n; ++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, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 184, 11 ], [ 184, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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(b...
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()); i...
[ 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, 4, 13, 13, 23, 13, 12, 13, 30,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 156, 5 ], [ 156, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next()); // ?¨?????????°\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\n\t\tIn...
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()); } Insertion_Sort(a); } private st...
[ 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 152, 5 ], [ 152, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint length = in.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] = in.nextInt();\n\t\t}\n\t\tprint(array)...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int length = in.nextInt(); int array[] = new int[length]; for (int i = 0; i < length; i++) { array[i] = in.nextInt(); } print(array); for (int i = 1; i < length; 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, 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,...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] a) {\n\t\t// 入力\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint result[] = new int[n];\n\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\tresult[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\t// 出力\n...
import java.util.Scanner; class Main { public static void main(String[] a) { // 入力 Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int result[] = new int[n]; for (int i = 0; i < result.length; i++) { result[i] = sc.nextInt(); } sc.close(); // 出力 for (int j2 = 0; j2 < result.length; j...
[ 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, 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,...
[ [ 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 ], [...
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tString[] line=sc.nextLine().split(\" \");\n\t\tint[] a = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=Integer.parseInt(line[i]);\n\t\t}\n\...
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); String[] line=sc.nextLine().split(" "); int[] a = new int[n]; for(int i=0;i<n;i++){ a[i]=Integer.parseInt(line[i]); } for(int i=0;i<n;i++){ int v=a[...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 17, 41, 1...
[ [ 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 ], [ 205, 14 ], ...
[ "\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.ArrayList;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> line...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<String> lines = new ArrayList<...
[ 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, 0, 18, 13, 13, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 215, 11 ], [ 215, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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 int n = Integer.parseIn...
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());...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 4, 18, 13, 17, 4, 18, 13, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 182, 14 ], ...
[ "import java.io.InputStream;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void printArray(List<Integer> array) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(array.get(0));\n\t\tfor (int j = 1; j < array.size(); j++) {\n\t\t...
import java.io.InputStream; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void printArray(List<Integer> array) { StringBuilder sb = new StringBuilder(); sb.append(array.get(0)); for (int j = 1; j < array.size(); j++) { sb.append(" ").append(ar...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 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, ...
[ [ 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 ], [...
[ "// ALDS1_01 Insertion Sort\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try { \n int N = Integer.parseInt(br.readLine());\n int[] A = new int[N];\n String[] input = b...
// ALDS1_01 Insertion Sort import java.io.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { int N = Integer.parseInt(br.readLine()); int[] A = new int[N]; String[] input = br.readLine().sp...
[ 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, 4, 18, 13, 11, 1, 41, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 153, 5 ], [ 153, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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.valueOf(sc.next());\n\t\tint[] arr= new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tarr[i]=Integer.valueOf(sc.next());\n\t\t}\n\t\tsc.close();\n\t\tfor(int i=1;i<n...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=Integer.valueOf(sc.next()); int[] arr= new int[n]; for(int i=0;i<n;i++){ arr[i]=Integer.valueOf(sc.next()); } sc.close(); for(int i=1;i<n;i++){ print(arr); int t=arr[...
[ 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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 =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\tshow(A);\n\t\tfor(int i =1; i < N ; i++){\n\t\t\t...
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(); } show(A); for(int i =1; i < N ; i++){ int v = A[i]; int j = i-1; while(...
[ 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...
[ [ 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 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\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\tPrint(A, n);\n\t\tSort(A, n);\n\t\t\n\t}\n...
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(); } Print(A, n); Sort(A, n); } public static void Print(int A[], int n)...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 0, 13, 4, 18, 13, 17, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 168, 5 ], [ 168, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int number = Integer.parseInt(line);\n \n String line2 = sc.nextLine();\n String[] line2sp = new String[number];\n...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); int number = Integer.parseInt(line); String line2 = sc.nextLine(); String[] line2sp = new String[number]; line2sp=lin...
[ 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, 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...
[ [ 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 ], ...
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\nclass Main {\n\n private static void print_arr (int[] arr) {\n for (int i = 0; i < arr.length - 1; i++) {\n System.out.print(arr[i] + \" \");\n }\n Syst...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; class Main { private static void print_arr (int[] arr) { for (int i = 0; i < arr.length - 1; i++) { System.out.print(arr[i] + " "); } System.out.print(arr[arr...
[ 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, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 178, 5 ], [ 178, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tint[] a = new int[n];\n\t\tfor (int i=0; i < n; i++) {\n\t\t\ta...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.nextLine(); int[] a = new int[n]; for (int i=0; i < n; i++) { a[i] = sc.nextInt(); } StringB...
[ 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, 3...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 172, 11 ], [ 172, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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...
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.rea...
[ 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, 41,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] sorted = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tsorted[i] = in.nextInt();\n\t\t}\n\t\tf...
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] sorted = new int[n]; for(int i = 0; i < n; i++) { sorted[i] = in.nextInt(); } for(int i = 0; i < n; i++) { int ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 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...
[ [ 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 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//????????????????????????\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\...
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 bf = new BufferedReader(new InputStreamReader(System.in)); String line; ...
[ 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, 13, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 18, 13, 13, 4, 18, 4, 18, 4, 18, 4, 18, 13, 13, 17, 17, 17,...
[ [ 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 ], ...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main{\n public static void main(String[] a){\n \tScanner scanner = new Scanner(System.in);\n \t\n \tint length = Integer.parseInt(scanner.nextLine());\n \tString numbers = scanner.nextLine();\n \tString[] numberArray = numbers.split(\" ...
import java.util.Arrays; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner scanner = new Scanner(System.in); int length = Integer.parseInt(scanner.nextLine()); String numbers = scanner.nextLine(); String[] numberArray = numbers.split(" ",0); String s...
[ 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, 2, 13, 17, 1, 40, 13, 30, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 143, 5 ], [ 143, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\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\tfor (int i = 1; i < N + 1; i++) {\...
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(); } for (int i = 1; i < N + 1; i++) { for (int k = 0; k < N; k++) {...
[ 7, 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, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ], ...
[ "import java.util.*;\n\nclass Main{\n static void printArray(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 }\n Sy...
import java.util.*; class Main{ static void printArray(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...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 2, 0, 13, 4, 18, 13, 17, 40, 4, 18, 13, 30, 41, 13, 4, 18, 13, 13, 41, 13, 20, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 7, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.io.*;\nimport java.util.StringTokenizer;\n \nclass Main{\n \nstatic final PrintWriter out=new PrintWriter(System.out);\n \npublic static void main(String[] args) throws IOException{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nString line=\"\";\nwhile((line=br.readLine())!=...
import java.io.*; import java.util.StringTokenizer; class Main{ static final PrintWriter out=new PrintWriter(System.out); public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line=""; while((line=br.readLine())!=null&&!line.isEmp...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 18, 13, 4, 18, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 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 ], [ 193, 14 ], ...
[ "import java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n \n public static void main(String[] args) {\n // input data\n List<String> input = inputLines();\n \n // get input\n int length = Integer.valueO...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { // input data List<String> input = inputLines(); // get input int length = Integer.valueOf(input.get(0)); ...
[ 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...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.System;\n\nclass Main {\n public static void main(String[] a) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n String[...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.System; class Main { public static void main(String[] a) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(r.readLine()); String[] str = r.rea...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 176, 5 ], [ 176, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] av){\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int a[]=new int[n+1];\n for(int i=0;i<n;i++){\n a[i]=s.nextInt();\n }\n for(int i=1;i<n;i++){\n fo...
import java.util.Scanner; public class Main{ public static void main(String[] av){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int a[]=new int[n+1]; for(int i=0;i<n;i++){ a[i]=s.nextInt(); } for(int i=1;i<n;i++){ for(int k=0;k<n;k...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 17, 23, 13, 23, 13, 12, 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 ], [ 13, 14 ]...
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n static void print_lst(List<Integer> lst, int n) {\n for(int i=0; i<n-1; i++) {\n System.out.print(lst.get(i) + \" \");\n }\n System.out.println(lst.get(n-1));\n }\n\n\n public static void main(String[] args) ...
import java.io.*; import java.util.*; public class Main { static void print_lst(List<Integer> lst, int n) { for(int i=0; i<n-1; i++) { System.out.print(lst.get(i) + " "); } System.out.println(lst.get(n-1)); } public static void main(String[] args) { Scanner sc...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 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, 11, 1, 41, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 189, 5 ], [ 189, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ]...
[ "import java.util.Scanner;\npublic class Main {\n\t\n\tpublic static void sort(int n, int [] arr) {\n\t\t\n\t\tint j;\n\t\t\n\t\tfor(int t = 0; t < n; t++) {\n\t\t\tSystem.out.print(arr[t]);\n\t\t\t\n\t\t\tif(t < n - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t\t\n...
import java.util.Scanner; public class Main { public static void sort(int n, int [] arr) { int j; for(int t = 0; t < n; t++) { System.out.print(arr[t]); if(t < n - 1) { System.out.print(" "); } } System.out.println(""); for(int i = 1; i < n; i++) { int key = arr[i]; j...
[ 7, 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, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 151, 8 ], [ 151, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n/**\n * Created by hwzheng on 2017/3/26.\n */\npublic class Main {\n public static void main(String[] args) throws Exception{\n BufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));\n int j=0;\n in...
import java.io.BufferedReader; import java.io.InputStreamReader; /** * Created by hwzheng on 2017/3/26. */ 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.p...
[ 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, 13, 17,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 164, 5 ], [ 164, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint array[] = new int[n];\n\t\t\n\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t\tSystem.out.print(array[i]);\n\t\t...
import java.util.Scanner; public class Main { public static void main (String [] args) { 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(); System.out.print(array[i]); if ( i == n - 1) break; System....
[ 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, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 190, 5 ], [ 190, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String[] line = br.readLine().split(\" \");\n int[] nums = ne...
import java.io.*; 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().split(" "); int[] nums = new int[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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 183, 5 ], [ 183, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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 N = sc.nextInt();\n\t\tint[] A = new int[N];\n\n\t\tfor (int i=0; i<N; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tfor (int k=0; k<N; k++) {\n\t\t\tif (k==0) {\n\t\...
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 k=0; k<N; k++) { if (k==0) { System.out.print(A[k]); } else { ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 17, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 13, 0, 13, 4, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 227, 11 ], [ 227, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tprivate final static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\n\tprivate final static StringBuilder sortedSeq = new StringBuilder();\n\tprivate final sta...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { private final static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); private final static StringBuilder sortedSeq = new StringBuilder(); private final static String lb = S...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 204, 5 ], [ 204, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\npublic static void main(String args[]) {\n\tint x;\n\tint j;\n\tint key;\n\tScanner num = new Scanner(System.in);\n\tx = num.nextInt();\n\tint a[] = new int[x];\n\tfor (int i=0;i<a.length;i++) {\n\t\ta[i]=num.nextInt();\n\t}\n\t\n\tfor(int k=0;k<a.length;k++) {\n\t...
import java.util.Scanner; public class Main { public static void main(String args[]) { int x; int j; int key; Scanner num = new Scanner(System.in); x = num.nextInt(); int a[] = new int[x]; for (int i=0;i<a.length;i++) { a[i]=num.nextInt(); } for(int k=0;k<a.length;k++) { if(k<a.length-1) System.out.p...
[ 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, 2, 18, 13, 13, 17, 1, 40, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\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\tfor (int i = 0; i <= A.length - 1; i++) {\n\t\t\tint...
import java.util.Scanner; 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(); } for (int i = 0; i <= A.length - 1; i++) { int v = A[i]; int j = i - 1; whi...
[ 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, 4, ...
[ [ 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 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String args[] ) throws Exception {\n Scanner sc = new Scanner(System.in);\n // 配列の要素数は先に入れさせる\n int N = sc.nextInt();\n int []A = new int[N];\n //各配列の数を入れる\n for(int i=0;i<N;i++){\n A[...
import java.util.Scanner; 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()...
[ 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, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 180, 5 ], [ 180, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner n = new Scanner(System.in);\n int N = n.nextInt();\n int A[] = new int[N];\n for(int i=0; i < N; i++){\n A[i] = n.nextInt();\n }\n for(int i=0; i < N; i++){\n ...
import java.util.*; public class Main{ public static void main(String[] args){ Scanner n = new Scanner(System.in); int N = n.nextInt(); int A[] = new int[N]; for(int i=0; i < N; i++){ A[i] = n.nextInt(); } for(int i=0; i < N; i++){ System.out....
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 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...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 188, 11 ], [ 188, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt( br.rea...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { int n = Integer.parseInt( br.readLine() ); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 18, 13, 13, 13, 11, 1, 41, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 175, 5 ], [ 175, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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 n = scanner.nextInt();\n\t\tint v = 0;\n\t\tint j = 0;\n\t\tint N[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tN[i] = x...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int v = 0; int j = 0; int N[] = new int[n]; for (int i = 0; i < n; i++) { int x = scanner.nextInt(); N[i] = x; } for (int k = 0; k < 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, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 1...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tint row = stdIn.nextInt();\n\t\tint[] numbers = new int[row];\n\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tnumbers[i] = stdIn.nextInt();\n\t\t}\n\n\t\tinsertionSort(numbers, ro...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int row = stdIn.nextInt(); int[] numbers = new int[row]; for (int i = 0; i < row; i++) { numbers[i] = stdIn.nextInt(); } insertionSort(numbers, row); } static void insertionSor...
[ 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, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 179, 5 ], [ 179, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int n = Integer.valueOf(scan.next());\n Integer[] ns = new Integer[n];\n for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next(...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = Integer.valueOf(scan.next()); Integer[] ns = new Integer[n]; for(int i=0;i<n;i++) { ns[i] = Integer.valueOf(scan.next()); } ...
[ 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...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 178, 11 ], [ 178, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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\tin...
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[] array = new int[n...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 14, 2, 13, 17, 30, 4, 18, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 4, 18, 13, 41, 13, 4,...
[ [ 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 ], [ 13, 14 ],...
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????????????????????\n\t\t\tint leng = Integer.parseInt(sc.nextLine());\n\t\t\tint[] numBox = new int[leng];\n\n\t\t\t//??°??????????...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = null; try { sc = new Scanner(System.in); //????????????????????? int leng = Integer.parseInt(sc.nextLine()); int[] numBox = new int[leng]; //??°?????????????????? String line = sc.nextLine();...
[ 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...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 186, 11 ], [ 186, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main{\n\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; 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[...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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...
[ [ 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 ], [...
[ "import java.util.*;\n\nclass Main{\n public static void main(String args[]){\n\n int i= 0;\n int key = 0;\n int n = 0;\n\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n int A [] = new int[n];\n //input\n for(int k = 0; k<n; k++){\n A[k] = sc.nextInt();\n }\n\n //ins...
import java.util.*; class Main{ public static void main(String args[]){ int i= 0; int key = 0; int n = 0; Scanner sc = new Scanner(System.in); n = sc.nextInt(); int A [] = new int[n]; //input for(int k = 0; k<n; k++){ A[k] = sc.nextInt(); } //insertion sort for(in...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 208, 5 ], [ 208, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n String len = in.nextLine();\n String n = in.nextLine();\n String[] numbers = n.split(\" \");\n int[] nums = new int[Integer.parseInt(len)];\n ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String len = in.nextLine(); String n = in.nextLine(); String[] numbers = n.split(" "); int[] nums = new int[Integer.parseInt(len)]; for (int s...
[ 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, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 13, 13, 23, 13, 12, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 195, 11 ], [ 195, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.IOException;\nimport java.util.Scanner;\nimport java.util.LinkedList;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n LinkedList<Integer> list = new LinkedList<Integer>();\n ...
import java.io.IOException; import java.util.Scanner; import java.util.LinkedList; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); LinkedList<Integer> list = new LinkedList<Integer>(); for (in...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, ...
[ [ 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 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\t// 入力\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] array = new int[1000];\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan.nextInt();\n\t\t}\n\t\t// ソート\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tthis...
import java.util.Scanner; public class Main { void run() { // 入力 Scanner scan = new Scanner(System.in); int[] array = new int[1000]; int n = scan.nextInt(); for(int i = 0; i < n; i++) { array[i] = scan.nextInt(); } // ソート for(int i = 1; i < n; i++) { this.printArray(array, n); if(array[i] < a...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 13, 4, 18, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 153, 5 ], [ 153, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n int n;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n int[] a = new int[n];\n sc.reset();\n for(int i = 0; i<n;i++){\n a[i] = sc.nextInt();\n }\n ...
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]; sc.reset(); for(int i = 0; i<n;i++){ a[i] = sc.nextInt(); } insertionS...
[ 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, 11, 1, 41, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 189, 5 ], [ 189, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 6, 11 ], [ 11, 12 ], [ 189, 13 ], [ 13, 14 ...
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tALDS1_1_A(); \n\t}\n\tpublic static void ALDS1_1_A() {\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\n...
import java.util.*; public class Main { public static void main(String[] args) { ALDS1_1_A(); } public static void ALDS1_1_A() { 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 = 1; i < n; i++) { for...
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 148, 5 ], [ 148, 6 ], [ 6, 7 ], [ 148, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n public static Scanner sc;\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] ary = new int[n];\n for (int i=0; i<n; i++) {\n ary[i] = sc.nextInt();...
import java.util.Scanner; public class Main { public static Scanner sc; public static void main(String[] args) throws Exception { sc = new Scanner(System.in); int n = sc.nextInt(); int[] ary = new int[n]; for (int i=0; i<n; i++) { ary[i] = sc.nextInt(); } ...
[ 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, 13, 4, 13, 13, 4, 13, 13, 13, 23, 13, 12, 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 ], [ 12, 14 ],...
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt();\n\t\tint[] array = new int[length];\n\t\tfor (int i=0; i<length; i++) {\n\t\t\tarray[i] = scanner.nextInt();\n\t\t}\n\t\tscanner.close...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int length = scanner.nextInt(); int[] array = new int[length]; for (int i=0; i<length; i++) { array[i] = scanner.nextInt(); } scanner.close(); printArray(array); insert...
[ 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 146, 5 ], [ 146, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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[] a = new int[n];\n\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n\n printArray(a);...
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(); } printArray(a); for (in...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 38, 5, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 170, 11 ], [ 170, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint num, key;\n\t\tString str;\n\t\tString[] str_array;\n\t\ttry{...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); int num, key; String str; String[] str_array; try{ num=Integer.parseInt(read...
[ 7, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 147, 5 ], [ 147, 6 ], [ 6, 7 ], [ 6, 8 ], [ 147, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tint[] ints = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tints[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tint v = int...
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int[] ints = new int[n]; for (int i=0; i<n; i++) { ints[i] = sc.nextInt(); } for (int i=0; i<n; i++) { int v = ints[i]; int j = i - 1; while (j>=...
[ 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, 18, 13, 13, 1, 40, 13, 30,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 185, 5 ], [ 185, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\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 }\n // 初期状態(ソート前)の要素を...
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 (...
[ 7, 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, 4, 18, 13, 4, 18, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 168, 8 ], [ 168, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n//import java.util.List;\n\n/**\n * Created by shoya on 2017/04/11.\n */\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n ArrayList<Integer> ar = new ArrayL...
import java.util.ArrayList; import java.util.Scanner; //import java.util.List; /** * Created by shoya on 2017/04/11. */ public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> ar = new ArrayList<>(); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 126, 11 ], [ 126, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n \npublic class Main {\n \n public static void main(String[] args) throws Exception {\n \n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringBuffer sb = new StringBuffer(...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuffer sb = new StringBuffer(); ...
[ 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, 13, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 153, 5 ], [ 153, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\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\n int[] A = new int[N];\n\n for (int i = 0; i < N; i++)\n A[i] = sc.nextInt();\n\n insertionSort(A, N);\n }\...
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(); insertionSort(A, N); } private static v...
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 20, 12, 13, 30, 42, 4, 13, 30, 4, 13, 13, 23, 13, 12, 13, 30, 14, 40, 4, 18, 13, 29, 17, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 10, 12 ], [ 4, 13 ], [ 13, 14 ], ...
[ "/**\n * Created by akensho on 2015/11/22.\n */\nimport java.util.*;\nclass Main {\n static int n;\n static int[] a;\n static Scanner scanner = new Scanner(System.in);\n public static void main(String[] args){\n while( read() ){\n insertionSort(a);\n }\n }\n\n static boole...
/** * Created by akensho on 2015/11/22. */ import java.util.*; class Main { static int n; static int[] a; static Scanner scanner = new Scanner(System.in); public static void main(String[] args){ while( read() ){ insertionSort(a); } } static boolean read(){ ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 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 ], ...
[ "import java.io.*;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Scanner;\npublic class Main {\n\tstatic String a;\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextIn...
import java.io.*; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { static String a; public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int[] a = new ...
[ 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, 14, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 185, 5 ], [ 185, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] a){\n\t\tScanner input=new Scanner(System.in);\n\t\tint loop=input.nextInt();\n\t\tint[] keepNum=new int[loop];\n\t\t\n\t\tfor(int i=0;i<loop;i++)\n\t\t\tkeepNum[i]=input.nextInt();\n\t\t\n\t\tfor(int i=0;i<loop;i++){\n\t\t\tif(i!=loop-...
import java.util.*; public class Main { public static void main(String[] a){ Scanner input=new Scanner(System.in); int loop=input.nextInt(); int[] keepNum=new int[loop]; for(int i=0;i<loop;i++) keepNum[i]=input.nextInt(); for(int i=0;i<loop;i++){ if(i!=loop-1) System.out.print(keepNum[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, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 18, 20, 13, 13, 23, 13, 12, 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 ],...
[ " 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 = sc.nextInt(); // 要素数\n\t\tint[] a = new int[n];\n\t\t// 初期化\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\t\tprintArray(a);\n\t\tne...
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 < a.length; i++) { a[i] = sc.nextInt(); } printArray(a); 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, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 152, 5 ], [ 152, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n final int length = sc.nextInt();\n final int[] numbers = new int[length];\n\n for (int i = 0; i < length; i++) {\n numbers[i] = sc.n...
import java.util.Scanner; public class Main { public static void main(String[] args) { final Scanner sc = new Scanner(System.in); final int length = sc.nextInt(); final int[] numbers = new int[length]; for (int i = 0; i < length; i++) { numbers[i] = sc.nextInt(); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 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...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 200, 11 ], [ 200, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t String str = br.readLine();\n\t int len = Integ...
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), 1); String str = br.readLine(); int len = Integer.parseInt(str);...
[ 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, 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,...
[ [ 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 ], [ 12, 14 ],...
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\n\t//input elements\n\tint n = Integer.parseInt(scan.nextLine());\n\tString[] inputs = scan.nextLine().split(\" \");\n\tint[] cards = new int[n];\n\tfor (int i = 0; i < n; i++) {\n...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); //input elements int n = Integer.parseInt(scan.nextLine()); String[] inputs = scan.nextLine().split(" "); int[] cards = new int[n]; for (int i = 0; i < n; i++) { cards[i] = Integer...
[ 7, 15, 13, 17, 6, 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 156, 5 ], [ 156, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void insertionSort(int[] array, int n) {\n\t\tint v, j;\n\t\tfor (int i = 0; i < n; 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] = ...
import java.util.Scanner; public class Main { public static void insertionSort(int[] array, int n) { int v, j; for (int 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 (int k = 0; k < n; k++) { Syste...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 42, 2, 2, 17, 18, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 204, 5 ], [ 204, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n\tScanner In = new Scanner(System.in);\n\tint N;\n\tdo\n\t {\n\t\t N = In.nextInt();\n\t }while(1 >= N && N >= 100);\n\tint i,j;\n\tint []A = new int[N];\n\t\tfor(i = 0; i < N; i++)\n\t\t {\n\t\t\tdo\n\t\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner In = new Scanner(System.in); int N; do { N = In.nextInt(); }while(1 >= N && N >= 100); int i,j; int []A = new int[N]; for(i = 0; i < N; i++) { do { A[i] = In.nextInt(); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 193, 5 ], [ 193, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\n\npublic class Main {\n\t\n\tpublic static void insertionSort(int [] A,int index){\n\t\tInteger i,j,k,v;\n\t\t\n\t\tfor(k=0;k<index;k++){\n\t\t\tSystem.out.print(A[k]);\n\t\t\tif(k!=index-1)System.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(i=1;i<index;i++){\n\t\t\tv =...
import java.util.Scanner; public class Main { public static void insertionSort(int [] A,int index){ Integer i,j,k,v; for(k=0;k<index;k++){ System.out.print(A[k]); if(k!=index-1)System.out.print(" "); } System.out.println(); for(i=1;i<index;i++){ v = A[i]; j=i-1; while(j>=0 && A[j] >...
[ 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, 23, 13, 12, 13, 30, 4, 13, 13, 11, 1, 41,...
[ [ 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 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = sc.nextInt();\n int[] a = new int[count];\n for (int i = 0; i < count; i++) {\n a[i] = sc.nextInt();\n }\n inser...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = sc.nextInt(); int[] a = new int[count]; for (int i = 0; i < count; i++) { a[i] = sc.nextInt(); } insertionSort(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, 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...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 166, 5 ], [ 166, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\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 }\n trace(A,N);\n insertion(A,N);\n }\n public static void trace(int...
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(); } trace(A,N); insertion(A,N); } public static void trace(int A[],int N){ ...
[ 7, 15, 13, 17, 6, 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void insertionSort(int[] array, int n) {\n\t\tint v, j;\n\t\tfor (int i = 0; i < n; 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] = ...
import java.util.Scanner; public class Main { public static void insertionSort(int[] array, int n) { int v, j; for (int 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 (int k = 0; k < n; k++) { Syste...
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 0, 18, 36, 13, 4, 18, 13, 0, 18, 36, 13, 20, 18, 36, 13, 11, 1, 41, 13, 17, 2, 13, 18, 36, 13, 1, 40, 13, 30, 30, 0, 18, 18, 36, 13, 13, 4, 18, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 192, 5 ], [ 192, 6 ], [ 6, 7 ], [ 192, 8 ], [ 8, 9 ], [ 192, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 1...
[ "import java.util.Scanner;\n\n/**\n * Sort\n */\npublic class Main {\n\n public int size;\n public int[] mx;\n\n public void scan() {\n Scanner sc = new Scanner(System.in);\n this.size = sc.nextInt();\n this.mx = new int[this.size];\n for (int i = 0; i < this.size; i++) {\n ...
import java.util.Scanner; /** * Sort */ public class Main { public int size; public int[] mx; public void scan() { Scanner sc = new Scanner(System.in); this.size = sc.nextInt(); this.mx = new int[this.size]; for (int i = 0; i < this.size; i++) { this.mx[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, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, ...
[ [ 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 ], [...
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[] ary = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tary[i] = stdIn.nextInt();\n\t\t}\n\t\toutput(ary);\n\t\tfor (int i=1; i<ary.length; i++) {\n\...
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int[] ary = new int[n]; for (int i=0; i<n; i++) { ary[i] = stdIn.nextInt(); } output(ary); for (int i=1; i<ary.length; i++) { int key = ary[i]; int j = i - ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 4, 18, 13, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 170, 8 ], [ 170, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Scanner;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\n\t\tString num_size = in.next();\n\t\tString input;\n\n\t\tint size = Integer.parseInt(num_size...
import java.util.Scanner; import java.util.*; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); ArrayList<Integer> numbers = new ArrayList<Integer>(); String num_size = in.next(); String input; int size = Integer.parseInt(num_size); int i = 0; for(i = 0...
[ 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, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 161, 5 ], [ 161, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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 if(i == n - 1) {\n System.out.println(arr[i]);\n ...
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(); if(i == n - 1) { System.out.println(arr[i]); } else { ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "/* ALDS1_1_A */\nimport java.io.*;\n\nclass Main\n{\n\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n int[] array = new ...
/* ALDS1_1_A */ import java.io.*; 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[] array = new int[n]; for(...
[ 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, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, ...
[ [ 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 ],...
[ "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 int length = scanner.nextInt();\n\t\tint A[] = new int[length];\n for(int i = 0; i < length; i++)\n \tA[i] = scanner.nextInt();\n \n out_put(A);\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int length = scanner.nextInt(); int A[] = new int[length]; for(int i = 0; i < length; i++) A[i] = scanner.nextInt(); out_put(A); int key=1000; for ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 151, 5 ], [ 151, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint tar;\n\t\t\n\t\tList<Integer> lis = new LinkedList<>();\n\t\tfor( int i=0 ;i < n ;i ++){\n\t\t\tlis.add(sc.nextInt());\n\t\t}\n\t\tprintLis(lis);\n\...
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int tar; List<Integer> lis = new LinkedList<>(); for( int i=0 ;i < n ;i ++){ lis.add(sc.nextInt()); } printLis(lis); for(int j = 1 ; j < n ; j++) { tar...
[ 7, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 0, 13, 20, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 18, 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, 41, ...
[ [ 0, 1 ], [ 159, 2 ], [ 159, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 5, 8 ], [ 8, 9 ], [ 5, 10 ], [ 10, 11 ], [ 5, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "public class\nMain\n{\n public void\n run (\n java.util.Scanner sc\n )\n {\n int[ ] a;\n int i, j;\n\n a = new int[ sc.nextInt ( ) ];\n for ( i = 0; i < a.length; ++i )\n a[ i ] = sc.nextInt ( );\n\n\n for ( i = 0; i < a.length; ++i )\n {\n final int t = a[ i ];\n for ( j ...
public class Main { public void run ( java.util.Scanner sc ) { int[ ] a; int i, j; a = new int[ sc.nextInt ( ) ]; for ( i = 0; i < a.length; ++i ) a[ i ] = sc.nextInt ( ); for ( i = 0; i < a.length; ++i ) { final int t = a[ i ]; for ( j = i - 1; j >= 0; --j ) ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 17, 41, 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,...
[ [ 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 ], [ 13, 14 ],...
[ "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\tsc.useDelimiter(System.getProperty(\"line.separator\"));\n int n = sc.nextInt();\n String data = sc.next();\n\n //String???Int????????????\n Stri...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); sc.useDelimiter(System.getProperty("line.separator")); int n = sc.nextInt(); String data = sc.next(); //String???Int???????????? String[] datas = data.split...