node_ids
sequencelengths
4
1.4k
edge_index
sequencelengths
1
2.22k
text
sequencelengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 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, 41, 13, 18, 13, 2, 13, 17, 41, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 13, 18, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 106, 14 ], [ 106, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 17, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 17, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 17, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 62, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 76, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 17, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 15, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "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 main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint max = arr[n - 1];\n\t\tint diff_max = Integer.MIN_VALUE;\n\t\tfor(int i = n - 2; i >= 0; i--){\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(diff_max);\n\t\t\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint max = arr[n - 1];\n\t\tint diff_max = Integer.MIN_VALUE;\n\t\tfor(int i = n - 2; i >= 0; i--){\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(diff_max);\n\t\t\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint max = arr[n - 1];\n\t\tint diff_max = Integer.MIN_VALUE;\n\t\tfor(int i = n - 2; i >= 0; i--){\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(diff_max);\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint max = arr[n - 1];\n\t\tint diff_max = Integer.MIN_VALUE;\n\t\tfor(int i = n - 2; i >= 0; i--){\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(diff_max);\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tarr[i] = sc.nextInt();\n\t\t}", "arr[i] = sc.nextInt()", "arr[i]", "arr", "i", "sc.nextInt()", "sc.nextInt", "sc", "int max = arr[n - 1];", "max", "arr[n - 1]", "arr", "n - 1", "n", "1", "int diff_max = Integer.MIN_VALUE;", "diff_max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i = n - 2; i >= 0; i--){\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}", "int i = n - 2;", "int i = n - 2;", "i", "n - 2", "n", "2", "i >= 0", "i", "0", "i--", "i--", "i", "{\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}", "{\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}", "diff_max = Math.max(diff_max, max - arr[i])", "diff_max", "Math.max(diff_max, max - arr[i])", "Math.max", "Math", "diff_max", "max - arr[i]", "max", "arr[i]", "arr", "i", "max = Math.max(max, arr[i])", "max", "Math.max(max, arr[i])", "Math.max", "Math", "max", "arr[i]", "arr", "i", "System.out.println(diff_max)", "System.out.println", "System.out", "System", "System.out", "diff_max", "String args[]", "args", "public class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint max = arr[n - 1];\n\t\tint diff_max = Integer.MIN_VALUE;\n\t\tfor(int i = n - 2; i >= 0; i--){\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(diff_max);\n\t\t\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint max = arr[n - 1];\n\t\tint diff_max = Integer.MIN_VALUE;\n\t\tfor(int i = n - 2; i >= 0; i--){\n\t\t\tdiff_max = Math.max(diff_max, max - arr[i]);\n\t\t\t\n\t\t\tmax = Math.max(max, arr[i]);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(diff_max);\n\t\t\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); int[] arr = new int[n]; for(int i = 0; i < n; i++){ arr[i] = sc.nextInt(); } int max = arr[n - 1]; int diff_max = Integer.MIN_VALUE; for(int i = n - 2; i >= 0; i--){ diff_max = Math.max(diff_max, max - arr[i]); max = Math.max(max, arr[i]); } System.out.println(diff_max); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 11, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 11, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 68, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 11, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 9, 95 ], [ 95, 96 ] ]
[ "\nimport java.io.*;\nclass Main{\n\t static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n public static void main(String[] args)throws IOException{\n \t int n = Integer.parseInt(br.readLine());\n\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n\t static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n public static void main(String[] args)throws IOException{\n \t int n = Integer.parseInt(br.readLine());\n\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n }\n}", "Main", "static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "public static void main(String[] args)throws IOException{\n \t int n = Integer.parseInt(br.readLine());\n\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n }", "main", "{\n \t int n = Integer.parseInt(br.readLine());\n\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n }", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] R=new int[n];", "R", "new int[n]", "n", "for(int i=0;i<n;i++){\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}", "{\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}", "R[i]=Integer.parseInt(br.readLine())", "R[i]", "R", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int maxv=-2000000000;", "maxv", "-2000000000", "2000000000", "int minv=R[0];", "minv", "R[0]", "R", "0", "for(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}", "{\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}", "maxv=Math.max(maxv,R[i]-minv)", "maxv", "Math.max(maxv,R[i]-minv)", "Math.max", "Math", "maxv", "R[i]-minv", "R[i]", "R", "i", "minv", "minv=Math.min(minv,R[i])", "minv", "Math.min(minv,R[i])", "Math.min", "Math", "minv", "R[i]", "R", "i", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args" ]
import java.io.*; class Main{ static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args)throws IOException{ int n = Integer.parseInt(br.readLine()); int[] R=new int[n]; for(int i=0;i<n;i++){ R[i]=Integer.parseInt(br.readLine()); } int maxv=-2000000000; int minv=R[0]; for(int i=1;i<n;i++){ maxv=Math.max(maxv,R[i]-minv); minv=Math.min(minv,R[i]); } System.out.println(maxv); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 0, 13, 4, 18, 13, 17, 17, 0, 13, 2, 4, 18, 13, 17, 17, 40, 17, 42, 2, 13, 13, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 17, 20 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 6, 24 ], [ 24, 25 ], [ 4, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 36, 38 ], [ 28, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 28, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 50, 56 ], [ 56, 57 ], [ 28, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 72, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 72, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 68, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 62, 98 ], [ 98, 99 ], [ 28, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 26, 106 ], [ 106, 107 ], [ 26, 108 ], [ 108, 109 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num = scanner.nextInt();\t//要素数\n\t\t\n\t\tgcd_profits(num, scanner);\n\t\t\n\t\tscanner.close();\n\t}\n\t\n\tpublic static void gcd_profits(int num , Scanner scanner) {\n\t\tint sub;\n\t\tint min;\n\t\tint count = 0;\n\t\tint profits = 0;\n\t\tint cur;\n\n\t\tmin = (int)Math.pow(10, 9);\n\t\tprofits = (int)Math.pow(10, 9) * -1;\n\t\t\n\t\t while (count < num) {\n\t\t \tcur = scanner.nextInt();\t//価格\n\t\t \t\n\t\t \tif(count != 0){\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}else{\n\t\t \t\tmin = cur;\n\t\t \t}\n\t\t \t\n\t\t \tcount ++;\n\t\t }\n\t\t System.out.println(profits);\n\t\t}\n}\n\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num = scanner.nextInt();\t//要素数\n\t\t\n\t\tgcd_profits(num, scanner);\n\t\t\n\t\tscanner.close();\n\t}\n\t\n\tpublic static void gcd_profits(int num , Scanner scanner) {\n\t\tint sub;\n\t\tint min;\n\t\tint count = 0;\n\t\tint profits = 0;\n\t\tint cur;\n\n\t\tmin = (int)Math.pow(10, 9);\n\t\tprofits = (int)Math.pow(10, 9) * -1;\n\t\t\n\t\t while (count < num) {\n\t\t \tcur = scanner.nextInt();\t//価格\n\t\t \t\n\t\t \tif(count != 0){\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}else{\n\t\t \t\tmin = cur;\n\t\t \t}\n\t\t \t\n\t\t \tcount ++;\n\t\t }\n\t\t System.out.println(profits);\n\t\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num = scanner.nextInt();\t//要素数\n\t\t\n\t\tgcd_profits(num, scanner);\n\t\t\n\t\tscanner.close();\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num = scanner.nextInt();\t//要素数\n\t\t\n\t\tgcd_profits(num, scanner);\n\t\t\n\t\tscanner.close();\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int num = scanner.nextInt();", "num", "scanner.nextInt()", "scanner.nextInt", "scanner", "gcd_profits(num, scanner)", "gcd_profits", "num", "scanner", "scanner.close()", "scanner.close", "scanner", "String args[]", "args", "public static void gcd_profits(int num , Scanner scanner) {\n\t\tint sub;\n\t\tint min;\n\t\tint count = 0;\n\t\tint profits = 0;\n\t\tint cur;\n\n\t\tmin = (int)Math.pow(10, 9);\n\t\tprofits = (int)Math.pow(10, 9) * -1;\n\t\t\n\t\t while (count < num) {\n\t\t \tcur = scanner.nextInt();\t//価格\n\t\t \t\n\t\t \tif(count != 0){\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}else{\n\t\t \t\tmin = cur;\n\t\t \t}\n\t\t \t\n\t\t \tcount ++;\n\t\t }\n\t\t System.out.println(profits);\n\t\t}", "gcd_profits", "{\n\t\tint sub;\n\t\tint min;\n\t\tint count = 0;\n\t\tint profits = 0;\n\t\tint cur;\n\n\t\tmin = (int)Math.pow(10, 9);\n\t\tprofits = (int)Math.pow(10, 9) * -1;\n\t\t\n\t\t while (count < num) {\n\t\t \tcur = scanner.nextInt();\t//価格\n\t\t \t\n\t\t \tif(count != 0){\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}else{\n\t\t \t\tmin = cur;\n\t\t \t}\n\t\t \t\n\t\t \tcount ++;\n\t\t }\n\t\t System.out.println(profits);\n\t\t}", "int sub;", "sub", "int min;", "min", "int count = 0;", "count", "0", "int profits = 0;", "profits", "0", "int cur;", "cur", "min = (int)Math.pow(10, 9)", "min", "(int)Math.pow(10, 9)", "Math.pow", "Math", "10", "9", "profits = (int)Math.pow(10, 9) * -1", "profits", "(int)Math.pow(10, 9) * -1", "(int)Math.pow(10, 9)", "Math.pow", "Math", "10", "9", "-1", "1", "while (count < num) {\n\t\t \tcur = scanner.nextInt();\t//価格\n\t\t \t\n\t\t \tif(count != 0){\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}else{\n\t\t \t\tmin = cur;\n\t\t \t}\n\t\t \t\n\t\t \tcount ++;\n\t\t }", "count < num", "count", "num", "{\n\t\t \tcur = scanner.nextInt();\t//価格\n\t\t \t\n\t\t \tif(count != 0){\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}else{\n\t\t \t\tmin = cur;\n\t\t \t}\n\t\t \t\n\t\t \tcount ++;\n\t\t }", "cur = scanner.nextInt()", "cur", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(count != 0){\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}else{\n\t\t \t\tmin = cur;\n\t\t \t}", "count != 0", "count", "0", "{\n\t\t\t \t\n\t\t\t \t//差分を出していく\n\t\t\t \tsub = cur - min;\n\t\t\t \t\n\t\t\t \tif( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//最小か最大か調べる\n\t\t\t \tif( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}\n\t\t \t}", "sub = cur - min", "sub", "cur - min", "cur", "min", "if( cur <= min ) {\n\t\t\t \t\tmin = cur;\n\t\t\t \t}", "cur <= min", "cur", "min", "{\n\t\t\t \t\tmin = cur;\n\t\t\t \t}", "min = cur", "min", "cur", "if( sub > profits ){\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}", "sub > profits", "sub", "profits", "{\n\t\t\t \t\tprofits = sub;\n\t\t\t \t}", "profits = sub", "profits", "sub", "{\n\t\t \t\tmin = cur;\n\t\t \t}", "min = cur", "min", "cur", "count ++", "count", "System.out.println(profits)", "System.out.println", "System.out", "System", "System.out", "profits", "int num", "num", "Scanner scanner", "scanner" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); //要素数 gcd_profits(num, scanner); scanner.close(); } public static void gcd_profits(int num , Scanner scanner) { int sub; int min; int count = 0; int profits = 0; int cur; min = (int)Math.pow(10, 9); profits = (int)Math.pow(10, 9) * -1; while (count < num) { cur = scanner.nextInt(); //価格 if(count != 0){ //差分を出していく sub = cur - min; if( cur <= min ) { min = cur; } //最小か最大か調べる if( sub > profits ){ profits = sub; } }else{ min = cur; } count ++; } System.out.println(profits); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 18, 13, 13, 41, 13, 41, 13, 18, 13, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 13, 0, 18, 13, 17, 4, 18, 13, 0, 13, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 14, 2, 2, 18, 13, 13, 13, 13, 30, 0, 13, 18, 13, 13, 0, 13, 2, 13, 13, 14, 2, 18, 13, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 72, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 63, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n\tint i,j,maxago=Integer.MIN_VALUE,min,max=Integer.MIN_VALUE;\n\t\n\tScanner sca = new Scanner(System.in);\n\ti=sca.nextInt();\n\tint[] hai= new int[i];\n\thai[0]=sca.nextInt();\n\tmin=hai[0];\n\tfor(i=1;i<hai.length;i++){//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}\n\tSystem.out.println(maxago);\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n\tint i,j,maxago=Integer.MIN_VALUE,min,max=Integer.MIN_VALUE;\n\t\n\tScanner sca = new Scanner(System.in);\n\ti=sca.nextInt();\n\tint[] hai= new int[i];\n\thai[0]=sca.nextInt();\n\tmin=hai[0];\n\tfor(i=1;i<hai.length;i++){//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}\n\tSystem.out.println(maxago);\n }\n}", "Main", "public static void main(String[] args){\n\tint i,j,maxago=Integer.MIN_VALUE,min,max=Integer.MIN_VALUE;\n\t\n\tScanner sca = new Scanner(System.in);\n\ti=sca.nextInt();\n\tint[] hai= new int[i];\n\thai[0]=sca.nextInt();\n\tmin=hai[0];\n\tfor(i=1;i<hai.length;i++){//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}\n\tSystem.out.println(maxago);\n }", "main", "{\n\tint i,j,maxago=Integer.MIN_VALUE,min,max=Integer.MIN_VALUE;\n\t\n\tScanner sca = new Scanner(System.in);\n\ti=sca.nextInt();\n\tint[] hai= new int[i];\n\thai[0]=sca.nextInt();\n\tmin=hai[0];\n\tfor(i=1;i<hai.length;i++){//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}\n\tSystem.out.println(maxago);\n }", "int i", "i", "j", "j", "maxago=Integer.MIN_VALUE", "maxago", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "min", "min", "max=Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "Scanner sca = new Scanner(System.in);", "sca", "new Scanner(System.in)", "i=sca.nextInt()", "i", "sca.nextInt()", "sca.nextInt", "sca", "int[] hai= new int[i];", "hai", "new int[i]", "i", "hai[0]=sca.nextInt()", "hai[0]", "hai", "0", "sca.nextInt()", "sca.nextInt", "sca", "min=hai[0]", "min", "hai[0]", "hai", "0", "for(i=1;i<hai.length;i++){//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}", "i=1;", "i=1", "i", "1", "i<hai.length", "i", "hai.length", "hai", "hai.length", "i++", "i++", "i", "{//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}", "{//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}", "hai[i]=sca.nextInt()", "hai[i]", "hai", "i", "sca.nextInt()", "sca.nextInt", "sca", "if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }", "hai[i]-min>maxago", "hai[i]-min", "hai[i]", "hai", "i", "min", "maxago", "{\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }", "max=hai[i]", "max", "hai[i]", "hai", "i", "maxago=max-min", "maxago", "max-min", "max", "min", "if(hai[i]<min){\n\t\tmin=hai[i];\n\t }", "hai[i]<min", "hai[i]", "hai", "i", "min", "{\n\t\tmin=hai[i];\n\t }", "min=hai[i]", "min", "hai[i]", "hai", "i", "System.out.println(maxago)", "System.out.println", "System.out", "System", "System.out", "maxago", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n\tint i,j,maxago=Integer.MIN_VALUE,min,max=Integer.MIN_VALUE;\n\t\n\tScanner sca = new Scanner(System.in);\n\ti=sca.nextInt();\n\tint[] hai= new int[i];\n\thai[0]=sca.nextInt();\n\tmin=hai[0];\n\tfor(i=1;i<hai.length;i++){//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}\n\tSystem.out.println(maxago);\n }\n}", "public class Main{\n public static void main(String[] args){\n\tint i,j,maxago=Integer.MIN_VALUE,min,max=Integer.MIN_VALUE;\n\t\n\tScanner sca = new Scanner(System.in);\n\ti=sca.nextInt();\n\tint[] hai= new int[i];\n\thai[0]=sca.nextInt();\n\tmin=hai[0];\n\tfor(i=1;i<hai.length;i++){//i->max(assuming)\n\t hai[i]=sca.nextInt();\n\t if(hai[i]-min>maxago){\n\t\tmax=hai[i];\n\t\tmaxago=max-min;\n\t }\n\t if(hai[i]<min){\n\t\tmin=hai[i];\n\t }\n\t \n\t}\n\tSystem.out.println(maxago);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ int i,j,maxago=Integer.MIN_VALUE,min,max=Integer.MIN_VALUE; Scanner sca = new Scanner(System.in); i=sca.nextInt(); int[] hai= new int[i]; hai[0]=sca.nextInt(); min=hai[0]; for(i=1;i<hai.length;i++){//i->max(assuming) hai[i]=sca.nextInt(); if(hai[i]-min>maxago){ max=hai[i]; maxago=max-min; } if(hai[i]<min){ min=hai[i]; } } System.out.println(maxago); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 9, 0, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 18, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 137, 20 ], [ 137, 21 ], [ 21, 22 ], [ 137, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 25, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 25, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 25, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 25, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 81, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 80, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 93, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 93, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 25, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 23, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "import java.io.*;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Scanner;\npublic class Main {\n\tstatic String a;\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[] list = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}\n\t\tint max = Integer.MIN_VALUE;\n\t\tint pre = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.ArrayDeque;", "ArrayDeque", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tstatic String a;\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[] list = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}\n\t\tint max = Integer.MIN_VALUE;\n\t\tint pre = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "static String a;", "a", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[] list = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}\n\t\tint max = Integer.MIN_VALUE;\n\t\tint pre = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[] list = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}\n\t\tint max = Integer.MIN_VALUE;\n\t\tint pre = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int[] list = new int[n];", "list", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}", "{\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}", "list[i] = stdIn.nextInt()", "list[i]", "list", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int pre = Integer.MAX_VALUE;", "pre", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "for(int i = 0; i < n; i++) {\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(pre <= list[i]) continue;\n\t\t\telse pre = list[i];", "pre <= list[i]", "pre", "list[i]", "list", "i", "continue;", "pre = list[i]", "pre", "list[i]", "list", "i", "for(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}", "int j = i+1;", "int j = i+1;", "j", "i+1", "i", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}", "if(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}", "list[j] - list[i] > max", "list[j] - list[i]", "list[j]", "list", "j", "list[i]", "list", "i", "max", "{\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}", "max = list[j] - list[i]", "max", "list[j] - list[i]", "list[j]", "list", "j", "list[i]", "list", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\tstatic String a;\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[] list = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}\n\t\tint max = Integer.MIN_VALUE;\n\t\tint pre = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main {\n\tstatic String a;\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint[] list = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t}\n\t\tint max = Integer.MIN_VALUE;\n\t\tint pre = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(pre <= list[i]) continue;\n\t\t\telse pre = list[i];\n\t\t\tfor(int j = i+1; j < n; j++) {\n\t\t\t\tif(list[j] - list[i] > max) {\n\t\t\t\t\tmax = list[j] - list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.io.*; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { static String a; public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int[] list = new int[n]; for(int i = 0; i < n; i++) { list[i] = stdIn.nextInt(); } int max = Integer.MIN_VALUE; int pre = Integer.MAX_VALUE; for(int i = 0; i < n; i++) { if(pre <= list[i]) continue; else pre = list[i]; for(int j = i+1; j < n; j++) { if(list[j] - list[i] > max) { max = list[j] - list[i]; } } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 0, 18, 36, 13, 4, 18, 13, 0, 18, 36, 13, 20, 18, 36, 13, 11, 1, 41, 13, 17, 2, 13, 18, 36, 13, 1, 40, 13, 30, 30, 0, 18, 18, 36, 13, 13, 4, 18, 13, 12, 13, 30, 41, 13, 18, 18, 36, 13, 17, 41, 13, 2, 18, 18, 36, 13, 17, 18, 18, 36, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 36, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 18, 36, 13, 13, 13, 30, 0, 13, 2, 18, 18, 36, 13, 13, 13, 14, 2, 13, 18, 18, 36, 13, 13, 30, 0, 13, 18, 18, 36, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 6 ], [ 6, 7 ], [ 150, 8 ], [ 8, 9 ], [ 150, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 21, 22 ], [ 12, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 28, 29 ], [ 28, 30 ], [ 12, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 150, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 57, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 57, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 78, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 92, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 57, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 150, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 137, 144 ], [ 144, 145 ], [ 145, 146 ], [ 135, 147 ], [ 147, 148 ], [ 0, 149 ], [ 149, 150 ], [ 149, 151 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public int size;\n public int[] mx;\n\n public void scan() {\n Scanner sc = new Scanner(System.in);\n this.size = sc.nextInt();\n this.mx = new int[this.size];\n for (int i = 0; i < this.size; i++) {\n this.mx[i] = sc.nextInt();\n }\n }\n\n public void task() {\n int min = this.mx[0];\n int max = this.mx[1] - this.mx[0];\n for(int i = 1; i < this.size; i++){\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }\n System.out.println(max);\n }\n\n public static void main(String[] args) {\n Main prime = new Main();\n prime.scan();\n prime.task();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public int size;\n public int[] mx;\n\n public void scan() {\n Scanner sc = new Scanner(System.in);\n this.size = sc.nextInt();\n this.mx = new int[this.size];\n for (int i = 0; i < this.size; i++) {\n this.mx[i] = sc.nextInt();\n }\n }\n\n public void task() {\n int min = this.mx[0];\n int max = this.mx[1] - this.mx[0];\n for(int i = 1; i < this.size; i++){\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }\n System.out.println(max);\n }\n\n public static void main(String[] args) {\n Main prime = new Main();\n prime.scan();\n prime.task();\n }\n}", "Main", "public int size;", "size", "public int[] mx;", "mx", "public void scan() {\n Scanner sc = new Scanner(System.in);\n this.size = sc.nextInt();\n this.mx = new int[this.size];\n for (int i = 0; i < this.size; i++) {\n this.mx[i] = sc.nextInt();\n }\n }", "scan", "{\n Scanner sc = new Scanner(System.in);\n this.size = sc.nextInt();\n this.mx = new int[this.size];\n for (int i = 0; i < this.size; i++) {\n this.mx[i] = sc.nextInt();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "this.size = sc.nextInt()", "this.size", "this", "this.size", "sc.nextInt()", "sc.nextInt", "sc", "this.mx = new int[this.size]", "this.mx", "this", "this.mx", "new int[this.size]", "this.size", "this", "this.size", "for (int i = 0; i < this.size; i++) {\n this.mx[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < this.size", "i", "this.size", "this", "this.size", "i++", "i++", "i", "{\n this.mx[i] = sc.nextInt();\n }", "{\n this.mx[i] = sc.nextInt();\n }", "this.mx[i] = sc.nextInt()", "this.mx[i]", "this.mx", "this", "this.mx", "i", "sc.nextInt()", "sc.nextInt", "sc", "public void task() {\n int min = this.mx[0];\n int max = this.mx[1] - this.mx[0];\n for(int i = 1; i < this.size; i++){\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }\n System.out.println(max);\n }", "task", "{\n int min = this.mx[0];\n int max = this.mx[1] - this.mx[0];\n for(int i = 1; i < this.size; i++){\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }\n System.out.println(max);\n }", "int min = this.mx[0];", "min", "this.mx[0]", "this.mx", "this", "this.mx", "0", "int max = this.mx[1] - this.mx[0];", "max", "this.mx[1] - this.mx[0]", "this.mx[1]", "this.mx", "this", "this.mx", "1", "this.mx[0]", "this.mx", "this", "this.mx", "0", "for(int i = 1; i < this.size; i++){\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < this.size", "i", "this.size", "this", "this.size", "i++", "i++", "i", "{\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }", "{\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }", "if(max < this.mx[i] - min){ max = this.mx[i] - min; }", "max < this.mx[i] - min", "max", "this.mx[i] - min", "this.mx[i]", "this.mx", "this", "this.mx", "i", "min", "{ max = this.mx[i] - min; }", "max = this.mx[i] - min", "max", "this.mx[i] - min", "this.mx[i]", "this.mx", "this", "this.mx", "i", "min", "if(min > this.mx[i]){ min = this.mx[i]; }", "min > this.mx[i]", "min", "this.mx[i]", "this.mx", "this", "this.mx", "i", "{ min = this.mx[i]; }", "min = this.mx[i]", "min", "this.mx[i]", "this.mx", "this", "this.mx", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "public static void main(String[] args) {\n Main prime = new Main();\n prime.scan();\n prime.task();\n }", "main", "{\n Main prime = new Main();\n prime.scan();\n prime.task();\n }", "Main prime = new Main();", "prime", "new Main()", "prime.scan()", "prime.scan", "prime", "prime.task()", "prime.task", "prime", "String[] args", "args", "public class Main {\n\n public int size;\n public int[] mx;\n\n public void scan() {\n Scanner sc = new Scanner(System.in);\n this.size = sc.nextInt();\n this.mx = new int[this.size];\n for (int i = 0; i < this.size; i++) {\n this.mx[i] = sc.nextInt();\n }\n }\n\n public void task() {\n int min = this.mx[0];\n int max = this.mx[1] - this.mx[0];\n for(int i = 1; i < this.size; i++){\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }\n System.out.println(max);\n }\n\n public static void main(String[] args) {\n Main prime = new Main();\n prime.scan();\n prime.task();\n }\n}", "public class Main {\n\n public int size;\n public int[] mx;\n\n public void scan() {\n Scanner sc = new Scanner(System.in);\n this.size = sc.nextInt();\n this.mx = new int[this.size];\n for (int i = 0; i < this.size; i++) {\n this.mx[i] = sc.nextInt();\n }\n }\n\n public void task() {\n int min = this.mx[0];\n int max = this.mx[1] - this.mx[0];\n for(int i = 1; i < this.size; i++){\n if(max < this.mx[i] - min){ max = this.mx[i] - min; }\n if(min > this.mx[i]){ min = this.mx[i]; }\n }\n System.out.println(max);\n }\n\n public static void main(String[] args) {\n Main prime = new Main();\n prime.scan();\n prime.task();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public int size; public int[] mx; public void scan() { Scanner sc = new Scanner(System.in); this.size = sc.nextInt(); this.mx = new int[this.size]; for (int i = 0; i < this.size; i++) { this.mx[i] = sc.nextInt(); } } public void task() { int min = this.mx[0]; int max = this.mx[1] - this.mx[0]; for(int i = 1; i < this.size; i++){ if(max < this.mx[i] - min){ max = this.mx[i] - min; } if(min > this.mx[i]){ min = this.mx[i]; } } System.out.println(max); } public static void main(String[] args) { Main prime = new Main(); prime.scan(); prime.task(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 12, 13, 30, 0, 13, 20, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 83, 8 ], [ 8, 9 ], [ 8, 10 ], [ 83, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 83, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 24, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 24, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 54, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 24, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n private static Scanner sc;\n\n public Main() {\n }\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n new Main().solve();\n }\n\n private void solve() {\n int n = sc.nextInt();\n\n int ans = Integer.MIN_VALUE;\n int min = sc.nextInt();\n for (int i = 0; i < n - 1; i++) {\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }\n\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n private static Scanner sc;\n\n public Main() {\n }\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n new Main().solve();\n }\n\n private void solve() {\n int n = sc.nextInt();\n\n int ans = Integer.MIN_VALUE;\n int min = sc.nextInt();\n for (int i = 0; i < n - 1; i++) {\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }\n\n System.out.println(ans);\n }\n}", "Main", "private static Scanner sc;", "sc", "public Main() {\n }", "Main", "{\n }", "public static void main(String[] args) {\n sc = new Scanner(System.in);\n new Main().solve();\n }", "main", "{\n sc = new Scanner(System.in);\n new Main().solve();\n }", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "new Main().solve()", "new Main().solve", "new Main()", "String[] args", "args", "private void solve() {\n int n = sc.nextInt();\n\n int ans = Integer.MIN_VALUE;\n int min = sc.nextInt();\n for (int i = 0; i < n - 1; i++) {\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }\n\n System.out.println(ans);\n }", "solve", "{\n int n = sc.nextInt();\n\n int ans = Integer.MIN_VALUE;\n int min = sc.nextInt();\n for (int i = 0; i < n - 1; i++) {\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }\n\n System.out.println(ans);\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ans = Integer.MIN_VALUE;", "ans", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int min = sc.nextInt();", "min", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n - 1; i++) {\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n - 1", "i", "n - 1", "n", "1", "i++", "i++", "i", "{\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }", "{\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }", "int tmp = sc.nextInt();", "tmp", "sc.nextInt()", "sc.nextInt", "sc", "ans = Math.max(ans, tmp - min)", "ans", "Math.max(ans, tmp - min)", "Math.max", "Math", "ans", "tmp - min", "tmp", "min", "min = Math.min(min, tmp)", "min", "Math.min(min, tmp)", "Math.min", "Math", "min", "tmp", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "public class Main {\n\n private static Scanner sc;\n\n public Main() {\n }\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n new Main().solve();\n }\n\n private void solve() {\n int n = sc.nextInt();\n\n int ans = Integer.MIN_VALUE;\n int min = sc.nextInt();\n for (int i = 0; i < n - 1; i++) {\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }\n\n System.out.println(ans);\n }\n}", "public class Main {\n\n private static Scanner sc;\n\n public Main() {\n }\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n new Main().solve();\n }\n\n private void solve() {\n int n = sc.nextInt();\n\n int ans = Integer.MIN_VALUE;\n int min = sc.nextInt();\n for (int i = 0; i < n - 1; i++) {\n int tmp = sc.nextInt();\n ans = Math.max(ans, tmp - min);\n min = Math.min(min, tmp);\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { private static Scanner sc; public Main() { } public static void main(String[] args) { sc = new Scanner(System.in); new Main().solve(); } private void solve() { int n = sc.nextInt(); int ans = Integer.MIN_VALUE; int min = sc.nextInt(); for (int i = 0; i < n - 1; i++) { int tmp = sc.nextInt(); ans = Math.max(ans, tmp - min); min = Math.min(min, tmp); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 2, 13, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 13, 14, 2, 2, 13, 18, 13, 2, 13, 17, 13, 30, 0, 13, 2, 13, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 106, 5 ], [ 106, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 53, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 6, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint n = in.nextInt();\n\t\t\n\t\t\n\t\tint [] arr = new int [n];\n\t\t\n\t\t\n\t\tint maxVal = Integer.MIN_VALUE;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tint biggestNum = arr[n - 1];\n\t\t\n\t\tfor(int j = n - 1; j > 0; j--) {\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}\n\t\t\n\t\tSystem.out.println(maxVal);\n\t\t\n\t\t\n\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint n = in.nextInt();\n\t\t\n\t\t\n\t\tint [] arr = new int [n];\n\t\t\n\t\t\n\t\tint maxVal = Integer.MIN_VALUE;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tint biggestNum = arr[n - 1];\n\t\t\n\t\tfor(int j = n - 1; j > 0; j--) {\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}\n\t\t\n\t\tSystem.out.println(maxVal);\n\t\t\n\t\t\n\n\t}\n}", "Main", "public static void main(String [] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint n = in.nextInt();\n\t\t\n\t\t\n\t\tint [] arr = new int [n];\n\t\t\n\t\t\n\t\tint maxVal = Integer.MIN_VALUE;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tint biggestNum = arr[n - 1];\n\t\t\n\t\tfor(int j = n - 1; j > 0; j--) {\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}\n\t\t\n\t\tSystem.out.println(maxVal);\n\t\t\n\t\t\n\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint n = in.nextInt();\n\t\t\n\t\t\n\t\tint [] arr = new int [n];\n\t\t\n\t\t\n\t\tint maxVal = Integer.MIN_VALUE;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tint biggestNum = arr[n - 1];\n\t\t\n\t\tfor(int j = n - 1; j > 0; j--) {\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}\n\t\t\n\t\tSystem.out.println(maxVal);\n\t\t\n\t\t\n\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int [] arr = new int [n];", "arr", "new int [n]", "n", "int maxVal = Integer.MIN_VALUE;", "maxVal", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i = 0; i < n; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = in.nextInt();\n\t\t}", "{\n\t\t\tarr[i] = in.nextInt();\n\t\t}", "arr[i] = in.nextInt()", "arr[i]", "arr", "i", "in.nextInt()", "in.nextInt", "in", "int biggestNum = arr[n - 1];", "biggestNum", "arr[n - 1]", "arr", "n - 1", "n", "1", "for(int j = n - 1; j > 0; j--) {\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}", "int j = n - 1;", "int j = n - 1;", "j", "n - 1", "n", "1", "j > 0", "j", "0", "j--", "j--", "j", "{\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}", "{\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}", "biggestNum = Math.max(arr[j], biggestNum)", "biggestNum", "Math.max(arr[j], biggestNum)", "Math.max", "Math", "arr[j]", "arr", "j", "biggestNum", "if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }", "biggestNum - arr[j - 1] > maxVal", "biggestNum - arr[j - 1]", "biggestNum", "arr[j - 1]", "arr", "j - 1", "j", "1", "maxVal", "{\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }", "maxVal = biggestNum - arr[j - 1]", "maxVal", "biggestNum - arr[j - 1]", "biggestNum", "arr[j - 1]", "arr", "j - 1", "j", "1", "System.out.println(maxVal)", "System.out.println", "System.out", "System", "System.out", "maxVal", "String [] args", "args", "public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint n = in.nextInt();\n\t\t\n\t\t\n\t\tint [] arr = new int [n];\n\t\t\n\t\t\n\t\tint maxVal = Integer.MIN_VALUE;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tint biggestNum = arr[n - 1];\n\t\t\n\t\tfor(int j = n - 1; j > 0; j--) {\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}\n\t\t\n\t\tSystem.out.println(maxVal);\n\t\t\n\t\t\n\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint n = in.nextInt();\n\t\t\n\t\t\n\t\tint [] arr = new int [n];\n\t\t\n\t\t\n\t\tint maxVal = Integer.MIN_VALUE;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tint biggestNum = arr[n - 1];\n\t\t\n\t\tfor(int j = n - 1; j > 0; j--) {\n\t\t\t\n\t\t\t biggestNum = Math.max(arr[j], biggestNum);\n\t\t\t\n\t\t\t \n\t\t\t if(biggestNum - arr[j - 1] > maxVal) {\n\t\t\t\t maxVal = biggestNum - arr[j - 1];\n\t\t\t }\n\t\t\t \t\n\t}\n\t\t\n\t\tSystem.out.println(maxVal);\n\t\t\n\t\t\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String [] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int [] arr = new int [n]; int maxVal = Integer.MIN_VALUE; for(int i = 0; i < n; i++) { arr[i] = in.nextInt(); } int biggestNum = arr[n - 1]; for(int j = n - 1; j > 0; j--) { biggestNum = Math.max(arr[j], biggestNum); if(biggestNum - arr[j - 1] > maxVal) { maxVal = biggestNum - arr[j - 1]; } } System.out.println(maxVal); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 0, 13, 18, 13, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 45, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint buy,ans,rem;\n\t\tans = Integer.MIN_VALUE;\n\t\t\n\t\tbuy = sc.nextInt();\n\t\tfor(int i = 1 ; i < n ; i++ )\n\t\t{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint buy,ans,rem;\n\t\tans = Integer.MIN_VALUE;\n\t\t\n\t\tbuy = sc.nextInt();\n\t\tfor(int i = 1 ; i < n ; i++ )\n\t\t{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint buy,ans,rem;\n\t\tans = Integer.MIN_VALUE;\n\t\t\n\t\tbuy = sc.nextInt();\n\t\tfor(int i = 1 ; i < n ; i++ )\n\t\t{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint buy,ans,rem;\n\t\tans = Integer.MIN_VALUE;\n\t\t\n\t\tbuy = sc.nextInt();\n\t\tfor(int i = 1 ; i < n ; i++ )\n\t\t{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int buy", "buy", "ans", "ans", "rem;", "rem", "ans = Integer.MIN_VALUE", "ans", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "buy = sc.nextInt()", "buy", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 1 ; i < n ; i++ )\n\t\t{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}", "int i = 1 ;", "int i = 1 ;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}", "{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}", "rem = sc.nextInt()", "rem", "sc.nextInt()", "sc.nextInt", "sc", "ans = Math.max(ans , rem - buy)", "ans", "Math.max(ans , rem - buy)", "Math.max", "Math", "ans", "rem - buy", "rem", "buy", "buy = Math.min(rem , buy )", "buy", "Math.min(rem , buy )", "Math.min", "Math", "rem", "buy", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint buy,ans,rem;\n\t\tans = Integer.MIN_VALUE;\n\t\t\n\t\tbuy = sc.nextInt();\n\t\tfor(int i = 1 ; i < n ; i++ )\n\t\t{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint buy,ans,rem;\n\t\tans = Integer.MIN_VALUE;\n\t\t\n\t\tbuy = sc.nextInt();\n\t\tfor(int i = 1 ; i < n ; i++ )\n\t\t{\n\t\t\trem = sc.nextInt();\n\t\t\tans = Math.max(ans , rem - buy);\n\t\t\tbuy = Math.min(rem , buy );\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int buy,ans,rem; ans = Integer.MIN_VALUE; buy = sc.nextInt(); for(int i = 1 ; i < n ; i++ ) { rem = sc.nextInt(); ans = Math.max(ans , rem - buy); buy = Math.min(rem , buy ); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 13, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 79, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 8, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint v = Integer.parseInt(line);\n\t\tint[] vs = new int[v];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}\n\n\t\tint min = vs[0];\n\t\tint max = vs[1]-vs[0];\n\t\tfor (int i = 1; i < v; i++) {\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint v = Integer.parseInt(line);\n\t\tint[] vs = new int[v];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}\n\n\t\tint min = vs[0];\n\t\tint max = vs[1]-vs[0];\n\t\tfor (int i = 1; i < v; i++) {\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "Main", "public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint v = Integer.parseInt(line);\n\t\tint[] vs = new int[v];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}\n\n\t\tint min = vs[0];\n\t\tint max = vs[1]-vs[0];\n\t\tfor (int i = 1; i < v; i++) {\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint v = Integer.parseInt(line);\n\t\tint[] vs = new int[v];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}\n\n\t\tint min = vs[0];\n\t\tint max = vs[1]-vs[0];\n\t\tfor (int i = 1; i < v; i++) {\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "int v = Integer.parseInt(line);", "v", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "int[] vs = new int[v];", "vs", "new int[v]", "v", "for (int i = 0; i < v; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < v", "i", "v", "i++", "i++", "i", "{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}", "{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}", "String line2 = sc.nextLine();", "line2", "sc.nextLine()", "sc.nextLine", "sc", "vs[i] = Integer.parseInt(line2)", "vs[i]", "vs", "i", "Integer.parseInt(line2)", "Integer.parseInt", "Integer", "line2", "int min = vs[0];", "min", "vs[0]", "vs", "0", "int max = vs[1]-vs[0];", "max", "vs[1]-vs[0]", "vs[1]", "vs", "1", "vs[0]", "vs", "0", "for (int i = 1; i < v; i++) {\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < v", "i", "v", "i++", "i++", "i", "{\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}", "{\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}", "if (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}", "max<vs[i]-min", "max", "vs[i]-min", "vs[i]", "vs", "i", "min", "{\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}", "max=vs[i]-min", "max", "vs[i]-min", "vs[i]", "vs", "i", "min", "if (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}", "min>vs[i]", "min", "vs[i]", "vs", "i", "{\n\t\t\t\tmin=vs[i];\n\t\t\t}", "min=vs[i]", "min", "vs[i]", "vs", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] arges", "arges", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint v = Integer.parseInt(line);\n\t\tint[] vs = new int[v];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}\n\n\t\tint min = vs[0];\n\t\tint max = vs[1]-vs[0];\n\t\tfor (int i = 1; i < v; i++) {\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint v = Integer.parseInt(line);\n\t\tint[] vs = new int[v];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tvs[i] = Integer.parseInt(line2);\n\t\t}\n\n\t\tint min = vs[0];\n\t\tint max = vs[1]-vs[0];\n\t\tfor (int i = 1; i < v; i++) {\n\t\t\tif (max<vs[i]-min) {\n\t\t\t\tmax=vs[i]-min;\n\t\t\t}\n\t\t\tif (min>vs[i]) {\n\t\t\t\tmin=vs[i];\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); int v = Integer.parseInt(line); int[] vs = new int[v]; for (int i = 0; i < v; i++) { String line2 = sc.nextLine(); vs[i] = Integer.parseInt(line2); } int min = vs[0]; int max = vs[1]-vs[0]; for (int i = 1; i < v; i++) { if (max<vs[i]-min) { max=vs[i]-min; } if (min>vs[i]) { min=vs[i]; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 40, 17, 41, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 65, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint n, max = -1000000000, minR;\n\t\t\n\t\tn = sc.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR.add(sc.nextInt());\n\t\t}\n\t\t\n\t\tminR = R.get(0);\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint n, max = -1000000000, minR;\n\t\t\n\t\tn = sc.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR.add(sc.nextInt());\n\t\t}\n\t\t\n\t\tminR = R.get(0);\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint n, max = -1000000000, minR;\n\t\t\n\t\tn = sc.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR.add(sc.nextInt());\n\t\t}\n\t\t\n\t\tminR = R.get(0);\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint n, max = -1000000000, minR;\n\t\t\n\t\tn = sc.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR.add(sc.nextInt());\n\t\t}\n\t\t\n\t\tminR = R.get(0);\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<Integer> R = new ArrayList<Integer>();", "R", "new ArrayList<Integer>()", "int n", "n", "max = -1000000000", "max", "-1000000000", "1000000000", "minR;", "minR", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < n; i++){\n\t\t\tR.add(sc.nextInt());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tR.add(sc.nextInt());\n\t\t}", "{\n\t\t\tR.add(sc.nextInt());\n\t\t}", "R.add(sc.nextInt())", "R.add", "R", "sc.nextInt()", "sc.nextInt", "sc", "minR = R.get(0)", "minR", "R.get(0)", "R.get", "R", "0", "for(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}", "{\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}", "max = Math.max(max, R.get(i)-minR)", "max", "Math.max(max, R.get(i)-minR)", "Math.max", "Math", "max", "R.get(i)-minR", "R.get(i)", "R.get", "R", "i", "minR", "minR = Math.min(minR, R.get(i))", "minR", "Math.min(minR, R.get(i))", "Math.min", "Math", "minR", "R.get(i)", "R.get", "R", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint n, max = -1000000000, minR;\n\t\t\n\t\tn = sc.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR.add(sc.nextInt());\n\t\t}\n\t\t\n\t\tminR = R.get(0);\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint n, max = -1000000000, minR;\n\t\t\n\t\tn = sc.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR.add(sc.nextInt());\n\t\t}\n\t\t\n\t\tminR = R.get(0);\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, R.get(i)-minR);\n\t\t\tminR = Math.min(minR, R.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); ArrayList<Integer> R = new ArrayList<Integer>(); int n, max = -1000000000, minR; n = sc.nextInt(); for(int i = 0; i < n; i++){ R.add(sc.nextInt()); } minR = R.get(0); for(int i = 1; i < n; i++){ max = Math.max(max, R.get(i)-minR); minR = Math.min(minR, R.get(i)); } System.out.println(max); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 9, 0, 13, 8, 2, 13, 2, 13, 13, 2, 13, 13, 13, 0, 13, 8, 2, 13, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 90, 8 ], [ 90, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 43, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 43, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 69, 70 ], [ 69, 71 ], [ 63, 72 ], [ 43, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 75, 80 ], [ 11, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 9, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint minv = 0;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint minv = 0;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint minv = 0;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint minv = 0;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int minv = 0;", "minv", "0", "int maxv = Integer.MIN_VALUE;", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; i++) {\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}", "{\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}", "int input = Integer.parseInt(br.readLine());", "input", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}", "i == 0", "i", "0", "{\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}", "minv = input", "minv", "input", "continue;", "maxv = maxv < (input - minv) ? (input - minv) : maxv", "maxv", "maxv < (input - minv) ? (input - minv) : maxv", "maxv < (input - minv)", "maxv", "(input - minv)", "input", "minv", "(input - minv)", "input", "minv", "maxv", "minv = minv > input ? input : minv", "minv", "minv > input ? input : minv", "minv > input", "minv", "input", "input", "minv", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint minv = 0;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint minv = 0;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tif (i == 0) {\n\t\t\t\tminv = input;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = maxv < (input - minv) ? (input - minv) : maxv;\n\t\t\tminv = minv > input ? input : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int minv = 0; int maxv = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { int input = Integer.parseInt(br.readLine()); if (i == 0) { minv = input; continue; } maxv = maxv < (input - minv) ? (input - minv) : maxv; minv = minv > input ? input : minv; } System.out.println(maxv); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 42, 2, 2, 17, 18, 13, 13, 2, 18, 13, 13, 4, 18, 13, 17, 17, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 8, 2, 13, 2, 18, 13, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 8, 2, 13, 18, 13, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 135, 5 ], [ 135, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 14, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 45, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 8, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 94, 95 ], [ 83, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 100, 108 ], [ 100, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 97, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 116, 123 ], [ 123, 124 ], [ 123, 125 ], [ 8, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 6, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.util.Scanner;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n\tScanner In = new Scanner(System.in);\n\n\tint n;\n\n\tdo\n\t {\n\t\tn = In.nextInt();\n\t }while(n <= 2 && n >= 200000);\n\n\tint []a = new int[n];\n\n\tfor(int i = 0; i < n; i++)\n\t {\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }\n\n\tint minv = a[0];\n\tint maxv = a[1] - a[0];\n\n\tfor(int j = 1; j <= n-1; j++)\n\t {\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }\n\tSystem.out.println(maxv);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n public static void main(String[] args)\n {\n\tScanner In = new Scanner(System.in);\n\n\tint n;\n\n\tdo\n\t {\n\t\tn = In.nextInt();\n\t }while(n <= 2 && n >= 200000);\n\n\tint []a = new int[n];\n\n\tfor(int i = 0; i < n; i++)\n\t {\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }\n\n\tint minv = a[0];\n\tint maxv = a[1] - a[0];\n\n\tfor(int j = 1; j <= n-1; j++)\n\t {\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }\n\tSystem.out.println(maxv);\n }\n}", "Main", "public static void main(String[] args)\n {\n\tScanner In = new Scanner(System.in);\n\n\tint n;\n\n\tdo\n\t {\n\t\tn = In.nextInt();\n\t }while(n <= 2 && n >= 200000);\n\n\tint []a = new int[n];\n\n\tfor(int i = 0; i < n; i++)\n\t {\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }\n\n\tint minv = a[0];\n\tint maxv = a[1] - a[0];\n\n\tfor(int j = 1; j <= n-1; j++)\n\t {\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }\n\tSystem.out.println(maxv);\n }", "main", "{\n\tScanner In = new Scanner(System.in);\n\n\tint n;\n\n\tdo\n\t {\n\t\tn = In.nextInt();\n\t }while(n <= 2 && n >= 200000);\n\n\tint []a = new int[n];\n\n\tfor(int i = 0; i < n; i++)\n\t {\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }\n\n\tint minv = a[0];\n\tint maxv = a[1] - a[0];\n\n\tfor(int j = 1; j <= n-1; j++)\n\t {\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }\n\tSystem.out.println(maxv);\n }", "Scanner In = new Scanner(System.in);", "In", "new Scanner(System.in)", "int n;", "n", "do\n\t {\n\t\tn = In.nextInt();\n\t }while(n <= 2 && n >= 200000);", "n <= 2 && n >= 200000", "n <= 2", "n", "2", "n >= 200000", "n", "200000", "{\n\t\tn = In.nextInt();\n\t }", "n = In.nextInt()", "n", "In.nextInt()", "In.nextInt", "In", "int []a = new int[n];", "a", "new int[n]", "n", "for(int i = 0; i < n; i++)\n\t {\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }", "{\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }", "do\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));", "1 >= a[i] && a[i] >= Math.pow(10,9)", "1 >= a[i]", "1", "a[i]", "a", "i", "a[i] >= Math.pow(10,9)", "a[i]", "a", "i", "Math.pow(10,9)", "Math.pow", "Math", "10", "9", "{\n\t\t\ta[i] = In.nextInt();\n\t\t }", "a[i] = In.nextInt()", "a[i]", "a", "i", "In.nextInt()", "In.nextInt", "In", "int minv = a[0];", "minv", "a[0]", "a", "0", "int maxv = a[1] - a[0];", "maxv", "a[1] - a[0]", "a[1]", "a", "1", "a[0]", "a", "0", "for(int j = 1; j <= n-1; j++)\n\t {\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }", "int j = 1;", "int j = 1;", "j", "1", "j <= n-1", "j", "n-1", "n", "1", "j++", "j++", "j", "{\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }", "{\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }", "maxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv)", "maxv", "maxv > (a[j] - minv) ? maxv : (a[j] - minv)", "maxv > (a[j] - minv)", "maxv", "(a[j] - minv)", "a[j]", "a", "j", "minv", "maxv", "(a[j] - minv)", "a[j]", "a", "j", "minv", "minv = minv < a[j] ? minv : a[j]", "minv", "minv < a[j] ? minv : a[j]", "minv < a[j]", "minv", "a[j]", "a", "j", "minv", "a[j]", "a", "j", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args", "public class Main\n{\n public static void main(String[] args)\n {\n\tScanner In = new Scanner(System.in);\n\n\tint n;\n\n\tdo\n\t {\n\t\tn = In.nextInt();\n\t }while(n <= 2 && n >= 200000);\n\n\tint []a = new int[n];\n\n\tfor(int i = 0; i < n; i++)\n\t {\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }\n\n\tint minv = a[0];\n\tint maxv = a[1] - a[0];\n\n\tfor(int j = 1; j <= n-1; j++)\n\t {\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }\n\tSystem.out.println(maxv);\n }\n}", "public class Main\n{\n public static void main(String[] args)\n {\n\tScanner In = new Scanner(System.in);\n\n\tint n;\n\n\tdo\n\t {\n\t\tn = In.nextInt();\n\t }while(n <= 2 && n >= 200000);\n\n\tint []a = new int[n];\n\n\tfor(int i = 0; i < n; i++)\n\t {\n\t\tdo\t \n\t\t {\n\t\t\ta[i] = In.nextInt();\n\t\t }while(1 >= a[i] && a[i] >= Math.pow(10,9));\n\t }\n\n\tint minv = a[0];\n\tint maxv = a[1] - a[0];\n\n\tfor(int j = 1; j <= n-1; j++)\n\t {\n\t\tmaxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv);\n\t\tminv = minv < a[j] ? minv : a[j];\n\t }\n\tSystem.out.println(maxv);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner In = new Scanner(System.in); int n; do { n = In.nextInt(); }while(n <= 2 && n >= 200000); int []a = new int[n]; for(int i = 0; i < n; i++) { do { a[i] = In.nextInt(); }while(1 >= a[i] && a[i] >= Math.pow(10,9)); } int minv = a[0]; int maxv = a[1] - a[0]; for(int j = 1; j <= n-1; j++) { maxv = maxv > (a[j] - minv) ? maxv : (a[j] - minv); minv = minv < a[j] ? minv : a[j]; } System.out.println(maxv); } }
[ 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, 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, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 14, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 14, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 79, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 14, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 12, 114 ], [ 114, 115 ] ]
[ "\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 int n = Integer.parseInt( br.readLine() );\n\n int[] R = new int[n];\n\n for(int i = 0; i < n; i++){\n\n\t R[i] = Integer.parseInt( br.readLine() );\n\n }\n\n int maxv = R[1] - R[0];\n int minv = R[0];\n\n for(int j = 1 ; j < n ;j++){\n\n\t if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }\n\n\t if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }\n\n }\n\n\n System.out.println(maxv);\n\n\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt( br.readLine() );\n\n int[] R = new int[n];\n\n for(int i = 0; i < n; i++){\n\n\t R[i] = Integer.parseInt( br.readLine() );\n\n }\n\n int maxv = R[1] - R[0];\n int minv = R[0];\n\n for(int j = 1 ; j < n ;j++){\n\n\t if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }\n\n\t if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }\n\n }\n\n\n System.out.println(maxv);\n\n\n }\n}", "Main", "public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt( br.readLine() );\n\n int[] R = new int[n];\n\n for(int i = 0; i < n; i++){\n\n\t R[i] = Integer.parseInt( br.readLine() );\n\n }\n\n int maxv = R[1] - R[0];\n int minv = R[0];\n\n for(int j = 1 ; j < n ;j++){\n\n\t if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }\n\n\t if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }\n\n }\n\n\n System.out.println(maxv);\n\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt( br.readLine() );\n\n int[] R = new int[n];\n\n for(int i = 0; i < n; i++){\n\n\t R[i] = Integer.parseInt( br.readLine() );\n\n }\n\n int maxv = R[1] - R[0];\n int minv = R[0];\n\n for(int j = 1 ; j < n ;j++){\n\n\t if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }\n\n\t if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }\n\n }\n\n\n System.out.println(maxv);\n\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt( br.readLine() );", "n", "Integer.parseInt( br.readLine() )", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] R = new int[n];", "R", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\n\t R[i] = Integer.parseInt( br.readLine() );\n\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t R[i] = Integer.parseInt( br.readLine() );\n\n }", "{\n\n\t R[i] = Integer.parseInt( br.readLine() );\n\n }", "R[i] = Integer.parseInt( br.readLine() )", "R[i]", "R", "i", "Integer.parseInt( br.readLine() )", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int maxv = R[1] - R[0];", "maxv", "R[1] - R[0]", "R[1]", "R", "1", "R[0]", "R", "0", "int minv = R[0];", "minv", "R[0]", "R", "0", "for(int j = 1 ; j < n ;j++){\n\n\t if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }\n\n\t if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }\n\n }", "int j = 1 ;", "int j = 1 ;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n\n\t if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }\n\n\t if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }\n\n }", "{\n\n\t if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }\n\n\t if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }\n\n }", "if(R[j]-minv > maxv ){\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }", "R[j]-minv > maxv", "R[j]-minv", "R[j]", "R", "j", "minv", "maxv", "{\n\t\t maxv = R[j]-minv;\n\t\t //System.out.println(\"maxv= \"+maxv);\n\t }", "maxv = R[j]-minv", "maxv", "R[j]-minv", "R[j]", "R", "j", "minv", "if(minv > R[j] ){\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }", "minv > R[j]", "minv", "R[j]", "R", "j", "{\n\t\t minv = R[j];\n\t\t // System.out.println(\"minv= \"+minv);\n\t }", "minv = R[j]", "minv", "R[j]", "R", "j", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String args[]", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt( br.readLine() ); int[] R = new int[n]; for(int i = 0; i < n; i++){ R[i] = Integer.parseInt( br.readLine() ); } int maxv = R[1] - R[0]; int minv = R[0]; for(int j = 1 ; j < n ;j++){ if(R[j]-minv > maxv ){ maxv = R[j]-minv; //System.out.println("maxv= "+maxv); } if(minv > R[j] ){ minv = R[j]; // System.out.println("minv= "+minv); } } System.out.println(maxv); } }
[ 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, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 17, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 18, 13, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 17, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 17, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 17, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 74, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 17, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 15, 109 ], [ 109, 110 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] numbers = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t numbers[i] = scanner.nextInt();\n\t\t}\n\t\tint min = numbers[0];\n\t\tlong max = -999999999999l;\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tif(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}\n\t\t\tif(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] numbers = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t numbers[i] = scanner.nextInt();\n\t\t}\n\t\tint min = numbers[0];\n\t\tlong max = -999999999999l;\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tif(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}\n\t\t\tif(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args)throws Exception{\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] numbers = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t numbers[i] = scanner.nextInt();\n\t\t}\n\t\tint min = numbers[0];\n\t\tlong max = -999999999999l;\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tif(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}\n\t\t\tif(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] numbers = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t numbers[i] = scanner.nextInt();\n\t\t}\n\t\tint min = numbers[0];\n\t\tlong max = -999999999999l;\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tif(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}\n\t\t\tif(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "BufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] numbers = new int[n];", "numbers", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\t\t numbers[i] = scanner.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t numbers[i] = scanner.nextInt();\n\t\t}", "{\n\t\t numbers[i] = scanner.nextInt();\n\t\t}", "numbers[i] = scanner.nextInt()", "numbers[i]", "numbers", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "int min = numbers[0];", "min", "numbers[0]", "numbers", "0", "long max = -999999999999l;", "max", "-999999999999l", "999999999999l", "for(int i = 1; i < n; i++){\n\t\t\tif(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}\n\t\t\tif(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}\n\t\t\tif(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}\n\t\t}", "{\n\t\t\tif(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}\n\t\t\tif(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}\n\t\t}", "if(numbers[i] - min > max){\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}", "numbers[i] - min > max", "numbers[i] - min", "numbers[i]", "numbers", "i", "min", "max", "{\n\t\t\t\tmax = numbers[i] - min;\n\t\t\t}", "max = numbers[i] - min", "max", "numbers[i] - min", "numbers[i]", "numbers", "i", "min", "if(numbers[i] < min){\n\t\t\t\tmin = numbers[i];\n\t\t\t}", "numbers[i] < min", "numbers[i]", "numbers", "i", "min", "{\n\t\t\t\tmin = numbers[i];\n\t\t\t}", "min = numbers[i]", "min", "numbers[i]", "numbers", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] numbers = new int[n]; for(int i = 0; i < n; i++){ numbers[i] = scanner.nextInt(); } int min = numbers[0]; long max = -999999999999l; for(int i = 1; i < n; i++){ if(numbers[i] - min > max){ max = numbers[i] - min; } if(numbers[i] < min){ min = numbers[i]; } } System.out.println(max); } }
[ 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 4, 18, 13, 13, 13, 30, 0, 13, 2, 4, 18, 13, 13, 13, 14, 2, 4, 18, 13, 13, 13, 30, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 112, 14 ], [ 112, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 17, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 17, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 17, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 71, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 70, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 90, 95 ], [ 89, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 17, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 15, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.sql.Array;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint len = scanner.nextInt();\n\t\tList<Integer> nums = new ArrayList<Integer>() ;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tnums.add(scanner.nextInt());\n\t\t}\n\t\t\n\t\tint min = nums.get(0);\n\t\tint profit = -1000000000;\n\t\tfor (int i = 1; i < len; i++) {\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(profit);\n\t}\n\n}", "import java.sql.Array;", "Array", "java.sql", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint len = scanner.nextInt();\n\t\tList<Integer> nums = new ArrayList<Integer>() ;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tnums.add(scanner.nextInt());\n\t\t}\n\t\t\n\t\tint min = nums.get(0);\n\t\tint profit = -1000000000;\n\t\tfor (int i = 1; i < len; i++) {\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(profit);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint len = scanner.nextInt();\n\t\tList<Integer> nums = new ArrayList<Integer>() ;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tnums.add(scanner.nextInt());\n\t\t}\n\t\t\n\t\tint min = nums.get(0);\n\t\tint profit = -1000000000;\n\t\tfor (int i = 1; i < len; i++) {\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(profit);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint len = scanner.nextInt();\n\t\tList<Integer> nums = new ArrayList<Integer>() ;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tnums.add(scanner.nextInt());\n\t\t}\n\t\t\n\t\tint min = nums.get(0);\n\t\tint profit = -1000000000;\n\t\tfor (int i = 1; i < len; i++) {\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(profit);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int len = scanner.nextInt();", "len", "scanner.nextInt()", "scanner.nextInt", "scanner", "List<Integer> nums = new ArrayList<Integer>() ;", "nums", "new ArrayList<Integer>()", "for (int i = 0; i < len; i++) {\n\t\t\tnums.add(scanner.nextInt());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < len", "i", "len", "i++", "i++", "i", "{\n\t\t\tnums.add(scanner.nextInt());\n\t\t}", "{\n\t\t\tnums.add(scanner.nextInt());\n\t\t}", "nums.add(scanner.nextInt())", "nums.add", "nums", "scanner.nextInt()", "scanner.nextInt", "scanner", "int min = nums.get(0);", "min", "nums.get(0)", "nums.get", "nums", "0", "int profit = -1000000000;", "profit", "-1000000000", "1000000000", "for (int i = 1; i < len; i++) {\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < len", "i", "len", "i++", "i++", "i", "{\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}", "{\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}", "if (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}", "profit<(nums.get(i)-min)", "profit", "(nums.get(i)-min)", "nums.get(i)", "nums.get", "nums", "i", "min", "{\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}", "profit = nums.get(i)-min", "profit", "nums.get(i)-min", "nums.get(i)", "nums.get", "nums", "i", "min", "if (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}", "nums.get(i)<min", "nums.get(i)", "nums.get", "nums", "i", "min", "{\n\t\t\t\tmin = nums.get(i);\n\t\t\t}", "min = nums.get(i)", "min", "nums.get(i)", "nums.get", "nums", "i", "System.out.println(profit)", "System.out.println", "System.out", "System", "System.out", "profit", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint len = scanner.nextInt();\n\t\tList<Integer> nums = new ArrayList<Integer>() ;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tnums.add(scanner.nextInt());\n\t\t}\n\t\t\n\t\tint min = nums.get(0);\n\t\tint profit = -1000000000;\n\t\tfor (int i = 1; i < len; i++) {\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(profit);\n\t}\n\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint len = scanner.nextInt();\n\t\tList<Integer> nums = new ArrayList<Integer>() ;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tnums.add(scanner.nextInt());\n\t\t}\n\t\t\n\t\tint min = nums.get(0);\n\t\tint profit = -1000000000;\n\t\tfor (int i = 1; i < len; i++) {\n\t\t\tif (profit<(nums.get(i)-min)) {\n\t\t\t\tprofit = nums.get(i)-min;\n\t\t\t}\n\t\t\tif (nums.get(i)<min) {\n\t\t\t\tmin = nums.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(profit);\n\t}\n\n}", "Main" ]
import java.sql.Array; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int len = scanner.nextInt(); List<Integer> nums = new ArrayList<Integer>() ; for (int i = 0; i < len; i++) { nums.add(scanner.nextInt()); } int min = nums.get(0); int profit = -1000000000; for (int i = 1; i < len; i++) { if (profit<(nums.get(i)-min)) { profit = nums.get(i)-min; } if (nums.get(i)<min) { min = nums.get(i); } } System.out.println(profit); } }
[ 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, 18, 13, 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, 4, 18, 13, 0, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 115, 11 ], [ 115, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 14, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 77, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 14, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 12, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(in.readLine()), maximum = Integer.MIN_VALUE, minimum;\n\t\tint[] timeRate = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tminimum = timeRate[0];\n\t\tfor (int x = 1; x < n; x++) {\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maximum);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(in.readLine()), maximum = Integer.MIN_VALUE, minimum;\n\t\tint[] timeRate = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tminimum = timeRate[0];\n\t\tfor (int x = 1; x < n; x++) {\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maximum);\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(in.readLine()), maximum = Integer.MIN_VALUE, minimum;\n\t\tint[] timeRate = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tminimum = timeRate[0];\n\t\tfor (int x = 1; x < n; x++) {\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maximum);\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(in.readLine()), maximum = Integer.MIN_VALUE, minimum;\n\t\tint[] timeRate = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tminimum = timeRate[0];\n\t\tfor (int x = 1; x < n; x++) {\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maximum);\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(in.readLine())", "n", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "maximum = Integer.MIN_VALUE", "maximum", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "minimum;", "minimum", "int[] timeRate = new int[n];", "timeRate", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}", "{\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}", "timeRate[i] = Integer.parseInt(in.readLine())", "timeRate[i]", "timeRate", "i", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "minimum = timeRate[0]", "minimum", "timeRate[0]", "timeRate", "0", "for (int x = 1; x < n; x++) {\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}", "int x = 1;", "int x = 1;", "x", "1", "x < n", "x", "n", "x++", "x++", "x", "{\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}", "{\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}", "if (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}", "maximum < timeRate[x] - minimum", "maximum", "timeRate[x] - minimum", "timeRate[x]", "timeRate", "x", "minimum", "{\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}", "maximum = timeRate[x] - minimum", "maximum", "timeRate[x] - minimum", "timeRate[x]", "timeRate", "x", "minimum", "if (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}", "minimum > timeRate[x]", "minimum", "timeRate[x]", "timeRate", "x", "{\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}", "minimum = timeRate[x]", "minimum", "timeRate[x]", "timeRate", "x", "System.out.println(maximum)", "System.out.println", "System.out", "System", "System.out", "maximum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(in.readLine()), maximum = Integer.MIN_VALUE, minimum;\n\t\tint[] timeRate = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tminimum = timeRate[0];\n\t\tfor (int x = 1; x < n; x++) {\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maximum);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(in.readLine()), maximum = Integer.MIN_VALUE, minimum;\n\t\tint[] timeRate = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttimeRate[i] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tminimum = timeRate[0];\n\t\tfor (int x = 1; x < n; x++) {\n\t\t\tif (maximum < timeRate[x] - minimum) {\n\t\t\t\tmaximum = timeRate[x] - minimum;\n\t\t\t}\n\t\t\tif (minimum > timeRate[x]) {\n\t\t\t\tminimum = timeRate[x];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maximum);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(in.readLine()), maximum = Integer.MIN_VALUE, minimum; int[] timeRate = new int[n]; for (int i = 0; i < n; i++) { timeRate[i] = Integer.parseInt(in.readLine()); } minimum = timeRate[0]; for (int x = 1; x < n; x++) { if (maximum < timeRate[x] - minimum) { maximum = timeRate[x] - minimum; } if (minimum > timeRate[x]) { minimum = timeRate[x]; } } System.out.println(maximum); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 14, 2, 13, 17, 30, 4, 18, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 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, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 13, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 124, 5 ], [ 124, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 12, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 31, 40 ], [ 40, 41 ], [ 40, 42 ], [ 31, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 31, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 31, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 31, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 80, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 97, 105 ], [ 94, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 31, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 6, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}\n\n\t}", "main", "{\n\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}\n\n\t}", "Scanner sc = null;", "sc", "null", "try {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}", "catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "Exception e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}", "if (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}", "sc != null", "sc", "null", "{\n\t\t\t\tsc.close();\n\t\t\t}", "sc.close()", "sc.close", "sc", "{\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "int lineNum = sc.nextInt();", "lineNum", "sc.nextInt()", "sc.nextInt", "sc", "int[] pliceList = new int[lineNum];", "pliceList", "new int[lineNum]", "lineNum", "for (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < pliceList.length", "i", "pliceList.length", "pliceList", "pliceList.length", "i++", "i++", "i", "{\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}", "pliceList[i] = sc.nextInt()", "pliceList[i]", "pliceList", "i", "sc.nextInt()", "sc.nextInt", "sc", "int profit = pliceList[1] - pliceList[0];", "profit", "pliceList[1] - pliceList[0]", "pliceList[1]", "pliceList", "1", "pliceList[0]", "pliceList", "0", "int minplice = pliceList[0];", "minplice", "pliceList[0]", "pliceList", "0", "for (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < pliceList.length", "i", "pliceList.length", "pliceList", "pliceList.length", "i++", "i++", "i", "{\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}", "{\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}", "profit = Math.max(pliceList[i] - minplice, profit)", "profit", "Math.max(pliceList[i] - minplice, profit)", "Math.max", "Math", "pliceList[i] - minplice", "pliceList[i]", "pliceList", "i", "minplice", "profit", "minplice = Math.min(pliceList[i], minplice)", "minplice", "Math.min(pliceList[i], minplice)", "Math.min", "Math", "pliceList[i]", "pliceList", "i", "minplice", "System.out.println(profit)", "System.out.println", "System.out", "System", "System.out", "profit", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\t\t\t//?????°???????????????\n\t\t\tint lineNum = sc.nextInt();\n\n\t\t\t//???????????????\n\t\t\tint[] pliceList = new int[lineNum];\n\t\t\tfor (int i = 0; i < pliceList.length; i++) {\n\t\t\t\tpliceList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//???????¨????(roop)\n\t\t\tint profit = pliceList[1] - pliceList[0];\n\t\t\tint minplice = pliceList[0];\n\n\t\t\tfor (int i = 1; i < pliceList.length; i++) {\n\t\t\t\t//?????§???????????´??°\n\t\t\t\tprofit = Math.max(pliceList[i] - minplice, profit);\n\t\t\t\t//????°????????±???????\n\t\t\t\tminplice = Math.min(pliceList[i], minplice);\n\n\t\t\t}\n\t\t\t//????????????\n\t\t\tSystem.out.println(profit);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\tsc.close();\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = null; try { sc = new Scanner(System.in); //?????°??????????????? int lineNum = sc.nextInt(); //??????????????? int[] pliceList = new int[lineNum]; for (int i = 0; i < pliceList.length; i++) { pliceList[i] = sc.nextInt(); } //???????¨????(roop) int profit = pliceList[1] - pliceList[0]; int minplice = pliceList[0]; for (int i = 1; i < pliceList.length; i++) { //?????§???????????´??° profit = Math.max(pliceList[i] - minplice, profit); //????°????????±??????? minplice = Math.min(pliceList[i], minplice); } //???????????? System.out.println(profit); }catch (Exception e) { System.out.println(e); } finally { if (sc != null) { sc.close(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 18, 13, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 9, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 18, 13, 13, 18, 13, 13, 30, 0, 13, 2, 18, 13, 13, 18, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 41 ], [ 41, 42 ], [ 41, 43 ], [ 14, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 90, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 101, 102 ], [ 90, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 125, 127 ], [ 115, 128 ], [ 128, 129 ], [ 128, 130 ], [ 115, 131 ], [ 131, 132 ], [ 131, 133 ], [ 80, 134 ], [ 134, 135 ], [ 134, 136 ], [ 14, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 12, 143 ], [ 143, 144 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}}", "Main", "public static void main(String[] args) throws IOException {\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] in = new int[n];", "in", "new int[n]", "n", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int mini = 0;", "mini", "0", "int maxj=0;", "maxj", "0", "boolean con=false;", "con", "false", "for (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = Integer.parseInt(br.readLine());", "in[i] = Integer.parseInt(br.readLine())", "in[i]", "in", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n - 1", "i", "n - 1", "n", "1", "i++", "i++", "i", "{\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}", "{\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}", "if (in[i] > in[mini])continue;", "in[i] > in[mini]", "in[i]", "in", "i", "in[mini]", "in", "mini", "continue;", "for (int j = i + 1; j < n; j++){\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}", "int j = i + 1;", "int j = i + 1;", "j", "i + 1", "i", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\tif(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}", "if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}", "max+in[i]<in[j]", "max+in[i]", "max", "in[i]", "in", "i", "in[j]", "in", "j", "{\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}", "max=in[j]-in[i]", "max", "in[j]-in[i]", "in[j]", "in", "j", "in[i]", "in", "i", "mini=i", "mini", "i", "maxj=j", "maxj", "j", "con=false", "con", "false", "con=true", "con", "true", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] in = new int[n]; int max = Integer.MIN_VALUE; int mini = 0; int maxj=0; boolean con=false; for (int i = 0; i < n; i++) in[i] = Integer.parseInt(br.readLine()); for (int i = 0; i < n - 1; i++) { if (in[i] > in[mini])continue; for (int j = i + 1; j < n; j++){ if(max+in[i]<in[j]){ max=in[j]-in[i]; mini=i; maxj=j; con=false; } }con=true; } System.out.println(max); }}
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 40, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 42, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 42, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int[] a = new int[n];\n int maxv = -2000000000;\n int minv = stdIn.nextInt();\n for (int i = 1; i < n; i++) {\n a[i] = stdIn.nextInt();\n maxv = Math.max(maxv, a[i] - minv);\n minv = Math.min(minv, a[i]);\n }\n System.out.println(maxv);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int[] a = new int[n];\n int maxv = -2000000000;\n int minv = stdIn.nextInt();\n for (int i = 1; i < n; i++) {\n a[i] = stdIn.nextInt();\n maxv = Math.max(maxv, a[i] - minv);\n minv = Math.min(minv, a[i]);\n }\n System.out.println(maxv);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int[] a = new int[n];\n int maxv = -2000000000;\n int minv = stdIn.nextInt();\n for (int i = 1; i < n; i++) {\n a[i] = stdIn.nextInt();\n maxv = Math.max(maxv, a[i] - minv);\n minv = Math.min(minv, a[i]);\n }\n System.out.println(maxv);\n }", "main", "{\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int[] a = new int[n];\n int maxv = -2000000000;\n int minv = stdIn.nextInt();\n for (int i = 1; i < n; i++) {\n a[i] = stdIn.nextInt();\n maxv = Math.max(maxv, a[i] - minv);\n minv = Math.min(minv, a[i]);\n }\n System.out.println(maxv);\n }", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int[] a = new int[n];", "a", "new int[n]", "n", "int maxv = -2000000000;", "maxv", "-2000000000", "2000000000", "int minv = stdIn.nextInt();", "minv", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "for (int i = 1; i < n; i++) {\n a[i] = stdIn.nextInt();\n maxv = Math.max(maxv, a[i] - minv);\n minv = Math.min(minv, a[i]);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = stdIn.nextInt();\n maxv = Math.max(maxv, a[i] - minv);\n minv = Math.min(minv, a[i]);\n }", "{\n a[i] = stdIn.nextInt();\n maxv = Math.max(maxv, a[i] - minv);\n minv = Math.min(minv, a[i]);\n }", "a[i] = stdIn.nextInt()", "a[i]", "a", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "maxv = Math.max(maxv, a[i] - minv)", "maxv", "Math.max(maxv, a[i] - minv)", "Math.max", "Math", "maxv", "a[i] - minv", "a[i]", "a", "i", "minv", "minv = Math.min(minv, a[i])", "minv", "Math.min(minv, a[i])", "Math.min", "Math", "minv", "a[i]", "a", "i", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int[] a = new int[n]; int maxv = -2000000000; int minv = stdIn.nextInt(); for (int i = 1; i < n; i++) { a[i] = stdIn.nextInt(); maxv = Math.max(maxv, a[i] - minv); minv = Math.min(minv, a[i]); } System.out.println(maxv); } }
[ 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, 4, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 13, 18, 13, 17, 0, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 13, 13, 0, 13, 2, 18, 13, 13, 13, 14, 2, 18, 13, 13, 13, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 18, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 18, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 34, 40 ], [ 40, 41 ], [ 17, 42 ], [ 42, 43 ], [ 15, 44 ], [ 44, 45 ], [ 13, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 59, 68 ], [ 68, 69 ], [ 68, 70 ], [ 59, 72 ], [ 72, 73 ], [ 59, 74 ], [ 74, 75 ], [ 59, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 59, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 59, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 59, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 107, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 121, 127 ], [ 120, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 119, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 135, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 59, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 46, 152 ], [ 152, 153 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nimport javax.lang.model.util.ElementScanner6;\n\nclass Main {\n public static boolean isPrime(int a) {\n for (int i = 2; i <= Math.sqrt(a); i++) {\n if (a % i == 0)\n return false;\n }\n return true;\n }\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int nums[] = new int[n];\n int max, min;\n for (int i = 0; i < n; i++)\n nums[i] = Integer.parseInt(br.readLine());\n\n /*\n * for (int i = 1; i < n; i++) { for (int j = 0; j < i; j++) { if (nums[i] -\n * nums[j] > max) max = nums[i] - nums[j]; } }\n */\n min = nums[0];\n max = -1000000000;\n for (int i = 1; i < n; i++) {\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }\n System.out.println(max);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import javax.lang.model.util.ElementScanner6;", "ElementScanner6", "javax.lang.model.util", "class Main {\n public static boolean isPrime(int a) {\n for (int i = 2; i <= Math.sqrt(a); i++) {\n if (a % i == 0)\n return false;\n }\n return true;\n }\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int nums[] = new int[n];\n int max, min;\n for (int i = 0; i < n; i++)\n nums[i] = Integer.parseInt(br.readLine());\n\n /*\n * for (int i = 1; i < n; i++) { for (int j = 0; j < i; j++) { if (nums[i] -\n * nums[j] > max) max = nums[i] - nums[j]; } }\n */\n min = nums[0];\n max = -1000000000;\n for (int i = 1; i < n; i++) {\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }\n System.out.println(max);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n}", "Main", "public static boolean isPrime(int a) {\n for (int i = 2; i <= Math.sqrt(a); i++) {\n if (a % i == 0)\n return false;\n }\n return true;\n }", "isPrime", "{\n for (int i = 2; i <= Math.sqrt(a); i++) {\n if (a % i == 0)\n return false;\n }\n return true;\n }", "for (int i = 2; i <= Math.sqrt(a); i++) {\n if (a % i == 0)\n return false;\n }", "int i = 2;", "int i = 2;", "i", "2", "i <= Math.sqrt(a)", "i", "Math.sqrt(a)", "Math.sqrt", "Math", "a", "i++", "i++", "i", "{\n if (a % i == 0)\n return false;\n }", "{\n if (a % i == 0)\n return false;\n }", "if (a % i == 0)\n return false;", "a % i == 0", "a % i", "a", "i", "0", "return false;", "false", "return true;", "true", "int a", "a", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int nums[] = new int[n];\n int max, min;\n for (int i = 0; i < n; i++)\n nums[i] = Integer.parseInt(br.readLine());\n\n /*\n * for (int i = 1; i < n; i++) { for (int j = 0; j < i; j++) { if (nums[i] -\n * nums[j] > max) max = nums[i] - nums[j]; } }\n */\n min = nums[0];\n max = -1000000000;\n for (int i = 1; i < n; i++) {\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }\n System.out.println(max);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int nums[] = new int[n];\n int max, min;\n for (int i = 0; i < n; i++)\n nums[i] = Integer.parseInt(br.readLine());\n\n /*\n * for (int i = 1; i < n; i++) { for (int j = 0; j < i; j++) { if (nums[i] -\n * nums[j] > max) max = nums[i] - nums[j]; } }\n */\n min = nums[0];\n max = -1000000000;\n for (int i = 1; i < n; i++) {\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }\n System.out.println(max);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n int n = Integer.parseInt(br.readLine());\n int nums[] = new int[n];\n int max, min;\n for (int i = 0; i < n; i++)\n nums[i] = Integer.parseInt(br.readLine());\n\n /*\n * for (int i = 1; i < n; i++) { for (int j = 0; j < i; j++) { if (nums[i] -\n * nums[j] > max) max = nums[i] - nums[j]; } }\n */\n min = nums[0];\n max = -1000000000;\n for (int i = 1; i < n; i++) {\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }\n System.out.println(max);\n\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n int n = Integer.parseInt(br.readLine());\n int nums[] = new int[n];\n int max, min;\n for (int i = 0; i < n; i++)\n nums[i] = Integer.parseInt(br.readLine());\n\n /*\n * for (int i = 1; i < n; i++) { for (int j = 0; j < i; j++) { if (nums[i] -\n * nums[j] > max) max = nums[i] - nums[j]; } }\n */\n min = nums[0];\n max = -1000000000;\n for (int i = 1; i < n; i++) {\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }\n System.out.println(max);\n\n }", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int nums[] = new int[n];", "nums", "new int[n]", "n", "int max", "max", "min;", "min", "for (int i = 0; i < n; i++)\n nums[i] = Integer.parseInt(br.readLine());", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "nums[i] = Integer.parseInt(br.readLine());", "nums[i] = Integer.parseInt(br.readLine())", "nums[i]", "nums", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "min = nums[0]", "min", "nums[0]", "nums", "0", "max = -1000000000", "max", "-1000000000", "1000000000", "for (int i = 1; i < n; i++) {\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }", "{\n if (nums[i] - min > max)\n max = nums[i] - min;\n if (nums[i] < min)\n min = nums[i];\n }", "if (nums[i] - min > max)\n max = nums[i] - min;", "nums[i] - min > max", "nums[i] - min", "nums[i]", "nums", "i", "min", "max", "max = nums[i] - min", "max", "nums[i] - min", "nums[i]", "nums", "i", "min", "if (nums[i] < min)\n min = nums[i];", "nums[i] < min", "nums[i]", "nums", "i", "min", "min = nums[i]", "min", "nums[i]", "nums", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import javax.lang.model.util.ElementScanner6; class Main { public static boolean isPrime(int a) { for (int i = 2; i <= Math.sqrt(a); i++) { if (a % i == 0) return false; } return true; } public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { int n = Integer.parseInt(br.readLine()); int nums[] = new int[n]; int max, min; for (int i = 0; i < n; i++) nums[i] = Integer.parseInt(br.readLine()); /* * for (int i = 1; i < n; i++) { for (int j = 0; j < i; j++) { if (nums[i] - * nums[j] > max) max = nums[i] - nums[j]; } } */ min = nums[0]; max = -1000000000; for (int i = 1; i < n; i++) { if (nums[i] - min > max) max = nums[i] - min; if (nums[i] < min) min = nums[i]; } System.out.println(max); } catch (IOException e) { e.printStackTrace(); } } }
[ 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, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 18, 13, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 114, 5 ], [ 114, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 73, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 8, 108 ], [ 108, 109 ], [ 109, 110 ], [ 6, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = Integer.valueOf(scan.next());\n int[] ns = new int[n];\n for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next());\n }\n int min = ns[0];\n int max = ns[1]-ns[0];\n for(int i=1;i<n;i++) {\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }\n System.out.println(max);\n scan.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = Integer.valueOf(scan.next());\n int[] ns = new int[n];\n for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next());\n }\n int min = ns[0];\n int max = ns[1]-ns[0];\n for(int i=1;i<n;i++) {\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }\n System.out.println(max);\n scan.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = Integer.valueOf(scan.next());\n int[] ns = new int[n];\n for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next());\n }\n int min = ns[0];\n int max = ns[1]-ns[0];\n for(int i=1;i<n;i++) {\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }\n System.out.println(max);\n scan.close();\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = Integer.valueOf(scan.next());\n int[] ns = new int[n];\n for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next());\n }\n int min = ns[0];\n int max = ns[1]-ns[0];\n for(int i=1;i<n;i++) {\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }\n System.out.println(max);\n scan.close();\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = Integer.valueOf(scan.next());", "n", "Integer.valueOf(scan.next())", "Integer.valueOf", "Integer", "scan.next()", "scan.next", "scan", "int[] ns = new int[n];", "ns", "new int[n]", "n", "for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next());\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \tns[i] = Integer.valueOf(scan.next());\n }", "{\n \tns[i] = Integer.valueOf(scan.next());\n }", "ns[i] = Integer.valueOf(scan.next())", "ns[i]", "ns", "i", "Integer.valueOf(scan.next())", "Integer.valueOf", "Integer", "scan.next()", "scan.next", "scan", "int min = ns[0];", "min", "ns[0]", "ns", "0", "int max = ns[1]-ns[0];", "max", "ns[1]-ns[0]", "ns[1]", "ns", "1", "ns[0]", "ns", "0", "for(int i=1;i<n;i++) {\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }", "{\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }", "if(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}", "max < ns[i]-min", "max", "ns[i]-min", "ns[i]", "ns", "i", "min", "{\n \t\tmax = ns[i]-min;\n \t}", "max = ns[i]-min", "max", "ns[i]-min", "ns[i]", "ns", "i", "min", "if(ns[i] < min) {\n \t\tmin = ns[i];\n \t}", "ns[i] < min", "ns[i]", "ns", "i", "min", "{\n \t\tmin = ns[i];\n \t}", "min = ns[i]", "min", "ns[i]", "ns", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = Integer.valueOf(scan.next());\n int[] ns = new int[n];\n for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next());\n }\n int min = ns[0];\n int max = ns[1]-ns[0];\n for(int i=1;i<n;i++) {\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }\n System.out.println(max);\n scan.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = Integer.valueOf(scan.next());\n int[] ns = new int[n];\n for(int i=0;i<n;i++) {\n \tns[i] = Integer.valueOf(scan.next());\n }\n int min = ns[0];\n int max = ns[1]-ns[0];\n for(int i=1;i<n;i++) {\n \tif(max < ns[i]-min) {\n \t\tmax = ns[i]-min;\n \t}\n \tif(ns[i] < min) {\n \t\tmin = ns[i];\n \t}\n }\n System.out.println(max);\n scan.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = Integer.valueOf(scan.next()); int[] ns = new int[n]; for(int i=0;i<n;i++) { ns[i] = Integer.valueOf(scan.next()); } int min = ns[0]; int max = ns[1]-ns[0]; for(int i=1;i<n;i++) { if(max < ns[i]-min) { max = ns[i]-min; } if(ns[i] < min) { min = ns[i]; } } System.out.println(max); scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 41, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 44, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint ans = -999999999;\n\t\tint num;\n\t\tint sans;\n\t\tint minn = sc.nextInt();\n\t\t\n\t\tfor (int i=0; i<N-1; i++) {\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint ans = -999999999;\n\t\tint num;\n\t\tint sans;\n\t\tint minn = sc.nextInt();\n\t\t\n\t\tfor (int i=0; i<N-1; i++) {\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint ans = -999999999;\n\t\tint num;\n\t\tint sans;\n\t\tint minn = sc.nextInt();\n\t\t\n\t\tfor (int i=0; i<N-1; i++) {\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint ans = -999999999;\n\t\tint num;\n\t\tint sans;\n\t\tint minn = sc.nextInt();\n\t\t\n\t\tfor (int i=0; i<N-1; i++) {\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int ans = -999999999;", "ans", "-999999999", "999999999", "int num;", "num", "int sans;", "sans", "int minn = sc.nextInt();", "minn", "sc.nextInt()", "sc.nextInt", "sc", "for (int i=0; i<N-1; i++) {\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N-1", "i", "N-1", "N", "1", "i++", "i++", "i", "{\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}", "{\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}", "num = sc.nextInt()", "num", "sc.nextInt()", "sc.nextInt", "sc", "sans = num - minn", "sans", "num - minn", "num", "minn", "if(ans < sans) ans = sans;", "ans < sans", "ans", "sans", "ans = sans", "ans", "sans", "if(minn > num) minn = num;", "minn > num", "minn", "num", "minn = num", "minn", "num", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint ans = -999999999;\n\t\tint num;\n\t\tint sans;\n\t\tint minn = sc.nextInt();\n\t\t\n\t\tfor (int i=0; i<N-1; i++) {\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\t\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint ans = -999999999;\n\t\tint num;\n\t\tint sans;\n\t\tint minn = sc.nextInt();\n\t\t\n\t\tfor (int i=0; i<N-1; i++) {\n\t\t\tnum = sc.nextInt();\n\t\t\tsans = num - minn;\n\t\t\tif(ans < sans) ans = sans;\n\t\t\tif(minn > num) minn = num;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int ans = -999999999; int num; int sans; int minn = sc.nextInt(); for (int i=0; i<N-1; i++) { num = sc.nextInt(); sans = num - minn; if(ans < sans) ans = sans; if(minn > num) minn = num; } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 40, 17, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 13, 14, 2, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 121, 14 ], [ 121, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 17, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 17, 33 ], [ 33, 34 ], [ 33, 35 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 17, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 17, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 17, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 83, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 93, 98 ], [ 92, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 83, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 17, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 15, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.lang.Math;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tint i, max = -2147483646, currentmin, size, differ;\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tsize = Integer.parseInt(in.nextLine());\n\t\tfor(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine()));\n\t\t\n\t\tcurrentmin = numbers.get(0);\n\t\tfor(i = 1; i < size; i++){\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n\tpublic static void main(String[] args){\n\t\tint i, max = -2147483646, currentmin, size, differ;\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tsize = Integer.parseInt(in.nextLine());\n\t\tfor(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine()));\n\t\t\n\t\tcurrentmin = numbers.get(0);\n\t\tfor(i = 1; i < size; i++){\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tint i, max = -2147483646, currentmin, size, differ;\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tsize = Integer.parseInt(in.nextLine());\n\t\tfor(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine()));\n\t\t\n\t\tcurrentmin = numbers.get(0);\n\t\tfor(i = 1; i < size; i++){\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "main", "{\n\t\tint i, max = -2147483646, currentmin, size, differ;\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tsize = Integer.parseInt(in.nextLine());\n\t\tfor(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine()));\n\t\t\n\t\tcurrentmin = numbers.get(0);\n\t\tfor(i = 1; i < size; i++){\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "int i", "i", "max = -2147483646", "max", "-2147483646", "2147483646", "currentmin", "currentmin", "size", "size", "differ;", "differ", "List<Integer> numbers = new ArrayList<Integer>();", "numbers", "new ArrayList<Integer>()", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "size = Integer.parseInt(in.nextLine())", "size", "Integer.parseInt(in.nextLine())", "Integer.parseInt", "Integer", "in.nextLine()", "in.nextLine", "in", "for(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine()));", "i = 0;", "i = 0", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "numbers.add(Integer.parseInt(in.nextLine()));", "numbers.add(Integer.parseInt(in.nextLine()))", "numbers.add", "numbers", "Integer.parseInt(in.nextLine())", "Integer.parseInt", "Integer", "in.nextLine()", "in.nextLine", "in", "currentmin = numbers.get(0)", "currentmin", "numbers.get(0)", "numbers.get", "numbers", "0", "for(i = 1; i < size; i++){\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}", "i = 1;", "i = 1", "i", "1", "i < size", "i", "size", "i++", "i++", "i", "{\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}", "{\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}", "differ = numbers.get(i) - currentmin", "differ", "numbers.get(i) - currentmin", "numbers.get(i)", "numbers.get", "numbers", "i", "currentmin", "if(numbers.get(i) < currentmin) currentmin = numbers.get(i);", "numbers.get(i) < currentmin", "numbers.get(i)", "numbers.get", "numbers", "i", "currentmin", "currentmin = numbers.get(i)", "currentmin", "numbers.get(i)", "numbers.get", "numbers", "i", "if(differ > max) max = differ;", "differ > max", "differ", "max", "max = differ", "max", "differ", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tint i, max = -2147483646, currentmin, size, differ;\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tsize = Integer.parseInt(in.nextLine());\n\t\tfor(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine()));\n\t\t\n\t\tcurrentmin = numbers.get(0);\n\t\tfor(i = 1; i < size; i++){\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tint i, max = -2147483646, currentmin, size, differ;\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tsize = Integer.parseInt(in.nextLine());\n\t\tfor(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine()));\n\t\t\n\t\tcurrentmin = numbers.get(0);\n\t\tfor(i = 1; i < size; i++){\n\t\t\tdiffer = numbers.get(i) - currentmin;\n\t\t\tif(numbers.get(i) < currentmin) currentmin = numbers.get(i);\n\t\t\tif(differ > max) max = differ;\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; import java.util.List; import java.lang.Math; public class Main { public static void main(String[] args){ int i, max = -2147483646, currentmin, size, differ; List<Integer> numbers = new ArrayList<Integer>(); Scanner in = new Scanner(System.in); size = Integer.parseInt(in.nextLine()); for(i = 0; i < size; i++) numbers.add(Integer.parseInt(in.nextLine())); currentmin = numbers.get(0); for(i = 1; i < size; i++){ differ = numbers.get(i) - currentmin; if(numbers.get(i) < currentmin) currentmin = numbers.get(i); if(differ > max) max = differ; } System.out.println(max); } }
[ 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, 4, 18, 13, 41, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 14, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 14, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 76, 77 ], [ 69, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 69, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 14, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 12, 102 ], [ 102, 103 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final int n = Integer.parseInt(br.readLine());\n int r = Integer.parseInt(br.readLine());\n int rm = r;\n r = Integer.parseInt(br.readLine());\n int ans = r-rm;\n if(r<rm) rm = r;\n for(int i = 2; i<n; i++){\n r = Integer.parseInt(br.readLine());\n if(ans<r-rm) ans = r-rm;\n if(r<rm) rm = r;\n }\n System.out.println(ans);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n public static void main(String[] args) throws IOException{\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final int n = Integer.parseInt(br.readLine());\n int r = Integer.parseInt(br.readLine());\n int rm = r;\n r = Integer.parseInt(br.readLine());\n int ans = r-rm;\n if(r<rm) rm = r;\n for(int i = 2; i<n; i++){\n r = Integer.parseInt(br.readLine());\n if(ans<r-rm) ans = r-rm;\n if(r<rm) rm = r;\n }\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final int n = Integer.parseInt(br.readLine());\n int r = Integer.parseInt(br.readLine());\n int rm = r;\n r = Integer.parseInt(br.readLine());\n int ans = r-rm;\n if(r<rm) rm = r;\n for(int i = 2; i<n; i++){\n r = Integer.parseInt(br.readLine());\n if(ans<r-rm) ans = r-rm;\n if(r<rm) rm = r;\n }\n System.out.println(ans);\n }", "main", "{\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final int n = Integer.parseInt(br.readLine());\n int r = Integer.parseInt(br.readLine());\n int rm = r;\n r = Integer.parseInt(br.readLine());\n int ans = r-rm;\n if(r<rm) rm = r;\n for(int i = 2; i<n; i++){\n r = Integer.parseInt(br.readLine());\n if(ans<r-rm) ans = r-rm;\n if(r<rm) rm = r;\n }\n System.out.println(ans);\n }", "final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "final int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int r = Integer.parseInt(br.readLine());", "r", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int rm = r;", "rm", "r", "r = Integer.parseInt(br.readLine())", "r", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int ans = r-rm;", "ans", "r-rm", "r", "rm", "if(r<rm) rm = r;", "r<rm", "r", "rm", "rm = r", "rm", "r", "for(int i = 2; i<n; i++){\n r = Integer.parseInt(br.readLine());\n if(ans<r-rm) ans = r-rm;\n if(r<rm) rm = r;\n }", "int i = 2;", "int i = 2;", "i", "2", "i<n", "i", "n", "i++", "i++", "i", "{\n r = Integer.parseInt(br.readLine());\n if(ans<r-rm) ans = r-rm;\n if(r<rm) rm = r;\n }", "{\n r = Integer.parseInt(br.readLine());\n if(ans<r-rm) ans = r-rm;\n if(r<rm) rm = r;\n }", "r = Integer.parseInt(br.readLine())", "r", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if(ans<r-rm) ans = r-rm;", "ans<r-rm", "ans", "r-rm", "r", "rm", "ans = r-rm", "ans", "r-rm", "r", "rm", "if(r<rm) rm = r;", "r<rm", "r", "rm", "rm = r", "rm", "r", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] args) throws IOException{ final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); final int n = Integer.parseInt(br.readLine()); int r = Integer.parseInt(br.readLine()); int rm = r; r = Integer.parseInt(br.readLine()); int ans = r-rm; if(r<rm) rm = r; for(int i = 2; i<n; i++){ r = Integer.parseInt(br.readLine()); if(ans<r-rm) ans = r-rm; if(r<rm) rm = r; } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 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, 13, 41, 13, 17, 41, 13, 40, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 14, 2, 2, 13, 2, 13, 17, 2, 13, 2, 18, 13, 2, 13, 17, 13, 30, 0, 13, 2, 18, 13, 2, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 7, 11 ], [ 11, 12 ], [ 7, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 24, 25 ], [ 25, 26 ], [ 15, 27 ], [ 27, 28 ], [ 27, 29 ], [ 15, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 15, 54 ], [ 54, 55 ], [ 54, 56 ], [ 15, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 15, 61 ], [ 61, 62 ], [ 61, 63 ], [ 15, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 76, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 98, 104 ], [ 89, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 15, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 13, 121 ], [ 121, 122 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main {\n\n static int[] a;\n static int n;\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n=Integer.parseInt(br.readLine());\n a=new int[n];\n for(int i=0;i<n;i++){ a[i]=Integer.parseInt(br.readLine()); }\n int mini=1000000000;\n int max=-1000000000;\n int max_index=1;\n for(int i=0;i<n;i++){\n if(mini>a[i]){ mini=a[i]; }\n if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }\n }System.out.println(max);\n }\n \n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main {\n\n static int[] a;\n static int n;\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n=Integer.parseInt(br.readLine());\n a=new int[n];\n for(int i=0;i<n;i++){ a[i]=Integer.parseInt(br.readLine()); }\n int mini=1000000000;\n int max=-1000000000;\n int max_index=1;\n for(int i=0;i<n;i++){\n if(mini>a[i]){ mini=a[i]; }\n if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }\n }System.out.println(max);\n }\n \n}", "Main", "static int[] a;", "a", "static int n;", "n", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n=Integer.parseInt(br.readLine());\n a=new int[n];\n for(int i=0;i<n;i++){ a[i]=Integer.parseInt(br.readLine()); }\n int mini=1000000000;\n int max=-1000000000;\n int max_index=1;\n for(int i=0;i<n;i++){\n if(mini>a[i]){ mini=a[i]; }\n if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }\n }System.out.println(max);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n=Integer.parseInt(br.readLine());\n a=new int[n];\n for(int i=0;i<n;i++){ a[i]=Integer.parseInt(br.readLine()); }\n int mini=1000000000;\n int max=-1000000000;\n int max_index=1;\n for(int i=0;i<n;i++){\n if(mini>a[i]){ mini=a[i]; }\n if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }\n }System.out.println(max);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "n=Integer.parseInt(br.readLine())", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "a=new int[n]", "a", "new int[n]", "n", "for(int i=0;i<n;i++){ a[i]=Integer.parseInt(br.readLine()); }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{ a[i]=Integer.parseInt(br.readLine()); }", "{ a[i]=Integer.parseInt(br.readLine()); }", "a[i]=Integer.parseInt(br.readLine())", "a[i]", "a", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int mini=1000000000;", "mini", "1000000000", "int max=-1000000000;", "max", "-1000000000", "1000000000", "int max_index=1;", "max_index", "1", "for(int i=0;i<n;i++){\n if(mini>a[i]){ mini=a[i]; }\n if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(mini>a[i]){ mini=a[i]; }\n if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }\n }", "{\n if(mini>a[i]){ mini=a[i]; }\n if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }\n }", "if(mini>a[i]){ mini=a[i]; }", "mini>a[i]", "mini", "a[i]", "a", "i", "{ mini=a[i]; }", "mini=a[i]", "mini", "a[i]", "a", "i", "if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; }", "i<n-1 && max<a[i+1]-mini", "i<n-1", "i", "n-1", "n", "1", "max<a[i+1]-mini", "max", "a[i+1]-mini", "a[i+1]", "a", "i+1", "i", "1", "mini", "{ max=a[i+1]-mini; }", "max=a[i+1]-mini", "max", "a[i+1]-mini", "a[i+1]", "a", "i+1", "i", "1", "mini", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main { static int[] a; static int n; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n=Integer.parseInt(br.readLine()); a=new int[n]; for(int i=0;i<n;i++){ a[i]=Integer.parseInt(br.readLine()); } int mini=1000000000; int max=-1000000000; int max_index=1; for(int i=0;i<n;i++){ if(mini>a[i]){ mini=a[i]; } if(i<n-1 && max<a[i+1]-mini){ max=a[i+1]-mini; } }System.out.println(max); } }
[ 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, 4, 18, 13, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 84, 11 ], [ 84, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 50, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 50, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 12, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\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\tint minNum = Integer.parseInt(br.readLine()); // 最小値\n\t\tint maxNum = -1000000000; // 差額の最大値\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}\n\t\tSystem.out.println(maxNum);\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\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\tint minNum = Integer.parseInt(br.readLine()); // 最小値\n\t\tint maxNum = -1000000000; // 差額の最大値\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}\n\t\tSystem.out.println(maxNum);\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine()); // 整数の個数\n\t\tint minNum = Integer.parseInt(br.readLine()); // 最小値\n\t\tint maxNum = -1000000000; // 差額の最大値\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}\n\t\tSystem.out.println(maxNum);\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine()); // 整数の個数\n\t\tint minNum = Integer.parseInt(br.readLine()); // 最小値\n\t\tint maxNum = -1000000000; // 差額の最大値\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}\n\t\tSystem.out.println(maxNum);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int minNum = Integer.parseInt(br.readLine());", "minNum", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int maxNum = -1000000000;", "maxNum", "-1000000000", "1000000000", "for (int i = 1; i < n; i++) {\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}", "{\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}", "int r = Integer.parseInt(br.readLine());", "r", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "maxNum = Math.max(maxNum, r - minNum)", "maxNum", "Math.max(maxNum, r - minNum)", "Math.max", "Math", "maxNum", "r - minNum", "r", "minNum", "minNum = Math.min(minNum, r)", "minNum", "Math.min(minNum, r)", "Math.min", "Math", "minNum", "r", "System.out.println(maxNum)", "System.out.println", "System.out", "System", "System.out", "maxNum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine()); // 整数の個数\n\t\tint minNum = Integer.parseInt(br.readLine()); // 最小値\n\t\tint maxNum = -1000000000; // 差額の最大値\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}\n\t\tSystem.out.println(maxNum);\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine()); // 整数の個数\n\t\tint minNum = Integer.parseInt(br.readLine()); // 最小値\n\t\tint maxNum = -1000000000; // 差額の最大値\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmaxNum = Math.max(maxNum, r - minNum);\n\t\t\tminNum = Math.min(minNum, r);\n\t\t}\n\t\tSystem.out.println(maxNum);\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); // 整数の個数 int minNum = Integer.parseInt(br.readLine()); // 最小値 int maxNum = -1000000000; // 差額の最大値 for (int i = 1; i < n; i++) { int r = Integer.parseInt(br.readLine()); maxNum = Math.max(maxNum, r - minNum); minNum = Math.min(minNum, r); } System.out.println(maxNum); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 18, 13, 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, 41, 13, 20, 13, 0, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 2, 13, 17, 18, 13, 13, 41, 13, 20, 13, 0, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 2, 13, 17, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 18, 13, 2, 13, 17, 4, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 7, 14 ], [ 14, 15 ], [ 14, 16 ], [ 7, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 19, 49 ], [ 49, 50 ], [ 49, 51 ], [ 19, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 19, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 64, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 91, 93 ], [ 19, 94 ], [ 94, 95 ], [ 94, 96 ], [ 19, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 19, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 105, 116 ], [ 117, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 122, 130 ], [ 130, 131 ], [ 130, 132 ], [ 19, 133 ], [ 133, 134 ], [ 133, 135 ], [ 19, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 136, 144 ], [ 144, 145 ], [ 145, 146 ], [ 136, 147 ], [ 148, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 161, 163 ], [ 19, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 17, 168 ], [ 168, 169 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = in.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = in.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tmax[n-1] = r[n-1];\n\t\tfor (int i = n - 2; i > 0; i--) {\n\t\t\tmax[i] = Math.max(max[i+1], r[i]);\n\t\t}\n\t\tint[] min = new int[n];\n\t\tmin[0] = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmin[i] = Math.min(min[i-1], r[i]);\n\t\t}\n\t\tint ret = 0x80000000;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tret = Math.max(ret, max[i] - min[i-1]);\n\t\t}\n\t\tout.println(ret);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = in.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = in.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tmax[n-1] = r[n-1];\n\t\tfor (int i = n - 2; i > 0; i--) {\n\t\t\tmax[i] = Math.max(max[i+1], r[i]);\n\t\t}\n\t\tint[] min = new int[n];\n\t\tmin[0] = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmin[i] = Math.min(min[i-1], r[i]);\n\t\t}\n\t\tint ret = 0x80000000;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tret = Math.max(ret, max[i] - min[i-1]);\n\t\t}\n\t\tout.println(ret);\n\t}\n}", "Main", "static PrintStream out = System.out;", "out", "System.out", "System", "System.out", "static Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\tint n = in.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = in.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tmax[n-1] = r[n-1];\n\t\tfor (int i = n - 2; i > 0; i--) {\n\t\t\tmax[i] = Math.max(max[i+1], r[i]);\n\t\t}\n\t\tint[] min = new int[n];\n\t\tmin[0] = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmin[i] = Math.min(min[i-1], r[i]);\n\t\t}\n\t\tint ret = 0x80000000;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tret = Math.max(ret, max[i] - min[i-1]);\n\t\t}\n\t\tout.println(ret);\n\t}", "main", "{\n\t\tint n = in.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = in.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tmax[n-1] = r[n-1];\n\t\tfor (int i = n - 2; i > 0; i--) {\n\t\t\tmax[i] = Math.max(max[i+1], r[i]);\n\t\t}\n\t\tint[] min = new int[n];\n\t\tmin[0] = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmin[i] = Math.min(min[i-1], r[i]);\n\t\t}\n\t\tint ret = 0x80000000;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tret = Math.max(ret, max[i] - min[i-1]);\n\t\t}\n\t\tout.println(ret);\n\t}", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int[] r = new int[n];", "r", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tr[i] = in.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tr[i] = in.nextInt();\n\t\t}", "{\n\t\t\tr[i] = in.nextInt();\n\t\t}", "r[i] = in.nextInt()", "r[i]", "r", "i", "in.nextInt()", "in.nextInt", "in", "int[] max = new int[n];", "max", "new int[n]", "n", "max[n-1] = r[n-1]", "max[n-1]", "max", "n-1", "n", "1", "r[n-1]", "r", "n-1", "n", "1", "for (int i = n - 2; i > 0; i--) {\n\t\t\tmax[i] = Math.max(max[i+1], r[i]);\n\t\t}", "int i = n - 2;", "int i = n - 2;", "i", "n - 2", "n", "2", "i > 0", "i", "0", "i--", "i--", "i", "{\n\t\t\tmax[i] = Math.max(max[i+1], r[i]);\n\t\t}", "{\n\t\t\tmax[i] = Math.max(max[i+1], r[i]);\n\t\t}", "max[i] = Math.max(max[i+1], r[i])", "max[i]", "max", "i", "Math.max(max[i+1], r[i])", "Math.max", "Math", "max[i+1]", "max", "i+1", "i", "1", "r[i]", "r", "i", "int[] min = new int[n];", "min", "new int[n]", "n", "min[0] = r[0]", "min[0]", "min", "0", "r[0]", "r", "0", "for (int i = 1; i < n; i++) {\n\t\t\tmin[i] = Math.min(min[i-1], r[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmin[i] = Math.min(min[i-1], r[i]);\n\t\t}", "{\n\t\t\tmin[i] = Math.min(min[i-1], r[i]);\n\t\t}", "min[i] = Math.min(min[i-1], r[i])", "min[i]", "min", "i", "Math.min(min[i-1], r[i])", "Math.min", "Math", "min[i-1]", "min", "i-1", "i", "1", "r[i]", "r", "i", "int ret = 0x80000000;", "ret", "0x80000000", "for (int i = 1; i < n; i++) {\n\t\t\tret = Math.max(ret, max[i] - min[i-1]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tret = Math.max(ret, max[i] - min[i-1]);\n\t\t}", "{\n\t\t\tret = Math.max(ret, max[i] - min[i-1]);\n\t\t}", "ret = Math.max(ret, max[i] - min[i-1])", "ret", "Math.max(ret, max[i] - min[i-1])", "Math.max", "Math", "ret", "max[i] - min[i-1]", "max[i]", "max", "i", "min[i-1]", "min", "i-1", "i", "1", "out.println(ret)", "out.println", "out", "ret", "String[] args", "args" ]
import java.util.*; import java.io.*; class Main { static PrintStream out = System.out; static Scanner in = new Scanner(System.in); public static void main(String[] args) { int n = in.nextInt(); int[] r = new int[n]; for (int i = 0; i < n; i++) { r[i] = in.nextInt(); } int[] max = new int[n]; max[n-1] = r[n-1]; for (int i = n - 2; i > 0; i--) { max[i] = Math.max(max[i+1], r[i]); } int[] min = new int[n]; min[0] = r[0]; for (int i = 1; i < n; i++) { min[i] = Math.min(min[i-1], r[i]); } int ret = 0x80000000; for (int i = 1; i < n; i++) { ret = Math.max(ret, max[i] - min[i-1]); } out.println(ret); } }
[ 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, 4, 18, 13, 0, 13, 2, 18, 13, 17, 18, 13, 17, 0, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 74, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint n = scan.nextInt();\n\t\tint data[] = new int[n];\n\t\tint minv , maxv;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdata[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t\tmaxv = data[1] - data[0];\n\t\tminv = data[0];\n\t\t\n\t\tfor (int j = 1; j < n ; j++) {\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(maxv);\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint n = scan.nextInt();\n\t\tint data[] = new int[n];\n\t\tint minv , maxv;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdata[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t\tmaxv = data[1] - data[0];\n\t\tminv = data[0];\n\t\t\n\t\tfor (int j = 1; j < n ; j++) {\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint n = scan.nextInt();\n\t\tint data[] = new int[n];\n\t\tint minv , maxv;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdata[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t\tmaxv = data[1] - data[0];\n\t\tminv = data[0];\n\t\t\n\t\tfor (int j = 1; j < n ; j++) {\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tScanner scan = new Scanner (System.in);\n\t\tint n = scan.nextInt();\n\t\tint data[] = new int[n];\n\t\tint minv , maxv;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdata[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t\tmaxv = data[1] - data[0];\n\t\tminv = data[0];\n\t\t\n\t\tfor (int j = 1; j < n ; j++) {\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(maxv);\n\t}", "Scanner scan = new Scanner (System.in);", "scan", "new Scanner (System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int data[] = new int[n];", "data", "new int[n]", "n", "int minv", "minv", "maxv;", "maxv", "for (int i = 0; i < n; i++) {\n\t\t\tdata[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tdata[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tdata[i] = scan.nextInt();\n\t\t}", "data[i] = scan.nextInt()", "data[i]", "data", "i", "scan.nextInt()", "scan.nextInt", "scan", "scan.close()", "scan.close", "scan", "maxv = data[1] - data[0]", "maxv", "data[1] - data[0]", "data[1]", "data", "1", "data[0]", "data", "0", "minv = data[0]", "minv", "data[0]", "data", "0", "for (int j = 1; j < n ; j++) {\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}", "{\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}", "maxv = Math.max(maxv, (data[j] - minv))", "maxv", "Math.max(maxv, (data[j] - minv))", "Math.max", "Math", "maxv", "(data[j] - minv)", "data[j]", "data", "j", "minv", "minv = Math.min(minv, data[j])", "minv", "Math.min(minv, data[j])", "Math.min", "Math", "minv", "data[j]", "data", "j", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String [] args", "args", "public class Main {\n\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint n = scan.nextInt();\n\t\tint data[] = new int[n];\n\t\tint minv , maxv;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdata[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t\tmaxv = data[1] - data[0];\n\t\tminv = data[0];\n\t\t\n\t\tfor (int j = 1; j < n ; j++) {\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(maxv);\n\t}\n}", "public class Main {\n\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint n = scan.nextInt();\n\t\tint data[] = new int[n];\n\t\tint minv , maxv;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdata[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tscan.close();\n\t\t\n\t\tmaxv = data[1] - data[0];\n\t\tminv = data[0];\n\t\t\n\t\tfor (int j = 1; j < n ; j++) {\n\t\t\tmaxv = Math.max(maxv, (data[j] - minv));\n\t\t\tminv = Math.min(minv, data[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String [] args) { Scanner scan = new Scanner (System.in); int n = scan.nextInt(); int data[] = new int[n]; int minv , maxv; for (int i = 0; i < n; i++) { data[i] = scan.nextInt(); } scan.close(); maxv = data[1] - data[0]; minv = data[0]; for (int j = 1; j < n ; j++) { maxv = Math.max(maxv, (data[j] - minv)); minv = Math.min(minv, data[j]); } System.out.println(maxv); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 40, 17, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 8, 2, 13, 2, 18, 13, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 8, 2, 18, 13, 13, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 120, 11 ], [ 120, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 14, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 14, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 85, 93 ], [ 85, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 82, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 101, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 14, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 12, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//????????????????????????\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\t//????§??????°\n\t\tint num;\n\t\t\n\t\t//?????§???\n\t\tint max;\n\t\t\n\t\t//?¨??????¨?????°\n\t\tint maxValue = -2000000000;\n\t\tint minValue;\n\t\t\n\t\t\n\t\tnum=Integer.parseInt(bf.readLine());\n\t\tint tmp[]=new int[num];\n\t\t\n\t\tfor(int i=0;i<num;i++){\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}\n\t\t\n\t\tminValue=tmp[0];\n\t\tfor(int i=1;i<num;i++){\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(maxValue);\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//????????????????????????\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\t//????§??????°\n\t\tint num;\n\t\t\n\t\t//?????§???\n\t\tint max;\n\t\t\n\t\t//?¨??????¨?????°\n\t\tint maxValue = -2000000000;\n\t\tint minValue;\n\t\t\n\t\t\n\t\tnum=Integer.parseInt(bf.readLine());\n\t\tint tmp[]=new int[num];\n\t\t\n\t\tfor(int i=0;i<num;i++){\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}\n\t\t\n\t\tminValue=tmp[0];\n\t\tfor(int i=1;i<num;i++){\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(maxValue);\n\t}\n\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//????????????????????????\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\t//????§??????°\n\t\tint num;\n\t\t\n\t\t//?????§???\n\t\tint max;\n\t\t\n\t\t//?¨??????¨?????°\n\t\tint maxValue = -2000000000;\n\t\tint minValue;\n\t\t\n\t\t\n\t\tnum=Integer.parseInt(bf.readLine());\n\t\tint tmp[]=new int[num];\n\t\t\n\t\tfor(int i=0;i<num;i++){\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}\n\t\t\n\t\tminValue=tmp[0];\n\t\tfor(int i=1;i<num;i++){\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(maxValue);\n\t}", "main", "{\n\t\t//????????????????????????\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\t//????§??????°\n\t\tint num;\n\t\t\n\t\t//?????§???\n\t\tint max;\n\t\t\n\t\t//?¨??????¨?????°\n\t\tint maxValue = -2000000000;\n\t\tint minValue;\n\t\t\n\t\t\n\t\tnum=Integer.parseInt(bf.readLine());\n\t\tint tmp[]=new int[num];\n\t\t\n\t\tfor(int i=0;i<num;i++){\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}\n\t\t\n\t\tminValue=tmp[0];\n\t\tfor(int i=1;i<num;i++){\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(maxValue);\n\t}", "BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));", "bf", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "int num;", "num", "int max;", "max", "int maxValue = -2000000000;", "maxValue", "-2000000000", "2000000000", "int minValue;", "minValue", "num=Integer.parseInt(bf.readLine())", "num", "Integer.parseInt(bf.readLine())", "Integer.parseInt", "Integer", "bf.readLine()", "bf.readLine", "bf", "int tmp[]=new int[num];", "tmp", "new int[num]", "num", "for(int i=0;i<num;i++){\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}", "{\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}", "tmp[i]=Integer.parseInt(bf.readLine())", "tmp[i]", "tmp", "i", "Integer.parseInt(bf.readLine())", "Integer.parseInt", "Integer", "bf.readLine()", "bf.readLine", "bf", "minValue=tmp[0]", "minValue", "tmp[0]", "tmp", "0", "for(int i=1;i<num;i++){\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}", "{\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}", "maxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue", "maxValue", "maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue", "maxValue > tmp[i]-minValue", "maxValue", "tmp[i]-minValue", "tmp[i]", "tmp", "i", "minValue", "maxValue", "tmp[i]-minValue", "tmp[i]", "tmp", "i", "minValue", "minValue = tmp[i] > minValue ? minValue:tmp[i]", "minValue", "tmp[i] > minValue ? minValue:tmp[i]", "tmp[i] > minValue", "tmp[i]", "tmp", "i", "minValue", "minValue", "tmp[i]", "tmp", "i", "System.out.println(maxValue)", "System.out.println", "System.out", "System", "System.out", "maxValue", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//????????????????????????\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\t//????§??????°\n\t\tint num;\n\t\t\n\t\t//?????§???\n\t\tint max;\n\t\t\n\t\t//?¨??????¨?????°\n\t\tint maxValue = -2000000000;\n\t\tint minValue;\n\t\t\n\t\t\n\t\tnum=Integer.parseInt(bf.readLine());\n\t\tint tmp[]=new int[num];\n\t\t\n\t\tfor(int i=0;i<num;i++){\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}\n\t\t\n\t\tminValue=tmp[0];\n\t\tfor(int i=1;i<num;i++){\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(maxValue);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//????????????????????????\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\t//????§??????°\n\t\tint num;\n\t\t\n\t\t//?????§???\n\t\tint max;\n\t\t\n\t\t//?¨??????¨?????°\n\t\tint maxValue = -2000000000;\n\t\tint minValue;\n\t\t\n\t\t\n\t\tnum=Integer.parseInt(bf.readLine());\n\t\tint tmp[]=new int[num];\n\t\t\n\t\tfor(int i=0;i<num;i++){\n\t\t\ttmp[i]=Integer.parseInt(bf.readLine());\n\t\t}\n\t\t\n\t\tminValue=tmp[0];\n\t\tfor(int i=1;i<num;i++){\n\t\t\tmaxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue;\n\t\t\tminValue = tmp[i] > minValue ? minValue:tmp[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(maxValue);\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { //???????????????????????? BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String line; //????§??????° int num; //?????§??? int max; //?¨??????¨?????° int maxValue = -2000000000; int minValue; num=Integer.parseInt(bf.readLine()); int tmp[]=new int[num]; for(int i=0;i<num;i++){ tmp[i]=Integer.parseInt(bf.readLine()); } minValue=tmp[0]; for(int i=1;i<num;i++){ maxValue= maxValue > tmp[i]-minValue ? maxValue:tmp[i]-minValue; minValue = tmp[i] > minValue ? minValue:tmp[i]; } System.out.println(maxValue); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 14, 2, 13, 17, 30, 4, 13, 40, 17, 29, 30, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 41, 13, 2, 13, 13, 41, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 127, 8 ], [ 127, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 24, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 30, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 30, 46 ], [ 46, 47 ], [ 46, 48 ], [ 30, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 30, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 71, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 71, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 71, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 30, 98 ], [ 98, 99 ], [ 98, 100 ], [ 9, 101 ], [ 101, 102 ], [ 127, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 103, 112 ], [ 112, 113 ], [ 127, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 121, 122 ], [ 122, 123 ], [ 114, 124 ], [ 124, 125 ], [ 0, 126 ], [ 126, 127 ], [ 126, 128 ] ]
[ "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 \n if (n <= 1) {\n output(-1);\n return;\n } else {\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }\n }\n\n public static void output(int x) {\n System.out.println(x);\n }\n\n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = readInt(r);\n \n if (n <= 1) {\n output(-1);\n return;\n } else {\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }\n }\n\n public static void output(int x) {\n System.out.println(x);\n }\n\n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = readInt(r);\n \n if (n <= 1) {\n output(-1);\n return;\n } else {\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }\n }", "main", "{\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = readInt(r);\n \n if (n <= 1) {\n output(-1);\n return;\n } else {\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }\n }", "BufferedReader r = new BufferedReader(new InputStreamReader(System.in));", "r", "new BufferedReader(new InputStreamReader(System.in))", "int n = readInt(r);", "n", "readInt(r)", "readInt", "r", "if (n <= 1) {\n output(-1);\n return;\n } else {\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }", "n <= 1", "n", "1", "{\n output(-1);\n return;\n }", "output(-1)", "output", "-1", "1", "return;", "{\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }", "int r_i = readInt(r);", "r_i", "readInt(r)", "readInt", "r", "int r_j = readInt(r);", "r_j", "readInt(r)", "readInt", "r", "int delta = r_j - r_i;", "delta", "r_j - r_i", "r_j", "r_i", "int maxDelta = delta;", "maxDelta", "delta", "if (r_i > r_j) {\n r_i = r_j;\n }", "r_i > r_j", "r_i", "r_j", "{\n r_i = r_j;\n }", "r_i = r_j", "r_i", "r_j", "for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < (n -2)", "i", "(n -2)", "n", "2", "i++", "i++", "i", "{\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }", "{\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }", "r_j = readInt(r)", "r_j", "readInt(r)", "readInt", "r", "delta = r_j - r_i", "delta", "r_j - r_i", "r_j", "r_i", "if (delta > maxDelta) {\n maxDelta = delta;\n }", "delta > maxDelta", "delta", "maxDelta", "{\n maxDelta = delta;\n }", "maxDelta = delta", "maxDelta", "delta", "if (r_i > r_j) {\n r_i = r_j;\n }", "r_i > r_j", "r_i", "r_j", "{\n r_i = r_j;\n }", "r_i = r_j", "r_i", "r_j", "output(maxDelta)", "output", "maxDelta", "String[] args", "args", "public static void output(int x) {\n System.out.println(x);\n }", "output", "{\n System.out.println(x);\n }", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "int x", "x", "public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }", "readInt", "{\n return Integer.parseInt(r.readLine());\n }", "return Integer.parseInt(r.readLine());", "Integer.parseInt(r.readLine())", "Integer.parseInt", "Integer", "r.readLine()", "r.readLine", "r", "BufferedReader r", "r", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = readInt(r);\n \n if (n <= 1) {\n output(-1);\n return;\n } else {\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }\n }\n\n public static void output(int x) {\n System.out.println(x);\n }\n\n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = readInt(r);\n \n if (n <= 1) {\n output(-1);\n return;\n } else {\n int r_i = readInt(r);\n int r_j = readInt(r);\n int delta = r_j - r_i;\n int maxDelta = delta;\n \n if (r_i > r_j) {\n r_i = r_j;\n }\n\n for (int i = 0;i < (n -2);i++) {\n r_j = readInt(r);\n delta = r_j - r_i;\n if (delta > maxDelta) {\n maxDelta = delta;\n }\n\n if (r_i > r_j) {\n r_i = r_j;\n }\n }\n \n output(maxDelta);\n }\n }\n\n public static void output(int x) {\n System.out.println(x);\n }\n\n public static int readInt(BufferedReader r) throws Exception {\n return Integer.parseInt(r.readLine());\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = readInt(r); if (n <= 1) { output(-1); return; } else { int r_i = readInt(r); int r_j = readInt(r); int delta = r_j - r_i; int maxDelta = delta; if (r_i > r_j) { r_i = r_j; } for (int i = 0;i < (n -2);i++) { r_j = readInt(r); delta = r_j - r_i; if (delta > maxDelta) { maxDelta = delta; } if (r_i > r_j) { r_i = r_j; } } output(maxDelta); } } public static void output(int x) { System.out.println(x); } public static int readInt(BufferedReader r) throws Exception { return Integer.parseInt(r.readLine()); } }
[ 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, 18, 13, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 9, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 17, 13, 2, 13, 13, 30, 0, 13, 13, 0, 13, 2, 18, 13, 13, 18, 13, 13, 3, 14, 2, 2, 13, 18, 13, 13, 18, 13, 13, 30, 0, 13, 2, 18, 13, 13, 18, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 41 ], [ 41, 42 ], [ 41, 43 ], [ 14, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 90, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 101, 102 ], [ 90, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 115, 128 ], [ 105, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 136, 138 ], [ 129, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 146, 148 ], [ 139, 149 ], [ 149, 150 ], [ 149, 151 ], [ 139, 152 ], [ 152, 153 ], [ 152, 154 ], [ 139, 155 ], [ 155, 156 ], [ 155, 157 ], [ 80, 158 ], [ 158, 159 ], [ 158, 160 ], [ 14, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 12, 167 ], [ 167, 168 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}}", "Main", "public static void main(String[] args) throws IOException {\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\t\t\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] in = new int[n];\n\t\tint max = Integer.MIN_VALUE;\n\t\tint mini = 0;\n\t\tint maxj=0;\n\t\tboolean con=false;\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] in = new int[n];", "in", "new int[n]", "n", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int mini = 0;", "mini", "0", "int maxj=0;", "maxj", "0", "boolean con=false;", "con", "false", "for (int i = 0; i < n; i++)\n\t\t\tin[i] = Integer.parseInt(br.readLine());", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = Integer.parseInt(br.readLine());", "in[i] = Integer.parseInt(br.readLine())", "in[i]", "in", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < n - 1; i++) {\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n - 1", "i", "n - 1", "n", "1", "i++", "i++", "i", "{\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}", "{\n\t\t\tif (in[i] > in[mini])continue;\n\t\t\tfor (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}con=true;\n\t\t}", "if (in[i] > in[mini])continue;", "in[i] > in[mini]", "in[i]", "in", "i", "in[mini]", "in", "mini", "continue;", "for (int j = i + 1; j < n; j++){\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}", "int j = i + 1;", "int j = i + 1;", "j", "i + 1", "i", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}\n\t\t\t}", "if(i!=0&&con&&i<maxj){\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}\n\t\t\t\telse if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}", "i!=0&&con&&i<maxj", "i!=0&&con&&i<maxj", "i!=0", "i", "0", "con", "i<maxj", "i", "maxj", "{\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmax=in[maxj]-in[i];\n\t\t\t\t\tbreak;}", "mini=i", "mini", "i", "max=in[maxj]-in[i]", "max", "in[maxj]-in[i]", "in[maxj]", "in", "maxj", "in[i]", "in", "i", "break;", "if(max+in[i]<in[j]){\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}", "max+in[i]<in[j]", "max+in[i]", "max", "in[i]", "in", "i", "in[j]", "in", "j", "{\n\t\t\t\t\tmax=in[j]-in[i];\n\t\t\t\t\tmini=i;\n\t\t\t\t\tmaxj=j;\n\t\t\t\t\tcon=false;\n\t\t\t\t}", "max=in[j]-in[i]", "max", "in[j]-in[i]", "in[j]", "in", "j", "in[i]", "in", "i", "mini=i", "mini", "i", "maxj=j", "maxj", "j", "con=false", "con", "false", "con=true", "con", "true", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] in = new int[n]; int max = Integer.MIN_VALUE; int mini = 0; int maxj=0; boolean con=false; for (int i = 0; i < n; i++) in[i] = Integer.parseInt(br.readLine()); for (int i = 0; i < n - 1; i++) { if (in[i] > in[mini])continue; for (int j = i + 1; j < n; j++){ if(i!=0&&con&&i<maxj){ mini=i; max=in[maxj]-in[i]; break;} else if(max+in[i]<in[j]){ max=in[j]-in[i]; mini=i; maxj=j; con=false; } }con=true; } System.out.println(max); }}
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 18, 13, 13, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 50, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 50, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next()); // ?¨?????????°\n\n\t\tint minv = 0, maxv = Integer.MIN_VALUE, r;\n\n\t\tminv = Integer.parseInt(sc.next());\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next()); // ?¨?????????°\n\n\t\tint minv = 0, maxv = Integer.MIN_VALUE, r;\n\n\t\tminv = Integer.parseInt(sc.next());\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next()); // ?¨?????????°\n\n\t\tint minv = 0, maxv = Integer.MIN_VALUE, r;\n\n\t\tminv = Integer.parseInt(sc.next());\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next()); // ?¨?????????°\n\n\t\tint minv = 0, maxv = Integer.MIN_VALUE, r;\n\n\t\tminv = Integer.parseInt(sc.next());\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int minv = 0", "minv", "0", "maxv = Integer.MIN_VALUE", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "r;", "r", "minv = Integer.parseInt(sc.next())", "minv", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "for (int i = 1; i < n; i++) {\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}", "{\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}", "int a = Integer.parseInt(sc.next());", "a", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "maxv = Integer.max(maxv, a - minv)", "maxv", "Integer.max(maxv, a - minv)", "Integer.max", "Integer", "maxv", "a - minv", "a", "minv", "minv = Integer.min(a, minv)", "minv", "Integer.min(a, minv)", "Integer.min", "Integer", "a", "minv", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next()); // ?¨?????????°\n\n\t\tint minv = 0, maxv = Integer.MIN_VALUE, r;\n\n\t\tminv = Integer.parseInt(sc.next());\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next()); // ?¨?????????°\n\n\t\tint minv = 0, maxv = Integer.MIN_VALUE, r;\n\n\t\tminv = Integer.parseInt(sc.next());\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint a = Integer.parseInt(sc.next());\n\t\t\tmaxv = Integer.max(maxv, a - minv);\n\t\t\tminv = Integer.min(a, minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); // ?¨?????????° int minv = 0, maxv = Integer.MIN_VALUE, r; minv = Integer.parseInt(sc.next()); for (int i = 1; i < n; i++) { int a = Integer.parseInt(sc.next()); maxv = Integer.max(maxv, a - minv); minv = Integer.min(a, minv); } System.out.println(maxv); } }
[ 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, 41, 13, 18, 13, 13, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.*;\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 Rt [] = new int[n];\n for(int i = 0; i < n; i++) {\n\t\t\tRt[i] = sc.nextInt();\n\t\t}\n\t\tint Rmax = Integer.MIN_VALUE;\n int Rmin = Rt[0];\n\t\t\n\t\tfor(int j = 1; j < n; j++) {\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}\n\t\tSystem.out.println(Rmax);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner (System.in);\n\t\tint n = sc.nextInt(); \n\t\tint Rt [] = new int[n];\n for(int i = 0; i < n; i++) {\n\t\t\tRt[i] = sc.nextInt();\n\t\t}\n\t\tint Rmax = Integer.MIN_VALUE;\n int Rmin = Rt[0];\n\t\t\n\t\tfor(int j = 1; j < n; j++) {\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}\n\t\tSystem.out.println(Rmax);\n\t}\n}", "Main", "public static void main(String [] args){\n\t\tScanner sc = new Scanner (System.in);\n\t\tint n = sc.nextInt(); \n\t\tint Rt [] = new int[n];\n for(int i = 0; i < n; i++) {\n\t\t\tRt[i] = sc.nextInt();\n\t\t}\n\t\tint Rmax = Integer.MIN_VALUE;\n int Rmin = Rt[0];\n\t\t\n\t\tfor(int j = 1; j < n; j++) {\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}\n\t\tSystem.out.println(Rmax);\n\t}", "main", "{\n\t\tScanner sc = new Scanner (System.in);\n\t\tint n = sc.nextInt(); \n\t\tint Rt [] = new int[n];\n for(int i = 0; i < n; i++) {\n\t\t\tRt[i] = sc.nextInt();\n\t\t}\n\t\tint Rmax = Integer.MIN_VALUE;\n int Rmin = Rt[0];\n\t\t\n\t\tfor(int j = 1; j < n; j++) {\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}\n\t\tSystem.out.println(Rmax);\n\t}", "Scanner sc = new Scanner (System.in);", "sc", "new Scanner (System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int Rt [] = new int[n];", "Rt", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n\t\t\tRt[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tRt[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tRt[i] = sc.nextInt();\n\t\t}", "Rt[i] = sc.nextInt()", "Rt[i]", "Rt", "i", "sc.nextInt()", "sc.nextInt", "sc", "int Rmax = Integer.MIN_VALUE;", "Rmax", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int Rmin = Rt[0];", "Rmin", "Rt[0]", "Rt", "0", "for(int j = 1; j < n; j++) {\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}", "{\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}", "Rmax = Math.max(Rmax, Rt[j] - Rmin)", "Rmax", "Math.max(Rmax, Rt[j] - Rmin)", "Math.max", "Math", "Rmax", "Rt[j] - Rmin", "Rt[j]", "Rt", "j", "Rmin", "Rmin = Math.min(Rmin, Rt[j])", "Rmin", "Math.min(Rmin, Rt[j])", "Math.min", "Math", "Rmin", "Rt[j]", "Rt", "j", "System.out.println(Rmax)", "System.out.println", "System.out", "System", "System.out", "Rmax", "String [] args", "args", "public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner (System.in);\n\t\tint n = sc.nextInt(); \n\t\tint Rt [] = new int[n];\n for(int i = 0; i < n; i++) {\n\t\t\tRt[i] = sc.nextInt();\n\t\t}\n\t\tint Rmax = Integer.MIN_VALUE;\n int Rmin = Rt[0];\n\t\t\n\t\tfor(int j = 1; j < n; j++) {\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}\n\t\tSystem.out.println(Rmax);\n\t}\n}", "public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner (System.in);\n\t\tint n = sc.nextInt(); \n\t\tint Rt [] = new int[n];\n for(int i = 0; i < n; i++) {\n\t\t\tRt[i] = sc.nextInt();\n\t\t}\n\t\tint Rmax = Integer.MIN_VALUE;\n int Rmin = Rt[0];\n\t\t\n\t\tfor(int j = 1; j < n; j++) {\n\t\t\tRmax = Math.max(Rmax, Rt[j] - Rmin);\n\t\t\tRmin = Math.min(Rmin, Rt[j]);\n\t\t}\n\t\tSystem.out.println(Rmax);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String [] args){ Scanner sc = new Scanner (System.in); int n = sc.nextInt(); int Rt [] = new int[n]; for(int i = 0; i < n; i++) { Rt[i] = sc.nextInt(); } int Rmax = Integer.MIN_VALUE; int Rmin = Rt[0]; for(int j = 1; j < n; j++) { Rmax = Math.max(Rmax, Rt[j] - Rmin); Rmin = Math.min(Rmin, Rt[j]); } System.out.println(Rmax); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 18, 13, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 13, 13, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 29, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 69, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 68, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 8, 101 ], [ 6, 102 ], [ 102, 103 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n\n\tint n;\n\tint temp;\n\tint max = Integer.MIN_VALUE;\n\tint i;\n\n\tScanner scan = new Scanner(System.in);\n\n\tn = scan.nextInt();\n\tint m[] = new int[n];\n\tfor(i=0; i<n ; i++)\n\t\tm[i] = scan.nextInt();\n\n\ttemp = m[0];\n\tfor(i=1 ; i<n ; i++){\n\t\tif(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;\n\t\tif(temp > m[i])\n\t\t\ttemp = m[i];\n\t}\n\n\tSystem.out.println(max);\n\n\treturn;\n\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[]){\n\n\tint n;\n\tint temp;\n\tint max = Integer.MIN_VALUE;\n\tint i;\n\n\tScanner scan = new Scanner(System.in);\n\n\tn = scan.nextInt();\n\tint m[] = new int[n];\n\tfor(i=0; i<n ; i++)\n\t\tm[i] = scan.nextInt();\n\n\ttemp = m[0];\n\tfor(i=1 ; i<n ; i++){\n\t\tif(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;\n\t\tif(temp > m[i])\n\t\t\ttemp = m[i];\n\t}\n\n\tSystem.out.println(max);\n\n\treturn;\n\n }\n\n}", "Main", "public static void main(String args[]){\n\n\tint n;\n\tint temp;\n\tint max = Integer.MIN_VALUE;\n\tint i;\n\n\tScanner scan = new Scanner(System.in);\n\n\tn = scan.nextInt();\n\tint m[] = new int[n];\n\tfor(i=0; i<n ; i++)\n\t\tm[i] = scan.nextInt();\n\n\ttemp = m[0];\n\tfor(i=1 ; i<n ; i++){\n\t\tif(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;\n\t\tif(temp > m[i])\n\t\t\ttemp = m[i];\n\t}\n\n\tSystem.out.println(max);\n\n\treturn;\n\n }", "main", "{\n\n\tint n;\n\tint temp;\n\tint max = Integer.MIN_VALUE;\n\tint i;\n\n\tScanner scan = new Scanner(System.in);\n\n\tn = scan.nextInt();\n\tint m[] = new int[n];\n\tfor(i=0; i<n ; i++)\n\t\tm[i] = scan.nextInt();\n\n\ttemp = m[0];\n\tfor(i=1 ; i<n ; i++){\n\t\tif(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;\n\t\tif(temp > m[i])\n\t\t\ttemp = m[i];\n\t}\n\n\tSystem.out.println(max);\n\n\treturn;\n\n }", "int n;", "n", "int temp;", "temp", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int i;", "i", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "n = scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "int m[] = new int[n];", "m", "new int[n]", "n", "for(i=0; i<n ; i++)\n\t\tm[i] = scan.nextInt();", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "m[i] = scan.nextInt();", "m[i] = scan.nextInt()", "m[i]", "m", "i", "scan.nextInt()", "scan.nextInt", "scan", "temp = m[0]", "temp", "m[0]", "m", "0", "for(i=1 ; i<n ; i++){\n\t\tif(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;\n\t\tif(temp > m[i])\n\t\t\ttemp = m[i];\n\t}", "i=1 ;", "i=1", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\tif(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;\n\t\tif(temp > m[i])\n\t\t\ttemp = m[i];\n\t}", "{\n\t\tif(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;\n\t\tif(temp > m[i])\n\t\t\ttemp = m[i];\n\t}", "if(m[i]-temp > max)\n\t\t\tmax = m[i]-temp;", "m[i]-temp > max", "m[i]-temp", "m[i]", "m", "i", "temp", "max", "max = m[i]-temp", "max", "m[i]-temp", "m[i]", "m", "i", "temp", "if(temp > m[i])\n\t\t\ttemp = m[i];", "temp > m[i]", "temp", "m[i]", "m", "i", "temp = m[i]", "temp", "m[i]", "m", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "return;", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ int n; int temp; int max = Integer.MIN_VALUE; int i; Scanner scan = new Scanner(System.in); n = scan.nextInt(); int m[] = new int[n]; for(i=0; i<n ; i++) m[i] = scan.nextInt(); temp = m[0]; for(i=1 ; i<n ; i++){ if(m[i]-temp > max) max = m[i]-temp; if(temp > m[i]) temp = m[i]; } System.out.println(max); return; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 2, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 30, 14, 2, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 53, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.Scanner;\n\n// ALDS1_1_D\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r, p = 0, max = 1 - 1000000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r, p = 0, max = 1 - 1000000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r, p = 0, max = 1 - 1000000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r, p = 0, max = 1 - 1000000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int r", "r", "p = 0", "p", "0", "max = 1 - 1000000000;", "max", "1 - 1000000000", "1", "1000000000", "for (int i = 0; i < n; i++) {\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}", "{\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "if (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}", "i == 0", "i", "0", "{\n\t\t\t\tp = r;\n\t\t\t}", "p = r", "p", "r", "{\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}", "if (max < r - p) max = r - p;", "max < r - p", "max", "r - p", "r", "p", "max = r - p", "max", "r - p", "r", "p", "if (r < p) p = r;", "r < p", "r", "p", "p = r", "p", "r", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r, p = 0, max = 1 - 1000000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r, p = 0, max = 1 - 1000000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr = sc.nextInt();\n\t\t\tif (i == 0) {\n\t\t\t\tp = r;\n\t\t\t} else {\n\t\t\t\tif (max < r - p) max = r - p;\n\t\t\t\tif (r < p) p = r;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.util.Scanner; // ALDS1_1_D public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int r, p = 0, max = 1 - 1000000000; for (int i = 0; i < n; i++) { r = sc.nextInt(); if (i == 0) { p = r; } else { if (max < r - p) max = r - p; if (r < p) p = r; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 46, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 46, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 6, 77 ], [ 77, 78 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = Integer.parseInt(scan.nextLine());\n int dif = -2000000000;\n int min = Integer.parseInt(scan.nextLine());\n int number;\n for(int i=1; i<n; i++){\n number = Integer.parseInt(scan.nextLine());\n dif = Math.max(dif, number-min);\n min = Math.min(min, number);\n }\n \n System.out.println(dif);\n }\n \n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = Integer.parseInt(scan.nextLine());\n int dif = -2000000000;\n int min = Integer.parseInt(scan.nextLine());\n int number;\n for(int i=1; i<n; i++){\n number = Integer.parseInt(scan.nextLine());\n dif = Math.max(dif, number-min);\n min = Math.min(min, number);\n }\n \n System.out.println(dif);\n }\n \n}", "Main", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = Integer.parseInt(scan.nextLine());\n int dif = -2000000000;\n int min = Integer.parseInt(scan.nextLine());\n int number;\n for(int i=1; i<n; i++){\n number = Integer.parseInt(scan.nextLine());\n dif = Math.max(dif, number-min);\n min = Math.min(min, number);\n }\n \n System.out.println(dif);\n }", "main", "{\n\n Scanner scan = new Scanner(System.in);\n int n = Integer.parseInt(scan.nextLine());\n int dif = -2000000000;\n int min = Integer.parseInt(scan.nextLine());\n int number;\n for(int i=1; i<n; i++){\n number = Integer.parseInt(scan.nextLine());\n dif = Math.max(dif, number-min);\n min = Math.min(min, number);\n }\n \n System.out.println(dif);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = Integer.parseInt(scan.nextLine());", "n", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "int dif = -2000000000;", "dif", "-2000000000", "2000000000", "int min = Integer.parseInt(scan.nextLine());", "min", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "int number;", "number", "for(int i=1; i<n; i++){\n number = Integer.parseInt(scan.nextLine());\n dif = Math.max(dif, number-min);\n min = Math.min(min, number);\n }", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n number = Integer.parseInt(scan.nextLine());\n dif = Math.max(dif, number-min);\n min = Math.min(min, number);\n }", "{\n number = Integer.parseInt(scan.nextLine());\n dif = Math.max(dif, number-min);\n min = Math.min(min, number);\n }", "number = Integer.parseInt(scan.nextLine())", "number", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "dif = Math.max(dif, number-min)", "dif", "Math.max(dif, number-min)", "Math.max", "Math", "dif", "number-min", "number", "min", "min = Math.min(min, number)", "min", "Math.min(min, number)", "Math.min", "Math", "min", "number", "System.out.println(dif)", "System.out.println", "System.out", "System", "System.out", "dif", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.nextLine()); int dif = -2000000000; int min = Integer.parseInt(scan.nextLine()); int number; for(int i=1; i<n; i++){ number = Integer.parseInt(scan.nextLine()); dif = Math.max(dif, number-min); min = Math.min(min, number); } System.out.println(dif); } }
[ 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, 41, 13, 18, 13, 13, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "\n\n\n\n\nimport java.util.*;\n \npublic class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n int a[] = new int[N];\n for(int i = 0; i < N; i++){\n a[i] = sc.nextInt();\n }\n \n int max = Integer.MIN_VALUE;\n int min = a[0];\n for(int i = 1; i < N; i++){\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }\n System.out.println(max); \n\n\n\n } \n}\n\n\n\n\n", "import java.util.*;", "util.*", "java", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n int a[] = new int[N];\n for(int i = 0; i < N; i++){\n a[i] = sc.nextInt();\n }\n \n int max = Integer.MIN_VALUE;\n int min = a[0];\n for(int i = 1; i < N; i++){\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }\n System.out.println(max); \n\n\n\n } \n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n int a[] = new int[N];\n for(int i = 0; i < N; i++){\n a[i] = sc.nextInt();\n }\n \n int max = Integer.MIN_VALUE;\n int min = a[0];\n for(int i = 1; i < N; i++){\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }\n System.out.println(max); \n\n\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n int a[] = new int[N];\n for(int i = 0; i < N; i++){\n a[i] = sc.nextInt();\n }\n \n int max = Integer.MIN_VALUE;\n int min = a[0];\n for(int i = 1; i < N; i++){\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }\n System.out.println(max); \n\n\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int a[] = new int[N];", "a", "new int[N]", "N", "for(int i = 0; i < N; i++){\n a[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n a[i] = sc.nextInt();\n }", "{\n a[i] = sc.nextInt();\n }", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int min = a[0];", "min", "a[0]", "a", "0", "for(int i = 1; i < N; i++){\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }", "int i = 1;", "int i = 1;", "i", "1", "i < N", "i", "N", "i++", "i++", "i", "{\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }", "{\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }", "max = Math.max(max, a[i] - min)", "max", "Math.max(max, a[i] - min)", "Math.max", "Math", "max", "a[i] - min", "a[i]", "a", "i", "min", "min = Math.min(min, a[i])", "min", "Math.min(min, a[i])", "Math.min", "Math", "min", "a[i]", "a", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n int a[] = new int[N];\n for(int i = 0; i < N; i++){\n a[i] = sc.nextInt();\n }\n \n int max = Integer.MIN_VALUE;\n int min = a[0];\n for(int i = 1; i < N; i++){\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }\n System.out.println(max); \n\n\n\n } \n}", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n \n int a[] = new int[N];\n for(int i = 0; i < N; i++){\n a[i] = sc.nextInt();\n }\n \n int max = Integer.MIN_VALUE;\n int min = a[0];\n for(int i = 1; i < N; i++){\n max = Math.max(max, a[i] - min);\n min = Math.min(min, a[i]);\n\n }\n System.out.println(max); \n\n\n\n } \n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a[] = new int[N]; for(int i = 0; i < N; i++){ a[i] = sc.nextInt(); } int max = Integer.MIN_VALUE; int min = a[0]; for(int i = 1; i < N; i++){ max = Math.max(max, a[i] - min); min = Math.min(min, a[i]); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 40, 2, 17, 17, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 104, 9 ], [ 9, 10 ], [ 104, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 104, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 20, 25 ], [ 25, 26 ], [ 20, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 20, 33 ], [ 33, 34 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 41 ], [ 41, 42 ], [ 41, 43 ], [ 20, 44 ], [ 44, 45 ], [ 44, 46 ], [ 20, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 20, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 20, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 69, 82 ], [ 82, 83 ], [ 82, 84 ], [ 69, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 69, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 92, 96 ], [ 20, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static Scanner scan = new Scanner(System.in);\n\tpublic static int n;\n\tpublic static void main(String args[]){\n\t\trun();\n\t}\n\tstatic void run(){\n\t\tint n, firstPriceTmp, priceTmp;\n\t\tint minPrice, maxPrice;\n\t\tint maxBenefit, benefit;\n\t\t\n\t\tmaxBenefit = -(1000000000 - 1);\n\t\tminPrice = 1000000000;\n\t\tmaxPrice = 1;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfirstPriceTmp = scan.nextInt();\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}\n\t\tSystem.out.println(maxBenefit);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static Scanner scan = new Scanner(System.in);\n\tpublic static int n;\n\tpublic static void main(String args[]){\n\t\trun();\n\t}\n\tstatic void run(){\n\t\tint n, firstPriceTmp, priceTmp;\n\t\tint minPrice, maxPrice;\n\t\tint maxBenefit, benefit;\n\t\t\n\t\tmaxBenefit = -(1000000000 - 1);\n\t\tminPrice = 1000000000;\n\t\tmaxPrice = 1;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfirstPriceTmp = scan.nextInt();\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}\n\t\tSystem.out.println(maxBenefit);\n\t}\n}", "Main", "public static Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "public static int n;", "n", "public static void main(String args[]){\n\t\trun();\n\t}", "main", "{\n\t\trun();\n\t}", "run()", "run", "String args[]", "args", "static void run(){\n\t\tint n, firstPriceTmp, priceTmp;\n\t\tint minPrice, maxPrice;\n\t\tint maxBenefit, benefit;\n\t\t\n\t\tmaxBenefit = -(1000000000 - 1);\n\t\tminPrice = 1000000000;\n\t\tmaxPrice = 1;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfirstPriceTmp = scan.nextInt();\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}\n\t\tSystem.out.println(maxBenefit);\n\t}", "run", "{\n\t\tint n, firstPriceTmp, priceTmp;\n\t\tint minPrice, maxPrice;\n\t\tint maxBenefit, benefit;\n\t\t\n\t\tmaxBenefit = -(1000000000 - 1);\n\t\tminPrice = 1000000000;\n\t\tmaxPrice = 1;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfirstPriceTmp = scan.nextInt();\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}\n\t\tSystem.out.println(maxBenefit);\n\t}", "int n", "n", "firstPriceTmp", "firstPriceTmp", "priceTmp;", "priceTmp", "int minPrice", "minPrice", "maxPrice;", "maxPrice", "int maxBenefit", "maxBenefit", "benefit;", "benefit", "maxBenefit = -(1000000000 - 1)", "maxBenefit", "-(1000000000 - 1)", "(1000000000 - 1)", "1000000000", "1", "minPrice = 1000000000", "minPrice", "1000000000", "maxPrice = 1", "maxPrice", "1", "n = scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "firstPriceTmp = scan.nextInt()", "firstPriceTmp", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 1; i < n; i++){\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}", "{\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}", "priceTmp = scan.nextInt()", "priceTmp", "scan.nextInt()", "scan.nextInt", "scan", "minPrice = Math.min(minPrice, firstPriceTmp)", "minPrice", "Math.min(minPrice, firstPriceTmp)", "Math.min", "Math", "minPrice", "firstPriceTmp", "firstPriceTmp = priceTmp", "firstPriceTmp", "priceTmp", "benefit = priceTmp - minPrice", "benefit", "priceTmp - minPrice", "priceTmp", "minPrice", "maxBenefit = Math.max(benefit, maxBenefit)", "maxBenefit", "Math.max(benefit, maxBenefit)", "Math.max", "Math", "benefit", "maxBenefit", "System.out.println(maxBenefit)", "System.out.println", "System.out", "System", "System.out", "maxBenefit", "public class Main {\n\tpublic static Scanner scan = new Scanner(System.in);\n\tpublic static int n;\n\tpublic static void main(String args[]){\n\t\trun();\n\t}\n\tstatic void run(){\n\t\tint n, firstPriceTmp, priceTmp;\n\t\tint minPrice, maxPrice;\n\t\tint maxBenefit, benefit;\n\t\t\n\t\tmaxBenefit = -(1000000000 - 1);\n\t\tminPrice = 1000000000;\n\t\tmaxPrice = 1;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfirstPriceTmp = scan.nextInt();\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}\n\t\tSystem.out.println(maxBenefit);\n\t}\n}", "public class Main {\n\tpublic static Scanner scan = new Scanner(System.in);\n\tpublic static int n;\n\tpublic static void main(String args[]){\n\t\trun();\n\t}\n\tstatic void run(){\n\t\tint n, firstPriceTmp, priceTmp;\n\t\tint minPrice, maxPrice;\n\t\tint maxBenefit, benefit;\n\t\t\n\t\tmaxBenefit = -(1000000000 - 1);\n\t\tminPrice = 1000000000;\n\t\tmaxPrice = 1;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfirstPriceTmp = scan.nextInt();\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tpriceTmp = scan.nextInt();\n\t\t\tminPrice = Math.min(minPrice, firstPriceTmp);\n\t\t\tfirstPriceTmp = priceTmp;\n\t\t\tbenefit = priceTmp - minPrice;\n\t\t\tmaxBenefit = Math.max(benefit, maxBenefit);\n\t\t}\n\t\tSystem.out.println(maxBenefit);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner scan = new Scanner(System.in); public static int n; public static void main(String args[]){ run(); } static void run(){ int n, firstPriceTmp, priceTmp; int minPrice, maxPrice; int maxBenefit, benefit; maxBenefit = -(1000000000 - 1); minPrice = 1000000000; maxPrice = 1; n = scan.nextInt(); firstPriceTmp = scan.nextInt(); for(int i = 1; i < n; i++){ priceTmp = scan.nextInt(); minPrice = Math.min(minPrice, firstPriceTmp); firstPriceTmp = priceTmp; benefit = priceTmp - minPrice; maxBenefit = Math.max(benefit, maxBenefit); } System.out.println(maxBenefit); } }
[ 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, 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, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 18, 13, 2, 13, 17, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 14, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 14, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 79, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 14, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 12, 108 ], [ 108, 109 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main{\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\tint[] num = new int[n];\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tnum[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint max = num[1] - num[0];\n\t\tint min = num[0];\n\t\tfor (int i = 1; i<n ; i++) {\n\t\t\tmin = Math.min(min,num[i-1]);\n\t\t\tmax = Math.max(max,num[i]-min);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] num = new int[n];\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tnum[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint max = num[1] - num[0];\n\t\tint min = num[0];\n\t\tfor (int i = 1; i<n ; i++) {\n\t\t\tmin = Math.min(min,num[i-1]);\n\t\t\tmax = Math.max(max,num[i]-min);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] num = new int[n];\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tnum[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint max = num[1] - num[0];\n\t\tint min = num[0];\n\t\tfor (int i = 1; i<n ; i++) {\n\t\t\tmin = Math.min(min,num[i-1]);\n\t\t\tmax = Math.max(max,num[i]-min);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] num = new int[n];\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tnum[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint max = num[1] - num[0];\n\t\tint min = num[0];\n\t\tfor (int i = 1; i<n ; i++) {\n\t\t\tmin = Math.min(min,num[i-1]);\n\t\t\tmax = Math.max(max,num[i]-min);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] num = new int[n];", "num", "new int[n]", "n", "for (int i = 0; i<n ; i++ ) {\n\t\t\tnum[i] = Integer.parseInt(br.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnum[i] = Integer.parseInt(br.readLine());\n\t\t}", "{\n\t\t\tnum[i] = Integer.parseInt(br.readLine());\n\t\t}", "num[i] = Integer.parseInt(br.readLine())", "num[i]", "num", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int max = num[1] - num[0];", "max", "num[1] - num[0]", "num[1]", "num", "1", "num[0]", "num", "0", "int min = num[0];", "min", "num[0]", "num", "0", "for (int i = 1; i<n ; i++) {\n\t\t\tmin = Math.min(min,num[i-1]);\n\t\t\tmax = Math.max(max,num[i]-min);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmin = Math.min(min,num[i-1]);\n\t\t\tmax = Math.max(max,num[i]-min);\n\t\t}", "{\n\t\t\tmin = Math.min(min,num[i-1]);\n\t\t\tmax = Math.max(max,num[i]-min);\n\t\t}", "min = Math.min(min,num[i-1])", "min", "Math.min(min,num[i-1])", "Math.min", "Math", "min", "num[i-1]", "num", "i-1", "i", "1", "max = Math.max(max,num[i]-min)", "max", "Math.max(max,num[i]-min)", "Math.max", "Math", "max", "num[i]-min", "num[i]", "num", "i", "min", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.*; import java.util.Arrays; import java.util.Scanner; 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[] num = new int[n]; for (int i = 0; i<n ; i++ ) { num[i] = Integer.parseInt(br.readLine()); } int max = num[1] - num[0]; int min = num[0]; for (int i = 1; i<n ; i++) { min = Math.min(min,num[i-1]); max = Math.max(max,num[i]-min); } System.out.println(max); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 91, 17 ], [ 91, 18 ], [ 18, 19 ], [ 18, 20 ], [ 91, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 24, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 53, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 24, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 24, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 22, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tstatic int[] memo = new int[45];\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<Integer> diff = new ArrayList<Integer>();\n\t\t\n\t\tint n = in.nextInt();\n\t\tint min = in.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}\n\t\tCollections.sort(diff, Comparator.reverseOrder());\n\t\tSystem.out.println(diff.get(0));\n\t}\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tstatic int[] memo = new int[45];\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<Integer> diff = new ArrayList<Integer>();\n\t\t\n\t\tint n = in.nextInt();\n\t\tint min = in.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}\n\t\tCollections.sort(diff, Comparator.reverseOrder());\n\t\tSystem.out.println(diff.get(0));\n\t}\n}", "Main", "static int[] memo = new int[45];", "memo", "new int[45]", "45", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<Integer> diff = new ArrayList<Integer>();\n\t\t\n\t\tint n = in.nextInt();\n\t\tint min = in.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}\n\t\tCollections.sort(diff, Comparator.reverseOrder());\n\t\tSystem.out.println(diff.get(0));\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tList<Integer> diff = new ArrayList<Integer>();\n\t\t\n\t\tint n = in.nextInt();\n\t\tint min = in.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}\n\t\tCollections.sort(diff, Comparator.reverseOrder());\n\t\tSystem.out.println(diff.get(0));\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "List<Integer> diff = new ArrayList<Integer>();", "diff", "new ArrayList<Integer>()", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int min = in.nextInt();", "min", "in.nextInt()", "in.nextInt", "in", "for (int i = 1; i < n; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}", "{\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}", "int val = in.nextInt();", "val", "in.nextInt()", "in.nextInt", "in", "diff.add(val-min)", "diff.add", "diff", "val-min", "val", "min", "if (min > val) min=val;", "min > val", "min", "val", "min=val", "min", "val", "Collections.sort(diff, Comparator.reverseOrder())", "Collections.sort", "Collections", "diff", "Comparator.reverseOrder()", "Comparator.reverseOrder", "Comparator", "System.out.println(diff.get(0))", "System.out.println", "System.out", "System", "System.out", "diff.get(0)", "diff.get", "diff", "0", "String[] args", "args", "public class Main {\n\t\n\tstatic int[] memo = new int[45];\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<Integer> diff = new ArrayList<Integer>();\n\t\t\n\t\tint n = in.nextInt();\n\t\tint min = in.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}\n\t\tCollections.sort(diff, Comparator.reverseOrder());\n\t\tSystem.out.println(diff.get(0));\n\t}\n}", "public class Main {\n\t\n\tstatic int[] memo = new int[45];\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<Integer> diff = new ArrayList<Integer>();\n\t\t\n\t\tint n = in.nextInt();\n\t\tint min = in.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = in.nextInt();\n\t\t\tdiff.add(val-min);\n\t\t\tif (min > val) min=val;\n\t\t}\n\t\tCollections.sort(diff, Comparator.reverseOrder());\n\t\tSystem.out.println(diff.get(0));\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Scanner; public class Main { static int[] memo = new int[45]; public static void main(String[] args) { Scanner in = new Scanner(System.in); List<Integer> diff = new ArrayList<Integer>(); int n = in.nextInt(); int min = in.nextInt(); for (int i = 1; i < n; i++) { int val = in.nextInt(); diff.add(val-min); if (min > val) min=val; } Collections.sort(diff, Comparator.reverseOrder()); System.out.println(diff.get(0)); } }
[ 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, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 13, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 74, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 73, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\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\tint[] R = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tint max=R[1]-R[0];\n\t\tint Rmin=R[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint[] R = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tint max=R[1]-R[0];\n\t\tint Rmin=R[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint[] R = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tint max=R[1]-R[0];\n\t\tint Rmin=R[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint[] R = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tint max=R[1]-R[0];\n\t\tint Rmin=R[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int[] R = new int[n];", "R", "new int[n]", "n", "for(int i=0;i<n;i++){\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}", "{\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}", "R[i] = Integer.parseInt(sc.next())", "R[i]", "R", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int max=R[1]-R[0];", "max", "R[1]-R[0]", "R[1]", "R", "1", "R[0]", "R", "0", "int Rmin=R[0];", "Rmin", "R[0]", "R", "0", "for(int i=1;i<n;i++){\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}", "{\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}", "if(max<R[i]-Rmin) max=R[i]-Rmin;", "max<R[i]-Rmin", "max", "R[i]-Rmin", "R[i]", "R", "i", "Rmin", "max=R[i]-Rmin", "max", "R[i]-Rmin", "R[i]", "R", "i", "Rmin", "if(Rmin>R[i]) Rmin=R[i];", "Rmin>R[i]", "Rmin", "R[i]", "R", "i", "Rmin=R[i]", "Rmin", "R[i]", "R", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint[] R = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tint max=R[1]-R[0];\n\t\tint Rmin=R[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint[] R = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tR[i] = Integer.parseInt(sc.next());\n\t\t}\n\t\t\n\t\tint max=R[1]-R[0];\n\t\tint Rmin=R[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tif(max<R[i]-Rmin) max=R[i]-Rmin;\n\t\t\tif(Rmin>R[i]) Rmin=R[i];\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int[] R = new int[n]; for(int i=0;i<n;i++){ R[i] = Integer.parseInt(sc.next()); } int max=R[1]-R[0]; int Rmin=R[0]; for(int i=1;i<n;i++){ if(max<R[i]-Rmin) max=R[i]-Rmin; if(Rmin>R[i]) Rmin=R[i]; } System.out.println(max); } }
[ 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, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 17, 0, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 126, 20 ], [ 126, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 23, 28 ], [ 28, 29 ], [ 23, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 36, 38 ], [ 23, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 23, 44 ], [ 44, 45 ], [ 44, 46 ], [ 47, 48 ], [ 47, 49 ], [ 23, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 23, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 23, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 23, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 84, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 96, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 23, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 21, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport static java.util.Arrays.*;\nimport static java.util.Collections.*;\nimport static java.lang.Math.*;\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n int i,j,t,k,minv,maxv;\n Scanner scan=new Scanner(System.in);\n t=scan.nextInt();\n int r[]=new int[t+1];\n for(i=0;i<t;i++)\n {\n \tr[i]=scan.nextInt();\n }\n minv=r[0];\n maxv=r[1]-r[0];\n for(j=1;j<t;j++)\n {\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }\n System.out.println(maxv);\n\t}\n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import static java.util.Arrays.*;", "import static java.util.Arrays.*;", "import static java.util.Arrays.*;", "import static java.util.Collections.*;", "import static java.util.Collections.*;", "import static java.util.Collections.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n int i,j,t,k,minv,maxv;\n Scanner scan=new Scanner(System.in);\n t=scan.nextInt();\n int r[]=new int[t+1];\n for(i=0;i<t;i++)\n {\n \tr[i]=scan.nextInt();\n }\n minv=r[0];\n maxv=r[1]-r[0];\n for(j=1;j<t;j++)\n {\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }\n System.out.println(maxv);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n int i,j,t,k,minv,maxv;\n Scanner scan=new Scanner(System.in);\n t=scan.nextInt();\n int r[]=new int[t+1];\n for(i=0;i<t;i++)\n {\n \tr[i]=scan.nextInt();\n }\n minv=r[0];\n maxv=r[1]-r[0];\n for(j=1;j<t;j++)\n {\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }\n System.out.println(maxv);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n int i,j,t,k,minv,maxv;\n Scanner scan=new Scanner(System.in);\n t=scan.nextInt();\n int r[]=new int[t+1];\n for(i=0;i<t;i++)\n {\n \tr[i]=scan.nextInt();\n }\n minv=r[0];\n maxv=r[1]-r[0];\n for(j=1;j<t;j++)\n {\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }\n System.out.println(maxv);\n\t}", "int i", "i", "j", "j", "t", "t", "k", "k", "minv", "minv", "maxv;", "maxv", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "t=scan.nextInt()", "t", "scan.nextInt()", "scan.nextInt", "scan", "int r[]=new int[t+1];", "r", "new int[t+1]", "t+1", "t", "1", "for(i=0;i<t;i++)\n {\n \tr[i]=scan.nextInt();\n }", "i=0;", "i=0", "i", "0", "i<t", "i", "t", "i++", "i++", "i", "{\n \tr[i]=scan.nextInt();\n }", "{\n \tr[i]=scan.nextInt();\n }", "r[i]=scan.nextInt()", "r[i]", "r", "i", "scan.nextInt()", "scan.nextInt", "scan", "minv=r[0]", "minv", "r[0]", "r", "0", "maxv=r[1]-r[0]", "maxv", "r[1]-r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "for(j=1;j<t;j++)\n {\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }", "j=1;", "j=1", "j", "1", "j<t", "j", "t", "j++", "j++", "j", "{\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }", "{\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }", "maxv=Math.max(maxv,r[j]-minv)", "maxv", "Math.max(maxv,r[j]-minv)", "Math.max", "Math", "maxv", "r[j]-minv", "r[j]", "r", "j", "minv", "minv=Math.min(minv,r[j])", "minv", "Math.min(minv,r[j])", "Math.min", "Math", "minv", "r[j]", "r", "j", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n int i,j,t,k,minv,maxv;\n Scanner scan=new Scanner(System.in);\n t=scan.nextInt();\n int r[]=new int[t+1];\n for(i=0;i<t;i++)\n {\n \tr[i]=scan.nextInt();\n }\n minv=r[0];\n maxv=r[1]-r[0];\n for(j=1;j<t;j++)\n {\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }\n System.out.println(maxv);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n int i,j,t,k,minv,maxv;\n Scanner scan=new Scanner(System.in);\n t=scan.nextInt();\n int r[]=new int[t+1];\n for(i=0;i<t;i++)\n {\n \tr[i]=scan.nextInt();\n }\n minv=r[0];\n maxv=r[1]-r[0];\n for(j=1;j<t;j++)\n {\n \tmaxv=Math.max(maxv,r[j]-minv);\n \tminv=Math.min(minv,r[j]);\n }\n System.out.println(maxv);\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; import static java.util.Arrays.*; import static java.util.Collections.*; import static java.lang.Math.*; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? int i,j,t,k,minv,maxv; Scanner scan=new Scanner(System.in); t=scan.nextInt(); int r[]=new int[t+1]; for(i=0;i<t;i++) { r[i]=scan.nextInt(); } minv=r[0]; maxv=r[1]-r[0]; for(j=1;j<t;j++) { maxv=Math.max(maxv,r[j]-minv); minv=Math.min(minv,r[j]); } System.out.println(maxv); } }
[ 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, 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, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 19, 31 ], [ 31, 32 ], [ 31, 33 ], [ 19, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 19, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 19, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 19, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 79, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 19, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 19, 106 ], [ 106, 107 ], [ 107, 108 ], [ 9, 109 ], [ 109, 110 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nclass Main{\n public static void main(String[] args){\n \t//final int MAX =200000;\n \t try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \tfinal int n = Integer.parseInt(reader.readLine());\n \t//Scanner sc = new Scanner(System.in);\n \t//int n = Integer.parseInt(sc.next());\n \t//int n =sc.nextInt();\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n public static void main(String[] args){\n \t//final int MAX =200000;\n \t try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \tfinal int n = Integer.parseInt(reader.readLine());\n \t//Scanner sc = new Scanner(System.in);\n \t//int n = Integer.parseInt(sc.next());\n \t//int n =sc.nextInt();\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args){\n \t//final int MAX =200000;\n \t try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \tfinal int n = Integer.parseInt(reader.readLine());\n \t//Scanner sc = new Scanner(System.in);\n \t//int n = Integer.parseInt(sc.next());\n \t//int n =sc.nextInt();\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "main", "{\n \t//final int MAX =200000;\n \t try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \tfinal int n = Integer.parseInt(reader.readLine());\n \t//Scanner sc = new Scanner(System.in);\n \t//int n = Integer.parseInt(sc.next());\n \t//int n =sc.nextInt();\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \tfinal int n = Integer.parseInt(reader.readLine());\n \t//Scanner sc = new Scanner(System.in);\n \t//int n = Integer.parseInt(sc.next());\n \t//int n =sc.nextInt();\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n reader.close();\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \tfinal int n = Integer.parseInt(reader.readLine());\n \t//Scanner sc = new Scanner(System.in);\n \t//int n = Integer.parseInt(sc.next());\n \t//int n =sc.nextInt();\n \tint[] R=new int[n];\n \t\n \tfor(int i=0;i<n;i++){\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}\n \tint maxv=-2000000000;\n \t\t\t \n \tint minv=R[0];\n \tfor(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}\n \tSystem.out.println(maxv);\n reader.close();\n }", "final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "final int n = Integer.parseInt(reader.readLine());", "n", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "int[] R=new int[n];", "R", "new int[n]", "n", "for(int i=0;i<n;i++){\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}", "{\n \t\t// R[i]=Integer.parseInt(sc.next());\n \t\t R[i]=Integer.parseInt(reader.readLine());\n \t}", "R[i]=Integer.parseInt(reader.readLine())", "R[i]", "R", "i", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "int maxv=-2000000000;", "maxv", "-2000000000", "2000000000", "int minv=R[0];", "minv", "R[0]", "R", "0", "for(int i=1;i<n;i++){\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}", "{\n \t\tmaxv=Math.max(maxv,R[i]-minv);\n \t\tminv=Math.min(minv,R[i]);\n \t}", "maxv=Math.max(maxv,R[i]-minv)", "maxv", "Math.max(maxv,R[i]-minv)", "Math.max", "Math", "maxv", "R[i]-minv", "R[i]", "R", "i", "minv", "minv=Math.min(minv,R[i])", "minv", "Math.min(minv,R[i])", "Math.min", "Math", "minv", "R[i]", "R", "i", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "reader.close()", "reader.close", "reader", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; class Main{ public static void main(String[] args){ //final int MAX =200000; try { final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); final int n = Integer.parseInt(reader.readLine()); //Scanner sc = new Scanner(System.in); //int n = Integer.parseInt(sc.next()); //int n =sc.nextInt(); int[] R=new int[n]; for(int i=0;i<n;i++){ // R[i]=Integer.parseInt(sc.next()); R[i]=Integer.parseInt(reader.readLine()); } int maxv=-2000000000; int minv=R[0]; for(int i=1;i<n;i++){ maxv=Math.max(maxv,R[i]-minv); minv=Math.min(minv,R[i]); } System.out.println(maxv); reader.close(); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 13, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 10, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 30, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 17, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 17, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 17, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 65, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 80, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 17, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 15, 107 ], [ 107, 108 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static final int MAX = 200000;\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tint Nums[] = new int[MAX];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString n = br.readLine();\n\n\t\tfor(int i=0; i<Integer.parseInt(n); i++){\n\t\t\t Nums[i] = Integer.parseInt(br.readLine());\n\t\t\t}\n\n\n\t\tint max = -2000000000;\n\t\tint min = Nums[0];\n\n\t\tfor(int i=1; i<Integer.parseInt(n); i++){\n\t\t\tmax = Math.max(max, Nums[i]-min);\n\t\t\tmin = Math.min(min, Nums[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n\n\tpublic static final int MAX = 200000;\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tint Nums[] = new int[MAX];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString n = br.readLine();\n\n\t\tfor(int i=0; i<Integer.parseInt(n); i++){\n\t\t\t Nums[i] = Integer.parseInt(br.readLine());\n\t\t\t}\n\n\n\t\tint max = -2000000000;\n\t\tint min = Nums[0];\n\n\t\tfor(int i=1; i<Integer.parseInt(n); i++){\n\t\t\tmax = Math.max(max, Nums[i]-min);\n\t\t\tmin = Math.min(min, Nums[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "Main", "public static final int MAX = 200000;", "MAX", "200000", "public static void main(String[] args) throws IOException {\n\n\t\tint Nums[] = new int[MAX];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString n = br.readLine();\n\n\t\tfor(int i=0; i<Integer.parseInt(n); i++){\n\t\t\t Nums[i] = Integer.parseInt(br.readLine());\n\t\t\t}\n\n\n\t\tint max = -2000000000;\n\t\tint min = Nums[0];\n\n\t\tfor(int i=1; i<Integer.parseInt(n); i++){\n\t\t\tmax = Math.max(max, Nums[i]-min);\n\t\t\tmin = Math.min(min, Nums[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}", "main", "{\n\n\t\tint Nums[] = new int[MAX];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString n = br.readLine();\n\n\t\tfor(int i=0; i<Integer.parseInt(n); i++){\n\t\t\t Nums[i] = Integer.parseInt(br.readLine());\n\t\t\t}\n\n\n\t\tint max = -2000000000;\n\t\tint min = Nums[0];\n\n\t\tfor(int i=1; i<Integer.parseInt(n); i++){\n\t\t\tmax = Math.max(max, Nums[i]-min);\n\t\t\tmin = Math.min(min, Nums[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}", "int Nums[] = new int[MAX];", "Nums", "new int[MAX]", "MAX", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String n = br.readLine();", "n", "br.readLine()", "br.readLine", "br", "for(int i=0; i<Integer.parseInt(n); i++){\n\t\t\t Nums[i] = Integer.parseInt(br.readLine());\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<Integer.parseInt(n)", "i", "Integer.parseInt(n)", "Integer.parseInt", "Integer", "n", "i++", "i++", "i", "{\n\t\t\t Nums[i] = Integer.parseInt(br.readLine());\n\t\t\t}", "{\n\t\t\t Nums[i] = Integer.parseInt(br.readLine());\n\t\t\t}", "Nums[i] = Integer.parseInt(br.readLine())", "Nums[i]", "Nums", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int max = -2000000000;", "max", "-2000000000", "2000000000", "int min = Nums[0];", "min", "Nums[0]", "Nums", "0", "for(int i=1; i<Integer.parseInt(n); i++){\n\t\t\tmax = Math.max(max, Nums[i]-min);\n\t\t\tmin = Math.min(min, Nums[i]);\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<Integer.parseInt(n)", "i", "Integer.parseInt(n)", "Integer.parseInt", "Integer", "n", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, Nums[i]-min);\n\t\t\tmin = Math.min(min, Nums[i]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, Nums[i]-min);\n\t\t\tmin = Math.min(min, Nums[i]);\n\t\t}", "max = Math.max(max, Nums[i]-min)", "max", "Math.max(max, Nums[i]-min)", "Math.max", "Math", "max", "Nums[i]-min", "Nums[i]", "Nums", "i", "min", "min = Math.min(min, Nums[i])", "min", "Math.min(min, Nums[i])", "Math.min", "Math", "min", "Nums[i]", "Nums", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static final int MAX = 200000; public static void main(String[] args) throws IOException { int Nums[] = new int[MAX]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String n = br.readLine(); for(int i=0; i<Integer.parseInt(n); i++){ Nums[i] = Integer.parseInt(br.readLine()); } int max = -2000000000; int min = Nums[0]; for(int i=1; i<Integer.parseInt(n); i++){ max = Math.max(max, Nums[i]-min); min = Math.min(min, Nums[i]); } System.out.println(max); } }
[ 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, 20, 4, 18, 13, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 4, 18, 13, 4, 18, 13, 13, 41, 13, 20, 4, 18, 13, 0, 13, 4, 18, 13, 13, 41, 13, 2, 18, 13, 13, 17, 41, 13, 2, 18, 13, 2, 13, 17, 18, 13, 13, 41, 13, 41, 13, 41, 13, 8, 2, 0, 13, 18, 13, 2, 13, 17, 0, 13, 18, 13, 13, 13, 13, 40, 13, 42, 2, 13, 17, 30, 14, 2, 2, 13, 18, 13, 13, 13, 30, 0, 13, 2, 13, 18, 13, 13, 14, 2, 18, 13, 13, 13, 30, 0, 13, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 146, 17 ], [ 146, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 20, 48 ], [ 48, 49 ], [ 48, 50 ], [ 51, 52 ], [ 52, 53 ], [ 20, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 20, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 20, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 20, 78 ], [ 78, 79 ], [ 20, 80 ], [ 80, 81 ], [ 20, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 84, 98 ], [ 84, 99 ], [ 20, 100 ], [ 100, 101 ], [ 20, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 106, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 106, 135 ], [ 135, 136 ], [ 20, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 18, 143 ], [ 143, 144 ], [ 0, 145 ], [ 145, 146 ], [ 145, 147 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tLong[] arr = new Long[list.size()];\n\t\tarr = list.toArray(arr);\n\t\tint cursor = arr.length - 2;\n\t\tlong maxProfit = arr[cursor + 1] - arr[cursor];\n\t\tlong a, b;\n\t\tlong max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tLong[] arr = new Long[list.size()];\n\t\tarr = list.toArray(arr);\n\t\tint cursor = arr.length - 2;\n\t\tlong maxProfit = arr[cursor + 1] - arr[cursor];\n\t\tlong a, b;\n\t\tlong max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tLong[] arr = new Long[list.size()];\n\t\tarr = list.toArray(arr);\n\t\tint cursor = arr.length - 2;\n\t\tlong maxProfit = arr[cursor + 1] - arr[cursor];\n\t\tlong a, b;\n\t\tlong max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tLong[] arr = new Long[list.size()];\n\t\tarr = list.toArray(arr);\n\t\tint cursor = arr.length - 2;\n\t\tlong maxProfit = arr[cursor + 1] - arr[cursor];\n\t\tlong a, b;\n\t\tlong max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "List<Long> list = new ArrayList<Long>();", "list", "new ArrayList<Long>()", "br.readLine()", "br.readLine", "br", "String str;", "str", "while((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}", "(str = br.readLine()) != null", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}", "list.add(Long.valueOf(str))", "list.add", "list", "Long.valueOf(str)", "Long.valueOf", "Long", "str", "Long[] arr = new Long[list.size()];", "arr", "new Long[list.size()]", "list.size()", "list.size", "list", "arr = list.toArray(arr)", "arr", "list.toArray(arr)", "list.toArray", "list", "arr", "int cursor = arr.length - 2;", "cursor", "arr.length - 2", "arr.length", "arr", "arr.length", "2", "long maxProfit = arr[cursor + 1] - arr[cursor];", "maxProfit", "arr[cursor + 1] - arr[cursor]", "arr[cursor + 1]", "arr", "cursor + 1", "cursor", "1", "arr[cursor]", "arr", "cursor", "long a", "a", "b;", "b", "long max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b;", "max", "(a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b", "(a = arr[cursor + 1]) > (b = arr[cursor])", "(a = arr[cursor + 1])", "a", "arr[cursor + 1]", "arr", "cursor + 1", "cursor", "1", "(b = arr[cursor])", "b", "arr[cursor]", "arr", "cursor", "a", "b", "cursor--", "cursor", "while(cursor >= 0){\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}", "cursor >= 0", "cursor", "0", "{\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}", "if(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}", "max - arr[cursor] > maxProfit", "max - arr[cursor]", "max", "arr[cursor]", "arr", "cursor", "maxProfit", "{\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}", "maxProfit = max - arr[cursor]", "maxProfit", "max - arr[cursor]", "max", "arr[cursor]", "arr", "cursor", "if(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}", "arr[cursor] > max", "arr[cursor]", "arr", "cursor", "max", "{\n\t\t\t\tmax = arr[cursor];\n\t\t\t}", "max = arr[cursor]", "max", "arr[cursor]", "arr", "cursor", "cursor--", "cursor", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tLong[] arr = new Long[list.size()];\n\t\tarr = list.toArray(arr);\n\t\tint cursor = arr.length - 2;\n\t\tlong maxProfit = arr[cursor + 1] - arr[cursor];\n\t\tlong a, b;\n\t\tlong max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tLong[] arr = new Long[list.size()];\n\t\tarr = list.toArray(arr);\n\t\tint cursor = arr.length - 2;\n\t\tlong maxProfit = arr[cursor + 1] - arr[cursor];\n\t\tlong a, b;\n\t\tlong max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - arr[cursor] > maxProfit){\n\t\t\t\tmaxProfit = max - arr[cursor];\n\t\t\t}\n\t\t\tif(arr[cursor] > max){\n\t\t\t\tmax = arr[cursor];\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List<Long> list = new ArrayList<Long>(); br.readLine(); String str; while((str = br.readLine()) != null){ list.add(Long.valueOf(str)); } Long[] arr = new Long[list.size()]; arr = list.toArray(arr); int cursor = arr.length - 2; long maxProfit = arr[cursor + 1] - arr[cursor]; long a, b; long max = (a = arr[cursor + 1]) > (b = arr[cursor]) ? a : b; cursor--; while(cursor >= 0){ if(max - arr[cursor] > maxProfit){ maxProfit = max - arr[cursor]; } if(arr[cursor] > max){ max = arr[cursor]; } cursor--; } System.out.println(maxProfit); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 8, 2, 13, 2, 18, 13, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 8, 2, 13, 18, 13, 13, 13, 18, 13, 13, 29, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 28, 30 ], [ 19, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 19, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 6, 64 ], [ 64, 65 ], [ 4, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 68, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 94, 102 ], [ 94, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 91, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 110, 117 ], [ 117, 118 ], [ 117, 119 ], [ 68, 120 ], [ 120, 121 ], [ 66, 122 ], [ 122, 123 ], [ 66, 124 ], [ 124, 125 ] ]
[ "// ALDS1_1_D Maximum Profit\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = Integer.parseInt(br.readLine());\n }\n System.out.println(max(R, n));\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n static int max(int[] R, int n) {\n int maxv = Integer.MIN_VALUE;\n int minv = R[0];\n for (int j = 1; j < n; j++) {\n maxv = maxv > R[j] - minv ? maxv : R[j] - minv;\n minv = minv < R[j] ? minv : R[j];\n }\n return maxv;\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = Integer.parseInt(br.readLine());\n }\n System.out.println(max(R, n));\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n static int max(int[] R, int n) {\n int maxv = Integer.MIN_VALUE;\n int minv = R[0];\n for (int j = 1; j < n; j++) {\n maxv = maxv > R[j] - minv ? maxv : R[j] - minv;\n minv = minv < R[j] ? minv : R[j];\n }\n return maxv;\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = Integer.parseInt(br.readLine());\n }\n System.out.println(max(R, n));\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int n = Integer.parseInt(br.readLine());\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = Integer.parseInt(br.readLine());\n }\n System.out.println(max(R, n));\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n int n = Integer.parseInt(br.readLine());\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = Integer.parseInt(br.readLine());\n }\n System.out.println(max(R, n));\n }\n catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n int n = Integer.parseInt(br.readLine());\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = Integer.parseInt(br.readLine());\n }\n System.out.println(max(R, n));\n }", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] R = new int[n];", "R", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n R[i] = Integer.parseInt(br.readLine());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n R[i] = Integer.parseInt(br.readLine());\n }", "{\n R[i] = Integer.parseInt(br.readLine());\n }", "R[i] = Integer.parseInt(br.readLine())", "R[i]", "R", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "System.out.println(max(R, n))", "System.out.println", "System.out", "System", "System.out", "max(R, n)", "max", "R", "n", "String[] args", "args", "static int max(int[] R, int n) {\n int maxv = Integer.MIN_VALUE;\n int minv = R[0];\n for (int j = 1; j < n; j++) {\n maxv = maxv > R[j] - minv ? maxv : R[j] - minv;\n minv = minv < R[j] ? minv : R[j];\n }\n return maxv;\n }", "max", "{\n int maxv = Integer.MIN_VALUE;\n int minv = R[0];\n for (int j = 1; j < n; j++) {\n maxv = maxv > R[j] - minv ? maxv : R[j] - minv;\n minv = minv < R[j] ? minv : R[j];\n }\n return maxv;\n }", "int maxv = Integer.MIN_VALUE;", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int minv = R[0];", "minv", "R[0]", "R", "0", "for (int j = 1; j < n; j++) {\n maxv = maxv > R[j] - minv ? maxv : R[j] - minv;\n minv = minv < R[j] ? minv : R[j];\n }", "int j = 1;", "int j = 1;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n maxv = maxv > R[j] - minv ? maxv : R[j] - minv;\n minv = minv < R[j] ? minv : R[j];\n }", "{\n maxv = maxv > R[j] - minv ? maxv : R[j] - minv;\n minv = minv < R[j] ? minv : R[j];\n }", "maxv = maxv > R[j] - minv ? maxv : R[j] - minv", "maxv", "maxv > R[j] - minv ? maxv : R[j] - minv", "maxv > R[j] - minv", "maxv", "R[j] - minv", "R[j]", "R", "j", "minv", "maxv", "R[j] - minv", "R[j]", "R", "j", "minv", "minv = minv < R[j] ? minv : R[j]", "minv", "minv < R[j] ? minv : R[j]", "minv < R[j]", "minv", "R[j]", "R", "j", "minv", "R[j]", "R", "j", "return maxv;", "maxv", "int[] R", "R", "int n", "n" ]
// ALDS1_1_D Maximum Profit import java.io.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { int n = Integer.parseInt(br.readLine()); int[] R = new int[n]; for (int i = 0; i < n; i++) { R[i] = Integer.parseInt(br.readLine()); } System.out.println(max(R, n)); } catch (Exception e) { e.printStackTrace(); } } static int max(int[] R, int n) { int maxv = Integer.MIN_VALUE; int minv = R[0]; for (int j = 1; j < n; j++) { maxv = maxv > R[j] - minv ? maxv : R[j] - minv; minv = minv < R[j] ? minv : R[j]; } return maxv; } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 13, 30, 0, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 2, 18, 13, 13, 18, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 11, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 11, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 65, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 92, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 106, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 11, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 9, 129 ], [ 129, 130 ] ]
[ "import java.io.*;\n\nclass Main{\n private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n public static void main(String[] args) throws IOException{\n int n = Integer.parseInt(br.readLine());\n int[] A = new int[n];\n int max = 0;\n int dis = 0;\n for(int i=0; i<n; i++)\n A[i] = Integer.parseInt(br.readLine());\n dis = A[n-1]-A[n-2];\n for(int i=n-1; i>0; i--){\n if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }\n }\n System.out.println(dis);\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n public static void main(String[] args) throws IOException{\n int n = Integer.parseInt(br.readLine());\n int[] A = new int[n];\n int max = 0;\n int dis = 0;\n for(int i=0; i<n; i++)\n A[i] = Integer.parseInt(br.readLine());\n dis = A[n-1]-A[n-2];\n for(int i=n-1; i>0; i--){\n if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }\n }\n System.out.println(dis);\n }\n}", "Main", "private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "public static void main(String[] args) throws IOException{\n int n = Integer.parseInt(br.readLine());\n int[] A = new int[n];\n int max = 0;\n int dis = 0;\n for(int i=0; i<n; i++)\n A[i] = Integer.parseInt(br.readLine());\n dis = A[n-1]-A[n-2];\n for(int i=n-1; i>0; i--){\n if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }\n }\n System.out.println(dis);\n }", "main", "{\n int n = Integer.parseInt(br.readLine());\n int[] A = new int[n];\n int max = 0;\n int dis = 0;\n for(int i=0; i<n; i++)\n A[i] = Integer.parseInt(br.readLine());\n dis = A[n-1]-A[n-2];\n for(int i=n-1; i>0; i--){\n if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }\n }\n System.out.println(dis);\n }", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] A = new int[n];", "A", "new int[n]", "n", "int max = 0;", "max", "0", "int dis = 0;", "dis", "0", "for(int i=0; i<n; i++)\n A[i] = Integer.parseInt(br.readLine());", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "A[i] = Integer.parseInt(br.readLine());", "A[i] = Integer.parseInt(br.readLine())", "A[i]", "A", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "dis = A[n-1]-A[n-2]", "dis", "A[n-1]-A[n-2]", "A[n-1]", "A", "n-1", "n", "1", "A[n-2]", "A", "n-2", "n", "2", "for(int i=n-1; i>0; i--){\n if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }\n }", "int i=n-1;", "int i=n-1;", "i", "n-1", "n", "1", "i>0", "i", "0", "i--", "i--", "i", "{\n if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }\n }", "{\n if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }\n }", "if(A[i] > max){\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }", "A[i] > max", "A[i]", "A", "i", "max", "{\n max = A[i];\n for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }\n }", "max = A[i]", "max", "A[i]", "A", "i", "for(int j=i-1; j>=0; j--){\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }", "int j=i-1;", "int j=i-1;", "j", "i-1", "i", "1", "j>=0", "j", "0", "j--", "j--", "j", "{\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }", "{\n int t = A[i]-A[j];\n if(t>dis)\n dis = t;\n }", "int t = A[i]-A[j];", "t", "A[i]-A[j]", "A[i]", "A", "i", "A[j]", "A", "j", "if(t>dis)\n dis = t;", "t>dis", "t", "dis", "dis = t", "dis", "t", "System.out.println(dis)", "System.out.println", "System.out", "System", "System.out", "dis", "String[] args", "args" ]
import java.io.*; class Main{ private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException{ int n = Integer.parseInt(br.readLine()); int[] A = new int[n]; int max = 0; int dis = 0; for(int i=0; i<n; i++) A[i] = Integer.parseInt(br.readLine()); dis = A[n-1]-A[n-2]; for(int i=n-1; i>0; i--){ if(A[i] > max){ max = A[i]; for(int j=i-1; j>=0; j--){ int t = A[i]-A[j]; if(t>dis) dis = t; } } } System.out.println(dis); } }
[ 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, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 13, 0, 13, 18, 13, 13, 41, 13, 2, 18, 13, 2, 13, 17, 13, 14, 2, 13, 13, 0, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 6, 49 ], [ 49, 50 ], [ 112, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 63, 75 ], [ 75, 76 ], [ 76, 77 ], [ 63, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 79, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 79, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 53, 107 ], [ 107, 108 ], [ 51, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "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\n for(int i=0; i<n; i++){\n array[i] = sc.nextInt();\n }\n\n System.out.println(cal(array));\n }\n\n public static int cal(int[] array){\n int ans = -1000000000;\n int min = array[0];\n\n for(int i=0; i < array.length-1; i++){\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }\n return ans;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int[n];\n\n for(int i=0; i<n; i++){\n array[i] = sc.nextInt();\n }\n\n System.out.println(cal(array));\n }\n\n public static int cal(int[] array){\n int ans = -1000000000;\n int min = array[0];\n\n for(int i=0; i < array.length-1; i++){\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }\n return ans;\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int[n];\n\n for(int i=0; i<n; i++){\n array[i] = sc.nextInt();\n }\n\n System.out.println(cal(array));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int[n];\n\n for(int i=0; i<n; i++){\n array[i] = sc.nextInt();\n }\n\n System.out.println(cal(array));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] array = new int[n];", "array", "new int[n]", "n", "for(int i=0; i<n; i++){\n array[i] = sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n array[i] = sc.nextInt();\n }", "{\n array[i] = sc.nextInt();\n }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println(cal(array))", "System.out.println", "System.out", "System", "System.out", "cal(array)", "cal", "array", "String[] args", "args", "public static int cal(int[] array){\n int ans = -1000000000;\n int min = array[0];\n\n for(int i=0; i < array.length-1; i++){\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }\n return ans;\n }", "cal", "{\n int ans = -1000000000;\n int min = array[0];\n\n for(int i=0; i < array.length-1; i++){\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }\n return ans;\n }", "int ans = -1000000000;", "ans", "-1000000000", "1000000000", "int min = array[0];", "min", "array[0]", "array", "0", "for(int i=0; i < array.length-1; i++){\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }", "int i=0;", "int i=0;", "i", "0", "i < array.length-1", "i", "array.length-1", "array.length", "array", "array.length", "1", "i++", "i++", "i", "{\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }", "{\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }", "if(array[i] < min) min = array[i];", "array[i] < min", "array[i]", "array", "i", "min", "min = array[i]", "min", "array[i]", "array", "i", "int def = array[i+1] - min;", "def", "array[i+1] - min", "array[i+1]", "array", "i+1", "i", "1", "min", "if(ans < def) ans = def;", "ans < def", "ans", "def", "ans = def", "ans", "def", "return ans;", "ans", "int[] array", "array", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int[n];\n\n for(int i=0; i<n; i++){\n array[i] = sc.nextInt();\n }\n\n System.out.println(cal(array));\n }\n\n public static int cal(int[] array){\n int ans = -1000000000;\n int min = array[0];\n\n for(int i=0; i < array.length-1; i++){\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }\n return ans;\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int[n];\n\n for(int i=0; i<n; i++){\n array[i] = sc.nextInt();\n }\n\n System.out.println(cal(array));\n }\n\n public static int cal(int[] array){\n int ans = -1000000000;\n int min = array[0];\n\n for(int i=0; i < array.length-1; i++){\n if(array[i] < min) min = array[i];\n int def = array[i+1] - min;\n if(ans < def) ans = def;\n }\n return ans;\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] array = new int[n]; for(int i=0; i<n; i++){ array[i] = sc.nextInt(); } System.out.println(cal(array)); } public static int cal(int[] array){ int ans = -1000000000; int min = array[0]; for(int i=0; i < array.length-1; i++){ if(array[i] < min) min = array[i]; int def = array[i+1] - min; if(ans < def) ans = def; } return ans; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 9, 14, 2, 2, 13, 2, 13, 13, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 9, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 19, 31 ], [ 31, 32 ], [ 31, 33 ], [ 19, 34 ], [ 34, 35 ], [ 34, 36 ], [ 19, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 49, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 49, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 49, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 19, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ] ]
[ "/* ALDS1_1_D */\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int max = 0, min = 0;\n\n for(int i = 0; i < n; i++){\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }\n System.out.println(max);\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int max = 0, min = 0;\n\n for(int i = 0; i < n; i++){\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }\n System.out.println(max);\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int max = 0, min = 0;\n\n for(int i = 0; i < n; i++){\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }\n System.out.println(max);\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int max = 0, min = 0;\n\n for(int i = 0; i < n; i++){\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }\n System.out.println(max);\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int max = 0, min = 0;\n\n for(int i = 0; i < n; i++){\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }\n System.out.println(max);\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int max = 0, min = 0;\n\n for(int i = 0; i < n; i++){\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }\n System.out.println(max);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int max = 0", "max", "0", "min = 0;", "min", "0", "for(int i = 0; i < n; i++){\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }", "{\n int v = Integer.parseInt(br.readLine());\n if(i == 0){\n min = v;\n continue;\n }\n\n if(max < v - min || i == 1){\n max = v - min;\n }\n if(min > v) min = v;\n }", "int v = Integer.parseInt(br.readLine());", "v", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "if(i == 0){\n min = v;\n continue;\n }", "i == 0", "i", "0", "{\n min = v;\n continue;\n }", "min = v", "min", "v", "continue;", "if(max < v - min || i == 1){\n max = v - min;\n }", "max < v - min || i == 1", "max < v - min", "max", "v - min", "v", "min", "i == 1", "i", "1", "{\n max = v - min;\n }", "max = v - min", "max", "v - min", "v", "min", "if(min > v) min = v;", "min > v", "min", "v", "min = v", "min", "v", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
/* ALDS1_1_D */ import java.io.*; class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int max = 0, min = 0; for(int i = 0; i < n; i++){ int v = Integer.parseInt(br.readLine()); if(i == 0){ min = v; continue; } if(max < v - min || i == 1){ max = v - min; } if(min > v) min = v; } System.out.println(max); }catch(Exception e){ System.out.println(e); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 14, 2, 18, 13, 17, 18, 13, 17, 0, 13, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 13, 2, 13, 13, 30, 0, 13, 18, 13, 13, 0, 13, 13, 14, 2, 18, 13, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 2, 13, 13, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 152, 2 ], [ 152, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 5, 13 ], [ 13, 14 ], [ 5, 15 ], [ 15, 16 ], [ 5, 17 ], [ 17, 18 ], [ 5, 19 ], [ 19, 20 ], [ 5, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 5, 26 ], [ 26, 27 ], [ 26, 28 ], [ 5, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 5, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 5, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 5, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 5, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 5, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 78, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 107, 108 ], [ 107, 109 ], [ 90, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 5, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 5, 130 ], [ 130, 131 ], [ 131, 132 ], [ 3, 133 ], [ 133, 134 ], [ 3, 135 ], [ 135, 136 ], [ 152, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 143, 145 ], [ 140, 146 ], [ 146, 147 ], [ 146, 148 ], [ 137, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int[] r;\n int min, max, tmp, i;\n\n n = sc.nextInt();\n r = new int[n];\n for(i = 0;i < n;i++){\n r[i] = sc.nextInt();\n }\n\n min = r[0];\n max = r[1];\n tmp = r[0];\n if(r[1] < r[0])tmp = r[1];\n for(i = 2;i < n;i++){\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }\n\n System.out.println(max - min);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int[] r;\n int min, max, tmp, i;\n\n n = sc.nextInt();\n r = new int[n];\n for(i = 0;i < n;i++){\n r[i] = sc.nextInt();\n }\n\n min = r[0];\n max = r[1];\n tmp = r[0];\n if(r[1] < r[0])tmp = r[1];\n for(i = 2;i < n;i++){\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }\n\n System.out.println(max - min);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main", "public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int[] r;\n int min, max, tmp, i;\n\n n = sc.nextInt();\n r = new int[n];\n for(i = 0;i < n;i++){\n r[i] = sc.nextInt();\n }\n\n min = r[0];\n max = r[1];\n tmp = r[0];\n if(r[1] < r[0])tmp = r[1];\n for(i = 2;i < n;i++){\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }\n\n System.out.println(max - min);\n\n sc.close();\n }", "run", "{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int[] r;\n int min, max, tmp, i;\n\n n = sc.nextInt();\n r = new int[n];\n for(i = 0;i < n;i++){\n r[i] = sc.nextInt();\n }\n\n min = r[0];\n max = r[1];\n tmp = r[0];\n if(r[1] < r[0])tmp = r[1];\n for(i = 2;i < n;i++){\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }\n\n System.out.println(max - min);\n\n sc.close();\n }", "java.util.Scanner sc = new java.util.Scanner(in);", "sc", "new java.util.Scanner(in)", "int n;", "n", "int[] r;", "r", "int min", "min", "max", "max", "tmp", "tmp", "i;", "i", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "r = new int[n]", "r", "new int[n]", "n", "for(i = 0;i < n;i++){\n r[i] = sc.nextInt();\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n r[i] = sc.nextInt();\n }", "{\n r[i] = sc.nextInt();\n }", "r[i] = sc.nextInt()", "r[i]", "r", "i", "sc.nextInt()", "sc.nextInt", "sc", "min = r[0]", "min", "r[0]", "r", "0", "max = r[1]", "max", "r[1]", "r", "1", "tmp = r[0]", "tmp", "r[0]", "r", "0", "if(r[1] < r[0])tmp = r[1];", "r[1] < r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "tmp = r[1]", "tmp", "r[1]", "r", "1", "for(i = 2;i < n;i++){\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }", "i = 2;", "i = 2", "i", "2", "i < n", "i", "n", "i++", "i++", "i", "{\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }", "{\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }", "if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }", "r[i] - tmp > max - min", "r[i] - tmp", "r[i]", "r", "i", "tmp", "max - min", "max", "min", "{\n max = r[i];\n min = tmp;\n }", "max = r[i]", "max", "r[i]", "r", "i", "min = tmp", "min", "tmp", "if(r[i] < tmp){\n tmp = r[i];\n }", "r[i] < tmp", "r[i]", "r", "i", "tmp", "{\n tmp = r[i];\n }", "tmp = r[i]", "tmp", "r[i]", "r", "i", "System.out.println(max - min)", "System.out.println", "System.out", "System", "System.out", "max - min", "max", "min", "sc.close()", "sc.close", "sc", "java.io.InputStream in", "in", "java.io.PrintStream out", "out", "public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }", "main", "{\n (new Main()).run(System.in, System.out);\n }", "(new Main()).run(System.in, System.out)", "(new Main()).run", "(new Main())", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int[] r;\n int min, max, tmp, i;\n\n n = sc.nextInt();\n r = new int[n];\n for(i = 0;i < n;i++){\n r[i] = sc.nextInt();\n }\n\n min = r[0];\n max = r[1];\n tmp = r[0];\n if(r[1] < r[0])tmp = r[1];\n for(i = 2;i < n;i++){\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }\n\n System.out.println(max - min);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int[] r;\n int min, max, tmp, i;\n\n n = sc.nextInt();\n r = new int[n];\n for(i = 0;i < n;i++){\n r[i] = sc.nextInt();\n }\n\n min = r[0];\n max = r[1];\n tmp = r[0];\n if(r[1] < r[0])tmp = r[1];\n for(i = 2;i < n;i++){\n if(r[i] - tmp > max - min){\n max = r[i];\n min = tmp;\n }\n if(r[i] < tmp){\n tmp = r[i];\n }\n }\n\n System.out.println(max - min);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main" ]
public class Main{ public void run(java.io.InputStream in, java.io.PrintStream out){ java.util.Scanner sc = new java.util.Scanner(in); /*answer*/ int n; int[] r; int min, max, tmp, i; n = sc.nextInt(); r = new int[n]; for(i = 0;i < n;i++){ r[i] = sc.nextInt(); } min = r[0]; max = r[1]; tmp = r[0]; if(r[1] < r[0])tmp = r[1]; for(i = 2;i < n;i++){ if(r[i] - tmp > max - min){ max = r[i]; min = tmp; } if(r[i] < tmp){ tmp = r[i]; } } System.out.println(max - min); sc.close(); } public static void main(String[] args){ (new Main()).run(System.in, System.out); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 7, 11 ], [ 11, 12 ], [ 7, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 15, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 15, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 15, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 15, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 15, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 60, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 15, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 13, 90 ], [ 90, 91 ] ]
[ "import java.io.*;\nimport java.util.*;\n\n\n\nclass Main{\n //読み込みのテンプレ(stringオブジェクトまで)\n \n static int minimum;\n static int gap;\n \n public static void main(String[] args) throws IOException{\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n int minimum = scanner.nextInt();\n int time = scanner.nextInt();\n \n //minimumはその時点での最小値のことである\n \n gap = time - minimum;\n if(minimum >= time)minimum = time;\n \n for(int i = 0;i<number - 2;i++){\n time = scanner.nextInt();\n \n if(time - minimum >= gap)gap = time - minimum;\n if(minimum >= time)minimum = time;\n }\n \n System.out.println(gap);\n \n \n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n //読み込みのテンプレ(stringオブジェクトまで)\n \n static int minimum;\n static int gap;\n \n public static void main(String[] args) throws IOException{\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n int minimum = scanner.nextInt();\n int time = scanner.nextInt();\n \n //minimumはその時点での最小値のことである\n \n gap = time - minimum;\n if(minimum >= time)minimum = time;\n \n for(int i = 0;i<number - 2;i++){\n time = scanner.nextInt();\n \n if(time - minimum >= gap)gap = time - minimum;\n if(minimum >= time)minimum = time;\n }\n \n System.out.println(gap);\n \n \n }\n}", "Main", "static int minimum;", "minimum", "static int gap;", "gap", "public static void main(String[] args) throws IOException{\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n int minimum = scanner.nextInt();\n int time = scanner.nextInt();\n \n //minimumはその時点での最小値のことである\n \n gap = time - minimum;\n if(minimum >= time)minimum = time;\n \n for(int i = 0;i<number - 2;i++){\n time = scanner.nextInt();\n \n if(time - minimum >= gap)gap = time - minimum;\n if(minimum >= time)minimum = time;\n }\n \n System.out.println(gap);\n \n \n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n int minimum = scanner.nextInt();\n int time = scanner.nextInt();\n \n //minimumはその時点での最小値のことである\n \n gap = time - minimum;\n if(minimum >= time)minimum = time;\n \n for(int i = 0;i<number - 2;i++){\n time = scanner.nextInt();\n \n if(time - minimum >= gap)gap = time - minimum;\n if(minimum >= time)minimum = time;\n }\n \n System.out.println(gap);\n \n \n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int number = scanner.nextInt();", "number", "scanner.nextInt()", "scanner.nextInt", "scanner", "int minimum = scanner.nextInt();", "minimum", "scanner.nextInt()", "scanner.nextInt", "scanner", "int time = scanner.nextInt();", "time", "scanner.nextInt()", "scanner.nextInt", "scanner", "gap = time - minimum", "gap", "time - minimum", "time", "minimum", "if(minimum >= time)minimum = time;", "minimum >= time", "minimum", "time", "minimum = time", "minimum", "time", "for(int i = 0;i<number - 2;i++){\n time = scanner.nextInt();\n \n if(time - minimum >= gap)gap = time - minimum;\n if(minimum >= time)minimum = time;\n }", "int i = 0;", "int i = 0;", "i", "0", "i<number - 2", "i", "number - 2", "number", "2", "i++", "i++", "i", "{\n time = scanner.nextInt();\n \n if(time - minimum >= gap)gap = time - minimum;\n if(minimum >= time)minimum = time;\n }", "{\n time = scanner.nextInt();\n \n if(time - minimum >= gap)gap = time - minimum;\n if(minimum >= time)minimum = time;\n }", "time = scanner.nextInt()", "time", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(time - minimum >= gap)gap = time - minimum;", "time - minimum >= gap", "time - minimum", "time", "minimum", "gap", "gap = time - minimum", "gap", "time - minimum", "time", "minimum", "if(minimum >= time)minimum = time;", "minimum >= time", "minimum", "time", "minimum = time", "minimum", "time", "System.out.println(gap)", "System.out.println", "System.out", "System", "System.out", "gap", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main{ //読み込みのテンプレ(stringオブジェクトまで) static int minimum; static int gap; public static void main(String[] args) throws IOException{ Scanner scanner = new Scanner(System.in); int number = scanner.nextInt(); int minimum = scanner.nextInt(); int time = scanner.nextInt(); //minimumはその時点での最小値のことである gap = time - minimum; if(minimum >= time)minimum = time; for(int i = 0;i<number - 2;i++){ time = scanner.nextInt(); if(time - minimum >= gap)gap = time - minimum; if(minimum >= time)minimum = time; } System.out.println(gap); } }
[ 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, 20, 4, 18, 13, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 4, 18, 13, 17, 41, 13, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 13, 41, 13, 41, 13, 41, 13, 8, 2, 0, 13, 4, 18, 13, 2, 13, 17, 0, 13, 4, 18, 13, 13, 13, 13, 40, 13, 42, 2, 13, 17, 30, 14, 2, 2, 13, 4, 18, 13, 13, 13, 30, 0, 13, 2, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 13, 13, 30, 0, 13, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 142, 17 ], [ 142, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 20, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 50, 54 ], [ 20, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 20, 68 ], [ 68, 69 ], [ 20, 70 ], [ 70, 71 ], [ 20, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 81, 83 ], [ 75, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 74, 90 ], [ 74, 91 ], [ 20, 92 ], [ 92, 93 ], [ 20, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 100, 107 ], [ 99, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 98, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 118, 123 ], [ 117, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 98, 131 ], [ 131, 132 ], [ 20, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 18, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tint cursor = list.size() - 2;\n\t\tlong maxProfit = list.get(cursor + 1) - list.get(cursor);\n\t\tlong a, b;\n\t\tlong max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tint cursor = list.size() - 2;\n\t\tlong maxProfit = list.get(cursor + 1) - list.get(cursor);\n\t\tlong a, b;\n\t\tlong max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tint cursor = list.size() - 2;\n\t\tlong maxProfit = list.get(cursor + 1) - list.get(cursor);\n\t\tlong a, b;\n\t\tlong max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tint cursor = list.size() - 2;\n\t\tlong maxProfit = list.get(cursor + 1) - list.get(cursor);\n\t\tlong a, b;\n\t\tlong max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "List<Long> list = new ArrayList<Long>();", "list", "new ArrayList<Long>()", "br.readLine()", "br.readLine", "br", "String str;", "str", "while((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}", "(str = br.readLine()) != null", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}", "list.add(Long.valueOf(str))", "list.add", "list", "Long.valueOf(str)", "Long.valueOf", "Long", "str", "int cursor = list.size() - 2;", "cursor", "list.size() - 2", "list.size()", "list.size", "list", "2", "long maxProfit = list.get(cursor + 1) - list.get(cursor);", "maxProfit", "list.get(cursor + 1) - list.get(cursor)", "list.get(cursor + 1)", "list.get", "list", "cursor + 1", "cursor", "1", "list.get(cursor)", "list.get", "list", "cursor", "long a", "a", "b;", "b", "long max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b;", "max", "(a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b", "(a = list.get(cursor + 1)) > (b = list.get(cursor))", "(a = list.get(cursor + 1))", "a", "list.get(cursor + 1)", "list.get", "list", "cursor + 1", "cursor", "1", "(b = list.get(cursor))", "b", "list.get(cursor)", "list.get", "list", "cursor", "a", "b", "cursor--", "cursor", "while(cursor >= 0){\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}", "cursor >= 0", "cursor", "0", "{\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}", "if(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}", "max - list.get(cursor) > maxProfit", "max - list.get(cursor)", "max", "list.get(cursor)", "list.get", "list", "cursor", "maxProfit", "{\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}", "maxProfit = max - list.get(cursor)", "maxProfit", "max - list.get(cursor)", "max", "list.get(cursor)", "list.get", "list", "cursor", "if(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}", "list.get(cursor) > max", "list.get(cursor)", "list.get", "list", "cursor", "max", "{\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}", "max = list.get(cursor)", "max", "list.get(cursor)", "list.get", "list", "cursor", "cursor--", "cursor", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tint cursor = list.size() - 2;\n\t\tlong maxProfit = list.get(cursor + 1) - list.get(cursor);\n\t\tlong a, b;\n\t\tlong max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tList<Long> list = new ArrayList<Long>(); \n\t\tbr.readLine();\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tlist.add(Long.valueOf(str));\n\t\t}\n\t\tint cursor = list.size() - 2;\n\t\tlong maxProfit = list.get(cursor + 1) - list.get(cursor);\n\t\tlong a, b;\n\t\tlong max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b;\n\t\tcursor--;\n\t\twhile(cursor >= 0){\n\t\t\tif(max - list.get(cursor) > maxProfit){\n\t\t\t\tmaxProfit = max - list.get(cursor);\n\t\t\t}\n\t\t\tif(list.get(cursor) > max){\n\t\t\t\tmax = list.get(cursor);\n\t\t\t}\n\t\t\tcursor--;\n\t\t}\n\t\tSystem.out.println(maxProfit);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List<Long> list = new ArrayList<Long>(); br.readLine(); String str; while((str = br.readLine()) != null){ list.add(Long.valueOf(str)); } int cursor = list.size() - 2; long maxProfit = list.get(cursor + 1) - list.get(cursor); long a, b; long max = (a = list.get(cursor + 1)) > (b = list.get(cursor)) ? a : b; cursor--; while(cursor >= 0){ if(max - list.get(cursor) > maxProfit){ maxProfit = max - list.get(cursor); } if(list.get(cursor) > max){ max = list.get(cursor); } cursor--; } System.out.println(maxProfit); } }
[ 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, 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, 40, 18, 13, 13, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 114, 11 ], [ 114, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 14, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 14, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 76, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 14, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 12, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] price = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint max = - Integer.MIN_VALUE;\n\t\tint minPrice = price[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] price = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint max = - Integer.MIN_VALUE;\n\t\tint minPrice = price[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] price = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint max = - Integer.MIN_VALUE;\n\t\tint minPrice = price[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] price = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint max = - Integer.MIN_VALUE;\n\t\tint minPrice = price[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] price = new int[n];", "price", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}", "{\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}", "price[i] = Integer.parseInt(br.readLine())", "price[i]", "price", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int max = - Integer.MIN_VALUE;", "max", "- Integer.MIN_VALUE", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int minPrice = price[0];", "minPrice", "price[0]", "price", "0", "for (int i = 1; i < n; i++) {\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}", "{\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}", "if (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}", "max < price[i] - minPrice", "max", "price[i] - minPrice", "price[i]", "price", "i", "minPrice", "{\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}", "max = price[i] - minPrice", "max", "price[i] - minPrice", "price[i]", "price", "i", "minPrice", "if (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}", "minPrice > price[i]", "minPrice", "price[i]", "price", "i", "{\n\t\t\t\tminPrice = price[i];\n\t\t\t}", "minPrice = price[i]", "minPrice", "price[i]", "price", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] price = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint max = - Integer.MIN_VALUE;\n\t\tint minPrice = price[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] price = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint max = - Integer.MIN_VALUE;\n\t\tint minPrice = price[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < price[i] - minPrice) {\n\t\t\t\tmax = price[i] - minPrice;\n\t\t\t}\n\t\t\tif (minPrice > price[i]) {\n\t\t\t\tminPrice = price[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] price = new int[n]; for (int i = 0; i < n; i++) { price[i] = Integer.parseInt(br.readLine()); } int max = - Integer.MIN_VALUE; int minPrice = price[0]; for (int i = 1; i < n; i++) { if (max < price[i] - minPrice) { max = price[i] - minPrice; } if (minPrice > price[i]) { minPrice = price[i]; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 14, 2, 13, 13, 29, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 29, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 40, 17, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 13, 13, 2, 13, 13, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 9, 13 ], [ 13, 14 ], [ 9, 15 ], [ 15, 16 ], [ 6, 17 ], [ 17, 18 ], [ 6, 19 ], [ 19, 20 ], [ 4, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 21, 34 ], [ 34, 35 ], [ 4, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 38, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 38, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 38, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 38, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 87 ], [ 87, 88 ], [ 87, 89 ], [ 76, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 92, 95 ], [ 38, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 4, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 102, 106 ], [ 106, 107 ] ]
[ "import java.util.*;\nclass Main{\n int max(int a,int b){\n\tif(a<b)return b;\n\telse return a;\n }\n int min (int a,int b){\n\tif(a>b)return b;\n\telse return a;\n }\n Main(){\n\tScanner sc =new Scanner(System.in);\n\tint a,c,d;\n\ta=sc.nextInt();\n\td=-1000000000;\n\tc=sc.nextInt();\n\tfor(int i=0;i<a-1;i++){\n\t int f=sc.nextInt();\n\t d=max(d,f-c);\n\t c=min(c,f);\n\t}\n\tSystem.out.println(d);\n }\n public static void main (String[]arg){\n\tnew Main();\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n int max(int a,int b){\n\tif(a<b)return b;\n\telse return a;\n }\n int min (int a,int b){\n\tif(a>b)return b;\n\telse return a;\n }\n Main(){\n\tScanner sc =new Scanner(System.in);\n\tint a,c,d;\n\ta=sc.nextInt();\n\td=-1000000000;\n\tc=sc.nextInt();\n\tfor(int i=0;i<a-1;i++){\n\t int f=sc.nextInt();\n\t d=max(d,f-c);\n\t c=min(c,f);\n\t}\n\tSystem.out.println(d);\n }\n public static void main (String[]arg){\n\tnew Main();\n }\n}", "Main", "int max(int a,int b){\n\tif(a<b)return b;\n\telse return a;\n }", "max", "{\n\tif(a<b)return b;\n\telse return a;\n }", "if(a<b)return b;\n\telse return a;", "a<b", "a", "b", "return b;", "b", "return a;", "a", "int a", "a", "int b", "b", "int min (int a,int b){\n\tif(a>b)return b;\n\telse return a;\n }", "min", "{\n\tif(a>b)return b;\n\telse return a;\n }", "if(a>b)return b;\n\telse return a;", "a>b", "a", "b", "return b;", "b", "return a;", "a", "int a", "a", "int b", "b", "Main(){\n\tScanner sc =new Scanner(System.in);\n\tint a,c,d;\n\ta=sc.nextInt();\n\td=-1000000000;\n\tc=sc.nextInt();\n\tfor(int i=0;i<a-1;i++){\n\t int f=sc.nextInt();\n\t d=max(d,f-c);\n\t c=min(c,f);\n\t}\n\tSystem.out.println(d);\n }", "Main", "{\n\tScanner sc =new Scanner(System.in);\n\tint a,c,d;\n\ta=sc.nextInt();\n\td=-1000000000;\n\tc=sc.nextInt();\n\tfor(int i=0;i<a-1;i++){\n\t int f=sc.nextInt();\n\t d=max(d,f-c);\n\t c=min(c,f);\n\t}\n\tSystem.out.println(d);\n }", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a", "a", "c", "c", "d;", "d", "a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "d=-1000000000", "d", "-1000000000", "1000000000", "c=sc.nextInt()", "c", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<a-1;i++){\n\t int f=sc.nextInt();\n\t d=max(d,f-c);\n\t c=min(c,f);\n\t}", "int i=0;", "int i=0;", "i", "0", "i<a-1", "i", "a-1", "a", "1", "i++", "i++", "i", "{\n\t int f=sc.nextInt();\n\t d=max(d,f-c);\n\t c=min(c,f);\n\t}", "{\n\t int f=sc.nextInt();\n\t d=max(d,f-c);\n\t c=min(c,f);\n\t}", "int f=sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "d=max(d,f-c)", "d", "max(d,f-c)", "max", "d", "f-c", "f", "c", "c=min(c,f)", "c", "min(c,f)", "min", "c", "f", "System.out.println(d)", "System.out.println", "System.out", "System", "System.out", "d", "public static void main (String[]arg){\n\tnew Main();\n }", "main", "{\n\tnew Main();\n }", "new Main()", "String[]arg", "arg" ]
import java.util.*; class Main{ int max(int a,int b){ if(a<b)return b; else return a; } int min (int a,int b){ if(a>b)return b; else return a; } Main(){ Scanner sc =new Scanner(System.in); int a,c,d; a=sc.nextInt(); d=-1000000000; c=sc.nextInt(); for(int i=0;i<a-1;i++){ int f=sc.nextInt(); d=max(d,f-c); c=min(c,f); } System.out.println(d); } public static void main (String[]arg){ new Main(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 40, 17, 41, 13, 41, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 66, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int max=-1000000000,res,min;\n int n=sc.nextInt();\n int num[]=new int[n];\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n }\n min=num[0];\n for(int i=1;i<n;i++){\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int max=-1000000000,res,min;\n int n=sc.nextInt();\n int num[]=new int[n];\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n }\n min=num[0];\n for(int i=1;i<n;i++){\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int max=-1000000000,res,min;\n int n=sc.nextInt();\n int num[]=new int[n];\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n }\n min=num[0];\n for(int i=1;i<n;i++){\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int max=-1000000000,res,min;\n int n=sc.nextInt();\n int num[]=new int[n];\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n }\n min=num[0];\n for(int i=1;i<n;i++){\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }\n System.out.println(max);\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int max=-1000000000", "max", "-1000000000", "1000000000", "res", "res", "min;", "min", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int num[]=new int[n];", "num", "new int[n]", "n", "for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n num[i]=sc.nextInt();\n }", "{\n num[i]=sc.nextInt();\n }", "num[i]=sc.nextInt()", "num[i]", "num", "i", "sc.nextInt()", "sc.nextInt", "sc", "min=num[0]", "min", "num[0]", "num", "0", "for(int i=1;i<n;i++){\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }", "{\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }", "res=num[i]-min", "res", "num[i]-min", "num[i]", "num", "i", "min", "if(res>max){\n max=res;\n }", "res>max", "res", "max", "{\n max=res;\n }", "max=res", "max", "res", "if(min>num[i]){\n min=num[i];\n }", "min>num[i]", "min", "num[i]", "num", "i", "{\n min=num[i];\n }", "min=num[i]", "min", "num[i]", "num", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int max=-1000000000,res,min;\n int n=sc.nextInt();\n int num[]=new int[n];\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n }\n min=num[0];\n for(int i=1;i<n;i++){\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }\n System.out.println(max);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int max=-1000000000,res,min;\n int n=sc.nextInt();\n int num[]=new int[n];\n for(int i=0;i<n;i++){\n num[i]=sc.nextInt();\n }\n min=num[0];\n for(int i=1;i<n;i++){\n res=num[i]-min;\n if(res>max){\n max=res;\n }\n if(min>num[i]){\n min=num[i];\n }\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int max=-1000000000,res,min; int n=sc.nextInt(); int num[]=new int[n]; for(int i=0;i<n;i++){ num[i]=sc.nextInt(); } min=num[0]; for(int i=1;i<n;i++){ res=num[i]-min; if(res>max){ max=res; } if(min>num[i]){ min=num[i]; } } System.out.println(max); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 40, 17, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 101, 11 ], [ 101, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 14, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 14, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 69, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 14, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 12, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "\nimport java.util.ArrayList;\nimport java.util.List;\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 max = -1000000000;\n\t\tint N = scan.nextInt();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(scan.nextInt());\n\t\t}\n\t\tint min = list.get(0);\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint max = -1000000000;\n\t\tint N = scan.nextInt();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(scan.nextInt());\n\t\t}\n\t\tint min = list.get(0);\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint max = -1000000000;\n\t\tint N = scan.nextInt();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(scan.nextInt());\n\t\t}\n\t\tint min = list.get(0);\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint max = -1000000000;\n\t\tint N = scan.nextInt();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(scan.nextInt());\n\t\t}\n\t\tint min = list.get(0);\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int max = -1000000000;", "max", "-1000000000", "1000000000", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "List<Integer> list = new ArrayList<Integer>();", "list", "new ArrayList<Integer>()", "for (int i = 0; i < N; i++) {\n\t\t\tlist.add(scan.nextInt());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tlist.add(scan.nextInt());\n\t\t}", "{\n\t\t\tlist.add(scan.nextInt());\n\t\t}", "list.add(scan.nextInt())", "list.add", "list", "scan.nextInt()", "scan.nextInt", "scan", "int min = list.get(0);", "min", "list.get(0)", "list.get", "list", "0", "for (int i = 1; i < list.size(); i++) {\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}", "{\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}", "max = Math.max(max, list.get(i) - min)", "max", "Math.max(max, list.get(i) - min)", "Math.max", "Math", "max", "list.get(i) - min", "list.get(i)", "list.get", "list", "i", "min", "min = Math.min(min, list.get(i))", "min", "Math.min(min, list.get(i))", "Math.min", "Math", "min", "list.get(i)", "list.get", "list", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint max = -1000000000;\n\t\tint N = scan.nextInt();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(scan.nextInt());\n\t\t}\n\t\tint min = list.get(0);\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint max = -1000000000;\n\t\tint N = scan.nextInt();\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(scan.nextInt());\n\t\t}\n\t\tint min = list.get(0);\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\tmax = Math.max(max, list.get(i) - min);\n\t\t\tmin = Math.min(min, list.get(i));\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int max = -1000000000; int N = scan.nextInt(); List<Integer> list = new ArrayList<Integer>(); for (int i = 0; i < N; i++) { list.add(scan.nextInt()); } int min = list.get(0); for (int i = 1; i < list.size(); i++) { max = Math.max(max, list.get(i) - min); min = Math.min(min, list.get(i)); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 40, 17, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 9, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 18, 13, 13, 18, 13, 13, 0, 13, 4, 18, 13, 13, 13, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 61, 67 ], [ 67, 68 ], [ 60, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 69, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 95, 99 ], [ 60, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 8, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 6, 111 ], [ 111, 112 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong max_profit = -999999999;\n\t\tlong prev = 1000000001;\n\t\t\n\t\tint N = sc.nextInt();\n\t\tlong[] R = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tR[i] = sc.nextLong();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}\n\t\t\tprev = R[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(max_profit);\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong max_profit = -999999999;\n\t\tlong prev = 1000000001;\n\t\t\n\t\tint N = sc.nextInt();\n\t\tlong[] R = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tR[i] = sc.nextLong();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}\n\t\t\tprev = R[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(max_profit);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong max_profit = -999999999;\n\t\tlong prev = 1000000001;\n\t\t\n\t\tint N = sc.nextInt();\n\t\tlong[] R = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tR[i] = sc.nextLong();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}\n\t\t\tprev = R[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(max_profit);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong max_profit = -999999999;\n\t\tlong prev = 1000000001;\n\t\t\n\t\tint N = sc.nextInt();\n\t\tlong[] R = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tR[i] = sc.nextLong();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}\n\t\t\tprev = R[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(max_profit);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "long max_profit = -999999999;", "max_profit", "-999999999", "999999999", "long prev = 1000000001;", "prev", "1000000001", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "long[] R = new long[N];", "R", "new long[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t\tR[i] = sc.nextLong();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tR[i] = sc.nextLong();\n\t\t}", "{\n\t\t\tR[i] = sc.nextLong();\n\t\t}", "R[i] = sc.nextLong()", "R[i]", "R", "i", "sc.nextLong()", "sc.nextLong", "sc", "for (int i = 0; i < N; i++) {\n\t\t\tif (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}\n\t\t\tprev = R[i];\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tif (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}\n\t\t\tprev = R[i];\n\t\t}", "{\n\t\t\tif (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}\n\t\t\tprev = R[i];\n\t\t}", "if (prev <= R[i]) {\n\t\t\t\tcontinue;\n\t\t\t}", "prev <= R[i]", "prev", "R[i]", "R", "i", "{\n\t\t\t\tcontinue;\n\t\t\t}", "continue;", "for (int j = i+1; j < N; j++) {\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}", "int j = i+1;", "int j = i+1;", "j", "i+1", "i", "1", "j < N", "j", "N", "j++", "j++", "j", "{\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}", "{\n\t\t\t\tlong tmp = R[j] - R[i];\n\t\t\t\tmax_profit = Math.max(max_profit, tmp);\n\t\t\t}", "long tmp = R[j] - R[i];", "tmp", "R[j] - R[i]", "R[j]", "R", "j", "R[i]", "R", "i", "max_profit = Math.max(max_profit, tmp)", "max_profit", "Math.max(max_profit, tmp)", "Math.max", "Math", "max_profit", "tmp", "prev = R[i]", "prev", "R[i]", "R", "i", "System.out.println(max_profit)", "System.out.println", "System.out", "System", "System.out", "max_profit", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long max_profit = -999999999; long prev = 1000000001; int N = sc.nextInt(); long[] R = new long[N]; for (int i = 0; i < N; i++) { R[i] = sc.nextLong(); } for (int i = 0; i < N; i++) { if (prev <= R[i]) { continue; } for (int j = i+1; j < N; j++) { long tmp = R[j] - R[i]; max_profit = Math.max(max_profit, tmp); } prev = R[i]; } System.out.println(max_profit); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 41, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc= new Scanner (System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\t\tint num;\n\t\tint ori=2000000001;\n\t\tint answer=-2000000000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc= new Scanner (System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\t\tint num;\n\t\tint ori=2000000001;\n\t\tint answer=-2000000000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\t\n\t\tScanner sc= new Scanner (System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\t\tint num;\n\t\tint ori=2000000001;\n\t\tint answer=-2000000000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}", "main", "{\n\t\t\n\t\tScanner sc= new Scanner (System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\t\tint num;\n\t\tint ori=2000000001;\n\t\tint answer=-2000000000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}", "Scanner sc= new Scanner (System.in);", "sc", "new Scanner (System.in)", "int n=Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int num;", "num", "int ori=2000000001;", "ori", "2000000001", "int answer=-2000000000;", "answer", "-2000000000", "2000000000", "for(int i=0;i<n;i++){\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}", "{\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}", "num = Integer.parseInt(sc.nextLine())", "num", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "if(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}", "i>0 && answer<num-ori", "i>0", "i", "0", "answer<num-ori", "answer", "num-ori", "num", "ori", "{\n\t\t\t\tanswer=num-ori;\n\t\t\t}", "answer=num-ori", "answer", "num-ori", "num", "ori", "if(ori>num){\n\t\t\t\tori=num;\n\t\t\t}", "ori>num", "ori", "num", "{\n\t\t\t\tori=num;\n\t\t\t}", "ori=num", "ori", "num", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc= new Scanner (System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\t\tint num;\n\t\tint ori=2000000001;\n\t\tint answer=-2000000000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc= new Scanner (System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\t\tint num;\n\t\tint ori=2000000001;\n\t\tint answer=-2000000000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum = Integer.parseInt(sc.nextLine());\n\t\t\tif(i>0 && answer<num-ori){\n\t\t\t\tanswer=num-ori;\n\t\t\t}\n\t\t\tif(ori>num){\n\t\t\t\tori=num;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc= new Scanner (System.in); int n=Integer.parseInt(sc.nextLine()); int num; int ori=2000000001; int answer=-2000000000; for(int i=0;i<n;i++){ num = Integer.parseInt(sc.nextLine()); if(i>0 && answer<num-ori){ answer=num-ori; } if(ori>num){ ori=num; } } System.out.println(answer); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 18, 13, 17, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 66, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\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\tint[] rate = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\trate[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tint low = rate[0];\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor(int i = 1; i< n; i++) {\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint[] rate = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\trate[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tint low = rate[0];\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor(int i = 1; i< n; i++) {\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint[] rate = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\trate[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tint low = rate[0];\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor(int i = 1; i< n; i++) {\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint[] rate = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\trate[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tint low = rate[0];\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor(int i = 1; i< n; i++) {\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] rate = new int[n];", "rate", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n\t\t\trate[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\trate[i] = sc.nextInt();\n\t\t}", "{\n\t\t\trate[i] = sc.nextInt();\n\t\t}", "rate[i] = sc.nextInt()", "rate[i]", "rate", "i", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "int low = rate[0];", "low", "rate[0]", "rate", "0", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i = 1; i< n; i++) {\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i< n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}", "max = Math.max(max, rate[i] - low)", "max", "Math.max(max, rate[i] - low)", "Math.max", "Math", "max", "rate[i] - low", "rate[i]", "rate", "i", "low", "low = Math.min(low, rate[i])", "low", "Math.min(low, rate[i])", "Math.min", "Math", "low", "rate[i]", "rate", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\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\tint[] rate = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\trate[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tint low = rate[0];\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor(int i = 1; i< n; i++) {\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n}", "public class Main {\n\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\tint[] rate = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\trate[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t\t\n\t\tint low = rate[0];\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor(int i = 1; i< n; i++) {\n\t\t\tmax = Math.max(max, rate[i] - low);\n\t\t\tlow = Math.min(low, rate[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] rate = new int[n]; for(int i = 0; i < n; i++) { rate[i] = sc.nextInt(); } sc.close(); int low = rate[0]; int max = Integer.MIN_VALUE; for(int i = 1; i< n; i++) { max = Math.max(max, rate[i] - low); low = Math.min(low, rate[i]); } System.out.println(max); } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 4, 18, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 5, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 5, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 5, 23 ], [ 23, 24 ], [ 5, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 37, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 5, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 61, 67 ], [ 3, 68 ], [ 68, 69 ] ]
[ "class Main\n{\n\tpublic static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint max = -1000000000, min = sc.nextInt();\n\t\tint in;\n\t\tfor( int ct = 1 ; ct < n ; ct++ ){\n\t\t\tin = sc.nextInt();\n\t\t\tif( in-min > max )max = in-min;\n\t\t\tif( in < min )min = in;\n\t\t}\n\t\tSystem.out.printf( \"%d\\n\" , max );\n\t}\n}", "class Main\n{\n\tpublic static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint max = -1000000000, min = sc.nextInt();\n\t\tint in;\n\t\tfor( int ct = 1 ; ct < n ; ct++ ){\n\t\t\tin = sc.nextInt();\n\t\t\tif( in-min > max )max = in-min;\n\t\t\tif( in < min )min = in;\n\t\t}\n\t\tSystem.out.printf( \"%d\\n\" , max );\n\t}\n}", "Main", "public static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint max = -1000000000, min = sc.nextInt();\n\t\tint in;\n\t\tfor( int ct = 1 ; ct < n ; ct++ ){\n\t\t\tin = sc.nextInt();\n\t\t\tif( in-min > max )max = in-min;\n\t\t\tif( in < min )min = in;\n\t\t}\n\t\tSystem.out.printf( \"%d\\n\" , max );\n\t}", "main", "{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\tint n = sc.nextInt();\n\t\tint max = -1000000000, min = sc.nextInt();\n\t\tint in;\n\t\tfor( int ct = 1 ; ct < n ; ct++ ){\n\t\t\tin = sc.nextInt();\n\t\t\tif( in-min > max )max = in-min;\n\t\t\tif( in < min )min = in;\n\t\t}\n\t\tSystem.out.printf( \"%d\\n\" , max );\n\t}", "java.util.Scanner sc = new java.util.Scanner( System.in );", "sc", "new java.util.Scanner( System.in )", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int max = -1000000000", "max", "-1000000000", "1000000000", "min = sc.nextInt();", "min", "sc.nextInt()", "sc.nextInt", "sc", "int in;", "in", "for( int ct = 1 ; ct < n ; ct++ ){\n\t\t\tin = sc.nextInt();\n\t\t\tif( in-min > max )max = in-min;\n\t\t\tif( in < min )min = in;\n\t\t}", "int ct = 1 ;", "int ct = 1 ;", "ct", "1", "ct < n", "ct", "n", "ct++", "ct++", "ct", "{\n\t\t\tin = sc.nextInt();\n\t\t\tif( in-min > max )max = in-min;\n\t\t\tif( in < min )min = in;\n\t\t}", "{\n\t\t\tin = sc.nextInt();\n\t\t\tif( in-min > max )max = in-min;\n\t\t\tif( in < min )min = in;\n\t\t}", "in = sc.nextInt()", "in", "sc.nextInt()", "sc.nextInt", "sc", "if( in-min > max )max = in-min;", "in-min > max", "in-min", "in", "min", "max", "max = in-min", "max", "in-min", "in", "min", "if( in < min )min = in;", "in < min", "in", "min", "min = in", "min", "in", "System.out.printf( \"%d\\n\" , max )", "System.out.printf", "System.out", "System", "System.out", "\"%d\\n\"", "max", "String[] args", "args" ]
class Main { public static void main( String[] args ) { java.util.Scanner sc = new java.util.Scanner( System.in ); int n = sc.nextInt(); int max = -1000000000, min = sc.nextInt(); int in; for( int ct = 1 ; ct < n ; ct++ ){ in = sc.nextInt(); if( in-min > max )max = in-min; if( in < min )min = in; } System.out.printf( "%d\n" , max ); } }
[ 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, 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, 18, 13, 17, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 14, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 14, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 75, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 14, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 12, 102 ], [ 102, 103 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nclass Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] r = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint min = r[0];\n\t\tint max = Integer.MIN_VALUE;\n\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "class Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] r = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint min = r[0];\n\t\tint max = Integer.MIN_VALUE;\n\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] r = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint min = r[0];\n\t\tint max = Integer.MIN_VALUE;\n\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] r = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint min = r[0];\n\t\tint max = Integer.MIN_VALUE;\n\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] r = new int[n];", "r", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\tr[i] = Integer.parseInt(br.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tr[i] = Integer.parseInt(br.readLine());\n\t\t}", "{\n\t\t\tr[i] = Integer.parseInt(br.readLine());\n\t\t}", "r[i] = Integer.parseInt(br.readLine())", "r[i]", "r", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int min = r[0];", "min", "r[0]", "r", "0", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i = 1; i < n; i++){\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "max = Math.max(max, r[i] - min)", "max", "Math.max(max, r[i] - min)", "Math.max", "Math", "max", "r[i] - min", "r[i]", "r", "i", "min", "min = Math.min(min, r[i])", "min", "Math.min(min, r[i])", "Math.min", "Math", "min", "r[i]", "r", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] r = new int[n]; for(int i = 0; i < n; i++){ r[i] = Integer.parseInt(br.readLine()); } int min = r[0]; int max = Integer.MIN_VALUE; for(int i = 1; i < n; i++){ max = Math.max(max, r[i] - min); min = Math.min(min, r[i]); } System.out.println(max); } }
[ 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, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 100, 11 ], [ 100, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 14, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 14, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 14, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 66, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 66, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 14, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 12, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\t// Scanner sc = new Scanner(new System.in);\n\t\t// Scanner sc = new Scanner(new File(\"in1.txt\"));\n\t\t// Scanner sc = new Scanner(new File(\"in2.txt\"));\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// BufferedReader br = new BufferedReader(new FileReader(\"in1.txt\"));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t// sc.nextInt();\n\t\t\n\t\t// int r0 = sc.nextInt();\n\t\t// int r1 = sc.nextInt();\n\t\tint r0 = Integer.parseInt(br.readLine());\n\t\tint r1 = Integer.parseInt(br.readLine());\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\t// while (sc.hasNextInt()) {\n\t\tfor (int i = 2; i < N; i++) {\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}\n\t\tSystem.out.println(max_profit);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.FileReader;", "FileReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\t// Scanner sc = new Scanner(new System.in);\n\t\t// Scanner sc = new Scanner(new File(\"in1.txt\"));\n\t\t// Scanner sc = new Scanner(new File(\"in2.txt\"));\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// BufferedReader br = new BufferedReader(new FileReader(\"in1.txt\"));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t// sc.nextInt();\n\t\t\n\t\t// int r0 = sc.nextInt();\n\t\t// int r1 = sc.nextInt();\n\t\tint r0 = Integer.parseInt(br.readLine());\n\t\tint r1 = Integer.parseInt(br.readLine());\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\t// while (sc.hasNextInt()) {\n\t\tfor (int i = 2; i < N; i++) {\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}\n\t\tSystem.out.println(max_profit);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// Scanner sc = new Scanner(new System.in);\n\t\t// Scanner sc = new Scanner(new File(\"in1.txt\"));\n\t\t// Scanner sc = new Scanner(new File(\"in2.txt\"));\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// BufferedReader br = new BufferedReader(new FileReader(\"in1.txt\"));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t// sc.nextInt();\n\t\t\n\t\t// int r0 = sc.nextInt();\n\t\t// int r1 = sc.nextInt();\n\t\tint r0 = Integer.parseInt(br.readLine());\n\t\tint r1 = Integer.parseInt(br.readLine());\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\t// while (sc.hasNextInt()) {\n\t\tfor (int i = 2; i < N; i++) {\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}\n\t\tSystem.out.println(max_profit);\n\t}", "main", "{\n\t\t// Scanner sc = new Scanner(new System.in);\n\t\t// Scanner sc = new Scanner(new File(\"in1.txt\"));\n\t\t// Scanner sc = new Scanner(new File(\"in2.txt\"));\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// BufferedReader br = new BufferedReader(new FileReader(\"in1.txt\"));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t// sc.nextInt();\n\t\t\n\t\t// int r0 = sc.nextInt();\n\t\t// int r1 = sc.nextInt();\n\t\tint r0 = Integer.parseInt(br.readLine());\n\t\tint r1 = Integer.parseInt(br.readLine());\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\t// while (sc.hasNextInt()) {\n\t\tfor (int i = 2; i < N; i++) {\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}\n\t\tSystem.out.println(max_profit);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int N = Integer.parseInt(br.readLine());", "N", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int r0 = Integer.parseInt(br.readLine());", "r0", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int r1 = Integer.parseInt(br.readLine());", "r1", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int max_profit = r1 - r0;", "max_profit", "r1 - r0", "r1", "r0", "int min_r = Math.min(r0, r1);", "min_r", "Math.min(r0, r1)", "Math.min", "Math", "r0", "r1", "for (int i = 2; i < N; i++) {\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}", "int i = 2;", "int i = 2;", "i", "2", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}", "{\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}", "int r = Integer.parseInt(br.readLine());", "r", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "max_profit = Math.max(max_profit, r - min_r)", "max_profit", "Math.max(max_profit, r - min_r)", "Math.max", "Math", "max_profit", "r - min_r", "r", "min_r", "min_r = Math.min(min_r, r)", "min_r", "Math.min(min_r, r)", "Math.min", "Math", "min_r", "r", "System.out.println(max_profit)", "System.out.println", "System.out", "System", "System.out", "max_profit", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\t// Scanner sc = new Scanner(new System.in);\n\t\t// Scanner sc = new Scanner(new File(\"in1.txt\"));\n\t\t// Scanner sc = new Scanner(new File(\"in2.txt\"));\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// BufferedReader br = new BufferedReader(new FileReader(\"in1.txt\"));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t// sc.nextInt();\n\t\t\n\t\t// int r0 = sc.nextInt();\n\t\t// int r1 = sc.nextInt();\n\t\tint r0 = Integer.parseInt(br.readLine());\n\t\tint r1 = Integer.parseInt(br.readLine());\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\t// while (sc.hasNextInt()) {\n\t\tfor (int i = 2; i < N; i++) {\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}\n\t\tSystem.out.println(max_profit);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\t// Scanner sc = new Scanner(new System.in);\n\t\t// Scanner sc = new Scanner(new File(\"in1.txt\"));\n\t\t// Scanner sc = new Scanner(new File(\"in2.txt\"));\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// BufferedReader br = new BufferedReader(new FileReader(\"in1.txt\"));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t// sc.nextInt();\n\t\t\n\t\t// int r0 = sc.nextInt();\n\t\t// int r1 = sc.nextInt();\n\t\tint r0 = Integer.parseInt(br.readLine());\n\t\tint r1 = Integer.parseInt(br.readLine());\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\t// while (sc.hasNextInt()) {\n\t\tfor (int i = 2; i < N; i++) {\n\t\t\t// int r = sc.nextInt();\n\t\t\tint r = Integer.parseInt(br.readLine());\n\t\t\tmax_profit = Math.max(max_profit, r - min_r);\n\t\t\tmin_r = Math.min(min_r, r);\n\t\t}\n\t\tSystem.out.println(max_profit);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.FileReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // Scanner sc = new Scanner(new System.in); // Scanner sc = new Scanner(new File("in1.txt")); // Scanner sc = new Scanner(new File("in2.txt")); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // BufferedReader br = new BufferedReader(new FileReader("in1.txt")); int N = Integer.parseInt(br.readLine()); // sc.nextInt(); // int r0 = sc.nextInt(); // int r1 = sc.nextInt(); int r0 = Integer.parseInt(br.readLine()); int r1 = Integer.parseInt(br.readLine()); int max_profit = r1 - r0; int min_r = Math.min(r0, r1); // while (sc.hasNextInt()) { for (int i = 2; i < N; i++) { // int r = sc.nextInt(); int r = Integer.parseInt(br.readLine()); max_profit = Math.max(max_profit, r - min_r); min_r = Math.min(min_r, r); } System.out.println(max_profit); } }
[ 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, 41, 13, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 13, 30, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 100, 5 ], [ 100, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 62, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 79, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[] array = new int[num];\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n }\n\n int max = -2000000000;\n int min = array[0];\n for(int i = 1; i < num; i++){\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[] array = new int[num];\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n }\n\n int max = -2000000000;\n int min = array[0];\n for(int i = 1; i < num; i++){\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[] array = new int[num];\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n }\n\n int max = -2000000000;\n int min = array[0];\n for(int i = 1; i < num; i++){\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[] array = new int[num];\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n }\n\n int max = -2000000000;\n int min = array[0];\n for(int i = 1; i < num; i++){\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "int[] array = new int[num];", "array", "new int[num]", "num", "for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n array[i] = sc.nextInt();\n }", "{\n array[i] = sc.nextInt();\n }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "int max = -2000000000;", "max", "-2000000000", "2000000000", "int min = array[0];", "min", "array[0]", "array", "0", "for(int i = 1; i < num; i++){\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < num", "i", "num", "i++", "i++", "i", "{\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }", "{\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }", "if(max < array[i] - min){\n max = array[i] - min;\n }", "max < array[i] - min", "max", "array[i] - min", "array[i]", "array", "i", "min", "{\n max = array[i] - min;\n }", "max = array[i] - min", "max", "array[i] - min", "array[i]", "array", "i", "min", "if(min > array[i]){\n min = array[i];\n }", "min > array[i]", "min", "array[i]", "array", "i", "{\n min = array[i];\n }", "min = array[i]", "min", "array[i]", "array", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[] array = new int[num];\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n }\n\n int max = -2000000000;\n int min = array[0];\n for(int i = 1; i < num; i++){\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }\n System.out.println(max);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int[] array = new int[num];\n for(int i = 0; i < num; i++){\n array[i] = sc.nextInt();\n }\n\n int max = -2000000000;\n int min = array[0];\n for(int i = 1; i < num; i++){\n if(max < array[i] - min){\n max = array[i] - min;\n }\n if(min > array[i]){\n min = array[i];\n }\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] array = new int[num]; for(int i = 0; i < num; i++){ array[i] = sc.nextInt(); } int max = -2000000000; int min = array[0]; for(int i = 1; i < num; i++){ if(max < array[i] - min){ max = array[i] - min; } if(min > array[i]){ min = array[i]; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 30, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = 0;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }\n System.out.println(max);\n }}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = 0;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }\n System.out.println(max);\n }}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = 0;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = 0;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int min = 0;", "min", "0", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; i++) {\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }", "{\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }", "int j = sc.nextInt();", "j", "sc.nextInt()", "sc.nextInt", "sc", "if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }", "i == 0", "i", "0", "{\n min = j;\n }", "min = j", "min", "j", "{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }", "max=Math.max(max,j-min)", "max", "Math.max(max,j-min)", "Math.max", "Math", "max", "j-min", "j", "min", "min=Math.min(min,j)", "min", "Math.min(min,j)", "Math.min", "Math", "min", "j", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = 0;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }\n System.out.println(max);\n }}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = 0;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n int j = sc.nextInt();//当前数\n if (i == 0) {\n min = j;\n }else{\n max=Math.max(max,j-min);\n min=Math.min(min,j);\n }\n }\n System.out.println(max);\n }}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int min = 0; int max = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { int j = sc.nextInt();//当前数 if (i == 0) { min = j; }else{ max=Math.max(max,j-min); min=Math.min(min,j); } } System.out.println(max); }}
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 94, 5 ], [ 94, 6 ], [ 6, 7 ], [ 6, 8 ], [ 94, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 11, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 11, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 11, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 60, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 60, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 11, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 9, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int n = Integer.parseInt(sc.nextLine());\n int n0 = Integer.parseInt(sc.nextLine());\n int n1 = Integer.parseInt(sc.nextLine());\n\n int max = n1 - n0;\n int min = Math.min(n0, n1);\n\n for(int i = 2; i < n; i++){\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int n = Integer.parseInt(sc.nextLine());\n int n0 = Integer.parseInt(sc.nextLine());\n int n1 = Integer.parseInt(sc.nextLine());\n\n int max = n1 - n0;\n int min = Math.min(n0, n1);\n\n for(int i = 2; i < n; i++){\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }\n System.out.println(max);\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n int n = Integer.parseInt(sc.nextLine());\n int n0 = Integer.parseInt(sc.nextLine());\n int n1 = Integer.parseInt(sc.nextLine());\n\n int max = n1 - n0;\n int min = Math.min(n0, n1);\n\n for(int i = 2; i < n; i++){\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }\n System.out.println(max);\n }", "main", "{\n int n = Integer.parseInt(sc.nextLine());\n int n0 = Integer.parseInt(sc.nextLine());\n int n1 = Integer.parseInt(sc.nextLine());\n\n int max = n1 - n0;\n int min = Math.min(n0, n1);\n\n for(int i = 2; i < n; i++){\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }\n System.out.println(max);\n }", "int n = Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int n0 = Integer.parseInt(sc.nextLine());", "n0", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int n1 = Integer.parseInt(sc.nextLine());", "n1", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int max = n1 - n0;", "max", "n1 - n0", "n1", "n0", "int min = Math.min(n0, n1);", "min", "Math.min(n0, n1)", "Math.min", "Math", "n0", "n1", "for(int i = 2; i < n; i++){\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }", "int i = 2;", "int i = 2;", "i", "2", "i < n", "i", "n", "i++", "i++", "i", "{\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }", "{\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }", "int a = Integer.parseInt(sc.nextLine());", "a", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "max = Math.max(max, a - min)", "max", "Math.max(max, a - min)", "Math.max", "Math", "max", "a - min", "a", "min", "min = Math.min(min, a)", "min", "Math.min(min, a)", "Math.min", "Math", "min", "a", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int n = Integer.parseInt(sc.nextLine());\n int n0 = Integer.parseInt(sc.nextLine());\n int n1 = Integer.parseInt(sc.nextLine());\n\n int max = n1 - n0;\n int min = Math.min(n0, n1);\n\n for(int i = 2; i < n; i++){\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }\n System.out.println(max);\n }\n}", "public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int n = Integer.parseInt(sc.nextLine());\n int n0 = Integer.parseInt(sc.nextLine());\n int n1 = Integer.parseInt(sc.nextLine());\n\n int max = n1 - n0;\n int min = Math.min(n0, n1);\n\n for(int i = 2; i < n; i++){\n int a = Integer.parseInt(sc.nextLine());\n max = Math.max(max, a - min);\n min = Math.min(min, a);\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = Integer.parseInt(sc.nextLine()); int n0 = Integer.parseInt(sc.nextLine()); int n1 = Integer.parseInt(sc.nextLine()); int max = n1 - n0; int min = Math.min(n0, n1); for(int i = 2; i < n; i++){ int a = Integer.parseInt(sc.nextLine()); max = Math.max(max, a - min); min = Math.min(min, a); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 13, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 8, 2, 2, 18, 13, 13, 13, 13, 2, 18, 13, 13, 13, 13, 0, 13, 8, 2, 18, 13, 13, 13, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 69, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 68, 81 ], [ 65, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 84, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tint MAX = 200000;\n\t\tint[] R = new int[MAX];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = -2000000000; //???????°??????????????????????????¨????\n\t\tint minv = R[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String args[]){\n\t\tint MAX = 200000;\n\t\tint[] R = new int[MAX];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = -2000000000; //???????°??????????????????????????¨????\n\t\tint minv = R[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tint MAX = 200000;\n\t\tint[] R = new int[MAX];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = -2000000000; //???????°??????????????????????????¨????\n\t\tint minv = R[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tint MAX = 200000;\n\t\tint[] R = new int[MAX];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = -2000000000; //???????°??????????????????????????¨????\n\t\tint minv = R[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "int MAX = 200000;", "MAX", "200000", "int[] R = new int[MAX];", "R", "new int[MAX]", "MAX", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0; i < n; i++){\n\t\t\tR[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tR[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tR[i] = scan.nextInt();\n\t\t}", "R[i] = scan.nextInt()", "R[i]", "R", "i", "scan.nextInt()", "scan.nextInt", "scan", "int maxv = -2000000000;", "maxv", "-2000000000", "2000000000", "int minv = R[0];", "minv", "R[0]", "R", "0", "for(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}", "{ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}", "maxv = R[i] - minv > maxv ? R[i] - minv : maxv", "maxv", "R[i] - minv > maxv ? R[i] - minv : maxv", "R[i] - minv > maxv", "R[i] - minv", "R[i]", "R", "i", "minv", "maxv", "R[i] - minv", "R[i]", "R", "i", "minv", "maxv", "minv = R[i] < minv ? R[i] : minv", "minv", "R[i] < minv ? R[i] : minv", "R[i] < minv", "R[i]", "R", "i", "minv", "R[i]", "R", "i", "minv", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]){\n\t\tint MAX = 200000;\n\t\tint[] R = new int[MAX];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = -2000000000; //???????°??????????????????????????¨????\n\t\tint minv = R[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]){\n\t\tint MAX = 200000;\n\t\tint[] R = new int[MAX];\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = -2000000000; //???????°??????????????????????????¨????\n\t\tint minv = R[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°???????????????\n\t\t\tmaxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??°\n\t\t\tminv = R[i] < minv ? R[i] : minv; //???????????§???????°?????????????????????????\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]){ int MAX = 200000; int[] R = new int[MAX]; Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for(int i = 0; i < n; i++){ R[i] = scan.nextInt(); } int maxv = -2000000000; //???????°??????????????????????????¨???? int minv = R[0]; for(int i = 1; i < n; i++){ //????????§??????R[i]?????????????????°??????????????? maxv = R[i] - minv > maxv ? R[i] - minv : maxv; //?????§????????´??° minv = R[i] < minv ? R[i] : minv; //???????????§???????°????????????????????????? } System.out.println(maxv); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 40, 17, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 30, 0, 13, 8, 2, 13, 2, 13, 13, 13, 2, 13, 13, 0, 13, 8, 2, 13, 13, 13, 13, 4, 18, 18, 13, 13, 13, 29, 17, 23, 13, 12, 13, 30, 4, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 106, 5 ], [ 106, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 16, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 49, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 69, 76 ], [ 76, 77 ], [ 76, 78 ], [ 66, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 81, 86 ], [ 16, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 8, 93 ], [ 93, 94 ], [ 6, 95 ], [ 95, 96 ], [ 106, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.util.Scanner;\n\n/**\n * Created by ??\\??? on 2016/12/2.\n */\npublic class Main {\n static int run(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()) {\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }\n return 0;\n }\n public static void main(String[] args) {\n run(args);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static int run(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()) {\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }\n return 0;\n }\n public static void main(String[] args) {\n run(args);\n }\n}", "Main", "static int run(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()) {\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }\n return 0;\n }", "run", "{\n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()) {\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }\n return 0;\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(scan.hasNext()) {\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }", "scan.hasNext()", "scan.hasNext", "scan", "{\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }", "int T = Integer.parseInt(scan.nextLine());", "T", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "int maxv = -1000000000;", "maxv", "-1000000000", "1000000000", "int min = -1;", "min", "-1", "1", "int pointer = -1;", "pointer", "-1", "1", "for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= T", "i", "T", "i++", "i++", "i", "{\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }", "{\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }", "pointer = Integer.parseInt(scan.nextLine())", "pointer", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }", "i == 1", "i", "1", "{\n min = pointer;\n }", "min = pointer", "min", "pointer", "{\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }", "maxv = (maxv > pointer - min) ? maxv : (pointer-min)", "maxv", "(maxv > pointer - min) ? maxv : (pointer-min)", "(maxv > pointer - min)", "maxv", "pointer - min", "pointer", "min", "maxv", "(pointer-min)", "pointer", "min", "min = (min > pointer) ? pointer : min", "min", "(min > pointer) ? pointer : min", "(min > pointer)", "min", "pointer", "pointer", "min", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "return 0;", "0", "String[] args", "args", "public static void main(String[] args) {\n run(args);\n }", "main", "{\n run(args);\n }", "run(args)", "run", "args", "String[] args", "args", "public class Main {\n static int run(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()) {\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }\n return 0;\n }\n public static void main(String[] args) {\n run(args);\n }\n}", "public class Main {\n static int run(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()) {\n int T = Integer.parseInt(scan.nextLine());\n int maxv = -1000000000;\n int min = -1;\n int pointer = -1;\n for (int i = 1; i <= T; i++) {\n pointer = Integer.parseInt(scan.nextLine());\n if (i == 1) {\n min = pointer;\n } else {\n maxv = (maxv > pointer - min) ? maxv : (pointer-min);\n min = (min > pointer) ? pointer : min;\n }\n }\n System.out.println(maxv);\n }\n return 0;\n }\n public static void main(String[] args) {\n run(args);\n }\n}", "Main" ]
import java.util.Scanner; /** * Created by ??\??? on 2016/12/2. */ public class Main { static int run(String[] args) { Scanner scan = new Scanner(System.in); while(scan.hasNext()) { int T = Integer.parseInt(scan.nextLine()); int maxv = -1000000000; int min = -1; int pointer = -1; for (int i = 1; i <= T; i++) { pointer = Integer.parseInt(scan.nextLine()); if (i == 1) { min = pointer; } else { maxv = (maxv > pointer - min) ? maxv : (pointer-min); min = (min > pointer) ? pointer : min; } } System.out.println(maxv); } return 0; } public static void main(String[] args) { run(args); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 2, 13, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 39, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 61, 67 ], [ 53, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ] ]
[ "import java.util.*;\nclass Main {\n\tpublic static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t int minValue = scan.nextInt();\n\t\tint nowValue = scan.nextInt();\n\t\tint dif = nowValue - minValue;\n\t\tminValue = Math.min(nowValue,minValue);\n\t\t\n\t\tfor(int i =0; i < times -2; i ++) {\n\t\t\tnowValue = scan.nextInt();\n\t\t\tdif = Math.max(nowValue - minValue , dif);\n\t\t\tminValue = Math.min(nowValue,minValue);\n\t\t}\n\t\tSystem.out.println(dif);\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t int minValue = scan.nextInt();\n\t\tint nowValue = scan.nextInt();\n\t\tint dif = nowValue - minValue;\n\t\tminValue = Math.min(nowValue,minValue);\n\t\t\n\t\tfor(int i =0; i < times -2; i ++) {\n\t\t\tnowValue = scan.nextInt();\n\t\t\tdif = Math.max(nowValue - minValue , dif);\n\t\t\tminValue = Math.min(nowValue,minValue);\n\t\t}\n\t\tSystem.out.println(dif);\n\t}\n}", "Main", "public static void main(String...args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t int minValue = scan.nextInt();\n\t\tint nowValue = scan.nextInt();\n\t\tint dif = nowValue - minValue;\n\t\tminValue = Math.min(nowValue,minValue);\n\t\t\n\t\tfor(int i =0; i < times -2; i ++) {\n\t\t\tnowValue = scan.nextInt();\n\t\t\tdif = Math.max(nowValue - minValue , dif);\n\t\t\tminValue = Math.min(nowValue,minValue);\n\t\t}\n\t\tSystem.out.println(dif);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t int minValue = scan.nextInt();\n\t\tint nowValue = scan.nextInt();\n\t\tint dif = nowValue - minValue;\n\t\tminValue = Math.min(nowValue,minValue);\n\t\t\n\t\tfor(int i =0; i < times -2; i ++) {\n\t\t\tnowValue = scan.nextInt();\n\t\t\tdif = Math.max(nowValue - minValue , dif);\n\t\t\tminValue = Math.min(nowValue,minValue);\n\t\t}\n\t\tSystem.out.println(dif);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int times = scan.nextInt();", "times", "scan.nextInt()", "scan.nextInt", "scan", "int minValue = scan.nextInt();", "minValue", "scan.nextInt()", "scan.nextInt", "scan", "int nowValue = scan.nextInt();", "nowValue", "scan.nextInt()", "scan.nextInt", "scan", "int dif = nowValue - minValue;", "dif", "nowValue - minValue", "nowValue", "minValue", "minValue = Math.min(nowValue,minValue)", "minValue", "Math.min(nowValue,minValue)", "Math.min", "Math", "nowValue", "minValue", "for(int i =0; i < times -2; i ++) {\n\t\t\tnowValue = scan.nextInt();\n\t\t\tdif = Math.max(nowValue - minValue , dif);\n\t\t\tminValue = Math.min(nowValue,minValue);\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i < times -2", "i", "times -2", "times", "2", "i ++", "i ++", "i", "{\n\t\t\tnowValue = scan.nextInt();\n\t\t\tdif = Math.max(nowValue - minValue , dif);\n\t\t\tminValue = Math.min(nowValue,minValue);\n\t\t}", "{\n\t\t\tnowValue = scan.nextInt();\n\t\t\tdif = Math.max(nowValue - minValue , dif);\n\t\t\tminValue = Math.min(nowValue,minValue);\n\t\t}", "nowValue = scan.nextInt()", "nowValue", "scan.nextInt()", "scan.nextInt", "scan", "dif = Math.max(nowValue - minValue , dif)", "dif", "Math.max(nowValue - minValue , dif)", "Math.max", "Math", "nowValue - minValue", "nowValue", "minValue", "dif", "minValue = Math.min(nowValue,minValue)", "minValue", "Math.min(nowValue,minValue)", "Math.min", "Math", "nowValue", "minValue", "System.out.println(dif)", "System.out.println", "System.out", "System", "System.out", "dif", "String...args", "args" ]
import java.util.*; class Main { public static void main(String...args) { Scanner scan = new Scanner(System.in); int times = scan.nextInt(); int minValue = scan.nextInt(); int nowValue = scan.nextInt(); int dif = nowValue - minValue; minValue = Math.min(nowValue,minValue); for(int i =0; i < times -2; i ++) { nowValue = scan.nextInt(); dif = Math.max(nowValue - minValue , dif); minValue = Math.min(nowValue,minValue); } System.out.println(dif); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 43, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 8, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 6, 71 ], [ 71, 72 ] ]
[ "import java.util.*;\n\n\nclass Main {\n\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n \n int maxProfit = b - a;\n \n int min = Math.min(a,b); // the minimum number in the dataset \n\n while(sc.hasNextInt()){\n int next = sc.nextInt();\n \n maxProfit = Math.max(maxProfit, next - min);\n \n min = Math.min(min, next);\n }\n\n\n System.out.println(maxProfit);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n \n int maxProfit = b - a;\n \n int min = Math.min(a,b); // the minimum number in the dataset \n\n while(sc.hasNextInt()){\n int next = sc.nextInt();\n \n maxProfit = Math.max(maxProfit, next - min);\n \n min = Math.min(min, next);\n }\n\n\n System.out.println(maxProfit);\n }\n}", "Main", "public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n \n int maxProfit = b - a;\n \n int min = Math.min(a,b); // the minimum number in the dataset \n\n while(sc.hasNextInt()){\n int next = sc.nextInt();\n \n maxProfit = Math.max(maxProfit, next - min);\n \n min = Math.min(min, next);\n }\n\n\n System.out.println(maxProfit);\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n \n int maxProfit = b - a;\n \n int min = Math.min(a,b); // the minimum number in the dataset \n\n while(sc.hasNextInt()){\n int next = sc.nextInt();\n \n maxProfit = Math.max(maxProfit, next - min);\n \n min = Math.min(min, next);\n }\n\n\n System.out.println(maxProfit);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int maxProfit = b - a;", "maxProfit", "b - a", "b", "a", "int min = Math.min(a,b);", "min", "Math.min(a,b)", "Math.min", "Math", "a", "b", "while(sc.hasNextInt()){\n int next = sc.nextInt();\n \n maxProfit = Math.max(maxProfit, next - min);\n \n min = Math.min(min, next);\n }", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n int next = sc.nextInt();\n \n maxProfit = Math.max(maxProfit, next - min);\n \n min = Math.min(min, next);\n }", "int next = sc.nextInt();", "next", "sc.nextInt()", "sc.nextInt", "sc", "maxProfit = Math.max(maxProfit, next - min)", "maxProfit", "Math.max(maxProfit, next - min)", "Math.max", "Math", "maxProfit", "next - min", "next", "min", "min = Math.min(min, next)", "min", "Math.min(min, next)", "Math.min", "Math", "min", "next", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int maxProfit = b - a; int min = Math.min(a,b); // the minimum number in the dataset while(sc.hasNextInt()){ int next = sc.nextInt(); maxProfit = Math.max(maxProfit, next - min); min = Math.min(min, next); } System.out.println(maxProfit); } }
[ 7, 15, 13, 17, 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, 41, 13, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 9, 14 ], [ 14, 15 ], [ 7, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 18, 27 ], [ 27, 28 ], [ 27, 29 ], [ 18, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 18, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 18, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 18, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 72, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 18, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ] ]
[ "\nimport java.io.*;\nimport java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tsolve();\n\t}\n\tpublic static void solve(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] num = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum[i] = sc.nextInt();\n\t\t}\t\n\t\tint max = -1000000000;\n\t\tint nowm = num[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tmax = (int)Math.max(max, num[i] - nowm);\n\t\t\tnowm = (int)Math.min(nowm, num[i]);\t\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n}\n\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\tsolve();\n\t}\n\tpublic static void solve(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] num = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum[i] = sc.nextInt();\n\t\t}\t\n\t\tint max = -1000000000;\n\t\tint nowm = num[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tmax = (int)Math.max(max, num[i] - nowm);\n\t\t\tnowm = (int)Math.min(nowm, num[i]);\t\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tsolve();\n\t}", "main", "{\n\t\tsolve();\n\t}", "solve()", "solve", "String[] args", "args", "public static void solve(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] num = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum[i] = sc.nextInt();\n\t\t}\t\n\t\tint max = -1000000000;\n\t\tint nowm = num[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tmax = (int)Math.max(max, num[i] - nowm);\n\t\t\tnowm = (int)Math.min(nowm, num[i]);\t\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}", "solve", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] num = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tnum[i] = sc.nextInt();\n\t\t}\t\n\t\tint max = -1000000000;\n\t\tint nowm = num[0];\n\t\tfor(int i=1;i<n;i++){\n\t\t\tmax = (int)Math.max(max, num[i] - nowm);\n\t\t\tnowm = (int)Math.min(nowm, num[i]);\t\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] num = new int[n];", "num", "new int[n]", "n", "for(int i=0;i<n;i++){\n\t\t\tnum[i] = sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnum[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tnum[i] = sc.nextInt();\n\t\t}", "num[i] = sc.nextInt()", "num[i]", "num", "i", "sc.nextInt()", "sc.nextInt", "sc", "int max = -1000000000;", "max", "-1000000000", "1000000000", "int nowm = num[0];", "nowm", "num[0]", "num", "0", "for(int i=1;i<n;i++){\n\t\t\tmax = (int)Math.max(max, num[i] - nowm);\n\t\t\tnowm = (int)Math.min(nowm, num[i]);\t\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmax = (int)Math.max(max, num[i] - nowm);\n\t\t\tnowm = (int)Math.min(nowm, num[i]);\t\n\t\t}", "{\n\t\t\tmax = (int)Math.max(max, num[i] - nowm);\n\t\t\tnowm = (int)Math.min(nowm, num[i]);\t\n\t\t}", "max = (int)Math.max(max, num[i] - nowm)", "max", "(int)Math.max(max, num[i] - nowm)", "Math.max", "Math", "max", "num[i] - nowm", "num[i]", "num", "i", "nowm", "nowm = (int)Math.min(nowm, num[i])", "nowm", "(int)Math.min(nowm, num[i])", "Math.min", "Math", "nowm", "num[i]", "num", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max" ]
import java.io.*; import java.util.*; class Main{ public static void main(String[] args){ solve(); } public static void solve(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] num = new int[n]; for(int i=0;i<n;i++){ num[i] = sc.nextInt(); } int max = -1000000000; int nowm = num[0]; for(int i=1;i<n;i++){ max = (int)Math.max(max, num[i] - nowm); nowm = (int)Math.min(nowm, num[i]); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 18, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 41, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int i, n = scanner.nextInt();\n int min = scanner.nextInt();\n int max = Integer.MIN_VALUE;\n for(i = 1; i < n; ++i){\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }\n System.out.println(max);\n scanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int i, n = scanner.nextInt();\n int min = scanner.nextInt();\n int max = Integer.MIN_VALUE;\n for(i = 1; i < n; ++i){\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }\n System.out.println(max);\n scanner.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int i, n = scanner.nextInt();\n int min = scanner.nextInt();\n int max = Integer.MIN_VALUE;\n for(i = 1; i < n; ++i){\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }\n System.out.println(max);\n scanner.close();\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int i, n = scanner.nextInt();\n int min = scanner.nextInt();\n int max = Integer.MIN_VALUE;\n for(i = 1; i < n; ++i){\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }\n System.out.println(max);\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int i", "i", "n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int min = scanner.nextInt();", "min", "scanner.nextInt()", "scanner.nextInt", "scanner", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(i = 1; i < n; ++i){\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }", "i = 1;", "i = 1", "i", "1", "i < n", "i", "n", "++i", "++i", "i", "{\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }", "{\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }", "int input = scanner.nextInt();", "input", "scanner.nextInt()", "scanner.nextInt", "scanner", "max = Math.max(max, input - min)", "max", "Math.max(max, input - min)", "Math.max", "Math", "max", "input - min", "input", "min", "min = Math.min(min, input)", "min", "Math.min(min, input)", "Math.min", "Math", "min", "input", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int i, n = scanner.nextInt();\n int min = scanner.nextInt();\n int max = Integer.MIN_VALUE;\n for(i = 1; i < n; ++i){\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }\n System.out.println(max);\n scanner.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int i, n = scanner.nextInt();\n int min = scanner.nextInt();\n int max = Integer.MIN_VALUE;\n for(i = 1; i < n; ++i){\n int input = scanner.nextInt();\n max = Math.max(max, input - min);\n min = Math.min(min, input);\n }\n System.out.println(max);\n scanner.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int i, n = scanner.nextInt(); int min = scanner.nextInt(); int max = Integer.MIN_VALUE; for(i = 1; i < n; ++i){ int input = scanner.nextInt(); max = Math.max(max, input - min); min = Math.min(min, input); } System.out.println(max); scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 100, 5 ], [ 100, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 70, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}\n\t\t\n\t\tint min=A[0],max=A[1]-A[0];\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}\n\n", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}\n\t\t\n\t\tint min=A[0],max=A[1]-A[0];\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}\n\t\t\n\t\tint min=A[0],max=A[1]-A[0];\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}\n\t\t\n\t\tint min=A[0],max=A[1]-A[0];\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "int n=in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "A[]=new int[n];", "A", "new int[n]", "n", "for(int i=0;i<n;i++) {\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}", "{\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}", "A[i]=Integer.parseInt(in.next())", "A[i]", "A", "i", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "int min=A[0]", "min", "A[0]", "A", "0", "max=A[1]-A[0];", "max", "A[1]-A[0]", "A[1]", "A", "1", "A[0]", "A", "0", "for(int i=1;i<n;i++) {\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}", "{\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}", "max=Math.max(max,A[i]-min)", "max", "Math.max(max,A[i]-min)", "Math.max", "Math", "max", "A[i]-min", "A[i]", "A", "i", "min", "min=Math.min(min,A[i])", "min", "Math.min(min,A[i])", "Math.min", "Math", "min", "A[i]", "A", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}\n\t\t\n\t\tint min=A[0],max=A[1]-A[0];\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tint n=in.nextInt(),A[]=new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tA[i]=Integer.parseInt(in.next());\n\t\t}\n\t\t\n\t\tint min=A[0],max=A[1]-A[0];\n\t\tfor(int i=1;i<n;i++) {\n\t\t\tmax=Math.max(max,A[i]-min);\n\t\t\tmin=Math.min(min,A[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); int n=in.nextInt(),A[]=new int[n]; for(int i=0;i<n;i++) { A[i]=Integer.parseInt(in.next()); } int min=A[0],max=A[1]-A[0]; for(int i=1;i<n;i++) { max=Math.max(max,A[i]-min); min=Math.min(min,A[i]); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 14, 2, 2, 13, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 17, 30, 0, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 105, 5 ], [ 105, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 50, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 49, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 45, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 6, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tint n,min=0,a,p=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String args[]){\n\t\tint n,min=0,a,p=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tint n,min=0,a,p=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}", "main", "{\n\t\tint n,min=0,a,p=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}", "int n", "n", "min=0", "min", "0", "a", "a", "p=0;", "p", "0", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i=0;i<n;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}", "{\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}", "a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "if (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}", "i>=2", "i", "2", "{\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}", "if (a-min>p){p=a-min;}", "a-min>p", "a-min", "a", "min", "p", "{p=a-min;}", "p=a-min", "p", "a-min", "a", "min", "if (a<min){min=a;}", "a<min", "a", "min", "{min=a;}", "min=a", "min", "a", "if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}", "i==0", "i", "0", "{\n\t\t\t\tmin=a;\n\t\t\t}", "min=a", "min", "a", "if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}", "i==1", "i", "1", "{\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}", "p=a-min", "p", "a-min", "a", "min", "if (a<min){min=a;}", "a<min", "a", "min", "{min=a;}", "min=a", "min", "a", "System.out.println(p)", "System.out.println", "System.out", "System", "System.out", "p", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]){\n\t\tint n,min=0,a,p=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]){\n\t\tint n,min=0,a,p=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tfor (int i=0;i<n;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tif (i>=2){\n\t\t\t\tif (a-min>p){p=a-min;}\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}else if (i==0){\n\t\t\t\tmin=a;\n\t\t\t}else if (i==1){\n\t\t\t\tp=a-min;\n\t\t\t\tif (a<min){min=a;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]){ int n,min=0,a,p=0; Scanner sc=new Scanner(System.in); n=sc.nextInt(); for (int i=0;i<n;i++){ a=sc.nextInt(); if (i>=2){ if (a-min>p){p=a-min;} if (a<min){min=a;} }else if (i==0){ min=a; }else if (i==1){ p=a-min; if (a<min){min=a;} } } System.out.println(p); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 8, 2, 2, 13, 13, 13, 2, 13, 13, 13, 0, 13, 8, 2, 13, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 50, 56 ], [ 56, 57 ], [ 56, 58 ], [ 50, 59 ], [ 42, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 62, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n int n=scanner.nextInt();\n int min=Integer.MAX_VALUE;\n int result=Integer.MIN_VALUE;\n int x=0;\n for(int i=0;i<n;i++){\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }\n System.out.println(result);\n }\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n int n=scanner.nextInt();\n int min=Integer.MAX_VALUE;\n int result=Integer.MIN_VALUE;\n int x=0;\n for(int i=0;i<n;i++){\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }\n System.out.println(result);\n }\n\n}", "Main", "public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n int n=scanner.nextInt();\n int min=Integer.MAX_VALUE;\n int result=Integer.MIN_VALUE;\n int x=0;\n for(int i=0;i<n;i++){\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }\n System.out.println(result);\n }", "main", "{\n // write your code here\n Scanner scanner=new Scanner(System.in);\n int n=scanner.nextInt();\n int min=Integer.MAX_VALUE;\n int result=Integer.MIN_VALUE;\n int x=0;\n for(int i=0;i<n;i++){\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }\n System.out.println(result);\n }", "Scanner scanner=new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n=scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int min=Integer.MAX_VALUE;", "min", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int result=Integer.MIN_VALUE;", "result", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int x=0;", "x", "0", "for(int i=0;i<n;i++){\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }", "{\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }", "x=scanner.nextInt()", "x", "scanner.nextInt()", "scanner.nextInt", "scanner", "result=x-min>result?x-min:result", "result", "x-min>result?x-min:result", "x-min>result", "x-min", "x", "min", "result", "x-min", "x", "min", "result", "min=min>x?x:min", "min", "min>x?x:min", "min>x", "min", "x", "x", "min", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n int n=scanner.nextInt();\n int min=Integer.MAX_VALUE;\n int result=Integer.MIN_VALUE;\n int x=0;\n for(int i=0;i<n;i++){\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }\n System.out.println(result);\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n int n=scanner.nextInt();\n int min=Integer.MAX_VALUE;\n int result=Integer.MIN_VALUE;\n int x=0;\n for(int i=0;i<n;i++){\n x=scanner.nextInt();\n result=x-min>result?x-min:result;\n min=min>x?x:min;\n }\n System.out.println(result);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner scanner=new Scanner(System.in); int n=scanner.nextInt(); int min=Integer.MAX_VALUE; int result=Integer.MIN_VALUE; int x=0; for(int i=0;i<n;i++){ x=scanner.nextInt(); result=x-min>result?x-min:result; min=min>x?x:min; } System.out.println(result); } }
[ 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, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 40, 17, 41, 13, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 13, 13, 0, 13, 2, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 13, 30, 0, 13, 40, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 13, 13, 14, 2, 13, 2, 13, 18, 13, 13, 0, 13, 2, 13, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 179, 5 ], [ 179, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 6, 51 ], [ 51, 52 ], [ 179, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 55, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 55, 67 ], [ 67, 68 ], [ 67, 69 ], [ 55, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 55, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 55, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 105, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 124, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 129, 136 ], [ 136, 137 ], [ 136, 138 ], [ 129, 139 ], [ 139, 140 ], [ 140, 141 ], [ 129, 142 ], [ 143, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 144, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 153, 155 ], [ 150, 156 ], [ 156, 157 ], [ 156, 158 ], [ 119, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 164, 166 ], [ 159, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 171, 173 ], [ 55, 174 ], [ 174, 175 ], [ 53, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0;i < n;i++) a[i] = sc.nextLong();\n sc.close();\n System.out.println(max(a));\n }\n\n private static long max(long[] a){\n long max,ma = -1,l = a.length;\n int in = 0;\n for(int i = 1;i < l;i++){\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }\n max = ma - a[0];\n for(int i = 1;i < l - 1;i++){\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }\n return max;\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0;i < n;i++) a[i] = sc.nextLong();\n sc.close();\n System.out.println(max(a));\n }\n\n private static long max(long[] a){\n long max,ma = -1,l = a.length;\n int in = 0;\n for(int i = 1;i < l;i++){\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }\n max = ma - a[0];\n for(int i = 1;i < l - 1;i++){\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }\n return max;\n }\n\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0;i < n;i++) a[i] = sc.nextLong();\n sc.close();\n System.out.println(max(a));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0;i < n;i++) a[i] = sc.nextLong();\n sc.close();\n System.out.println(max(a));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "long[] a = new long[n];", "a", "new long[n]", "n", "for(int i = 0;i < n;i++) a[i] = sc.nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = sc.nextLong();", "a[i] = sc.nextLong()", "a[i]", "a", "i", "sc.nextLong()", "sc.nextLong", "sc", "sc.close()", "sc.close", "sc", "System.out.println(max(a))", "System.out.println", "System.out", "System", "System.out", "max(a)", "max", "a", "String[] args", "args", "private static long max(long[] a){\n long max,ma = -1,l = a.length;\n int in = 0;\n for(int i = 1;i < l;i++){\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }\n max = ma - a[0];\n for(int i = 1;i < l - 1;i++){\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }\n return max;\n }", "max", "{\n long max,ma = -1,l = a.length;\n int in = 0;\n for(int i = 1;i < l;i++){\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }\n max = ma - a[0];\n for(int i = 1;i < l - 1;i++){\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }\n return max;\n }", "long max", "max", "ma = -1", "ma", "-1", "1", "l = a.length;", "l", "a.length", "a", "a.length", "int in = 0;", "in", "0", "for(int i = 1;i < l;i++){\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < l", "i", "l", "i++", "i++", "i", "{\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }", "{\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }", "if(ma < a[i]){\n ma = a[i];\n in = i;\n }", "ma < a[i]", "ma", "a[i]", "a", "i", "{\n ma = a[i];\n in = i;\n }", "ma = a[i]", "ma", "a[i]", "a", "i", "in = i", "in", "i", "max = ma - a[0]", "max", "ma - a[0]", "ma", "a[0]", "a", "0", "for(int i = 1;i < l - 1;i++){\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }", "int i = 1;", "int i = 1;", "i", "1", "i < l - 1", "i", "l - 1", "l", "1", "i++", "i++", "i", "{\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }", "{\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }", "if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }", "i == in", "i", "in", "{\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }", "ma = -1", "ma", "-1", "1", "for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }", "int j = in + 1;", "int j = in + 1;", "j", "in + 1", "in", "1", "j < l", "j", "l", "j++", "j++", "j", "{\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }", "{\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }", "if(ma < a[j]){\n ma = a[j];\n in = j;\n }", "ma < a[j]", "ma", "a[j]", "a", "j", "{\n ma = a[j];\n in = j;\n }", "ma = a[j]", "ma", "a[j]", "a", "j", "in = j", "in", "j", "if(max < ma - a[i]) max = ma - a[i];", "max < ma - a[i]", "max", "ma - a[i]", "ma", "a[i]", "a", "i", "max = ma - a[i]", "max", "ma - a[i]", "ma", "a[i]", "a", "i", "return max;", "max", "long[] a", "a", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0;i < n;i++) a[i] = sc.nextLong();\n sc.close();\n System.out.println(max(a));\n }\n\n private static long max(long[] a){\n long max,ma = -1,l = a.length;\n int in = 0;\n for(int i = 1;i < l;i++){\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }\n max = ma - a[0];\n for(int i = 1;i < l - 1;i++){\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }\n return max;\n }\n\n}", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0;i < n;i++) a[i] = sc.nextLong();\n sc.close();\n System.out.println(max(a));\n }\n\n private static long max(long[] a){\n long max,ma = -1,l = a.length;\n int in = 0;\n for(int i = 1;i < l;i++){\n if(ma < a[i]){\n ma = a[i];\n in = i;\n }\n }\n max = ma - a[0];\n for(int i = 1;i < l - 1;i++){\n if(i == in){\n ma = -1;\n for(int j = in + 1;j < l;j++){\n if(ma < a[j]){\n ma = a[j];\n in = j;\n }\n }\n }\n if(max < ma - a[i]) max = ma - a[i];\n }\n return max;\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] a = new long[n]; for(int i = 0;i < n;i++) a[i] = sc.nextLong(); sc.close(); System.out.println(max(a)); } private static long max(long[] a){ long max,ma = -1,l = a.length; int in = 0; for(int i = 1;i < l;i++){ if(ma < a[i]){ ma = a[i]; in = i; } } max = ma - a[0]; for(int i = 1;i < l - 1;i++){ if(i == in){ ma = -1; for(int j = in + 1;j < l;j++){ if(ma < a[j]){ ma = a[j]; in = j; } } } if(max < ma - a[i]) max = ma - a[i]; } return max; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 13, 42, 4, 18, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 4, 18, 13, 17, 17, 40, 17, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 4, 18, 13, 13, 13, 30, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 108, 11 ], [ 108, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 41, 45 ], [ 40, 46 ], [ 46, 47 ], [ 14, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 14, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 54, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 68, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 68, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 14, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 12, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Long> rts = new ArrayList<>();\n sc.nextLine();\n while(sc.hasNext()) {\n rts.add(Long.parseLong(sc.nextLine()));\n }\n long maxv = (long)Math.pow(10, 9) * -1;\n long minv = rts.get(0);\n for (int i = 1; i < rts.size(); i++) {\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }\n// for (int i = 0; i < rts.size(); i++) {\n// for (int j = 1; j < rts.size(); j++) {\n// if (i >= j) {\n// continue;\n// }\n// long v = rts.get(j) - rts.get(i);\n// if (v > maxv) {\n// maxv = v;\n// }\n// }\n// }\n System.out.println(maxv);\n }\n}\n\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Long> rts = new ArrayList<>();\n sc.nextLine();\n while(sc.hasNext()) {\n rts.add(Long.parseLong(sc.nextLine()));\n }\n long maxv = (long)Math.pow(10, 9) * -1;\n long minv = rts.get(0);\n for (int i = 1; i < rts.size(); i++) {\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }\n// for (int i = 0; i < rts.size(); i++) {\n// for (int j = 1; j < rts.size(); j++) {\n// if (i >= j) {\n// continue;\n// }\n// long v = rts.get(j) - rts.get(i);\n// if (v > maxv) {\n// maxv = v;\n// }\n// }\n// }\n System.out.println(maxv);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Long> rts = new ArrayList<>();\n sc.nextLine();\n while(sc.hasNext()) {\n rts.add(Long.parseLong(sc.nextLine()));\n }\n long maxv = (long)Math.pow(10, 9) * -1;\n long minv = rts.get(0);\n for (int i = 1; i < rts.size(); i++) {\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }\n// for (int i = 0; i < rts.size(); i++) {\n// for (int j = 1; j < rts.size(); j++) {\n// if (i >= j) {\n// continue;\n// }\n// long v = rts.get(j) - rts.get(i);\n// if (v > maxv) {\n// maxv = v;\n// }\n// }\n// }\n System.out.println(maxv);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n List<Long> rts = new ArrayList<>();\n sc.nextLine();\n while(sc.hasNext()) {\n rts.add(Long.parseLong(sc.nextLine()));\n }\n long maxv = (long)Math.pow(10, 9) * -1;\n long minv = rts.get(0);\n for (int i = 1; i < rts.size(); i++) {\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }\n// for (int i = 0; i < rts.size(); i++) {\n// for (int j = 1; j < rts.size(); j++) {\n// if (i >= j) {\n// continue;\n// }\n// long v = rts.get(j) - rts.get(i);\n// if (v > maxv) {\n// maxv = v;\n// }\n// }\n// }\n System.out.println(maxv);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<Long> rts = new ArrayList<>();", "rts", "new ArrayList<>()", "sc.nextLine()", "sc.nextLine", "sc", "while(sc.hasNext()) {\n rts.add(Long.parseLong(sc.nextLine()));\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n rts.add(Long.parseLong(sc.nextLine()));\n }", "rts.add(Long.parseLong(sc.nextLine()))", "rts.add", "rts", "Long.parseLong(sc.nextLine())", "Long.parseLong", "Long", "sc.nextLine()", "sc.nextLine", "sc", "long maxv = (long)Math.pow(10, 9) * -1;", "maxv", "(long)Math.pow(10, 9) * -1", "(long)Math.pow(10, 9)", "Math.pow", "Math", "10", "9", "-1", "1", "long minv = rts.get(0);", "minv", "rts.get(0)", "rts.get", "rts", "0", "for (int i = 1; i < rts.size(); i++) {\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < rts.size()", "i", "rts.size()", "rts.size", "rts", "i++", "i++", "i", "{\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }", "{\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }", "long rji = rts.get(i) - minv;", "rji", "rts.get(i) - minv", "rts.get(i)", "rts.get", "rts", "i", "minv", "if (rji > maxv) {\n maxv = rji;\n }", "rji > maxv", "rji", "maxv", "{\n maxv = rji;\n }", "maxv = rji", "maxv", "rji", "if (rts.get(i) < minv) {\n minv = rts.get(i);\n }", "rts.get(i) < minv", "rts.get(i)", "rts.get", "rts", "i", "minv", "{\n minv = rts.get(i);\n }", "minv = rts.get(i)", "minv", "rts.get(i)", "rts.get", "rts", "i", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Long> rts = new ArrayList<>();\n sc.nextLine();\n while(sc.hasNext()) {\n rts.add(Long.parseLong(sc.nextLine()));\n }\n long maxv = (long)Math.pow(10, 9) * -1;\n long minv = rts.get(0);\n for (int i = 1; i < rts.size(); i++) {\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }\n// for (int i = 0; i < rts.size(); i++) {\n// for (int j = 1; j < rts.size(); j++) {\n// if (i >= j) {\n// continue;\n// }\n// long v = rts.get(j) - rts.get(i);\n// if (v > maxv) {\n// maxv = v;\n// }\n// }\n// }\n System.out.println(maxv);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Long> rts = new ArrayList<>();\n sc.nextLine();\n while(sc.hasNext()) {\n rts.add(Long.parseLong(sc.nextLine()));\n }\n long maxv = (long)Math.pow(10, 9) * -1;\n long minv = rts.get(0);\n for (int i = 1; i < rts.size(); i++) {\n long rji = rts.get(i) - minv;\n if (rji > maxv) {\n maxv = rji;\n }\n if (rts.get(i) < minv) {\n minv = rts.get(i);\n }\n }\n// for (int i = 0; i < rts.size(); i++) {\n// for (int j = 1; j < rts.size(); j++) {\n// if (i >= j) {\n// continue;\n// }\n// long v = rts.get(j) - rts.get(i);\n// if (v > maxv) {\n// maxv = v;\n// }\n// }\n// }\n System.out.println(maxv);\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Long> rts = new ArrayList<>(); sc.nextLine(); while(sc.hasNext()) { rts.add(Long.parseLong(sc.nextLine())); } long maxv = (long)Math.pow(10, 9) * -1; long minv = rts.get(0); for (int i = 1; i < rts.size(); i++) { long rji = rts.get(i) - minv; if (rji > maxv) { maxv = rji; } if (rts.get(i) < minv) { minv = rts.get(i); } } // for (int i = 0; i < rts.size(); i++) { // for (int j = 1; j < rts.size(); j++) { // if (i >= j) { // continue; // } // long v = rts.get(j) - rts.get(i); // if (v > maxv) { // maxv = v; // } // } // } System.out.println(maxv); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 0, 13, 13, 30, 0, 13, 18, 13, 13, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 2, 13, 13, 0, 13, 2, 13, 13, 40, 13, 4, 18, 18, 13, 13, 8, 2, 13, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 143, 5 ], [ 143, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 8, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 70, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 83, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 75, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 74, 127 ], [ 127, 128 ], [ 8, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 134, 139 ], [ 6, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n ArrayList<Integer> data = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n data.add(sc.nextInt());\n }\n sc.close();\n \n int min = data.get(0);\n int max = data.get(0);\n int ans = Integer.MIN_VALUE;\n int min_profit = Integer.MIN_VALUE;\n int count = 0;\n for (int num : data) {\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }\n System.out.println(ans > min_profit ? ans : min_profit);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n ArrayList<Integer> data = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n data.add(sc.nextInt());\n }\n sc.close();\n \n int min = data.get(0);\n int max = data.get(0);\n int ans = Integer.MIN_VALUE;\n int min_profit = Integer.MIN_VALUE;\n int count = 0;\n for (int num : data) {\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }\n System.out.println(ans > min_profit ? ans : min_profit);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n ArrayList<Integer> data = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n data.add(sc.nextInt());\n }\n sc.close();\n \n int min = data.get(0);\n int max = data.get(0);\n int ans = Integer.MIN_VALUE;\n int min_profit = Integer.MIN_VALUE;\n int count = 0;\n for (int num : data) {\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }\n System.out.println(ans > min_profit ? ans : min_profit);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n ArrayList<Integer> data = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n data.add(sc.nextInt());\n }\n sc.close();\n \n int min = data.get(0);\n int max = data.get(0);\n int ans = Integer.MIN_VALUE;\n int min_profit = Integer.MIN_VALUE;\n int count = 0;\n for (int num : data) {\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }\n System.out.println(ans > min_profit ? ans : min_profit);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "ArrayList<Integer> data = new ArrayList<Integer>();", "data", "new ArrayList<Integer>()", "for (int i = 0; i < n; i++) {\n data.add(sc.nextInt());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n data.add(sc.nextInt());\n }", "{\n data.add(sc.nextInt());\n }", "data.add(sc.nextInt())", "data.add", "data", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "int min = data.get(0);", "min", "data.get(0)", "data.get", "data", "0", "int max = data.get(0);", "max", "data.get(0)", "data.get", "data", "0", "int ans = Integer.MIN_VALUE;", "ans", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int min_profit = Integer.MIN_VALUE;", "min_profit", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int count = 0;", "count", "0", "for (int num : data) {\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }", "int num", "data", "{\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }", "{\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }", "if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }", "min > num", "min", "num", "{\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n }", "min = num", "min", "num", "if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }", "min_profit < min - max", "min_profit", "min - max", "min", "max", "{\n min_profit = min - max;\n max = min;\n }", "min_profit = min - max", "min_profit", "min - max", "min", "max", "max = min", "max", "min", "{\n max = Integer.MIN_VALUE;\n }", "max = Integer.MIN_VALUE", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }", "count > 0 && max <= num", "count > 0", "count", "0", "max <= num", "max", "num", "{\n max = num;\n if (ans < max - min)\n ans = max - min;\n }", "max = num", "max", "num", "if (ans < max - min)\n ans = max - min;", "ans < max - min", "ans", "max - min", "max", "min", "ans = max - min", "ans", "max - min", "max", "min", "count++", "count", "System.out.println(ans > min_profit ? ans : min_profit)", "System.out.println", "System.out", "System", "System.out", "ans > min_profit ? ans : min_profit", "ans > min_profit", "ans", "min_profit", "ans", "min_profit", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n ArrayList<Integer> data = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n data.add(sc.nextInt());\n }\n sc.close();\n \n int min = data.get(0);\n int max = data.get(0);\n int ans = Integer.MIN_VALUE;\n int min_profit = Integer.MIN_VALUE;\n int count = 0;\n for (int num : data) {\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }\n System.out.println(ans > min_profit ? ans : min_profit);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n ArrayList<Integer> data = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n data.add(sc.nextInt());\n }\n sc.close();\n \n int min = data.get(0);\n int max = data.get(0);\n int ans = Integer.MIN_VALUE;\n int min_profit = Integer.MIN_VALUE;\n int count = 0;\n for (int num : data) {\n if (min > num) {\n min = num;\n\n if (min_profit < min - max) {\n min_profit = min - max;\n max = min;\n } else {\n max = Integer.MIN_VALUE;\n }\n } else if (count > 0 && max <= num) {\n max = num;\n if (ans < max - min)\n ans = max - min;\n }\n count++;\n }\n System.out.println(ans > min_profit ? ans : min_profit);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); ArrayList<Integer> data = new ArrayList<Integer>(); for (int i = 0; i < n; i++) { data.add(sc.nextInt()); } sc.close(); int min = data.get(0); int max = data.get(0); int ans = Integer.MIN_VALUE; int min_profit = Integer.MIN_VALUE; int count = 0; for (int num : data) { if (min > num) { min = num; if (min_profit < min - max) { min_profit = min - max; max = min; } else { max = Integer.MIN_VALUE; } } else if (count > 0 && max <= num) { max = num; if (ans < max - min) ans = max - min; } count++; } System.out.println(ans > min_profit ? ans : min_profit); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 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, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tint max = Integer.MIN_VALUE;\n\t\tScanner san = new Scanner(System.in);\n\t\tint listCount = san.nextInt();\n\t\tint[] list = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlist[i] = san.nextInt();\n\t\t}\n\t\tint min = list[0];\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tint max = Integer.MIN_VALUE;\n\t\tScanner san = new Scanner(System.in);\n\t\tint listCount = san.nextInt();\n\t\tint[] list = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlist[i] = san.nextInt();\n\t\t}\n\t\tint min = list[0];\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tint max = Integer.MIN_VALUE;\n\t\tScanner san = new Scanner(System.in);\n\t\tint listCount = san.nextInt();\n\t\tint[] list = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlist[i] = san.nextInt();\n\t\t}\n\t\tint min = list[0];\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tint max = Integer.MIN_VALUE;\n\t\tScanner san = new Scanner(System.in);\n\t\tint listCount = san.nextInt();\n\t\tint[] list = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlist[i] = san.nextInt();\n\t\t}\n\t\tint min = list[0];\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "Scanner san = new Scanner(System.in);", "san", "new Scanner(System.in)", "int listCount = san.nextInt();", "listCount", "san.nextInt()", "san.nextInt", "san", "int[] list = new int[listCount];", "list", "new int[listCount]", "listCount", "for(int i = 0; i < listCount; i++){\n\t\t\tlist[i] = san.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < listCount", "i", "listCount", "i++", "i++", "i", "{\n\t\t\tlist[i] = san.nextInt();\n\t\t}", "{\n\t\t\tlist[i] = san.nextInt();\n\t\t}", "list[i] = san.nextInt()", "list[i]", "list", "i", "san.nextInt()", "san.nextInt", "san", "int min = list[0];", "min", "list[0]", "list", "0", "for(int i = 1; i < listCount; i++){\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < listCount", "i", "listCount", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}", "max = Math.max(max, list[i] - min)", "max", "Math.max(max, list[i] - min)", "Math.max", "Math", "max", "list[i] - min", "list[i]", "list", "i", "min", "min = Math.min(min, list[i])", "min", "Math.min(min, list[i])", "Math.min", "Math", "min", "list[i]", "list", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tint max = Integer.MIN_VALUE;\n\t\tScanner san = new Scanner(System.in);\n\t\tint listCount = san.nextInt();\n\t\tint[] list = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlist[i] = san.nextInt();\n\t\t}\n\t\tint min = list[0];\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tint max = Integer.MIN_VALUE;\n\t\tScanner san = new Scanner(System.in);\n\t\tint listCount = san.nextInt();\n\t\tint[] list = new int[listCount];\n\t\tfor(int i = 0; i < listCount; i++){\n\t\t\tlist[i] = san.nextInt();\n\t\t}\n\t\tint min = list[0];\n\t\tfor(int i = 1; i < listCount; i++){\n\t\t\tmax = Math.max(max, list[i] - min);\n\t\t\tmin = Math.min(min, list[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ int max = Integer.MIN_VALUE; Scanner san = new Scanner(System.in); int listCount = san.nextInt(); int[] list = new int[listCount]; for(int i = 0; i < listCount; i++){ list[i] = san.nextInt(); } int min = list[0]; for(int i = 1; i < listCount; i++){ max = Math.max(max, list[i] - min); min = Math.min(min, list[i]); } System.out.println(max); } }
[ 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, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 13, 0, 13, 2, 18, 13, 2, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 13, 30, 9, 0, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 2, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 130, 5 ], [ 130, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 72, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 72, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 86, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 8, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 6, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\tint n = scan.nextInt();\n\t\tlong[] data = new long[n];\n\t\tlong max = 0;\n\t\tfor(int i = 0 ; i < n ; i++){\n\t\t\tdata[i]=scan.nextLong();\n\t\t}\n\t\tlong min = Long.MAX_VALUE;\n\t\tmax=data[n-1]-data[0];\n\t\tfor(int i = 0 ; i < n ; i ++){\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\tint n = scan.nextInt();\n\t\tlong[] data = new long[n];\n\t\tlong max = 0;\n\t\tfor(int i = 0 ; i < n ; i++){\n\t\t\tdata[i]=scan.nextLong();\n\t\t}\n\t\tlong min = Long.MAX_VALUE;\n\t\tmax=data[n-1]-data[0];\n\t\tfor(int i = 0 ; i < n ; i ++){\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\tint n = scan.nextInt();\n\t\tlong[] data = new long[n];\n\t\tlong max = 0;\n\t\tfor(int i = 0 ; i < n ; i++){\n\t\t\tdata[i]=scan.nextLong();\n\t\t}\n\t\tlong min = Long.MAX_VALUE;\n\t\tmax=data[n-1]-data[0];\n\t\tfor(int i = 0 ; i < n ; i ++){\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\t\tint n = scan.nextInt();\n\t\tlong[] data = new long[n];\n\t\tlong max = 0;\n\t\tfor(int i = 0 ; i < n ; i++){\n\t\t\tdata[i]=scan.nextLong();\n\t\t}\n\t\tlong min = Long.MAX_VALUE;\n\t\tmax=data[n-1]-data[0];\n\t\tfor(int i = 0 ; i < n ; i ++){\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "long[] data = new long[n];", "data", "new long[n]", "n", "long max = 0;", "max", "0", "for(int i = 0 ; i < n ; i++){\n\t\t\tdata[i]=scan.nextLong();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tdata[i]=scan.nextLong();\n\t\t}", "{\n\t\t\tdata[i]=scan.nextLong();\n\t\t}", "data[i]=scan.nextLong()", "data[i]", "data", "i", "scan.nextLong()", "scan.nextLong", "scan", "long min = Long.MAX_VALUE;", "min", "Long.MAX_VALUE", "Long", "Long.MAX_VALUE", "max=data[n-1]-data[0]", "max", "data[n-1]-data[0]", "data[n-1]", "data", "n-1", "n", "1", "data[0]", "data", "0", "for(int i = 0 ; i < n ; i ++){\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i ++", "i ++", "i", "{\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}", "{\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}", "if (data[i]>min) {\n continue;\n }", "data[i]>min", "data[i]", "data", "i", "min", "{\n continue;\n }", "continue;", "min=data[i]", "min", "data[i]", "data", "i", "for(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}", "int j = n-1 ;", "int j = n-1 ;", "j", "n-1", "n", "1", "j > i", "j", "i", "j --", "j --", "j", "{\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}", "{\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}", "if(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}", "max<(data[j]-data[i])", "max", "(data[j]-data[i])", "data[j]", "data", "j", "data[i]", "data", "i", "{\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}", "max= data[j]-data[i]", "max", "data[j]-data[i]", "data[j]", "data", "j", "data[i]", "data", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\tint n = scan.nextInt();\n\t\tlong[] data = new long[n];\n\t\tlong max = 0;\n\t\tfor(int i = 0 ; i < n ; i++){\n\t\t\tdata[i]=scan.nextLong();\n\t\t}\n\t\tlong min = Long.MAX_VALUE;\n\t\tmax=data[n-1]-data[0];\n\t\tfor(int i = 0 ; i < n ; i ++){\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\tint n = scan.nextInt();\n\t\tlong[] data = new long[n];\n\t\tlong max = 0;\n\t\tfor(int i = 0 ; i < n ; i++){\n\t\t\tdata[i]=scan.nextLong();\n\t\t}\n\t\tlong min = Long.MAX_VALUE;\n\t\tmax=data[n-1]-data[0];\n\t\tfor(int i = 0 ; i < n ; i ++){\n\t\t\tif (data[i]>min) {\n continue;\n }\n\t\t\tmin=data[i];\n\t\t\tfor(int j = n-1 ; j > i ; j --){\n\t\t\t\tif(max<(data[j]-data[i])){\n\t\t\t\t\tmax= data[j]-data[i];\n\t\t\t\t}\n\t\t\t\t//System.out.println(data[i]-data[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); long[] data = new long[n]; long max = 0; for(int i = 0 ; i < n ; i++){ data[i]=scan.nextLong(); } long min = Long.MAX_VALUE; max=data[n-1]-data[0]; for(int i = 0 ; i < n ; i ++){ if (data[i]>min) { continue; } min=data[i]; for(int j = n-1 ; j > i ; j --){ if(max<(data[j]-data[i])){ max= data[j]-data[i]; } //System.out.println(data[i]-data[j]); } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 2, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 39, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n for(int i = 0; i < size; i++){\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n for(int i = 0; i < size; i++){\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n for(int i = 0; i < size; i++){\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }\n System.out.println(max);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n for(int i = 0; i < size; i++){\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }\n System.out.println(max);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int size = scan.nextInt()", "size", "scan.nextInt()", "scan.nextInt", "scan", "min = Integer.MAX_VALUE", "min", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i = 0; i < size; i++){\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "{\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }", "{\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }", "int val = scan.nextInt();", "val", "scan.nextInt()", "scan.nextInt", "scan", "if(max < val - min) max = val - min;", "max < val - min", "max", "val - min", "val", "min", "max = val - min", "max", "val - min", "val", "min", "if(val < min) min = val;", "val < min", "val", "min", "min = val", "min", "val", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n for(int i = 0; i < size; i++){\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }\n System.out.println(max);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int size = scan.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n for(int i = 0; i < size; i++){\n int val = scan.nextInt();\n if(max < val - min) max = val - min;\n if(val < min) min = val;\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int size = scan.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE; for(int i = 0; i < size; i++){ int val = scan.nextInt(); if(max < val - min) max = val - min; if(val < min) min = val; } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 38, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 4, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 68, 77 ], [ 77, 78 ] ]
[ "import java.util.*;\nclass Main{\n\tvoid aaaa(){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint y;\n\t\tint min=2000000000;\n\t\tint x=-2000000000;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ty=sc.nextInt();\n\t\t\tif(y-min>x)x=y-min;\n\t\t\tif(min>y)min=y;\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n\tpublic static void main(String[]arg){\n\t\tMain dn=new Main();\n\t\tdn.aaaa();\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tvoid aaaa(){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint y;\n\t\tint min=2000000000;\n\t\tint x=-2000000000;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ty=sc.nextInt();\n\t\t\tif(y-min>x)x=y-min;\n\t\t\tif(min>y)min=y;\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n\tpublic static void main(String[]arg){\n\t\tMain dn=new Main();\n\t\tdn.aaaa();\n\t}\n}", "Main", "void aaaa(){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint y;\n\t\tint min=2000000000;\n\t\tint x=-2000000000;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ty=sc.nextInt();\n\t\t\tif(y-min>x)x=y-min;\n\t\t\tif(min>y)min=y;\n\t\t}\n\t\tSystem.out.println(x);\n\t}", "aaaa", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint y;\n\t\tint min=2000000000;\n\t\tint x=-2000000000;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ty=sc.nextInt();\n\t\t\tif(y-min>x)x=y-min;\n\t\t\tif(min>y)min=y;\n\t\t}\n\t\tSystem.out.println(x);\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N=sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int y;", "y", "int min=2000000000;", "min", "2000000000", "int x=-2000000000;", "x", "-2000000000", "2000000000", "for(int i=0;i<N;i++){\n\t\t\ty=sc.nextInt();\n\t\t\tif(y-min>x)x=y-min;\n\t\t\tif(min>y)min=y;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\ty=sc.nextInt();\n\t\t\tif(y-min>x)x=y-min;\n\t\t\tif(min>y)min=y;\n\t\t}", "{\n\t\t\ty=sc.nextInt();\n\t\t\tif(y-min>x)x=y-min;\n\t\t\tif(min>y)min=y;\n\t\t}", "y=sc.nextInt()", "y", "sc.nextInt()", "sc.nextInt", "sc", "if(y-min>x)x=y-min;", "y-min>x", "y-min", "y", "min", "x", "x=y-min", "x", "y-min", "y", "min", "if(min>y)min=y;", "min>y", "min", "y", "min=y", "min", "y", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "public static void main(String[]arg){\n\t\tMain dn=new Main();\n\t\tdn.aaaa();\n\t}", "main", "{\n\t\tMain dn=new Main();\n\t\tdn.aaaa();\n\t}", "Main dn=new Main();", "dn", "new Main()", "dn.aaaa()", "dn.aaaa", "dn", "String[]arg", "arg" ]
import java.util.*; class Main{ void aaaa(){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int y; int min=2000000000; int x=-2000000000; for(int i=0;i<N;i++){ y=sc.nextInt(); if(y-min>x)x=y-min; if(min>y)min=y; } System.out.println(x); } public static void main(String[]arg){ Main dn=new Main(); dn.aaaa(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 0, 13, 2, 4, 18, 13, 17, 17, 17, 0, 13, 40, 17, 0, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 4, 18, 13, 18, 13, 13, 13, 0, 18, 13, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 40, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 13, 0, 18, 13, 13, 13, 41, 13, 0, 13, 2, 40, 4, 18, 13, 17, 17, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 24, 28 ], [ 23, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 11, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 11, 39 ], [ 39, 40 ], [ 39, 41 ], [ 11, 43 ], [ 43, 44 ], [ 43, 45 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 11, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 63, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 73, 79 ], [ 63, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 11, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 85, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 85, 96 ], [ 96, 97 ], [ 97, 98 ], [ 85, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 11, 115 ], [ 115, 116 ], [ 11, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 121, 125 ], [ 119, 126 ], [ 11, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 127, 137 ], [ 137, 138 ], [ 138, 139 ], [ 127, 140 ], [ 141, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 144, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 148, 154 ], [ 154, 155 ], [ 154, 156 ], [ 11, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 9, 163 ], [ 163, 164 ] ]
[ "import java.util.*;\nimport java.util.stream.*;\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n;\n long minR,maxR;\n minR = (long)Math.pow(10,9)+1;\n maxR = -1;\n n = input.nextInt();\n long[] min = new long[n];\n long[] max = new long[n];\n long[] R = new long[n];\n for (int i = 0; i < n; i++){\n R[i] = input.nextLong();\n minR = Math.min(R[i],minR);\n min[i] = minR;\n }\n for (int i = n-1; i > -1; i--){\n maxR = Math.max(R[i],maxR);\n max[i] = maxR;\n }\n long ans;\n ans = -(long)Math.pow(10,9)-1;\n for (int i = 0; i < n-1; i++){\n ans = Math.max(ans,max[i+1]-min[i]);\n }\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "import java.util.stream.*;", "stream.*", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n;\n long minR,maxR;\n minR = (long)Math.pow(10,9)+1;\n maxR = -1;\n n = input.nextInt();\n long[] min = new long[n];\n long[] max = new long[n];\n long[] R = new long[n];\n for (int i = 0; i < n; i++){\n R[i] = input.nextLong();\n minR = Math.min(R[i],minR);\n min[i] = minR;\n }\n for (int i = n-1; i > -1; i--){\n maxR = Math.max(R[i],maxR);\n max[i] = maxR;\n }\n long ans;\n ans = -(long)Math.pow(10,9)-1;\n for (int i = 0; i < n-1; i++){\n ans = Math.max(ans,max[i+1]-min[i]);\n }\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n;\n long minR,maxR;\n minR = (long)Math.pow(10,9)+1;\n maxR = -1;\n n = input.nextInt();\n long[] min = new long[n];\n long[] max = new long[n];\n long[] R = new long[n];\n for (int i = 0; i < n; i++){\n R[i] = input.nextLong();\n minR = Math.min(R[i],minR);\n min[i] = minR;\n }\n for (int i = n-1; i > -1; i--){\n maxR = Math.max(R[i],maxR);\n max[i] = maxR;\n }\n long ans;\n ans = -(long)Math.pow(10,9)-1;\n for (int i = 0; i < n-1; i++){\n ans = Math.max(ans,max[i+1]-min[i]);\n }\n System.out.println(ans);\n }", "main", "{\n Scanner input = new Scanner(System.in);\n int n;\n long minR,maxR;\n minR = (long)Math.pow(10,9)+1;\n maxR = -1;\n n = input.nextInt();\n long[] min = new long[n];\n long[] max = new long[n];\n long[] R = new long[n];\n for (int i = 0; i < n; i++){\n R[i] = input.nextLong();\n minR = Math.min(R[i],minR);\n min[i] = minR;\n }\n for (int i = n-1; i > -1; i--){\n maxR = Math.max(R[i],maxR);\n max[i] = maxR;\n }\n long ans;\n ans = -(long)Math.pow(10,9)-1;\n for (int i = 0; i < n-1; i++){\n ans = Math.max(ans,max[i+1]-min[i]);\n }\n System.out.println(ans);\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int n;", "n", "long minR", "minR", "maxR;", "maxR", "minR = (long)Math.pow(10,9)+1", "minR", "(long)Math.pow(10,9)+1", "(long)Math.pow(10,9)", "Math.pow", "Math", "10", "9", "1", "maxR = -1", "maxR", "-1", "1", "n = input.nextInt()", "n", "input.nextInt()", "input.nextInt", "input", "long[] min = new long[n];", "min", "new long[n]", "n", "long[] max = new long[n];", "max", "new long[n]", "n", "long[] R = new long[n];", "R", "new long[n]", "n", "for (int i = 0; i < n; i++){\n R[i] = input.nextLong();\n minR = Math.min(R[i],minR);\n min[i] = minR;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n R[i] = input.nextLong();\n minR = Math.min(R[i],minR);\n min[i] = minR;\n }", "{\n R[i] = input.nextLong();\n minR = Math.min(R[i],minR);\n min[i] = minR;\n }", "R[i] = input.nextLong()", "R[i]", "R", "i", "input.nextLong()", "input.nextLong", "input", "minR = Math.min(R[i],minR)", "minR", "Math.min(R[i],minR)", "Math.min", "Math", "R[i]", "R", "i", "minR", "min[i] = minR", "min[i]", "min", "i", "minR", "for (int i = n-1; i > -1; i--){\n maxR = Math.max(R[i],maxR);\n max[i] = maxR;\n }", "int i = n-1;", "int i = n-1;", "i", "n-1", "n", "1", "i > -1", "i", "-1", "1", "i--", "i--", "i", "{\n maxR = Math.max(R[i],maxR);\n max[i] = maxR;\n }", "{\n maxR = Math.max(R[i],maxR);\n max[i] = maxR;\n }", "maxR = Math.max(R[i],maxR)", "maxR", "Math.max(R[i],maxR)", "Math.max", "Math", "R[i]", "R", "i", "maxR", "max[i] = maxR", "max[i]", "max", "i", "maxR", "long ans;", "ans", "ans = -(long)Math.pow(10,9)-1", "ans", "-(long)Math.pow(10,9)-1", "-(long)Math.pow(10,9)", "(long)Math.pow(10,9)", "Math.pow", "Math", "10", "9", "1", "for (int i = 0; i < n-1; i++){\n ans = Math.max(ans,max[i+1]-min[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n-1", "i", "n-1", "n", "1", "i++", "i++", "i", "{\n ans = Math.max(ans,max[i+1]-min[i]);\n }", "{\n ans = Math.max(ans,max[i+1]-min[i]);\n }", "ans = Math.max(ans,max[i+1]-min[i])", "ans", "Math.max(ans,max[i+1]-min[i])", "Math.max", "Math", "ans", "max[i+1]-min[i]", "max[i+1]", "max", "i+1", "i", "1", "min[i]", "min", "i", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args" ]
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n; long minR,maxR; minR = (long)Math.pow(10,9)+1; maxR = -1; n = input.nextInt(); long[] min = new long[n]; long[] max = new long[n]; long[] R = new long[n]; for (int i = 0; i < n; i++){ R[i] = input.nextLong(); minR = Math.min(R[i],minR); min[i] = minR; } for (int i = n-1; i > -1; i--){ maxR = Math.max(R[i],maxR); max[i] = maxR; } long ans; ans = -(long)Math.pow(10,9)-1; for (int i = 0; i < n-1; i++){ ans = Math.max(ans,max[i+1]-min[i]); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 69, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\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\tint[] r = new int[n];\n\t\tint ans;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = r[1]-r[0];\n\t\tint minv = r[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmaxv = Math.max(maxv, r[i]-minv);\n\t\t\tminv = Math.min(minv, r[i]);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint[] r = new int[n];\n\t\tint ans;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = r[1]-r[0];\n\t\tint minv = r[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmaxv = Math.max(maxv, r[i]-minv);\n\t\t\tminv = Math.min(minv, r[i]);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint[] r = new int[n];\n\t\tint ans;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = r[1]-r[0];\n\t\tint minv = r[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmaxv = Math.max(maxv, r[i]-minv);\n\t\t\tminv = Math.min(minv, r[i]);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint[] r = new int[n];\n\t\tint ans;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint maxv = r[1]-r[0];\n\t\tint minv = r[0];\n\t\t\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tmaxv = Math.max(maxv, r[i]-minv);\n\t\t\tminv = Math.min(minv, r[i]);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[] r = new int[n];", "r", "new int[n]", "n", "int ans;", "ans", "for(int i = 0; i < n; i++){\n\t\t\tr[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tr[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tr[i] = scan.nextInt();\n\t\t}", "r[i] = scan.nextInt()", "r[i]", "r", "i", "scan.nextInt()", "scan.nextInt", "scan", "int maxv = r[1]-r[0];", "maxv", "r[1]-r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "int minv = r[0];", "minv", "r[0]", "r", "0", "for(int i = 1; i < n; i++){\n\t\t\tmaxv = Math.max(maxv, r[i]-minv);\n\t\t\tminv = Math.min(minv, r[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmaxv = Math.max(maxv, r[i]-minv);\n\t\t\tminv = Math.min(minv, r[i]);\n\t\t}", "{\n\t\t\tmaxv = Math.max(maxv, r[i]-minv);\n\t\t\tminv = Math.min(minv, r[i]);\n\t\t}", "maxv = Math.max(maxv, r[i]-minv)", "maxv", "Math.max(maxv, r[i]-minv)", "Math.max", "Math", "maxv", "r[i]-minv", "r[i]", "r", "i", "minv", "minv = Math.min(minv, r[i])", "minv", "Math.min(minv, r[i])", "Math.min", "Math", "minv", "r[i]", "r", "i", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] r = new int[n]; int ans; for(int i = 0; i < n; i++){ r[i] = scan.nextInt(); } int maxv = r[1]-r[0]; int minv = r[0]; for(int i = 1; i < n; i++){ maxv = Math.max(maxv, r[i]-minv); minv = Math.min(minv, r[i]); } System.out.println(maxv); } }
[ 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, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 13, 18, 13, 13, 0, 13, 17, 14, 2, 13, 18, 13, 13, 0, 13, 18, 13, 13, 14, 40, 13, 30, 0, 13, 4, 18, 13, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 23, 24 ], [ 13, 25 ], [ 25, 26 ], [ 25, 27 ], [ 13, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 13, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 13, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 13, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 13, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 92, 103 ], [ 103, 104 ], [ 103, 105 ], [ 82, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 82, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 117, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 13, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 6, 152 ], [ 152, 153 ] ]
[ "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[] p=new int[N];\n\t\t\tfor(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next());\n\t\t\tint max=p[1];\n\t\t\tint min=p[0];\n\t\t\tint diff=p[1]-p[0];\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(diff);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args){\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] p=new int[N];\n\t\t\tfor(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next());\n\t\t\tint max=p[1];\n\t\t\tint min=p[0];\n\t\t\tint diff=p[1]-p[0];\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(diff);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] p=new int[N];\n\t\t\tfor(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next());\n\t\t\tint max=p[1];\n\t\t\tint min=p[0];\n\t\t\tint diff=p[1]-p[0];\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(diff);\n\t\t}\n\t}", "main", "{\n\t\tfinal int Number=100;\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] p=new int[N];\n\t\t\tfor(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next());\n\t\t\tint max=p[1];\n\t\t\tint min=p[0];\n\t\t\tint diff=p[1]-p[0];\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(diff);\n\t\t}\n\t}", "final int Number=100;", "Number", "100", "try(Scanner sc = new Scanner(System.in)){\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] p=new int[N];\n\t\t\tfor(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next());\n\t\t\tint max=p[1];\n\t\t\tint min=p[0];\n\t\t\tint diff=p[1]-p[0];\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(diff);\n\t\t}", "{\n\t\t\tint N = Integer.parseInt(sc.next());\n\t\t\tint[] p=new int[N];\n\t\t\tfor(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next());\n\t\t\tint max=p[1];\n\t\t\tint min=p[0];\n\t\t\tint diff=p[1]-p[0];\n\t\t\tfor(int i=1;i<N;i++){\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(diff);\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "int N = Integer.parseInt(sc.next());", "N", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int[] p=new int[N];", "p", "new int[N]", "N", "for(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next());", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "p[i] = Integer.parseInt(sc.next());", "p[i] = Integer.parseInt(sc.next())", "p[i]", "p", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int max=p[1];", "max", "p[1]", "p", "1", "int min=p[0];", "min", "p[0]", "p", "0", "int diff=p[1]-p[0];", "diff", "p[1]-p[0]", "p[1]", "p", "1", "p[0]", "p", "0", "for(int i=1;i<N;i++){\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tboolean renew=false;\n\t\t\t\tif(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}\n\t\t\t\tif(max<p[i])max=p[i];\n\t\t\t\tif(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}\n\t\t\t}", "boolean renew=false;", "renew", "false", "if(min>p[i]){\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}", "min>p[i]", "min", "p[i]", "p", "i", "{\n\t\t\t\t\tmin=p[i];\n\t\t\t\t\tmax=p[i];\n\t\t\t\t\trenew=true;\n\t\t\t\t}", "min=p[i]", "min", "p[i]", "p", "i", "max=p[i]", "max", "p[i]", "p", "i", "renew=true", "renew", "true", "if(max<p[i])max=p[i];", "max<p[i]", "max", "p[i]", "p", "i", "max=p[i]", "max", "p[i]", "p", "i", "if(!renew){\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}else{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}", "!renew", "renew", "{\n\t\t\t\t\tdiff=Math.max(diff, max-min);\n\t\t\t\t}", "diff=Math.max(diff, max-min)", "diff", "Math.max(diff, max-min)", "Math.max", "Math", "diff", "max-min", "max", "min", "{\n\t\t\t\t\tdiff=Math.max(diff, p[i]-p[i-1]);\n\t\t\t\t}", "diff=Math.max(diff, p[i]-p[i-1])", "diff", "Math.max(diff, p[i]-p[i-1])", "Math.max", "Math", "diff", "p[i]-p[i-1]", "p[i]", "p", "i", "p[i-1]", "p", "i-1", "i", "1", "System.out.println(diff)", "System.out.println", "System.out", "System", "System.out", "diff", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args){ final int Number=100; try(Scanner sc = new Scanner(System.in)){ int N = Integer.parseInt(sc.next()); int[] p=new int[N]; for(int i=0;i<N;i++) p[i] = Integer.parseInt(sc.next()); int max=p[1]; int min=p[0]; int diff=p[1]-p[0]; for(int i=1;i<N;i++){ boolean renew=false; if(min>p[i]){ min=p[i]; max=p[i]; renew=true; } if(max<p[i])max=p[i]; if(!renew){ diff=Math.max(diff, max-min); }else{ diff=Math.max(diff, p[i]-p[i-1]); } } System.out.println(diff); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 4, 18, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 4, 18, 13, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 71, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 6, 104 ], [ 104, 105 ] ]
[ "import java.io.*;\n\nclass Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int it = Integer.parseInt(str);\n String[] strarr = new String[it];\n for(int i=0; i < it; i++) {\n strarr[i] = br.readLine();\n }\n \n int max = -1000000001;\n int min = Integer.parseInt(strarr[0]);\n for(int i=1; i < it; i++) {\n max = Math.max(max, Integer.parseInt(strarr[i])-min);\n min = Math.min(min, Integer.parseInt(strarr[i]));\n }\n \n System.out.println(max);\n }\n \n}", "import java.io.*;", "io.*", "java", "class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int it = Integer.parseInt(str);\n String[] strarr = new String[it];\n for(int i=0; i < it; i++) {\n strarr[i] = br.readLine();\n }\n \n int max = -1000000001;\n int min = Integer.parseInt(strarr[0]);\n for(int i=1; i < it; i++) {\n max = Math.max(max, Integer.parseInt(strarr[i])-min);\n min = Math.min(min, Integer.parseInt(strarr[i]));\n }\n \n System.out.println(max);\n }\n \n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int it = Integer.parseInt(str);\n String[] strarr = new String[it];\n for(int i=0; i < it; i++) {\n strarr[i] = br.readLine();\n }\n \n int max = -1000000001;\n int min = Integer.parseInt(strarr[0]);\n for(int i=1; i < it; i++) {\n max = Math.max(max, Integer.parseInt(strarr[i])-min);\n min = Math.min(min, Integer.parseInt(strarr[i]));\n }\n \n System.out.println(max);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int it = Integer.parseInt(str);\n String[] strarr = new String[it];\n for(int i=0; i < it; i++) {\n strarr[i] = br.readLine();\n }\n \n int max = -1000000001;\n int min = Integer.parseInt(strarr[0]);\n for(int i=1; i < it; i++) {\n max = Math.max(max, Integer.parseInt(strarr[i])-min);\n min = Math.min(min, Integer.parseInt(strarr[i]));\n }\n \n System.out.println(max);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "int it = Integer.parseInt(str);", "it", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "String[] strarr = new String[it];", "strarr", "new String[it]", "it", "for(int i=0; i < it; i++) {\n strarr[i] = br.readLine();\n }", "int i=0;", "int i=0;", "i", "0", "i < it", "i", "it", "i++", "i++", "i", "{\n strarr[i] = br.readLine();\n }", "{\n strarr[i] = br.readLine();\n }", "strarr[i] = br.readLine()", "strarr[i]", "strarr", "i", "br.readLine()", "br.readLine", "br", "int max = -1000000001;", "max", "-1000000001", "1000000001", "int min = Integer.parseInt(strarr[0]);", "min", "Integer.parseInt(strarr[0])", "Integer.parseInt", "Integer", "strarr[0]", "strarr", "0", "for(int i=1; i < it; i++) {\n max = Math.max(max, Integer.parseInt(strarr[i])-min);\n min = Math.min(min, Integer.parseInt(strarr[i]));\n }", "int i=1;", "int i=1;", "i", "1", "i < it", "i", "it", "i++", "i++", "i", "{\n max = Math.max(max, Integer.parseInt(strarr[i])-min);\n min = Math.min(min, Integer.parseInt(strarr[i]));\n }", "{\n max = Math.max(max, Integer.parseInt(strarr[i])-min);\n min = Math.min(min, Integer.parseInt(strarr[i]));\n }", "max = Math.max(max, Integer.parseInt(strarr[i])-min)", "max", "Math.max(max, Integer.parseInt(strarr[i])-min)", "Math.max", "Math", "max", "Integer.parseInt(strarr[i])-min", "Integer.parseInt(strarr[i])", "Integer.parseInt", "Integer", "strarr[i]", "strarr", "i", "min", "min = Math.min(min, Integer.parseInt(strarr[i]))", "min", "Math.min(min, Integer.parseInt(strarr[i]))", "Math.min", "Math", "min", "Integer.parseInt(strarr[i])", "Integer.parseInt", "Integer", "strarr[i]", "strarr", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int it = Integer.parseInt(str); String[] strarr = new String[it]; for(int i=0; i < it; i++) { strarr[i] = br.readLine(); } int max = -1000000001; int min = Integer.parseInt(strarr[0]); for(int i=1; i < it; i++) { max = Math.max(max, Integer.parseInt(strarr[i])-min); min = Math.min(min, Integer.parseInt(strarr[i])); } System.out.println(max); } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 13, 41, 13, 41, 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, 18, 13, 13, 0, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 112, 2 ], [ 112, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 9, 11 ], [ 12, 13 ], [ 13, 14 ], [ 5, 15 ], [ 15, 16 ], [ 5, 17 ], [ 17, 18 ], [ 5, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 19, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 5, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 5, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 5, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 65, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 5, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 5, 90 ], [ 90, 91 ], [ 91, 92 ], [ 3, 93 ], [ 93, 94 ], [ 3, 95 ], [ 95, 96 ], [ 112, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 100, 106 ], [ 106, 107 ], [ 106, 108 ], [ 97, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tfinal int[] r = new int[sc.nextInt()];\n\t\tint max, min;\n\t\t\n\t\tfor (int i = 0; i < r.length; ++i) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tmax = Integer.MIN_VALUE; min = r[0];\n\t\tfor (int i = 1; i < r.length; ++i) {\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\tout.println(max);\n\t\t\n\t\tsc.close();\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tfinal int[] r = new int[sc.nextInt()];\n\t\tint max, min;\n\t\t\n\t\tfor (int i = 0; i < r.length; ++i) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tmax = Integer.MIN_VALUE; min = r[0];\n\t\tfor (int i = 1; i < r.length; ++i) {\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\tout.println(max);\n\t\t\n\t\tsc.close();\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "Main", "public void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tfinal int[] r = new int[sc.nextInt()];\n\t\tint max, min;\n\t\t\n\t\tfor (int i = 0; i < r.length; ++i) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tmax = Integer.MIN_VALUE; min = r[0];\n\t\tfor (int i = 1; i < r.length; ++i) {\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\tout.println(max);\n\t\t\n\t\tsc.close();\n\t}", "run", "{\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tfinal int[] r = new int[sc.nextInt()];\n\t\tint max, min;\n\t\t\n\t\tfor (int i = 0; i < r.length; ++i) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tmax = Integer.MIN_VALUE; min = r[0];\n\t\tfor (int i = 1; i < r.length; ++i) {\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\tout.println(max);\n\t\t\n\t\tsc.close();\n\t}", "final java.util.Scanner sc = new java.util.Scanner(in);", "sc", "new java.util.Scanner(in)", "final int[] r = new int[sc.nextInt()];", "r", "new int[sc.nextInt()]", "sc.nextInt()", "sc.nextInt", "sc", "int max", "max", "min;", "min", "for (int i = 0; i < r.length; ++i) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < r.length", "i", "r.length", "r", "r.length", "++i", "++i", "i", "{\n\t\t\tr[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tr[i] = sc.nextInt();\n\t\t}", "r[i] = sc.nextInt()", "r[i]", "r", "i", "sc.nextInt()", "sc.nextInt", "sc", "max = Integer.MIN_VALUE", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "min = r[0]", "min", "r[0]", "r", "0", "for (int i = 1; i < r.length; ++i) {\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < r.length", "i", "r.length", "r", "r.length", "++i", "++i", "i", "{\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "max = Math.max(max, r[i] - min)", "max", "Math.max(max, r[i] - min)", "Math.max", "Math", "max", "r[i] - min", "r[i]", "r", "i", "min", "min = Math.min(min, r[i])", "min", "Math.min(min, r[i])", "Math.min", "Math", "min", "r[i]", "r", "i", "out.println(max)", "out.println", "out", "max", "sc.close()", "sc.close", "sc", "java.io.InputStream in", "in", "java.io.PrintStream out", "out", "public static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}", "main", "{\n\t\t(new Main()).run(System.in, System.out);\n\t}", "(new Main()).run(System.in, System.out)", "(new Main()).run", "(new Main())", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tfinal int[] r = new int[sc.nextInt()];\n\t\tint max, min;\n\t\t\n\t\tfor (int i = 0; i < r.length; ++i) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tmax = Integer.MIN_VALUE; min = r[0];\n\t\tfor (int i = 1; i < r.length; ++i) {\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\tout.println(max);\n\t\t\n\t\tsc.close();\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tfinal int[] r = new int[sc.nextInt()];\n\t\tint max, min;\n\t\t\n\t\tfor (int i = 0; i < r.length; ++i) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tmax = Integer.MIN_VALUE; min = r[0];\n\t\tfor (int i = 1; i < r.length; ++i) {\n\t\t\tmax = Math.max(max, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\tout.println(max);\n\t\t\n\t\tsc.close();\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "Main" ]
public class Main { public void run(java.io.InputStream in, java.io.PrintStream out) { final java.util.Scanner sc = new java.util.Scanner(in); final int[] r = new int[sc.nextInt()]; int max, min; for (int i = 0; i < r.length; ++i) { r[i] = sc.nextInt(); } max = Integer.MIN_VALUE; min = r[0]; for (int i = 1; i < r.length; ++i) { max = Math.max(max, r[i] - min); min = Math.min(min, r[i]); } out.println(max); sc.close(); } public static void main(String[] args) { (new Main()).run(System.in, System.out); } }
[ 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, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 69, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ] ]
[ "import java.util.Scanner;\nclass Main {\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint input = scan.nextInt();\n\t\tint[] num = new int[input];\n\t\t\n\t\tfor(int c = 0; c < input; c++){\n\t\t\tnum[c] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint max = num[1] - num[0];\n\t\t\n\t\t/*for(int j = 1; j < input - 1; j++){\n\t\t\tfor(int i = 0; i< j - 1; i++){\n\t\t\t\tmax = Math.max(max, num[j] - num[i]);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tint min = num[0];\n\t\tfor(int j = 1; j <= input - 1; j++){\n\t\t\tmax = Math.max(max, num[j] - min);\n\t\t\tmin = Math.min(min, num[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint input = scan.nextInt();\n\t\tint[] num = new int[input];\n\t\t\n\t\tfor(int c = 0; c < input; c++){\n\t\t\tnum[c] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint max = num[1] - num[0];\n\t\t\n\t\t/*for(int j = 1; j < input - 1; j++){\n\t\t\tfor(int i = 0; i< j - 1; i++){\n\t\t\t\tmax = Math.max(max, num[j] - num[i]);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tint min = num[0];\n\t\tfor(int j = 1; j <= input - 1; j++){\n\t\t\tmax = Math.max(max, num[j] - min);\n\t\t\tmin = Math.min(min, num[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint input = scan.nextInt();\n\t\tint[] num = new int[input];\n\t\t\n\t\tfor(int c = 0; c < input; c++){\n\t\t\tnum[c] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint max = num[1] - num[0];\n\t\t\n\t\t/*for(int j = 1; j < input - 1; j++){\n\t\t\tfor(int i = 0; i< j - 1; i++){\n\t\t\t\tmax = Math.max(max, num[j] - num[i]);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tint min = num[0];\n\t\tfor(int j = 1; j <= input - 1; j++){\n\t\t\tmax = Math.max(max, num[j] - min);\n\t\t\tmin = Math.min(min, num[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint input = scan.nextInt();\n\t\tint[] num = new int[input];\n\t\t\n\t\tfor(int c = 0; c < input; c++){\n\t\t\tnum[c] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint max = num[1] - num[0];\n\t\t\n\t\t/*for(int j = 1; j < input - 1; j++){\n\t\t\tfor(int i = 0; i< j - 1; i++){\n\t\t\t\tmax = Math.max(max, num[j] - num[i]);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tint min = num[0];\n\t\tfor(int j = 1; j <= input - 1; j++){\n\t\t\tmax = Math.max(max, num[j] - min);\n\t\t\tmin = Math.min(min, num[j]);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int input = scan.nextInt();", "input", "scan.nextInt()", "scan.nextInt", "scan", "int[] num = new int[input];", "num", "new int[input]", "input", "for(int c = 0; c < input; c++){\n\t\t\tnum[c] = scan.nextInt();\n\t\t}", "int c = 0;", "int c = 0;", "c", "0", "c < input", "c", "input", "c++", "c++", "c", "{\n\t\t\tnum[c] = scan.nextInt();\n\t\t}", "{\n\t\t\tnum[c] = scan.nextInt();\n\t\t}", "num[c] = scan.nextInt()", "num[c]", "num", "c", "scan.nextInt()", "scan.nextInt", "scan", "int max = num[1] - num[0];", "max", "num[1] - num[0]", "num[1]", "num", "1", "num[0]", "num", "0", "int min = num[0];", "min", "num[0]", "num", "0", "for(int j = 1; j <= input - 1; j++){\n\t\t\tmax = Math.max(max, num[j] - min);\n\t\t\tmin = Math.min(min, num[j]);\n\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= input - 1", "j", "input - 1", "input", "1", "j++", "j++", "j", "{\n\t\t\tmax = Math.max(max, num[j] - min);\n\t\t\tmin = Math.min(min, num[j]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, num[j] - min);\n\t\t\tmin = Math.min(min, num[j]);\n\t\t}", "max = Math.max(max, num[j] - min)", "max", "Math.max(max, num[j] - min)", "Math.max", "Math", "max", "num[j] - min", "num[j]", "num", "j", "min", "min = Math.min(min, num[j])", "min", "Math.min(min, num[j])", "Math.min", "Math", "min", "num[j]", "num", "j", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int input = scan.nextInt(); int[] num = new int[input]; for(int c = 0; c < input; c++){ num[c] = scan.nextInt(); } int max = num[1] - num[0]; /*for(int j = 1; j < input - 1; j++){ for(int i = 0; i< j - 1; i++){ max = Math.max(max, num[j] - num[i]); } }*/ int min = num[0]; for(int j = 1; j <= input - 1; j++){ max = Math.max(max, num[j] - min); min = Math.min(min, num[j]); } System.out.println(max); } }
[ 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, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 18, 13, 2, 13, 17, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 99, 5 ], [ 99, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 67, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ], [ 0, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "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[] r = new int[n];\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n int max = r[1] - r[0];\n int min = r[0];\n for(int i = 1; i < n; i++) {\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }\n System.out.println(max);\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] r = new int[n];\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n int max = r[1] - r[0];\n int min = r[0];\n for(int i = 1; i < n; i++) {\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] r = new int[n];\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n int max = r[1] - r[0];\n int min = r[0];\n for(int i = 1; i < n; i++) {\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] r = new int[n];\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n int max = r[1] - r[0];\n int min = r[0];\n for(int i = 1; i < n; i++) {\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] r = new int[n];", "r", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n r[i] = sc.nextInt();\n }", "{\n r[i] = sc.nextInt();\n }", "r[i] = sc.nextInt()", "r[i]", "r", "i", "sc.nextInt()", "sc.nextInt", "sc", "int max = r[1] - r[0];", "max", "r[1] - r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "int min = r[0];", "min", "r[0]", "r", "0", "for(int i = 1; i < n; i++) {\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }", "{\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }", "min = Math.min(min, r[i - 1])", "min", "Math.min(min, r[i - 1])", "Math.min", "Math", "min", "r[i - 1]", "r", "i - 1", "i", "1", "max = Math.max(max, r[i] - min)", "max", "Math.max(max, r[i] - min)", "Math.max", "Math", "max", "r[i] - min", "r[i]", "r", "i", "min", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] r = new int[n];\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n int max = r[1] - r[0];\n int min = r[0];\n for(int i = 1; i < n; i++) {\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }\n System.out.println(max);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] r = new int[n];\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n int max = r[1] - r[0];\n int min = r[0];\n for(int i = 1; i < n; i++) {\n min = Math.min(min, r[i - 1]);\n max = Math.max(max, r[i] - min);\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] r = new int[n]; for(int i = 0; i < n; i++) { r[i] = sc.nextInt(); } int max = r[1] - r[0]; int min = r[0]; for(int i = 1; i < n; i++) { min = Math.min(min, r[i - 1]); max = Math.max(max, r[i] - min); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 8, 2, 13, 2, 18, 13, 13, 13, 13, 2, 18, 13, 13, 13, 0, 13, 8, 2, 13, 18, 13, 13, 13, 18, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 42, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 119, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 56, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 86, 94 ], [ 86, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 83, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 102, 109 ], [ 109, 110 ], [ 109, 111 ], [ 56, 112 ], [ 112, 113 ], [ 54, 114 ], [ 114, 115 ], [ 54, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] r = new int[200000];\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tr[i] = stdIn.nextInt();\n\t\t\n\t\tint ans = calcMaxDifference(r, n);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tpublic static int calcMaxDifference(int[] r, int n) {\n\t\tint max = r[1] - r[0];\n\t\tint rmin = r[0];\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}\n\t\treturn max;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] r = new int[200000];\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tr[i] = stdIn.nextInt();\n\t\t\n\t\tint ans = calcMaxDifference(r, n);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tpublic static int calcMaxDifference(int[] r, int n) {\n\t\tint max = r[1] - r[0];\n\t\tint rmin = r[0];\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}\n\t\treturn max;\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] r = new int[200000];\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tr[i] = stdIn.nextInt();\n\t\t\n\t\tint ans = calcMaxDifference(r, n);\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] r = new int[200000];\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tr[i] = stdIn.nextInt();\n\t\t\n\t\tint ans = calcMaxDifference(r, n);\n\t\tSystem.out.println(ans);\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int[] r = new int[200000];", "r", "new int[200000]", "200000", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "for (int i = 0; i < n; i++)\n\t\t\tr[i] = stdIn.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "r[i] = stdIn.nextInt();", "r[i] = stdIn.nextInt()", "r[i]", "r", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int ans = calcMaxDifference(r, n);", "ans", "calcMaxDifference(r, n)", "calcMaxDifference", "r", "n", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public static int calcMaxDifference(int[] r, int n) {\n\t\tint max = r[1] - r[0];\n\t\tint rmin = r[0];\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}\n\t\treturn max;\n\t}", "calcMaxDifference", "{\n\t\tint max = r[1] - r[0];\n\t\tint rmin = r[0];\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}\n\t\treturn max;\n\t}", "int max = r[1] - r[0];", "max", "r[1] - r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "int rmin = r[0];", "rmin", "r[0]", "r", "0", "for (int i = 1; i < n; i++) {\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}", "{\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}", "max = (max > r[i] - rmin ? max : r[i] - rmin)", "max", "(max > r[i] - rmin ? max : r[i] - rmin)", "max > r[i] - rmin", "max", "r[i] - rmin", "r[i]", "r", "i", "rmin", "max", "r[i] - rmin", "r[i]", "r", "i", "rmin", "rmin = (rmin < r[i] ? rmin : r[i])", "rmin", "(rmin < r[i] ? rmin : r[i])", "rmin < r[i]", "rmin", "r[i]", "r", "i", "rmin", "r[i]", "r", "i", "return max;", "max", "int[] r", "r", "int n", "n", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] r = new int[200000];\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tr[i] = stdIn.nextInt();\n\t\t\n\t\tint ans = calcMaxDifference(r, n);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tpublic static int calcMaxDifference(int[] r, int n) {\n\t\tint max = r[1] - r[0];\n\t\tint rmin = r[0];\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}\n\t\treturn max;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint[] r = new int[200000];\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tr[i] = stdIn.nextInt();\n\t\t\n\t\tint ans = calcMaxDifference(r, n);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tpublic static int calcMaxDifference(int[] r, int n) {\n\t\tint max = r[1] - r[0];\n\t\tint rmin = r[0];\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmax = (max > r[i] - rmin ? max : r[i] - rmin);\n\t\t\trmin = (rmin < r[i] ? rmin : r[i]);\n\t\t}\n\t\treturn max;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int[] r = new int[200000]; int n = stdIn.nextInt(); for (int i = 0; i < n; i++) r[i] = stdIn.nextInt(); int ans = calcMaxDifference(r, n); System.out.println(ans); } public static int calcMaxDifference(int[] r, int n) { int max = r[1] - r[0]; int rmin = r[0]; for (int i = 1; i < n; i++) { max = (max > r[i] - rmin ? max : r[i] - rmin); rmin = (rmin < r[i] ? rmin : r[i]); } return max; } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 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, 0, 18, 13, 13, 4, 18, 13, 12, 13, 30, 0, 13, 18, 13, 17, 0, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 115, 5 ], [ 115, 6 ], [ 6, 7 ], [ 6, 8 ], [ 115, 9 ], [ 9, 10 ], [ 115, 11 ], [ 11, 12 ], [ 115, 13 ], [ 13, 14 ], [ 115, 15 ], [ 15, 16 ], [ 115, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 115, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 50, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 50, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 73, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 50, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 115, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 102, 109 ], [ 109, 110 ], [ 110, 111 ], [ 100, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tint n;\n\tint[] R;\n\tint max,min;\n\t\n\tpublic void input() {\n\t\tn = sc.nextInt();\n\t\tR = new int[n];\n\t\tfor(int i=0; i<n; i++) R[i] = sc.nextInt();\n\t}\n\t\n\tpublic void compute() {\n\t\tmin = R[0];\n\t\tmax = Integer.MIN_VALUE;\n\t\tfor(int i=1; i<n; i++) {\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.compute();\n\t}\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tint n;\n\tint[] R;\n\tint max,min;\n\t\n\tpublic void input() {\n\t\tn = sc.nextInt();\n\t\tR = new int[n];\n\t\tfor(int i=0; i<n; i++) R[i] = sc.nextInt();\n\t}\n\t\n\tpublic void compute() {\n\t\tmin = R[0];\n\t\tmax = Integer.MIN_VALUE;\n\t\tfor(int i=1; i<n; i++) {\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.compute();\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "int[] R;", "R", "int max", "max", "min;", "min", "public void input() {\n\t\tn = sc.nextInt();\n\t\tR = new int[n];\n\t\tfor(int i=0; i<n; i++) R[i] = sc.nextInt();\n\t}", "input", "{\n\t\tn = sc.nextInt();\n\t\tR = new int[n];\n\t\tfor(int i=0; i<n; i++) R[i] = sc.nextInt();\n\t}", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "R = new int[n]", "R", "new int[n]", "n", "for(int i=0; i<n; i++) R[i] = sc.nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "R[i] = sc.nextInt();", "R[i] = sc.nextInt()", "R[i]", "R", "i", "sc.nextInt()", "sc.nextInt", "sc", "public void compute() {\n\t\tmin = R[0];\n\t\tmax = Integer.MIN_VALUE;\n\t\tfor(int i=1; i<n; i++) {\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "compute", "{\n\t\tmin = R[0];\n\t\tmax = Integer.MIN_VALUE;\n\t\tfor(int i=1; i<n; i++) {\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "min = R[0]", "min", "R[0]", "R", "0", "max = Integer.MIN_VALUE", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i=1; i<n; i++) {\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}", "max = Math.max(max, R[i]-min)", "max", "Math.max(max, R[i]-min)", "Math.max", "Math", "max", "R[i]-min", "R[i]", "R", "i", "min", "min = Math.min(min, R[i])", "min", "Math.min(min, R[i])", "Math.min", "Math", "min", "R[i]", "R", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "public static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.compute();\n\t}", "main", "{\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.compute();\n\t}", "Main obj = new Main();", "obj", "new Main()", "obj.input()", "obj.input", "obj", "obj.compute()", "obj.compute", "obj", "String[] args", "args", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tint n;\n\tint[] R;\n\tint max,min;\n\t\n\tpublic void input() {\n\t\tn = sc.nextInt();\n\t\tR = new int[n];\n\t\tfor(int i=0; i<n; i++) R[i] = sc.nextInt();\n\t}\n\t\n\tpublic void compute() {\n\t\tmin = R[0];\n\t\tmax = Integer.MIN_VALUE;\n\t\tfor(int i=1; i<n; i++) {\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.compute();\n\t}\n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tint n;\n\tint[] R;\n\tint max,min;\n\t\n\tpublic void input() {\n\t\tn = sc.nextInt();\n\t\tR = new int[n];\n\t\tfor(int i=0; i<n; i++) R[i] = sc.nextInt();\n\t}\n\t\n\tpublic void compute() {\n\t\tmin = R[0];\n\t\tmax = Integer.MIN_VALUE;\n\t\tfor(int i=1; i<n; i++) {\n\t\t\tmax = Math.max(max, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.input();\n\t\tobj.compute();\n\t}\n}", "Main" ]
import java.util.*; public class Main { Scanner sc = new Scanner(System.in); int n; int[] R; int max,min; public void input() { n = sc.nextInt(); R = new int[n]; for(int i=0; i<n; i++) R[i] = sc.nextInt(); } public void compute() { min = R[0]; max = Integer.MIN_VALUE; for(int i=1; i<n; i++) { max = Math.max(max, R[i]-min); min = Math.min(min, R[i]); } System.out.println(max); } public static void main(String[] args) { Main obj = new Main(); obj.input(); obj.compute(); } }
[ 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, 41, 13, 17, 41, 13, 40, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 2, 13, 17, 13, 0, 13, 18, 13, 2, 13, 17, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 64, 70 ], [ 63, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 62, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 62, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 6, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "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[] R = new int[n];\n for(int i = 0; i < n; i++) {\n R[i] = sc.nextInt();\n }\n\n int minv = 2000000000;\n int maxp = -2000000000;\n int t;\n for(int i = 1; i < n; i++) {\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }\n\n System.out.println(maxp);\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] R = new int[n];\n for(int i = 0; i < n; i++) {\n R[i] = sc.nextInt();\n }\n\n int minv = 2000000000;\n int maxp = -2000000000;\n int t;\n for(int i = 1; i < n; i++) {\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }\n\n System.out.println(maxp);\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] R = new int[n];\n for(int i = 0; i < n; i++) {\n R[i] = sc.nextInt();\n }\n\n int minv = 2000000000;\n int maxp = -2000000000;\n int t;\n for(int i = 1; i < n; i++) {\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }\n\n System.out.println(maxp);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] R = new int[n];\n for(int i = 0; i < n; i++) {\n R[i] = sc.nextInt();\n }\n\n int minv = 2000000000;\n int maxp = -2000000000;\n int t;\n for(int i = 1; i < n; i++) {\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }\n\n System.out.println(maxp);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] R = new int[n];", "R", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n R[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n R[i] = sc.nextInt();\n }", "{\n R[i] = sc.nextInt();\n }", "R[i] = sc.nextInt()", "R[i]", "R", "i", "sc.nextInt()", "sc.nextInt", "sc", "int minv = 2000000000;", "minv", "2000000000", "int maxp = -2000000000;", "maxp", "-2000000000", "2000000000", "int t;", "t", "for(int i = 1; i < n; i++) {\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }", "{\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }", "if (R[i - 1] < minv) minv = R[i - 1];", "R[i - 1] < minv", "R[i - 1]", "R", "i - 1", "i", "1", "minv", "minv = R[i - 1]", "minv", "R[i - 1]", "R", "i - 1", "i", "1", "t = R[i] - minv", "t", "R[i] - minv", "R[i]", "R", "i", "minv", "if(t > maxp) maxp = t;", "t > maxp", "t", "maxp", "maxp = t", "maxp", "t", "System.out.println(maxp)", "System.out.println", "System.out", "System", "System.out", "maxp", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] R = new int[n];\n for(int i = 0; i < n; i++) {\n R[i] = sc.nextInt();\n }\n\n int minv = 2000000000;\n int maxp = -2000000000;\n int t;\n for(int i = 1; i < n; i++) {\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }\n\n System.out.println(maxp);\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] R = new int[n];\n for(int i = 0; i < n; i++) {\n R[i] = sc.nextInt();\n }\n\n int minv = 2000000000;\n int maxp = -2000000000;\n int t;\n for(int i = 1; i < n; i++) {\n if (R[i - 1] < minv) minv = R[i - 1];\n t = R[i] - minv;\n if(t > maxp) maxp = t;\n }\n\n System.out.println(maxp);\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] R = new int[n]; for(int i = 0; i < n; i++) { R[i] = sc.nextInt(); } int minv = 2000000000; int maxp = -2000000000; int t; for(int i = 1; i < n; i++) { if (R[i - 1] < minv) minv = R[i - 1]; t = R[i] - minv; if(t > maxp) maxp = t; } System.out.println(maxp); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 40, 17, 41, 13, 20, 41, 13, 0, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 14, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 14, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 76, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 14, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 12, 105 ], [ 105, 106 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Integer min;\n Integer max = -2000000000;\n\n List<Integer> IntList = new ArrayList<Integer>();\n Scanner sc;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0;i<n;i++) {\n IntList.add(Integer.parseInt(sc.next()));\n }\n\n min = IntList.get(0);\n for (int in = 1;in<IntList.size();in++) {\n max = Math.max(max,IntList.get(in) - min);\n min = Math.min(min,IntList.get(in));\n }\n\n System.out.println(max);\n\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Integer min;\n Integer max = -2000000000;\n\n List<Integer> IntList = new ArrayList<Integer>();\n Scanner sc;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0;i<n;i++) {\n IntList.add(Integer.parseInt(sc.next()));\n }\n\n min = IntList.get(0);\n for (int in = 1;in<IntList.size();in++) {\n max = Math.max(max,IntList.get(in) - min);\n min = Math.min(min,IntList.get(in));\n }\n\n System.out.println(max);\n\n }\n}", "Main", "public static void main(String[] args) {\n Integer min;\n Integer max = -2000000000;\n\n List<Integer> IntList = new ArrayList<Integer>();\n Scanner sc;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0;i<n;i++) {\n IntList.add(Integer.parseInt(sc.next()));\n }\n\n min = IntList.get(0);\n for (int in = 1;in<IntList.size();in++) {\n max = Math.max(max,IntList.get(in) - min);\n min = Math.min(min,IntList.get(in));\n }\n\n System.out.println(max);\n\n }", "main", "{\n Integer min;\n Integer max = -2000000000;\n\n List<Integer> IntList = new ArrayList<Integer>();\n Scanner sc;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0;i<n;i++) {\n IntList.add(Integer.parseInt(sc.next()));\n }\n\n min = IntList.get(0);\n for (int in = 1;in<IntList.size();in++) {\n max = Math.max(max,IntList.get(in) - min);\n min = Math.min(min,IntList.get(in));\n }\n\n System.out.println(max);\n\n }", "Integer min;", "min", "Integer max = -2000000000;", "max", "-2000000000", "2000000000", "List<Integer> IntList = new ArrayList<Integer>();", "IntList", "new ArrayList<Integer>()", "Scanner sc;", "sc", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0;i<n;i++) {\n IntList.add(Integer.parseInt(sc.next()));\n }", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n IntList.add(Integer.parseInt(sc.next()));\n }", "{\n IntList.add(Integer.parseInt(sc.next()));\n }", "IntList.add(Integer.parseInt(sc.next()))", "IntList.add", "IntList", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "min = IntList.get(0)", "min", "IntList.get(0)", "IntList.get", "IntList", "0", "for (int in = 1;in<IntList.size();in++) {\n max = Math.max(max,IntList.get(in) - min);\n min = Math.min(min,IntList.get(in));\n }", "int in = 1;", "int in = 1;", "in", "1", "in<IntList.size()", "in", "IntList.size()", "IntList.size", "IntList", "in++", "in++", "in", "{\n max = Math.max(max,IntList.get(in) - min);\n min = Math.min(min,IntList.get(in));\n }", "{\n max = Math.max(max,IntList.get(in) - min);\n min = Math.min(min,IntList.get(in));\n }", "max = Math.max(max,IntList.get(in) - min)", "max", "Math.max(max,IntList.get(in) - min)", "Math.max", "Math", "max", "IntList.get(in) - min", "IntList.get(in)", "IntList.get", "IntList", "in", "min", "min = Math.min(min,IntList.get(in))", "min", "Math.min(min,IntList.get(in))", "Math.min", "Math", "min", "IntList.get(in)", "IntList.get", "IntList", "in", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; class Main { public static void main(String[] args) { Integer min; Integer max = -2000000000; List<Integer> IntList = new ArrayList<Integer>(); Scanner sc; sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0;i<n;i++) { IntList.add(Integer.parseInt(sc.next())); } min = IntList.get(0); for (int in = 1;in<IntList.size();in++) { max = Math.max(max,IntList.get(in) - min); min = Math.min(min,IntList.get(in)); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 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, 41, 13, 40, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 13, 13, 0, 13, 2, 18, 13, 13, 13, 14, 2, 18, 13, 13, 13, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 66, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 64, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n n = sc.nextInt();\n int r[] = new int[n];\n for (int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n long max = -1000000010;\n long min = r[0];\n for (int i = 1; i < n; i++) {\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }\n System.out.println(max);\n sc.close();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n n = sc.nextInt();\n int r[] = new int[n];\n for (int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n long max = -1000000010;\n long min = r[0];\n for (int i = 1; i < n; i++) {\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }\n System.out.println(max);\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n n = sc.nextInt();\n int r[] = new int[n];\n for (int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n long max = -1000000010;\n long min = r[0];\n for (int i = 1; i < n; i++) {\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }\n System.out.println(max);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n;\n n = sc.nextInt();\n int r[] = new int[n];\n for (int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n long max = -1000000010;\n long min = r[0];\n for (int i = 1; i < n; i++) {\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }\n System.out.println(max);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "int r[] = new int[n];", "r", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n r[i] = sc.nextInt();\n }", "{\n r[i] = sc.nextInt();\n }", "r[i] = sc.nextInt()", "r[i]", "r", "i", "sc.nextInt()", "sc.nextInt", "sc", "long max = -1000000010;", "max", "-1000000010", "1000000010", "long min = r[0];", "min", "r[0]", "r", "0", "for (int i = 1; i < n; i++) {\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }", "{\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }", "if (r[i] - min > max)\n max = r[i] - min;", "r[i] - min > max", "r[i] - min", "r[i]", "r", "i", "min", "max", "max = r[i] - min", "max", "r[i] - min", "r[i]", "r", "i", "min", "if (r[i] < min)\n min = r[i];", "r[i] < min", "r[i]", "r", "i", "min", "min = r[i]", "min", "r[i]", "r", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n n = sc.nextInt();\n int r[] = new int[n];\n for (int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n long max = -1000000010;\n long min = r[0];\n for (int i = 1; i < n; i++) {\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }\n System.out.println(max);\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n;\n n = sc.nextInt();\n int r[] = new int[n];\n for (int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n long max = -1000000010;\n long min = r[0];\n for (int i = 1; i < n; i++) {\n if (r[i] - min > max)\n max = r[i] - min;\n if (r[i] < min)\n min = r[i];\n }\n System.out.println(max);\n sc.close();\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n; n = sc.nextInt(); int r[] = new int[n]; for (int i = 0; i < n; i++) { r[i] = sc.nextInt(); } long max = -1000000010; long min = r[0]; for (int i = 1; i < n; i++) { if (r[i] - min > max) max = r[i] - min; if (r[i] < min) min = r[i]; } System.out.println(max); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 18, 13, 13, 13, 0, 13, 2, 18, 13, 13, 13, 14, 2, 13, 18, 13, 13, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 11, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 11, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 11, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 72, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 71, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 11, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 9, 104 ], [ 104, 105 ] ]
[ "import java.util.Scanner;\nclass Main {\n\tstatic final int MAX = 200000;\n\tpublic static void main(String[] args) {\n\t\tint[] R = new int[MAX];\n\t\tint n;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i = 0;i<n;i++) R[i] = in.nextInt();\n\t\t\n\t\tint maxv = R[1]-R[0];\n\t\tint minv = R[0];\n\t\tfor(int i = 1;i<n;i++){\n\t\t\tif(maxv < R[i] - minv) maxv = R[i]-minv;\t\n\t\t\tif(minv>R[i]) minv = R[i];\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tstatic final int MAX = 200000;\n\tpublic static void main(String[] args) {\n\t\tint[] R = new int[MAX];\n\t\tint n;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i = 0;i<n;i++) R[i] = in.nextInt();\n\t\t\n\t\tint maxv = R[1]-R[0];\n\t\tint minv = R[0];\n\t\tfor(int i = 1;i<n;i++){\n\t\t\tif(maxv < R[i] - minv) maxv = R[i]-minv;\t\n\t\t\tif(minv>R[i]) minv = R[i];\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "static final int MAX = 200000;", "MAX", "200000", "public static void main(String[] args) {\n\t\tint[] R = new int[MAX];\n\t\tint n;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i = 0;i<n;i++) R[i] = in.nextInt();\n\t\t\n\t\tint maxv = R[1]-R[0];\n\t\tint minv = R[0];\n\t\tfor(int i = 1;i<n;i++){\n\t\t\tif(maxv < R[i] - minv) maxv = R[i]-minv;\t\n\t\t\tif(minv>R[i]) minv = R[i];\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tint[] R = new int[MAX];\n\t\tint n;\n\t\tScanner in = new Scanner(System.in);\n\t\tn = in.nextInt();\n\t\tfor(int i = 0;i<n;i++) R[i] = in.nextInt();\n\t\t\n\t\tint maxv = R[1]-R[0];\n\t\tint minv = R[0];\n\t\tfor(int i = 1;i<n;i++){\n\t\t\tif(maxv < R[i] - minv) maxv = R[i]-minv;\t\n\t\t\tif(minv>R[i]) minv = R[i];\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "int[] R = new int[MAX];", "R", "new int[MAX]", "MAX", "int n;", "n", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "n = in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "for(int i = 0;i<n;i++) R[i] = in.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "R[i] = in.nextInt();", "R[i] = in.nextInt()", "R[i]", "R", "i", "in.nextInt()", "in.nextInt", "in", "int maxv = R[1]-R[0];", "maxv", "R[1]-R[0]", "R[1]", "R", "1", "R[0]", "R", "0", "int minv = R[0];", "minv", "R[0]", "R", "0", "for(int i = 1;i<n;i++){\n\t\t\tif(maxv < R[i] - minv) maxv = R[i]-minv;\t\n\t\t\tif(minv>R[i]) minv = R[i];\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif(maxv < R[i] - minv) maxv = R[i]-minv;\t\n\t\t\tif(minv>R[i]) minv = R[i];\n\t\t}", "{\n\t\t\tif(maxv < R[i] - minv) maxv = R[i]-minv;\t\n\t\t\tif(minv>R[i]) minv = R[i];\n\t\t}", "if(maxv < R[i] - minv) maxv = R[i]-minv;", "maxv < R[i] - minv", "maxv", "R[i] - minv", "R[i]", "R", "i", "minv", "maxv = R[i]-minv", "maxv", "R[i]-minv", "R[i]", "R", "i", "minv", "if(minv>R[i]) minv = R[i];", "minv>R[i]", "minv", "R[i]", "R", "i", "minv = R[i]", "minv", "R[i]", "R", "i", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args" ]
import java.util.Scanner; class Main { static final int MAX = 200000; public static void main(String[] args) { int[] R = new int[MAX]; int n; Scanner in = new Scanner(System.in); n = in.nextInt(); for(int i = 0;i<n;i++) R[i] = in.nextInt(); int maxv = R[1]-R[0]; int minv = R[0]; for(int i = 1;i<n;i++){ if(maxv < R[i] - minv) maxv = R[i]-minv; if(minv>R[i]) minv = R[i]; } System.out.println(maxv); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 30, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\n\t\tint input;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\n\t\tint input;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\n\t\tint input;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\n\t\tint input;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\t}", "int maxv = Integer.MIN_VALUE;", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int minv = Integer.MAX_VALUE;", "minv", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int input;", "input", "for (int j = 0; j < n; j++) {\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}", "{\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}", "input = scanner.nextInt()", "input", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}", "j == 0", "j", "0", "{\n\t\t\t\tminv = input;\n\t\t\t}", "minv = input", "minv", "input", "{\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}", "maxv = Math.max(maxv, input - minv)", "maxv", "Math.max(maxv, input - minv)", "Math.max", "Math", "maxv", "input - minv", "input", "minv", "minv = Math.min(minv, input)", "minv", "Math.min(minv, input)", "Math.min", "Math", "minv", "input", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\n\t\tint input;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\n\t\tint input;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tinput = scanner.nextInt();\n\t\t\tif (j == 0) {\n\t\t\t\tminv = input;\n\t\t\t} else {\n\t\t\t\tmaxv = Math.max(maxv, input - minv);\n\t\t\t\tminv = Math.min(minv, input);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int maxv = Integer.MIN_VALUE; int minv = Integer.MAX_VALUE; Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int input; for (int j = 0; j < n; j++) { input = scanner.nextInt(); if (j == 0) { minv = input; } else { maxv = Math.max(maxv, input - minv); minv = Math.min(minv, input); } } System.out.println(maxv); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 72, 8 ], [ 72, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 11, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 41, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 11, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 9, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\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 max = -2000000000;\n\t\tint min = s.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint max = -2000000000;\n\t\tint min = s.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint max = -2000000000;\n\t\tint min = s.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint max = -2000000000;\n\t\tint min = s.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "int max = -2000000000;", "max", "-2000000000", "2000000000", "int min = s.nextInt();", "min", "s.nextInt()", "s.nextInt", "s", "for (int i = 1; i < n; i++) {\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}", "{\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}", "int r = s.nextInt();", "r", "s.nextInt()", "s.nextInt", "s", "max = Math.max(max, r-min)", "max", "Math.max(max, r-min)", "Math.max", "Math", "max", "r-min", "r", "min", "min = Math.min(min, r)", "min", "Math.min(min, r)", "Math.min", "Math", "min", "r", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint max = -2000000000;\n\t\tint min = s.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tint n = s.nextInt();\n\t\t\n\t\tint max = -2000000000;\n\t\tint min = s.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint r = s.nextInt();\n\t\t\tmax = Math.max(max, r-min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner s = new Scanner(System.in); int n = s.nextInt(); int max = -2000000000; int min = s.nextInt(); for (int i = 1; i < n; i++) { int r = s.nextInt(); max = Math.max(max, r-min); min = Math.min(min, r); } System.out.println(max); } }
[ 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, 41, 13, 18, 13, 17, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 11, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 11, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 65, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 11, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 9, 92 ], [ 92, 93 ] ]
[ "import java.util.Scanner;\nimport java.lang.Math;\nclass Main{\n\n public static void main(String args[]){\n\n Scanner stdIn=new Scanner(System.in);\n int x=stdIn.nextInt();\n long[] a=new long[x];\n for(int i=0;i<x;i++){\n a[i]=stdIn.nextLong();\n }\n long minv=a[0];\n long maxv=-999999999;\n\n for(int i=1; i<x; i++){\n maxv=Math.max(maxv,a[i]-minv);\n minv=Math.min(minv,a[i]);\n }\n\n System.out.println(maxv);\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.Math;", "Math", "java.lang", "class Main{\n\n public static void main(String args[]){\n\n Scanner stdIn=new Scanner(System.in);\n int x=stdIn.nextInt();\n long[] a=new long[x];\n for(int i=0;i<x;i++){\n a[i]=stdIn.nextLong();\n }\n long minv=a[0];\n long maxv=-999999999;\n\n for(int i=1; i<x; i++){\n maxv=Math.max(maxv,a[i]-minv);\n minv=Math.min(minv,a[i]);\n }\n\n System.out.println(maxv);\n }\n}", "Main", "public static void main(String args[]){\n\n Scanner stdIn=new Scanner(System.in);\n int x=stdIn.nextInt();\n long[] a=new long[x];\n for(int i=0;i<x;i++){\n a[i]=stdIn.nextLong();\n }\n long minv=a[0];\n long maxv=-999999999;\n\n for(int i=1; i<x; i++){\n maxv=Math.max(maxv,a[i]-minv);\n minv=Math.min(minv,a[i]);\n }\n\n System.out.println(maxv);\n }", "main", "{\n\n Scanner stdIn=new Scanner(System.in);\n int x=stdIn.nextInt();\n long[] a=new long[x];\n for(int i=0;i<x;i++){\n a[i]=stdIn.nextLong();\n }\n long minv=a[0];\n long maxv=-999999999;\n\n for(int i=1; i<x; i++){\n maxv=Math.max(maxv,a[i]-minv);\n minv=Math.min(minv,a[i]);\n }\n\n System.out.println(maxv);\n }", "Scanner stdIn=new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int x=stdIn.nextInt();", "x", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "long[] a=new long[x];", "a", "new long[x]", "x", "for(int i=0;i<x;i++){\n a[i]=stdIn.nextLong();\n }", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n a[i]=stdIn.nextLong();\n }", "{\n a[i]=stdIn.nextLong();\n }", "a[i]=stdIn.nextLong()", "a[i]", "a", "i", "stdIn.nextLong()", "stdIn.nextLong", "stdIn", "long minv=a[0];", "minv", "a[0]", "a", "0", "long maxv=-999999999;", "maxv", "-999999999", "999999999", "for(int i=1; i<x; i++){\n maxv=Math.max(maxv,a[i]-minv);\n minv=Math.min(minv,a[i]);\n }", "int i=1;", "int i=1;", "i", "1", "i<x", "i", "x", "i++", "i++", "i", "{\n maxv=Math.max(maxv,a[i]-minv);\n minv=Math.min(minv,a[i]);\n }", "{\n maxv=Math.max(maxv,a[i]-minv);\n minv=Math.min(minv,a[i]);\n }", "maxv=Math.max(maxv,a[i]-minv)", "maxv", "Math.max(maxv,a[i]-minv)", "Math.max", "Math", "maxv", "a[i]-minv", "a[i]", "a", "i", "minv", "minv=Math.min(minv,a[i])", "minv", "Math.min(minv,a[i])", "Math.min", "Math", "minv", "a[i]", "a", "i", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String args[]", "args" ]
import java.util.Scanner; import java.lang.Math; class Main{ public static void main(String args[]){ Scanner stdIn=new Scanner(System.in); int x=stdIn.nextInt(); long[] a=new long[x]; for(int i=0;i<x;i++){ a[i]=stdIn.nextLong(); } long minv=a[0]; long maxv=-999999999; for(int i=1; i<x; i++){ maxv=Math.max(maxv,a[i]-minv); minv=Math.min(minv,a[i]); } System.out.println(maxv); } }
[ 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, 41, 13, 17, 41, 13, 17, 42, 13, 30, 0, 13, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 13, 17, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 13, 0, 13, 17, 40, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 53, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 78, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 78, 100 ], [ 100, 101 ], [ 100, 102 ], [ 78, 103 ], [ 103, 104 ], [ 8, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 105, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 8, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 8, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 6, 146 ], [ 146, 147 ], [ 0, 148 ], [ 148, 149 ], [ 148, 150 ] ]
[ "\n\nimport java.util.Scanner;\n\n/**\n * Created by sd on 2016/11/22.\n */\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int a[] = new int[N];\n for(int I=0;I<N;I++){\n a[I] = sc.nextInt();\n }\n\n int count = 0;\n boolean flag = true;\n while (flag){\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }\n for(int ii=0; ii<N-1; ii++){\n System.out.print(a[ii]+\" \");\n }\n System.out.println(a[N-1]);\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int a[] = new int[N];\n for(int I=0;I<N;I++){\n a[I] = sc.nextInt();\n }\n\n int count = 0;\n boolean flag = true;\n while (flag){\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }\n for(int ii=0; ii<N-1; ii++){\n System.out.print(a[ii]+\" \");\n }\n System.out.println(a[N-1]);\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int a[] = new int[N];\n for(int I=0;I<N;I++){\n a[I] = sc.nextInt();\n }\n\n int count = 0;\n boolean flag = true;\n while (flag){\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }\n for(int ii=0; ii<N-1; ii++){\n System.out.print(a[ii]+\" \");\n }\n System.out.println(a[N-1]);\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int a[] = new int[N];\n for(int I=0;I<N;I++){\n a[I] = sc.nextInt();\n }\n\n int count = 0;\n boolean flag = true;\n while (flag){\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }\n for(int ii=0; ii<N-1; ii++){\n System.out.print(a[ii]+\" \");\n }\n System.out.println(a[N-1]);\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int a[] = new int[N];", "a", "new int[N]", "N", "for(int I=0;I<N;I++){\n a[I] = sc.nextInt();\n }", "int I=0;", "int I=0;", "I", "0", "I<N", "I", "N", "I++", "I++", "I", "{\n a[I] = sc.nextInt();\n }", "{\n a[I] = sc.nextInt();\n }", "a[I] = sc.nextInt()", "a[I]", "a", "I", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "boolean flag = true;", "flag", "true", "while (flag){\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }", "flag", "{\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }", "flag = false", "flag", "false", "for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }", "int j=N-1;", "int j=N-1;", "j", "N-1", "N", "1", "j>=1", "j", "1", "j--", "j--", "j", "{\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }", "{\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }", "if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }", "a[j] < a[j-1]", "a[j]", "a", "j", "a[j-1]", "a", "j-1", "j", "1", "{\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }", "int t = a[j];", "t", "a[j]", "a", "j", "a[j] = a[j-1]", "a[j]", "a", "j", "a[j-1]", "a", "j-1", "j", "1", "a[j-1] = t", "a[j-1]", "a", "j-1", "j", "1", "t", "flag = true", "flag", "true", "count ++", "count", "for(int ii=0; ii<N-1; ii++){\n System.out.print(a[ii]+\" \");\n }", "int ii=0;", "int ii=0;", "ii", "0", "ii<N-1", "ii", "N-1", "N", "1", "ii++", "ii++", "ii", "{\n System.out.print(a[ii]+\" \");\n }", "{\n System.out.print(a[ii]+\" \");\n }", "System.out.print(a[ii]+\" \")", "System.out.print", "System.out", "System", "System.out", "a[ii]+\" \"", "a[ii]", "a", "ii", "\" \"", "System.out.println(a[N-1])", "System.out.println", "System.out", "System", "System.out", "a[N-1]", "a", "N-1", "N", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int a[] = new int[N];\n for(int I=0;I<N;I++){\n a[I] = sc.nextInt();\n }\n\n int count = 0;\n boolean flag = true;\n while (flag){\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }\n for(int ii=0; ii<N-1; ii++){\n System.out.print(a[ii]+\" \");\n }\n System.out.println(a[N-1]);\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int a[] = new int[N];\n for(int I=0;I<N;I++){\n a[I] = sc.nextInt();\n }\n\n int count = 0;\n boolean flag = true;\n while (flag){\n flag = false;\n for (int j=N-1; j>=1; j--){\n if(a[j] < a[j-1]){\n int t = a[j];\n a[j] = a[j-1];\n a[j-1] = t;\n flag = true;\n count ++;\n }\n }\n }\n for(int ii=0; ii<N-1; ii++){\n System.out.print(a[ii]+\" \");\n }\n System.out.println(a[N-1]);\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; /** * Created by sd on 2016/11/22. */ 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(); } int count = 0; boolean flag = true; while (flag){ flag = false; for (int j=N-1; j>=1; j--){ if(a[j] < a[j-1]){ int t = a[j]; a[j] = a[j-1]; a[j-1] = t; flag = true; count ++; } } } for(int ii=0; ii<N-1; ii++){ System.out.print(a[ii]+" "); } System.out.println(a[N-1]); System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 42, 13, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 2, 13, 17, 18, 13, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 13, 0, 13, 17, 40, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 175, 5 ], [ 175, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 6, 44 ], [ 44, 45 ], [ 175, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 48, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 61, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 77, 83 ], [ 83, 84 ], [ 83, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 86, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 86, 108 ], [ 108, 109 ], [ 108, 110 ], [ 86, 111 ], [ 111, 112 ], [ 48, 113 ], [ 113, 114 ], [ 113, 115 ], [ 48, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 48, 122 ], [ 122, 123 ], [ 46, 124 ], [ 124, 125 ], [ 175, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 132, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 150, 151 ], [ 150, 152 ], [ 146, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 153, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 128, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 126, 172 ], [ 172, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = sc.nextInt();\n int[] s = new int[count];\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextInt();\n }\n bubbleSort(s);\n }\n\n private static int[] bubbleSort(int[] a) {\n int count = 0;\n boolean flag = true;\n while (flag) {\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }\n printArray(a);\n System.out.println(count);\n return a;\n }\n\n private static void printArray(int[] array) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }\n System.out.println(sb);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = sc.nextInt();\n int[] s = new int[count];\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextInt();\n }\n bubbleSort(s);\n }\n\n private static int[] bubbleSort(int[] a) {\n int count = 0;\n boolean flag = true;\n while (flag) {\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }\n printArray(a);\n System.out.println(count);\n return a;\n }\n\n private static void printArray(int[] array) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }\n System.out.println(sb);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = sc.nextInt();\n int[] s = new int[count];\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextInt();\n }\n bubbleSort(s);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int count = sc.nextInt();\n int[] s = new int[count];\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextInt();\n }\n bubbleSort(s);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = sc.nextInt();", "count", "sc.nextInt()", "sc.nextInt", "sc", "int[] s = new int[count];", "s", "new int[count]", "count", "for (int i = 0; i < count; i++) {\n s[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n s[i] = sc.nextInt();\n }", "{\n s[i] = sc.nextInt();\n }", "s[i] = sc.nextInt()", "s[i]", "s", "i", "sc.nextInt()", "sc.nextInt", "sc", "bubbleSort(s)", "bubbleSort", "s", "String[] args", "args", "private static int[] bubbleSort(int[] a) {\n int count = 0;\n boolean flag = true;\n while (flag) {\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }\n printArray(a);\n System.out.println(count);\n return a;\n }", "bubbleSort", "{\n int count = 0;\n boolean flag = true;\n while (flag) {\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }\n printArray(a);\n System.out.println(count);\n return a;\n }", "int count = 0;", "count", "0", "boolean flag = true;", "flag", "true", "while (flag) {\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }", "flag", "{\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }", "flag = false", "flag", "false", "for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }", "{\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }", "if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }", "a[i - 1] > a[i]", "a[i - 1]", "a", "i - 1", "i", "1", "a[i]", "a", "i", "{\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }", "int tmp = a[i];", "tmp", "a[i]", "a", "i", "a[i] = a[i - 1]", "a[i]", "a", "i", "a[i - 1]", "a", "i - 1", "i", "1", "a[i - 1] = tmp", "a[i - 1]", "a", "i - 1", "i", "1", "tmp", "flag = true", "flag", "true", "count++", "count", "printArray(a)", "printArray", "a", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return a;", "a", "int[] a", "a", "private static void printArray(int[] array) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }\n System.out.println(sb);\n }", "printArray", "{\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }\n System.out.println(sb);\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int i = 0; i < array.length; i++) {\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < array.length", "i", "array.length", "array", "array.length", "i++", "i++", "i", "{\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }", "{\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }", "sb.append(array[i])", "sb.append", "sb", "array[i]", "array", "i", "if (i != array.length - 1) {\n sb.append(\" \");\n }", "i != array.length - 1", "i", "array.length - 1", "array.length", "array", "array.length", "1", "{\n sb.append(\" \");\n }", "sb.append(\" \")", "sb.append", "sb", "\" \"", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "int[] array", "array", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = sc.nextInt();\n int[] s = new int[count];\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextInt();\n }\n bubbleSort(s);\n }\n\n private static int[] bubbleSort(int[] a) {\n int count = 0;\n boolean flag = true;\n while (flag) {\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }\n printArray(a);\n System.out.println(count);\n return a;\n }\n\n private static void printArray(int[] array) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }\n System.out.println(sb);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = sc.nextInt();\n int[] s = new int[count];\n for (int i = 0; i < count; i++) {\n s[i] = sc.nextInt();\n }\n bubbleSort(s);\n }\n\n private static int[] bubbleSort(int[] a) {\n int count = 0;\n boolean flag = true;\n while (flag) {\n flag = false;\n for (int i = 1; i < a.length; i++) {\n if (a[i - 1] > a[i]) {\n int tmp = a[i];\n a[i] = a[i - 1];\n a[i - 1] = tmp;\n flag = true;\n count++;\n }\n }\n }\n printArray(a);\n System.out.println(count);\n return a;\n }\n\n private static void printArray(int[] array) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n sb.append(array[i]);\n if (i != array.length - 1) {\n sb.append(\" \");\n }\n }\n System.out.println(sb);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = sc.nextInt(); int[] s = new int[count]; for (int i = 0; i < count; i++) { s[i] = sc.nextInt(); } bubbleSort(s); } private static int[] bubbleSort(int[] a) { int count = 0; boolean flag = true; while (flag) { flag = false; for (int i = 1; i < a.length; i++) { if (a[i - 1] > a[i]) { int tmp = a[i]; a[i] = a[i - 1]; a[i - 1] = tmp; flag = true; count++; } } } printArray(a); System.out.println(count); return a; } private static void printArray(int[] array) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < array.length; i++) { sb.append(array[i]); if (i != array.length - 1) { sb.append(" "); } } System.out.println(sb); } }