node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 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 ], ...
[ "\n\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n int n = Integer.parseInt( br.readLine() );\n Stri...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt( br.readLine() ); String[] string = br....
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 18, 36, 13, 12, 13, 30, 29, 18, 36, 13, 12, 13, 30, 29,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 4, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "\nimport java.util.*;\n\nclass Animal\n{\n String name;\n String genus;\n int region;\n\n public Animal(String name, String genus, int region)\n {\n this.name = name;\n this.genus = genus;\n this.region = region;\n }\n\n public int getRegion()\n {\n return this.r...
import java.util.*; class Animal { String name; String genus; int region; public Animal(String name, String genus, int region) { this.name = name; this.genus = genus; this.region = region; } public int getRegion() { return this.region; } publi...
[ 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 scanner = new Scanner(System.in);\n\t\tint listCount = scanner.nextInt();\n\t\tint[] listSort = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlistSort[i] = scanner.nextInt();\n\t\t}\n\t\tt...
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int listCount = scanner.nextInt(); int[] listSort = new int[listCount]; for(int i = 0; i < listCount; i++){ listSort[i] = scanner.nextInt(); } trace(listSort, listCount); in...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 179, 8 ], [ 179, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tString[] inputValueAry =...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.parseInt(br.readLine()); String[] inputValueAry = br.readLine().split("...
[ 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 ], [ 182, 5 ], [ 182, 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 i,j,v,n,A[]=new int[N];\n\t\tfor(i=0;i<N;i++){\n\t\t\tA[i]=scan.nextInt();\n\t\t}\n\t\tfor(n=0;n<N;n++){\n\t\t\tif(n!=N-1){\n\t\t\t\tSystem.ou...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int N=scan.nextInt(); int i,j,v,n,A[]=new int[N]; for(i=0;i<N;i++){ A[i]=scan.nextInt(); } for(n=0;n<N;n++){ if(n!=N-1){ System.out.print(A[n]+" "); } else{ Syst...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 3, 4, 18, 18, 13, 13, 17, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 194, 11 ], [ 194, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void printArray(int[] intArray){\n\t\tfor (int i = 0; i < intArray.length; i++){\n\t\t\tSystem.out.print(intArray[i]);\n\n\t\t\tif (i == intArray.length - 1){\n\t\t\t\tbreak;\n\t...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void printArray(int[] intArray){ for (int i = 0; i < intArray.length; i++){ System.out.print(intArray[i]); if (i == intArray.length - 1){ break; } System.out.print(" "); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ]...
[ "import java.util.*;\n\npublic class Main {\n\n\tvoid insertionSort(int[] A) {\n\t\tfor (int i = 1; i < A.length; i++) {\n\t\t\tint v = A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && A[j] > v) {\n\t\t\t\tA[j+1] = A[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tA[j+1] = v;\n\t\t\tprintArray(A);\n\t\t}\n\t}\n\n\tvoid printA...
import java.util.*; public class Main { void insertionSort(int[] A) { for (int i = 1; i < A.length; i++) { int v = A[i]; int j = i - 1; while (j >= 0 && A[j] > v) { A[j+1] = A[j]; j--; } A[j+1] = v; printArray(A); } } void printArray(int[] A) { System.out.print(A[0]); for (int i ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 115, 5 ], [ 115, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t// 標準入力から数列と整数N(数列の長さ)を読み込み\n\t\tint n = Integer.parseInt(scanner.nextLine()); // 数列の長さ\n\t\tString[] array = scanner.nextLine().split(\" \"); // 数列\n\t\t\n\t\t/...
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // 標準入力から数列と整数N(数列の長さ)を読み込み int n = Integer.parseInt(scanner.nextLine()); // 数列の長さ String[] array = scanner.nextLine().split(" "); // 数列 // 初期状態の配列状態を出力 System.out.prin...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 147, 5 ], [ 147, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for(int i = 0; i < n; i++) {\n arr[i] = sc.nextInt();\n }\n toPrint(arr, n);\n\n ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for(int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } toPrint(arr, n); for(int i =...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 11,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 157, 5 ], [ 157, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = Integer.parseInt(in.next());\n\n\tfor(i=0;i<n;i++){...
import java.util.Scanner; public class Main { public static void main(String[] args) { int i,j,k,v; Scanner in = new Scanner(System.in); int n = Integer.parseInt(in.nextLine()); int array[] = new int[n]; for(i=0;i<n;i++)array[i] = Integer.parseInt(in.next()); for(i=0;i<n;i++){ v = array[i]; j = i-1; ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 184, 5 ], [ 184, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner x=new Scanner (System.in);\n\t\tint a=x.nextInt();\n\t\tint a1[]=new int [a];\n\t\tfor(int i=0;i<a;i++){\n\t\t\ta1[i]=x.nextInt();\n\t\t\tSystem.out.print(a1[i]);\n\t\t\tif(i<a1.length-1)\n\t\t\t\tSystem.out.print(\" \"...
import java.util.*; public class Main{ public static void main(String args[]){ Scanner x=new Scanner (System.in); int a=x.nextInt(); int a1[]=new int [a]; for(int i=0;i<a;i++){ a1[i]=x.nextInt(); System.out.print(a1[i]); if(i<a1.length-1) System.out.print(" "); } System.out.println(); for(in...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 12, 13, 30, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 12, 13, 30, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 166, 5 ], [ 166, 6 ], [ 6, 7 ], [ 6, 8 ], [ 166, 9 ], [ 9, 10 ], [ 166, 11 ], [ 11, 12 ], [ 11, 13 ], [ 166, 1...
[ "import java.util.Scanner;\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tint N;\t//要素数\n\tint v=0;\t//保存用変数\n\tint j=0;\t//添字のための変数\n\tint[] A;\n\t\n\tpublic void input() {\n\t\tN = sc.nextInt();\n\t\tA = new int[N];\n\t\tfor(int i=0; i<N; i++) { A[i] = sc.nextInt(); }\n\t}\n\t\n\t//ソート部分\n\tpubli...
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); int N; //要素数 int v=0; //保存用変数 int j=0; //添字のための変数 int[] A; public void input() { N = sc.nextInt(); A = new int[N]; for(int i=0; i<N; i++) { A[i] = sc.nextInt(); } } //ソート部分 public void conpute() { output(); for(int...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 182, 8 ], [ 182, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????°?????????\n int numberCou...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { //??\?????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //????????°????????? int numberCount = Integer.pars...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13...
[ [ 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\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint...
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); String[] nums = kb.readLine().split( " " ); int len = nums.length; int[] A = new int[ len ]; for...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 189, 14 ], ...
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.nio.charset.StandardCharsets;\n\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.U...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; public class Main { public static void main(String[] args) throws IOException { InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); Buffere...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11,...
[ [ 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;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\t\tint [] array = new int[length];\n\t\t\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < leng...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int length = sc.nextInt(); int [] array = new int[length]; for (int i = 0; i < length; i++) { array[i] = sc.nextInt(); } for (int i = 0; i < length; i++) { for (int j = 0; j < i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 18, ...
[ [ 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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++){\n a[i] = sc.nextInt();\n if(i != n-1){\n ...
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++){ a[i] = sc.nextInt(); if(i != n-1){ ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 18, 13, 4, 18, 13, 17, 23, 13, 12, 13, 30,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 167, 5 ], [ 167, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = scan.nextInt();\n\n\t\trun(a);\n\n\t\tscan.close();\n\t\tSystem.exit(0)...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = scan.nextInt(); run(a); scan.close(); System.exit(0); } private static void run(int[] a...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 132, 5 ], [ 132, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[N];\n\t\tfor (int i = 0 ; i < N; i++)\n\t\t\ta[i] = sc.nextInt();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tint trg = a[i];\n\t\t\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for (int i = 0 ; i < N; i++) a[i] = sc.nextInt(); for (int i = 0; i < N; i++) { int trg = a[i]; int j = i - 1; while (j >= 0 && ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 183, 11 ], [ 183, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main{\n public static void sort(int[] A) {\n int i, j, tmp;\n for (i = 1; i < A.length; i++) {\n tmp = A[i];\n j = i - 1;\n while (j >= 0 && A[j] > tmp) {...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main{ public static void sort(int[] A) { int i, j, tmp; for (i = 1; i < A.length; i++) { tmp = A[i]; j = i - 1; while (j >= 0 && A[j] > tmp) { ...
[ 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 ], [ 198, 11 ], [ 198, 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\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new 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 { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(Sy...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 144, 5 ], [ 144, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int [n];\n for (int i = 0; i < n; i++) {\n array[i] = sc.nextInt();\n }\n doing(array...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] array = new int [n]; for (int i = 0; i < n; i++) { array[i] = sc.nextInt(); } doing(array, n); } ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 18, 13, 13, 41, 13, 20, 13, 41, 13, 41, 13, 2, 13, 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 ], [ 13, 14 ], [...
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint...
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); String[] nums = kb.readLine().split( " " ); int len = nums.length; int[] A = new int[ len ]; int i, ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41,...
[ [ 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.*;\nimport java.util.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int[] array=new int[n];\n for(int i=0;i<array.length;i++){\n array[i]=Integer.parseInt(scan.next());...
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan=new Scanner(System.in); int n=Integer.parseInt(scan.next()); int[] array=new int[n]; for(int i=0;i<array.length;i++){ array[i]=Integer.parseInt(scan.next()); } for...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 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 ], [ 239, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\n\t\tint N = sc.nextInt();\n\n\t\tint[] A = new int[N];\n\...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { private static FastScanner sc = new FastScanner(); public static void main(String[] args) { int N = sc.nextInt(); int[] A = new int[N]; for(int i=0; i<N; i++) {...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 0, 18, 13, 17, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13...
[ [ 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.Scanner;\nclass Main{\n public static void main(String[] args){\n\tint key,i,j,k,l;\n\tint array[] = new int[101];\n\n\tScanner scan = new Scanner(System.in);\n\tarray[0] = scan.nextInt();\n\tfor(l=1;l<=array[0];l++){\n\t array[l] = scan.nextInt();\n\t}\n\t\n\t\n\tfor(i=1;i<=array[0];i++){\n...
import java.util.Scanner; class Main{ public static void main(String[] args){ int key,i,j,k,l; int array[] = new int[101]; Scanner scan = new Scanner(System.in); array[0] = scan.nextInt(); for(l=1;l<=array[0];l++){ array[l] = scan.nextInt(); } for(i=1;i<=array[0];i++){ key = array[i]; j =...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 164, 8 ], [ 164, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ]...
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n\n\tpublic static void print_ary(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]);\n\t\t\tif (i != a.length - 1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n\n...
import java.util.Scanner; import java.util.Arrays; public class Main { public static void print_ary(int[] a) { for (int i = 0; i < a.length; i++) { System.out.print(a[i]); if (i != a.length - 1) { System.out.print(" "); } } System.out.print("\n"); } public static void my_insertion_sort(int[] a)...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40,...
[ [ 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\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();//??????????????????\n\t\t\n\t\tint [] intAry = new int[N];\n\t\t\n\t\tfor( int i = 0 ; i < intAry.length ; i++){\n\t\t\tintAry[i] = sc.nextInt();\n\t...
import java.util.Scanner; class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt();//?????????????????? int [] intAry = new int[N]; for( int i = 0 ; i < intAry.length ; i++){ intAry[i] = sc.nextInt(); } for( int i = 0 ; i < intAry.len...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 3...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 176, 11 ], [ 176, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.StringBuffer;\n\n/*Question\n/?????\\????????????Insertion Sort?????????????????????????????????????????????????????¨??????????????????????????¶??§???????????????????????¢?????´????????????????????§??????\n/??????????????£?????????...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.StringBuffer; /*Question /?????\????????????Insertion Sort?????????????????????????????????????????????????????¨??????????????????????????¶??§???????????????????????¢?????´????????????????????§?????? /??????????????£?????????????????????...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\n\t\t// First input needs to be length\n\t\tint length = in.nextInt();\n\t\n\t\t// Create an array with that length\n\t\tint[] a = new int[length];\n\t\t\n\t\t// Fill in ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // First input needs to be length int length = in.nextInt(); // Create an array with that length int[] a = new int[length]; // Fill in that array with the second input fo...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 172, 5 ], [ 172, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\t\n\t\tint[] A = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tA[i]= Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tfor (int i=1; i<...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int[] A = new int[n]; for(int i=0;i<n;i++){ A[i]= Integer.parseInt(sc.next()); } for (int i=1; i<n;i++){ for(int k=0;k<n-1;k++){ ...
[ 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 ], [ 147, 5 ], [ 147, 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 scn = new Scanner(System.in);\n\t\tint N = scn.nextInt();\n\t\tint[] data = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdata[i] = scn.nextInt();\n\t\t}\n\t\tshow(data);\n\t\tfor (int j = 1; j < N; j+...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int[] data = new int[N]; for (int i = 0; i < N; i++) { data[i] = scn.nextInt(); } show(data); for (int j = 1; j < N; j++) { int v = data[j]; int w ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 23, 13, 12, 13, 30, 4, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 160, 5 ], [ 160, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tScanner sc = new Scanner(System.in);\n\t StringBuilder out;\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}...
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); StringBuilder out; int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0; i < a.length; i++) { a[i] = sc.nextInt(); } sort(a); } static void sor...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 157, 14 ], ...
[ "import java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Throwable {\n\t\tScanner sc = new Scanner(System.in);\n//\t\tScanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\tList<Integer> a = new Ar...
import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Throwable { Scanner sc = new Scanner(System.in); // Scanner sc = new Scanner(new File("test_1.txt")); List<Integer> a = new ArrayList<Integer>(); i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 188, 5 ], [ 188, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n int total;\n\n Scanner inp = new Scanner(System.in);\n total = inp.nextInt();\n\n int[] a = new int[total];\n\n for (int k = 0; k < total; k++) {\n a[k] = inp.nextInt();\n ...
import java.util.*; public class Main { public static void main(String[] args) { int total; Scanner inp = new Scanner(System.in); total = inp.nextInt(); int[] a = new int[total]; for (int k = 0; k < total; k++) { a[k] = inp.nextInt(); } for (i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 199, 5 ], [ 199, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ...
[ "import java.io.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] ar = new int[n];\n\t\t\t...
import java.io.*; public class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] str = br.readLine().split(" "); int[] ar = new int[n]; for(int i= 0 ; i< n ; i++) { a...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 208, 11 ], [ 208, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tint num = Integer.parseInt...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String x = ""; try { int num = Integer.parseInt(in.readLine()); x = ...
[ 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 ], [ 203, 11 ], [ 203, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 170, 5 ], [ 170, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ]...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t// sort method :: sort given array using insertion Sort\n\tpublic static void sort(int[] _A, int _n) {\n\t\tfor (int i = 1; i < _n; ++i) {\n\t\t\t\n\t\t\t// print(_A);\n\t\t\tint tmp = _A[i];\n\t\t\tint j = i - 1;\n\t\t\twhile (j >= 0 && _A[j] > tmp) {\n\t\t\t\...
import java.util.Scanner; public class Main { // sort method :: sort given array using insertion Sort public static void sort(int[] _A, int _n) { for (int i = 1; i < _n; ++i) { // print(_A); int tmp = _A[i]; int j = i - 1; while (j >= 0 && _A[j] > tmp) { _A[j + 1] = _A[j]; --j; } _A[...
[ 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 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner...
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { public static void main (String[] args) throws java.lang.Exception { Scanner scanner = new Scanner(System.in); int ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 171, 8 ], [ 171, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n//?????\\?????????\npublic class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = readInt(r);\n\t\tString[] numArrayStr = r.readLine(...
import java.io.BufferedReader; import java.io.InputStreamReader; //?????\????????? public class Main{ public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = readInt(r); String[] numArrayStr = r.readLine().split(" "); int[] ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 169, 5 ], [ 169, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarray[i] = scan.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int k = 0; k < n; k++)\n\t\t\t\t...
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] array = new int[n]; for (int i = 0; i < n; i++) array[i] = scan.nextInt(); for (int i = 1; i < n; i++) { for (int k = 0; k < n; k++) System.out.print(array[k] + (k == n -...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 111, 11 ], [ 111, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\npublic class Main{\n\tpublic static void main(String [] args)throws Exception{\n\t\tBufferedReader Reader = new BufferedReader (new InputStreamReader(System.in));\n\t\tint j=0;\n\t\tint N = Integer.parseInt(Reader.readLine());\...
import java.util.*; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main{ public static void main(String [] args)throws Exception{ BufferedReader Reader = new BufferedReader (new InputStreamReader(System.in)); int j=0; int N = Integer.parseInt(Reader.readLine()); String A[] = Read...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 11, 1, 0, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 155, 5 ], [ 155, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ]...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void output(int array[]){\n int k;\n for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + \" \");\n System.out.println(array[k]);\n }\n\n public static void main(String[] args){\n\n Scanner scanner = ...
import java.util.Scanner; public class Main { public static void output(int array[]){ int k; for(k = 0; k < array.length - 1; ++k) System.out.print(array[k] + " "); System.out.println(array[k]); } public static void main(String[] args){ Scanner scanner = new Scanner(System...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 41, 13, 20, 13, 41, 13, 17, 42, 4, 18, 13, 30, 0, 18, 13, 40, 13, 4, 18, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 199, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStre...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 181, 5 ], [ 181, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint length = input.nextInt();\n\t\tint[] intList = new int[length];\n\t\tint k = 0;\n\t\tfor(int i = 0; i < intList.length; i++) {\n\t\t\tintList[i] = input.nextInt();\n\t\t}\n\t...
import java.util.*; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int length = input.nextInt(); int[] intList = new int[length]; int k = 0; for(int i = 0; i < intList.length; i++) { intList[i] = input.nextInt(); } for(int m = 0; m < intList.lengt...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 4, 18, 13, 41, 13, 20, 13, 0,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 209, 8 ], [ 209, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out;\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in)...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { StringBuilder out; String lb = System.getProperty("line.separator"); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 195, 8 ], [ 195, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int N = readInt(r);\n String[] numStrings = r.readLine().split(\"...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int N = readInt(r); String[] numStrings = r.readLine().split(" "); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 153, 14 ], ...
[ "import java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void InsertionSort(final int N, int[] A){\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tfinal int v = A[i];\n\t\t\t\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && A[j] > v){\n\t...
import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void InsertionSort(final int N, int[] A){ for(int i = 0; i < N; i++){ final int v = A[i]; int j = i - 1; while(j >= 0 && A[j] > v){ A[j+1] = A[j]; j--; } ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 11, 1, 0, 13, 17, ...
[ [ 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 sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint A[] = new int[n];\n\t\tint i, j, key;\n\t\tfor(i=0; i<n; i++){\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tprint(A);\n\t\tfor(i=1; i<n; i++){\n\t\t\tkey = A[...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n]; int i, j, key; for(i=0; i<n; i++){ A[i] = sc.nextInt(); } print(A); for(i=1; i<n; i++){ key = A[i]; j = i - 1; while(j>=0 && A[j]>k...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13,...
[ [ 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.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args){\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] A = new int[N];\n\t\t\tfor(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next());\n\t\t\tSystem.out.print(...
import java.util.Scanner; class Main { public static void main(String[] args){ final int Number=100; try(Scanner sc = new Scanner(System.in)){ int N = Integer.parseInt(sc.next()); int[] A = new int[N]; for(int i=0;i<N;i++)A[i]=Integer.parseInt(sc.next()); System.out.print(A[0]); for(int j=1;j<N;j++)...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 194, 8 ], [ 194, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t int N = Integer.parseInt(br.readLine());\n\t String[] line = br.readLine...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); String[] line = br.readLine().split(" "); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, 18, 13, 2, 13, 17, 13, 23, 13, 23, 13, 12, 13, 30...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void sort(int[] a,int i){\n\t\tint key=a[i];\n\t\tint j=i-1;\n\t\twhile(j>=0 && a[j]>key){\n\t\t\ta[j+1]=a[j];\n\t\t\tj--;\n\t\t}\n\t\ta[j+1]=key;\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc...
import java.util.Scanner; public class Main { public static void sort(int[] a,int i){ int key=a[i]; int j=i-1; while(j>=0 && a[j]>key){ a[j+1]=a[j]; j--; } a[j+1]=key; } public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[n]; for (i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 164, 5 ], [ 164, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 6, 11 ], [ 11, 12 ], [ 164, 13 ], [ 13, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tprivate static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n...
import java.util.Scanner; public class Main { public static void main(String[] args) { solve(); } private static void solve() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] nums = new int[n]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } sc.close(); int v; int j...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 130, 8 ], [ 130, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt();\n int arr[] = new int[size];\n for(int i = 0; i < size; i++) arr[i] = scan.nextInt();\n for...
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int size = scan.nextInt(); int arr[] = new int[size]; for(int i = 0; i < size; i++) arr[i] = scan.nextInt(); for(int i = 0; i ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2,...
[ [ 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\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint c,d = 0;\n\t\tint[] array = new int[a];\n\t\t\n\t\tfor(int i=0;i<a;i++){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\toutput(array);\n\t\t\n\t\tfor(...
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int c,d = 0; int[] array = new int[a]; for(int i=0;i<a;i++){ array[i] = sc.nextInt(); } output(array); for(int b=1;b<array.length;b++){ c = array[b]; ...
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 23, 13, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 155, 5 ], [ 155, 6 ], [ 6, 7 ], [ 155, 8 ], [ 8, 9 ], [ 155, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 1...
[ "import java.util.Scanner;\npublic class Main {\n\tint n;\n\tint[] array;\n\tpublic static void main(String args[]) {\n\t\tMain main = new Main();\n\t}\n\tMain() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = scan....
import java.util.Scanner; public class Main { int n; int[] array; public static void main(String args[]) { Main main = new Main(); } Main() { Scanner scan = new Scanner(System.in); n = scan.nextInt(); array = new int[n]; for (int i = 0; i < n; i++) { array[i] = scan.nextInt(); } this.writeArray();...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++)A[i]=cin.nextInt();\n\t\t\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tfor(int j=0;j<n-1;j++)System.out.print(A[j]+\" \");\...
import java.util.*; public class Main { public static void main(String[] args) { Scanner cin=new Scanner(System.in); int n=cin.nextInt(),A[]=new int[n]; for(int i=0;i<n;i++)A[i]=cin.nextInt(); for(int i=1;i<n;i++) { for(int j=0;j<n-1;j++)System.out.print(A[j]+" "); System.out.println(A[n-1]); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 20, 4, 13, 13, 11...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 175, 8 ], [ 175, 9 ], [ 9, 10 ], [ 9, 11 ], [ 175, 12 ], [ 12, 13 ], [ 175, 14 ...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tStringBuilder out;\n\n\tvoid run() {\n\t\tint N = sc.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tA[i] = sc.nextInt();\n\t\t}\n\t\tout = new StringBuilder(...
import java.util.Arrays; import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); StringBuilder out; void run() { int N = sc.nextInt(); int[] A = new int[N]; for (int i = 0; i < A.length; i++) { A[i] = sc.nextInt(); } out = new StringBuilder(); print(A); for (int i = 1; i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41,...
[ [ 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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] a = new int[N];\n for (int i = 0; i < N; i++) {\n a[i] = scanner.nextInt();\n }\n prin...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = scanner.nextInt(); } print(a); i...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 166, 8 ], [ 166, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Arrays;\nimport java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n// Get numbers\n int n = input.nextInt();\n int[] nums = new int[n];\n\n// fill array\n for(int i = 0; i < n; i++){\n ...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner input = new Scanner(System.in); // Get numbers int n = input.nextInt(); int[] nums = new int[n]; // fill array for(int i = 0; i < n; i++){ nums[i] = inp...
[ 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 ], [ 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\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(...
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, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, ...
[ [ 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.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tInput stdIn = new Input();\n\n\t\tint n = stdIn.getValue();\n\t\tList<Integer> values = stdIn.getL...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main { public static void main(String[] args) { Input stdIn = new Input(); int n = stdIn.getValue(); List<Integer> values = stdIn.getLine(); insertionSort(v...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint i,j,k,v;\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint array[] = new int[n];\n\n\t\tfor(i=0;i<n;i++)array[i] = in.nextInt();\n\n\tfor(i=0;i<n;i++){\n\t\tv = array[i];\n\t\tj = i-1...
import java.util.Scanner; public class Main { public static void main(String[] args) { int i,j,k,v; Scanner in = new Scanner(System.in); int n = in.nextInt(); int array[] = new int[n]; for(i=0;i<n;i++)array[i] = in.nextInt(); for(i=0;i<n;i++){ v = array[i]; j = i-1; while(j>=0 && array[j]>v){ a...
[ 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 ], [ 210, 11 ], [ 210, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ " import java.io.IOException;\n import java.io.BufferedReader;\n import java.io.InputStreamReader;\n\n public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.read...
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13...
[ [ 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\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] nums = kb.readLine().split( \" \" );\n\t\t\tint len = nums.length;\n\t\t\tint...
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); String[] nums = kb.readLine().split( " " ); int len = nums.length; int[] A = new int[ len ]; for...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 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 ], [ 13, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tContestScanner scan = new...
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; public class Main { /** * @param args */ public static void main(String[] args) throws IOException { ContestScanner scan = new ContestScanner(); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 13, 13, 11, 1, 41, 13, 17,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 161, 8 ], [ 161, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(sc.nex...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = Integer.parseInt(sc.next()); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 173, 5 ], [ 173, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\t// a[0]は整列済のため、結果を出力\n\t\tprint(a);\n...
import java.util.Scanner; public class Main { public static void main(String[] args) { int n; Scanner sc = new Scanner(System.in); n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } // a[0]は整列済のため、結果を出力 print(a); for (int i = 1; i < a.length; i++) { ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, ...
[ [ 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\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = scanner.nextInt();\n }\n ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = scanner.nextInt(); } printArray(n, a);...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 158, 8 ], [ 158, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "\n\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\tinsertionSort...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = scan.nextInt(); } insertionSort(A, N); } public static void ins...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 4, 18, 13, 13, 11, 1, 41, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 220, 11 ], [ 220, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic void maain(){\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//1???????????\\????????¢\n\t ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public void maain(){ } public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? //1???????????\????????¢ StringBuilder buider = new...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 195, 5 ], [ 195, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint[] values = new int[a];\n\t\tString sr[] = new String[a];\n\t\tString str = \"\";\n\n\t\tfor(int i=0 ; i<sr.length ; i++) {\n\t\t\tvalues[i] =...
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int[] values = new int[a]; String sr[] = new String[a]; String str = ""; for(int i=0 ; i<sr.length ; i++) { values[i] = s.nextInt(); } String disp = "";...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 4, 18, 13, 41, 13, 20, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 196, 8 ], [ 196, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder out = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(new InputS...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { StringBuilder out = new StringBuilder(); String lb = System.getProperty("line.separator"); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 4, 13, 4, 13, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 165, 5 ], [ 165, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 6, 12 ], [ 12, 13 ], [ 0, 14 ],...
[ "import java.util.Scanner; public class Main { public static void main(String[] args) { Solve.run(); } } class Solve { private static int N; private static int[] vec; static void run() { input(); solve(); } static void input() { Scanner sc = new Scanner(System.in); N = sc.nextInt(); vec = new int[N]; for (int i = 0...
import java.util.Scanner; public class Main { public static void main(String[] args) { Solve.run(); } } class Solve { private static int N; private static int[] vec; static void run() { input(); solve(); } static void input() { Scanner sc = new Scanner(System.in); N = sc.nextInt(); vec = new int[N]; for (int i = 0; i <...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40,...
[ [ 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 ], [...
[ "\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint N = scan.nextInt();\n\t\t\n\t\tint v, j;\n\t\tint[] A = new int[N];\n\t\t\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tA[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int k = 0;...
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int v, j; int[] A = new int[N]; for(int i = 0; i < N; i++){ A[i] = scan.nextInt(); } for(int k = 0; k < N; k++){ System.out.print(A[k]); if(...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 11, 1, 0, 13, 2, 13, 17, 2, 2, 17, 13, 2, 13, 18, 13, 13, 1, 40, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ ...
[ "import java.util.Scanner;\nclass Main\n{\n\tstatic void sort( int A[] )\n\t{\n\t\tputArray(A);\n\t\tint v, j;\n\t\tfor( int i = 1 ; i < A.length ; i++ )\n\t\t{\n\t\t\tv = A[i];\n\t\t\tfor( j = i-1 ; 0<=j && v<A[j] ; j-- )\n\t\t\t\tA[j+1] = A[j];\n\t\t\tA[j+1] = v;\n\t\t\tputArray(A);\n\t\t}\n\t\treturn;\n\t}\n\tst...
import java.util.Scanner; class Main { static void sort( int A[] ) { putArray(A); int v, j; for( int i = 1 ; i < A.length ; i++ ) { v = A[i]; for( j = i-1 ; 0<=j && v<A[j] ; j-- ) A[j+1] = A[j]; A[j+1] = v; putArray(A); } return; } static void putArray( int A[] ) { for( int i = 0 ; i ...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 6 ], [ 6, 7 ], [ 6, 8 ], [ 150, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tstatic StringBuilder builder = new StringBuilder();\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] A = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tA[i] = scanner.next...
import java.util.Scanner; public class Main { static StringBuilder builder = new StringBuilder(); public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] A = new int[n]; for (int i = 0; i < n; i++) A[i] = scanner.nextInt(); trace(A, n); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 17, 17, 41, 13, 41, 13, 41, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 11, 1, 0, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.*;\n \npublic class Main {\n public static void main(String[] args) throws IOException{\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n int n = Integer.parseInt(br.readLine());\n String[] A = br.readLine(...
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); int n = Integer.parseInt(br.readLine()); String[] A = br.readLine().split(" ",...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 13, 41, 13, 4, 18, 13, 41, ...
[ [ 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.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString SORT_LENGTH=br.r...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String SORT_LENGTH=br.readLine(); int L...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 179, 5 ], [ 179, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ]...
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tvoid insertionSort(int[] a, int n) {\n\t\tSystem.out.print(a[0]);\n\t\tfor (int k = 1; k < n; k++) {\n\t\t\tSystem.out.print(\" \" + a[k]);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint v = a[i];\n\t\t\tint j = i - 1;\n\t\t\twh...
import java.util.Scanner; public class Main { void insertionSort(int[] a, int n) { System.out.print(a[0]); for (int k = 1; k < n; k++) { System.out.print(" " + a[k]); } System.out.println(); for (int i = 1; i < n; i++) { int v = a[i]; int j = i - 1; while (j >= 0 && a[j] > v) { a[j+1] = a[j...
[ 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 ], [ 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\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint array[] = new int [size];\n\t\tfor(int i=0; i<size; i++ ){\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int k=0; k<size; k++){...
import java.util.Scanner; public class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); int size = sc.nextInt(); int array[] = new int [size]; for(int i=0; i<size; i++ ){ array[i] = sc.nextInt(); } for(int k=0; k<size; k++){ if(k == size-1){ System.o...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 13, 4, 13, 13, 13, 23, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 153, 11 ], [ 153, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n List<Integer> list = new ArrayList<>();\n for(int i=0;i<n;i++){\...
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); List<Integer> list = new ArrayList<>(); for(int i=0;i<n;i++){ int ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 13, 42, 2, 40, 13, 17, 30, 0, 18, 13, 13, 4, 18, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 176, 11 ], [ 176, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());...
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...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 4, 18, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 41, 13, 17, 28, 13, 4, 18, 4, 18, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 184, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n \npublic class Main {\n\tprivate static final String CRLF = System.lineSeparator();\n\tpublic void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStrea...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { private static final String CRLF = System.lineSeparator(); public void exec() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System....
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 4, 18, 13, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20,...
[ [ 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.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.InputMismatchException;\nimport java.util.StringTokenizer;\n\nclass Main {\n\t\n\tstatic class InsertionSort {\n\t\tpublic void insertionsort (InputReader ir) {\n\t\t\t\n\t\...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.InputMismatchException; import java.util.StringTokenizer; class Main { static class InsertionSort { public void insertionsort (InputReader ir) { int n = ir.nextInt(); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17,...
[ [ 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;\nclass Main {\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint input = scan.nextInt();\n \tint[] num = new int[input];\n \tint v;\n \tint j;\n \t\n \tfor(int i = 0; i < input; i++){\n \t\tnum[i] = scan.nextInt();\n ...
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int input = scan.nextInt(); int[] num = new int[input]; int v; int j; for(int i = 0; i < input; i++){ num[i] = scan.nextInt(); } for(int i =...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 382, 11 ], [ 382, 12 ], [ 12, 13 ], [ 382, 14 ]...
[ "import java.io.*;\nimport java.util.List;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n int[] arr;\n\n int size;\n\n int swaps;\n\n public static void main(String[] args)\n {\n\n Main g = new Main();\n\n g.readArray();\n\n g.insertionSort();\n\n //g.printA...
import java.io.*; import java.util.List; import java.util.StringTokenizer; public class Main { int[] arr; int size; int swaps; public static void main(String[] args) { Main g = new Main(); g.readArray(); g.insertionSort(); //g.printArray(); //System....
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13...
[ [ 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\n/**\n * \n */\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\tint N = 0;\...
import java.util.Scanner; /** * */ /** * @author kawakami * */ class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub StringBuilder sb = new StringBuilder(); Scanner as = new Scanner(System.in); int N = 0; int v = 0; int i = 0; int j = ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 4, 18, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 154, 14 ], ...
[ "import java.io.FileReader;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n=sc.nextInt();\n\t\tint[] in=new int[n];\n\t\tfor (int i=0;...
import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] in=new int[n]; for (int i=0;sc.hasNext();i++) in[i]=...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 170, 5 ], [ 170, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint[] array = new int[x];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\n\t\tshow(array, x);\n\t\tinsertionSort(array, ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int[] array = new int[x]; for(int i=0;i<x;i++) { array[i] = sc.nextInt(); } show(array, x); insertionSort(array, x); sc.close(); } public static ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 184, 5 ], [ 184, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner =new Scanner(System.in);\n int N=scanner.nextInt();\n int[] ints=new int[N];\n for(int i=0;i<N;i++){\n ints[i]=scanner.nextInt();\n ...
import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner scanner =new Scanner(System.in); int N=scanner.nextInt(); int[] ints=new int[N]; for(int i=0;i<N;i++){ ints[i]=scanner.nextInt(); } f...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 173, 5 ], [ 173, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\n/**\n * A\n */\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n \n array[i] = sc.nextInt();\n ...
import java.util.*; /** * A */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int array[] = new int[n]; for(int i=0; i<n; i++) { array[i] = sc.nextInt(); System.out.pri...
[ 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 ], [ 159, 5 ], [ 159, 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 scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int[] A = new int[N];\n for(int i=0;i<N;i++){\n A[i]=scanner.nextInt();\n }\n printList(A,N);...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] A = new int[N]; for(int i=0;i<N;i++){ A[i]=scanner.nextInt(); } printList(A,N); 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, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11...
[ [ 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 public static void main(String[] ags){\n Scanner nyuryoku = new Scanner(System.in);\n int N = nyuryoku.nextInt();\n int[] A = new int[N];\n for (int i = 0; i < N; i++){\n A[i] = nyuryoku.nextInt();\n }\n show(A, N);\n insertionSort(A, N);\n ...
import java.util.Scanner; class Main{ public static void main(String[] ags){ Scanner nyuryoku = new Scanner(System.in); int N = nyuryoku.nextInt(); int[] A = new int[N]; for (int i = 0; i < N; i++){ A[i] = nyuryoku.nextInt(); } show(A, N); insertionSort(A, N); } static void ...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 12, 13, 30, 4, 13, 4, 13, 4, 13, 23, 13, 12, 13, 30, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 163, 9 ], [ 9, 10 ], [ 163, 11 ], [ 11, 12 ], [ 163, 13 ], [ 13, 1...
[ "\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n\n public static void main(String[] args) {\n read();\n output();\n solve();\n }\n\n public static void read() {\n n = sc.nextInt();\n ...
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static int n; static int a[]; public static void main(String[] args) { read(); output(); solve(); } public static void read() { n = sc.nextInt(); a = new int[n]; ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 23, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 191, 8 ], [ 191, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tprivate static void print(int[] A){\n\t\tString[] V=new String[A.length];\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tV[i]=String.valueOf(A[i]);\n\t\t}\n\t\tSystem.out.println(String.join(\" \",V));\n\t}\n\t\n\tpublic static v...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { private static void print(int[] A){ String[] V=new String[A.length]; for(int i=0;i<A.length;i++){ V[i]=String.valueOf(A[i]); } System.out.println(String.join(" ",V)); } public static void insertionSort(int[] A,int N){ ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 154, 8 ], [ 154, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.IOException;\nimport java.util.Scanner;\n\n/**\n * 挿入ソート\n * \n *\n */\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\...
import java.io.IOException; import java.util.Scanner; /** * 挿入ソート * * */ public class Main { public static void main(String[] args) throws IOException { Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = s.nextInt(); } pr...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 40, 13, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 172, 5 ], [ 172, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ]...
[ "import java.util.*;\n\npublic class Main {\n public static void insertionSort(int[] A, int N){\n for(int i=1; i<N; i++){\n int v = A[i];\n int j = i-1;\n while(j>=0 && A[j]>v ){\n A[j+1] = A[j];\n j--;\n }\n A[j+1] = v;\...
import java.util.*; public class Main { public static void insertionSort(int[] A, int N){ for(int i=1; i<N; i++){ int v = A[i]; int j = i-1; while(j>=0 && A[j]>v ){ A[j+1] = A[j]; j--; } A[j+1] = v; ...
[ 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 ], [ 187, 5 ], [ 187, 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\tScanner sc= new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] A=new int[N]; \n\t\tfor(int i=0;i<N;i++){\n\t\t\tA[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(i==N-1){\n\t\t\t\tSystem.out.println(A[i...
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc= new Scanner(System.in); int N=sc.nextInt(); int[] A=new int[N]; for(int i=0;i<N;i++){ A[i]=sc.nextInt(); } for(int i=0;i<N;i++){ if(i==N-1){ System.out.println(A[i]); }else{ System.out.print(A...