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, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 13, 18, 13, 17, 0, 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, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 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 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 8, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 8, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 87, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 8, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 6, 128 ], [ 128, 129 ] ]
[ "import java.util.Scanner;\n\n/**\n * \n */\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n = 0;\n\t\tint minv = 0;\n\t\tint maxv = 0;\n\t\t\n\t\tint R[];\n\t\t\n\t\tn = Integer.parseInt(as.next());\n\t\t\n\t\tR = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\tR[i] = Integer.parseInt(as.next());\n\t\t\t\n\t\t}\n\t\t\n\t\tminv = R[0];\n\t\tmaxv = R[1] - R[0];\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t\n\t\t\tif(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tsb.append(maxv);\n\t\tSystem.out.println(sb.toString());\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n = 0;\n\t\tint minv = 0;\n\t\tint maxv = 0;\n\t\t\n\t\tint R[];\n\t\t\n\t\tn = Integer.parseInt(as.next());\n\t\t\n\t\tR = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\tR[i] = Integer.parseInt(as.next());\n\t\t\t\n\t\t}\n\t\t\n\t\tminv = R[0];\n\t\tmaxv = R[1] - R[0];\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t\n\t\t\tif(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tsb.append(maxv);\n\t\tSystem.out.println(sb.toString());\n\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n = 0;\n\t\tint minv = 0;\n\t\tint maxv = 0;\n\t\t\n\t\tint R[];\n\t\t\n\t\tn = Integer.parseInt(as.next());\n\t\t\n\t\tR = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\tR[i] = Integer.parseInt(as.next());\n\t\t\t\n\t\t}\n\t\t\n\t\tminv = R[0];\n\t\tmaxv = R[1] - R[0];\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t\n\t\t\tif(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tsb.append(maxv);\n\t\tSystem.out.println(sb.toString());\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n = 0;\n\t\tint minv = 0;\n\t\tint maxv = 0;\n\t\t\n\t\tint R[];\n\t\t\n\t\tn = Integer.parseInt(as.next());\n\t\t\n\t\tR = new int[n];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\t\n\t\t\tR[i] = Integer.parseInt(as.next());\n\t\t\t\n\t\t}\n\t\t\n\t\tminv = R[0];\n\t\tmaxv = R[1] - R[0];\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t\n\t\t\tif(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tsb.append(maxv);\n\t\tSystem.out.println(sb.toString());\n\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "Scanner as = new Scanner(System.in);", "as", "new Scanner(System.in)", "int n = 0;", "n", "0", "int minv = 0;", "minv", "0", "int maxv = 0;", "maxv", "0", "int R[];", "R", "n = Integer.parseInt(as.next())", "n", "Integer.parseInt(as.next())", "Integer.parseInt", "Integer", "as.next()", "as.next", "as", "R = new int[n]", "R", "new int[n]", "n", "for(int i=0;i<n;i++){\n\t\t\t\n\t\t\tR[i] = Integer.parseInt(as.next());\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\t\n\t\t\tR[i] = Integer.parseInt(as.next());\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tR[i] = Integer.parseInt(as.next());\n\t\t\t\n\t\t}", "R[i] = Integer.parseInt(as.next())", "R[i]", "R", "i", "Integer.parseInt(as.next())", "Integer.parseInt", "Integer", "as.next()", "as.next", "as", "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(int i=1;i<n;i++){\n\t\t\t\n\t\t\tif(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tif(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tif(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "if(maxv < (R[i] - minv)){\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}", "maxv < (R[i] - minv)", "maxv", "(R[i] - minv)", "R[i]", "R", "i", "minv", "{\n\t\t\t\t\n\t\t\t\tmaxv = (R[i] - minv);\n\t\t\t\t\n\t\t\t}", "maxv = (R[i] - minv)", "maxv", "(R[i] - minv)", "R[i]", "R", "i", "minv", "if(minv > R[i]){\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}", "minv > R[i]", "minv", "R[i]", "R", "i", "{\n\t\t\t\t\n\t\t\t\tminv = R[i];\n\t\t\t\t\n\t\t\t}", "minv = R[i]", "minv", "R[i]", "R", "i", "sb.append(maxv)", "sb.append", "sb", "maxv", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args" ]
import java.util.Scanner; /** * */ /** * @author kawakami * */ class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub StringBuilder sb = new StringBuilder(); Scanner as = new Scanner(System.in); int n = 0; int minv = 0; int maxv = 0; int R[]; n = Integer.parseInt(as.next()); R = new int[n]; for(int i=0;i<n;i++){ R[i] = Integer.parseInt(as.next()); } minv = R[0]; maxv = R[1] - 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]; } } sb.append(maxv); System.out.println(sb.toString()); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 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, 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 ], [ 106, 8 ], [ 106, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 11, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 11, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 64, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 11, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 9, 91 ], [ 91, 92 ], [ 106, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 93, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = readInt(r);\n\t\tint[] price = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) price[i] = readInt(r);\n\n\t\tint max = -2000000000;\n\t\tint min = price[0];\n\t\tfor(int x = 1 ; x < n ; x++){\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n\t\treturn Integer.parseInt(r.readLine());\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = readInt(r);\n\t\tint[] price = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) price[i] = readInt(r);\n\n\t\tint max = -2000000000;\n\t\tint min = price[0];\n\t\tfor(int x = 1 ; x < n ; x++){\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n\t\treturn Integer.parseInt(r.readLine());\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = readInt(r);\n\t\tint[] price = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) price[i] = readInt(r);\n\n\t\tint max = -2000000000;\n\t\tint min = price[0];\n\t\tfor(int x = 1 ; x < n ; x++){\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = readInt(r);\n\t\tint[] price = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) price[i] = readInt(r);\n\n\t\tint max = -2000000000;\n\t\tint min = price[0];\n\t\tfor(int x = 1 ; x < n ; x++){\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}", "BufferedReader r = new BufferedReader(new InputStreamReader(System.in));", "r", "new BufferedReader(new InputStreamReader(System.in))", "int n = readInt(r);", "n", "readInt(r)", "readInt", "r", "int[] price = new int[n];", "price", "new int[n]", "n", "for(int i = 0 ; i < n ; i++) price[i] = readInt(r);", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "price[i] = readInt(r);", "price[i] = readInt(r)", "price[i]", "price", "i", "readInt(r)", "readInt", "r", "int max = -2000000000;", "max", "-2000000000", "2000000000", "int min = price[0];", "min", "price[0]", "price", "0", "for(int x = 1 ; x < n ; x++){\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}", "int x = 1 ;", "int x = 1 ;", "x", "1", "x < n", "x", "n", "x++", "x++", "x", "{\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}", "{\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}", "max = Math.max(max,price[x] - min)", "max", "Math.max(max,price[x] - min)", "Math.max", "Math", "max", "price[x] - min", "price[x]", "price", "x", "min", "min = Math.min(min,price[x])", "min", "Math.min(min,price[x])", "Math.min", "Math", "min", "price[x]", "price", "x", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public static int readInt(BufferedReader r) throws Exception{\n\t\treturn Integer.parseInt(r.readLine());\n\t}", "readInt", "{\n\t\treturn Integer.parseInt(r.readLine());\n\t}", "return Integer.parseInt(r.readLine());", "Integer.parseInt(r.readLine())", "Integer.parseInt", "Integer", "r.readLine()", "r.readLine", "r", "BufferedReader r", "r", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = readInt(r);\n\t\tint[] price = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) price[i] = readInt(r);\n\n\t\tint max = -2000000000;\n\t\tint min = price[0];\n\t\tfor(int x = 1 ; x < n ; x++){\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n\t\treturn Integer.parseInt(r.readLine());\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = readInt(r);\n\t\tint[] price = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) price[i] = readInt(r);\n\n\t\tint max = -2000000000;\n\t\tint min = price[0];\n\t\tfor(int x = 1 ; x < n ; x++){\n\t\t\tmax = Math.max(max,price[x] - min);\n\t\t\tmin = Math.min(min,price[x]);\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n\n\tpublic static int readInt(BufferedReader r) throws Exception{\n\t\treturn Integer.parseInt(r.readLine());\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = readInt(r); int[] price = new int[n]; for(int i = 0 ; i < n ; i++) price[i] = readInt(r); int max = -2000000000; int min = price[0]; for(int x = 1 ; x < n ; x++){ max = Math.max(max,price[x] - min); min = Math.min(min,price[x]); } System.out.println(max); } public static int readInt(BufferedReader r) throws Exception{ return Integer.parseInt(r.readLine()); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 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, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 119, 8 ], [ 119, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 11, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 11, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 11, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 78, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 11, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 11, 113 ], [ 113, 114 ], [ 114, 115 ], [ 9, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.io.*;\nimport java.util.*;\n\n\n\npublic class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n \n str = br.readLine();\n int x = Integer.parseInt(str.trim());\n int[] line = new int[x];\n\n for(int i=0;i<x;i++){\n line[i] = Integer.parseInt(br.readLine());\n }\n\n int ans = -1000000000;\n int Ri = line[0];\n for(int i=1;i<x;i++){\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }\n\n System.out.println(ans);\n\n br.close();\n }\n\n \n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n \n str = br.readLine();\n int x = Integer.parseInt(str.trim());\n int[] line = new int[x];\n\n for(int i=0;i<x;i++){\n line[i] = Integer.parseInt(br.readLine());\n }\n\n int ans = -1000000000;\n int Ri = line[0];\n for(int i=1;i<x;i++){\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }\n\n System.out.println(ans);\n\n br.close();\n }\n\n \n}", "Main", "public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n \n str = br.readLine();\n int x = Integer.parseInt(str.trim());\n int[] line = new int[x];\n\n for(int i=0;i<x;i++){\n line[i] = Integer.parseInt(br.readLine());\n }\n\n int ans = -1000000000;\n int Ri = line[0];\n for(int i=1;i<x;i++){\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }\n\n System.out.println(ans);\n\n br.close();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n \n str = br.readLine();\n int x = Integer.parseInt(str.trim());\n int[] line = new int[x];\n\n for(int i=0;i<x;i++){\n line[i] = Integer.parseInt(br.readLine());\n }\n\n int ans = -1000000000;\n int Ri = line[0];\n for(int i=1;i<x;i++){\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }\n\n System.out.println(ans);\n\n br.close();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "int x = Integer.parseInt(str.trim());", "x", "Integer.parseInt(str.trim())", "Integer.parseInt", "Integer", "str.trim()", "str.trim", "str", "int[] line = new int[x];", "line", "new int[x]", "x", "for(int i=0;i<x;i++){\n line[i] = Integer.parseInt(br.readLine());\n }", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n line[i] = Integer.parseInt(br.readLine());\n }", "{\n line[i] = Integer.parseInt(br.readLine());\n }", "line[i] = Integer.parseInt(br.readLine())", "line[i]", "line", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int ans = -1000000000;", "ans", "-1000000000", "1000000000", "int Ri = line[0];", "Ri", "line[0]", "line", "0", "for(int i=1;i<x;i++){\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }", "int i=1;", "int i=1;", "i", "1", "i<x", "i", "x", "i++", "i++", "i", "{\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }", "{\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }", "if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }", "line[i] - Ri >ans", "line[i] - Ri", "line[i]", "line", "i", "Ri", "ans", "{\n ans = line[i] - Ri;\n }", "ans = line[i] - Ri", "ans", "line[i] - Ri", "line[i]", "line", "i", "Ri", "if(Ri > line[i]){\n Ri = line[i];\n }", "Ri > line[i]", "Ri", "line[i]", "line", "i", "{\n Ri = line[i];\n }", "Ri = line[i]", "Ri", "line[i]", "line", "i", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "br.close()", "br.close", "br", "String[] args", "args", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n \n str = br.readLine();\n int x = Integer.parseInt(str.trim());\n int[] line = new int[x];\n\n for(int i=0;i<x;i++){\n line[i] = Integer.parseInt(br.readLine());\n }\n\n int ans = -1000000000;\n int Ri = line[0];\n for(int i=1;i<x;i++){\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }\n\n System.out.println(ans);\n\n br.close();\n }\n\n \n}", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n \n str = br.readLine();\n int x = Integer.parseInt(str.trim());\n int[] line = new int[x];\n\n for(int i=0;i<x;i++){\n line[i] = Integer.parseInt(br.readLine());\n }\n\n int ans = -1000000000;\n int Ri = line[0];\n for(int i=1;i<x;i++){\n if(line[i] - Ri >ans){\n ans = line[i] - Ri;\n }\n if(Ri > line[i]){\n Ri = line[i];\n }\n\n }\n\n System.out.println(ans);\n\n br.close();\n }\n\n \n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; str = br.readLine(); int x = Integer.parseInt(str.trim()); int[] line = new int[x]; for(int i=0;i<x;i++){ line[i] = Integer.parseInt(br.readLine()); } int ans = -1000000000; int Ri = line[0]; for(int i=1;i<x;i++){ if(line[i] - Ri >ans){ ans = line[i] - Ri; } if(Ri > line[i]){ Ri = line[i]; } } System.out.println(ans); br.close(); } }
[ 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 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\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\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int minv = Integer.MAX_VALUE;", "minv", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int maxv = Integer.MIN_VALUE;", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}", "{\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}", "int j = scanner.nextInt();", "j", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;", "maxv < j - minv", "maxv", "j - minv", "j", "minv", "maxv = j - minv", "maxv", "j - minv", "j", "minv", "if (j < minv)\n\t\t\t\tminv = j;", "j < minv", "j", "minv", "minv = j", "minv", "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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\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 scanner = new Scanner(System.in); int n = scanner.nextInt(); int minv = Integer.MAX_VALUE; int maxv = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { int j = scanner.nextInt(); if (maxv < j - minv) maxv = j - minv; if (j < minv) minv = j; } System.out.println(maxv); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 40, 18, 13, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 2, 13, 13, 29, 41, 13, 40, 18, 13, 13, 41, 13, 17, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 14, 2, 13, 13, 30, 9, 41, 13, 8, 2, 13, 2, 13, 17, 13, 2, 13, 17, 11, 1, 41, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 14, 2, 2, 13, 13, 13, 30, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 39, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 29, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 17, 42, 4, 18, 13, 30, 0, 18, 13, 40, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 266, 14 ], [ 266, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 17, 38 ], [ 38, 39 ], [ 38, 40 ], [ 17, 41 ], [ 41, 42 ], [ 41, 43 ], [ 17, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 56, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 17, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 88, 97 ], [ 17, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 17, 104 ], [ 104, 105 ], [ 104, 106 ], [ 17, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 17, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 112, 122 ], [ 122, 123 ], [ 123, 124 ], [ 112, 125 ], [ 126, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 126, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 126, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 140, 146 ], [ 140, 147 ], [ 147, 148 ], [ 147, 149 ], [ 126, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 150, 155 ], [ 155, 156 ], [ 155, 157 ], [ 150, 158 ], [ 158, 159 ], [ 159, 160 ], [ 150, 161 ], [ 162, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 165, 167 ], [ 162, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 168, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 177, 179 ], [ 174, 180 ], [ 180, 181 ], [ 180, 182 ], [ 174, 183 ], [ 183, 184 ], [ 183, 185 ], [ 17, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 15, 192 ], [ 192, 193 ], [ 266, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 199, 201 ], [ 199, 202 ], [ 199, 203 ], [ 199, 204 ], [ 199, 205 ], [ 199, 206 ], [ 199, 207 ], [ 199, 208 ], [ 199, 209 ], [ 199, 210 ], [ 199, 211 ], [ 199, 212 ], [ 199, 213 ], [ 199, 214 ], [ 199, 215 ], [ 199, 216 ], [ 199, 217 ], [ 199, 218 ], [ 199, 219 ], [ 199, 220 ], [ 196, 221 ], [ 221, 222 ], [ 266, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 231, 234 ], [ 234, 235 ], [ 235, 236 ], [ 225, 237 ], [ 237, 238 ], [ 237, 239 ], [ 225, 241 ], [ 241, 242 ], [ 241, 243 ], [ 225, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 244, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 249, 254 ], [ 254, 255 ], [ 255, 256 ], [ 254, 257 ], [ 257, 258 ], [ 258, 259 ], [ 225, 260 ], [ 260, 261 ], [ 261, 262 ], [ 225, 263 ], [ 263, 264 ], [ 0, 265 ], [ 265, 266 ], [ 265, 267 ] ]
[ "import java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Scanner;\n\n/**\n * Created by martin-d28jp-love on 15/04/01.\n */\npublic class Main {\n\n public static void main(String[] args) {\n int[] input = input();\n// int[] input = mockuop();\n\n int inputLength = input.length;\n int minValue = Integer.MAX_VALUE;\n int maxValue = -Integer.MAX_VALUE;\n int minIndex = 0;\n int maxIndex = 0;\n for (int i=0; i < inputLength; i++) {\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }\n if (minIndex < maxIndex) {\n System.out.println(maxValue - minValue);\n return;\n }\n\n int maxSubtruction = -Integer.MAX_VALUE;\n int maxSubtructionIndex = 0;\n int beforeSubtructionRi = Integer.MAX_VALUE;\n for (int i = 0; i < inputLength - 1; i++) {\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }\n System.out.println(maxSubtruction);\n }\n\n public static int[] mockuop() {\n int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28};\n return input;\n }\n\n public static int[] input() {\n Scanner in = new Scanner(System.in);\n int size = Integer.valueOf(in.nextLine());\n\n int[] input = new int[size];\n int i = 0;\n while(in.hasNext()) {\n input[i++] = Integer.valueOf(in.nextLine());\n }\n in.close();\n return input;\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n int[] input = input();\n// int[] input = mockuop();\n\n int inputLength = input.length;\n int minValue = Integer.MAX_VALUE;\n int maxValue = -Integer.MAX_VALUE;\n int minIndex = 0;\n int maxIndex = 0;\n for (int i=0; i < inputLength; i++) {\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }\n if (minIndex < maxIndex) {\n System.out.println(maxValue - minValue);\n return;\n }\n\n int maxSubtruction = -Integer.MAX_VALUE;\n int maxSubtructionIndex = 0;\n int beforeSubtructionRi = Integer.MAX_VALUE;\n for (int i = 0; i < inputLength - 1; i++) {\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }\n System.out.println(maxSubtruction);\n }\n\n public static int[] mockuop() {\n int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28};\n return input;\n }\n\n public static int[] input() {\n Scanner in = new Scanner(System.in);\n int size = Integer.valueOf(in.nextLine());\n\n int[] input = new int[size];\n int i = 0;\n while(in.hasNext()) {\n input[i++] = Integer.valueOf(in.nextLine());\n }\n in.close();\n return input;\n }\n}", "Main", "public static void main(String[] args) {\n int[] input = input();\n// int[] input = mockuop();\n\n int inputLength = input.length;\n int minValue = Integer.MAX_VALUE;\n int maxValue = -Integer.MAX_VALUE;\n int minIndex = 0;\n int maxIndex = 0;\n for (int i=0; i < inputLength; i++) {\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }\n if (minIndex < maxIndex) {\n System.out.println(maxValue - minValue);\n return;\n }\n\n int maxSubtruction = -Integer.MAX_VALUE;\n int maxSubtructionIndex = 0;\n int beforeSubtructionRi = Integer.MAX_VALUE;\n for (int i = 0; i < inputLength - 1; i++) {\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }\n System.out.println(maxSubtruction);\n }", "main", "{\n int[] input = input();\n// int[] input = mockuop();\n\n int inputLength = input.length;\n int minValue = Integer.MAX_VALUE;\n int maxValue = -Integer.MAX_VALUE;\n int minIndex = 0;\n int maxIndex = 0;\n for (int i=0; i < inputLength; i++) {\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }\n if (minIndex < maxIndex) {\n System.out.println(maxValue - minValue);\n return;\n }\n\n int maxSubtruction = -Integer.MAX_VALUE;\n int maxSubtructionIndex = 0;\n int beforeSubtructionRi = Integer.MAX_VALUE;\n for (int i = 0; i < inputLength - 1; i++) {\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }\n System.out.println(maxSubtruction);\n }", "int[] input = input();", "input", "input()", "input", "int inputLength = input.length;", "inputLength", "input.length", "input", "input.length", "int minValue = Integer.MAX_VALUE;", "minValue", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int maxValue = -Integer.MAX_VALUE;", "maxValue", "-Integer.MAX_VALUE", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int minIndex = 0;", "minIndex", "0", "int maxIndex = 0;", "maxIndex", "0", "for (int i=0; i < inputLength; i++) {\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i < inputLength", "i", "inputLength", "i++", "i++", "i", "{\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }", "{\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }", "int Ri = input[i];", "Ri", "input[i]", "input", "i", "if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }", "Ri < minValue", "Ri", "minValue", "{\n minValue = Ri;\n minIndex = i;\n }", "minValue = Ri", "minValue", "Ri", "minIndex = i", "minIndex", "i", "if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }", "Ri > maxValue", "Ri", "maxValue", "{\n maxValue = Ri;\n maxIndex = i;\n }", "maxValue = Ri", "maxValue", "Ri", "maxIndex = i", "maxIndex", "i", "if (minIndex < maxIndex) {\n System.out.println(maxValue - minValue);\n return;\n }", "minIndex < maxIndex", "minIndex", "maxIndex", "{\n System.out.println(maxValue - minValue);\n return;\n }", "System.out.println(maxValue - minValue)", "System.out.println", "System.out", "System", "System.out", "maxValue - minValue", "maxValue", "minValue", "return;", "int maxSubtruction = -Integer.MAX_VALUE;", "maxSubtruction", "-Integer.MAX_VALUE", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int maxSubtructionIndex = 0;", "maxSubtructionIndex", "0", "int beforeSubtructionRi = Integer.MAX_VALUE;", "beforeSubtructionRi", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "for (int i = 0; i < inputLength - 1; i++) {\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < inputLength - 1", "i", "inputLength - 1", "inputLength", "1", "i++", "i++", "i", "{\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }", "{\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }", "int Ri = input[i];", "Ri", "input[i]", "input", "i", "if (beforeSubtructionRi < Ri) {\n continue;\n }", "beforeSubtructionRi < Ri", "beforeSubtructionRi", "Ri", "{\n continue;\n }", "continue;", "int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;", "start", "maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1", "maxSubtructionIndex > i + 1", "maxSubtructionIndex", "i + 1", "i", "1", "maxSubtructionIndex", "i + 1", "i", "1", "for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }", "int j = start;", "int j = start;", "j", "start", "j < inputLength", "j", "inputLength", "j++", "j++", "j", "{\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }", "{\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }", "int Rj = input[j];", "Rj", "input[j]", "input", "j", "if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }", "Rj - Ri > maxSubtruction", "Rj - Ri", "Rj", "Ri", "maxSubtruction", "{\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }", "maxSubtruction = Rj - Ri", "maxSubtruction", "Rj - Ri", "Rj", "Ri", "maxSubtructionIndex = j", "maxSubtructionIndex", "j", "beforeSubtructionRi = Ri", "beforeSubtructionRi", "Ri", "System.out.println(maxSubtruction)", "System.out.println", "System.out", "System", "System.out", "maxSubtruction", "String[] args", "args", "public static int[] mockuop() {\n int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28};\n return input;\n }", "mockuop", "{\n int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28};\n return input;\n }", "int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28};", "input", "{20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28}", "20", "100", "99", "95", "86", "85", "76", "75", "71", "70", "61", "52", "48", "47", "43", "42", "38", "37", "33", "32", "28", "return input;", "input", "public static int[] input() {\n Scanner in = new Scanner(System.in);\n int size = Integer.valueOf(in.nextLine());\n\n int[] input = new int[size];\n int i = 0;\n while(in.hasNext()) {\n input[i++] = Integer.valueOf(in.nextLine());\n }\n in.close();\n return input;\n }", "input", "{\n Scanner in = new Scanner(System.in);\n int size = Integer.valueOf(in.nextLine());\n\n int[] input = new int[size];\n int i = 0;\n while(in.hasNext()) {\n input[i++] = Integer.valueOf(in.nextLine());\n }\n in.close();\n return input;\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int size = Integer.valueOf(in.nextLine());", "size", "Integer.valueOf(in.nextLine())", "Integer.valueOf", "Integer", "in.nextLine()", "in.nextLine", "in", "int[] input = new int[size];", "input", "new int[size]", "size", "int i = 0;", "i", "0", "while(in.hasNext()) {\n input[i++] = Integer.valueOf(in.nextLine());\n }", "in.hasNext()", "in.hasNext", "in", "{\n input[i++] = Integer.valueOf(in.nextLine());\n }", "input[i++] = Integer.valueOf(in.nextLine())", "input[i++]", "input", "i++", "i", "Integer.valueOf(in.nextLine())", "Integer.valueOf", "Integer", "in.nextLine()", "in.nextLine", "in", "in.close()", "in.close", "in", "return input;", "input", "public class Main {\n\n public static void main(String[] args) {\n int[] input = input();\n// int[] input = mockuop();\n\n int inputLength = input.length;\n int minValue = Integer.MAX_VALUE;\n int maxValue = -Integer.MAX_VALUE;\n int minIndex = 0;\n int maxIndex = 0;\n for (int i=0; i < inputLength; i++) {\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }\n if (minIndex < maxIndex) {\n System.out.println(maxValue - minValue);\n return;\n }\n\n int maxSubtruction = -Integer.MAX_VALUE;\n int maxSubtructionIndex = 0;\n int beforeSubtructionRi = Integer.MAX_VALUE;\n for (int i = 0; i < inputLength - 1; i++) {\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }\n System.out.println(maxSubtruction);\n }\n\n public static int[] mockuop() {\n int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28};\n return input;\n }\n\n public static int[] input() {\n Scanner in = new Scanner(System.in);\n int size = Integer.valueOf(in.nextLine());\n\n int[] input = new int[size];\n int i = 0;\n while(in.hasNext()) {\n input[i++] = Integer.valueOf(in.nextLine());\n }\n in.close();\n return input;\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n int[] input = input();\n// int[] input = mockuop();\n\n int inputLength = input.length;\n int minValue = Integer.MAX_VALUE;\n int maxValue = -Integer.MAX_VALUE;\n int minIndex = 0;\n int maxIndex = 0;\n for (int i=0; i < inputLength; i++) {\n int Ri = input[i];\n if (Ri < minValue) {\n minValue = Ri;\n minIndex = i;\n }\n if (Ri > maxValue) {\n maxValue = Ri;\n maxIndex = i;\n }\n }\n if (minIndex < maxIndex) {\n System.out.println(maxValue - minValue);\n return;\n }\n\n int maxSubtruction = -Integer.MAX_VALUE;\n int maxSubtructionIndex = 0;\n int beforeSubtructionRi = Integer.MAX_VALUE;\n for (int i = 0; i < inputLength - 1; i++) {\n int Ri = input[i];\n if (beforeSubtructionRi < Ri) {\n continue;\n }\n int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1;\n for (int j = start; j < inputLength; j++) {\n int Rj = input[j];\n if (Rj - Ri > maxSubtruction) {\n maxSubtruction = Rj - Ri;\n maxSubtructionIndex = j;\n beforeSubtructionRi = Ri;\n }\n }\n }\n System.out.println(maxSubtruction);\n }\n\n public static int[] mockuop() {\n int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28};\n return input;\n }\n\n public static int[] input() {\n Scanner in = new Scanner(System.in);\n int size = Integer.valueOf(in.nextLine());\n\n int[] input = new int[size];\n int i = 0;\n while(in.hasNext()) {\n input[i++] = Integer.valueOf(in.nextLine());\n }\n in.close();\n return input;\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; /** * Created by martin-d28jp-love on 15/04/01. */ public class Main { public static void main(String[] args) { int[] input = input(); // int[] input = mockuop(); int inputLength = input.length; int minValue = Integer.MAX_VALUE; int maxValue = -Integer.MAX_VALUE; int minIndex = 0; int maxIndex = 0; for (int i=0; i < inputLength; i++) { int Ri = input[i]; if (Ri < minValue) { minValue = Ri; minIndex = i; } if (Ri > maxValue) { maxValue = Ri; maxIndex = i; } } if (minIndex < maxIndex) { System.out.println(maxValue - minValue); return; } int maxSubtruction = -Integer.MAX_VALUE; int maxSubtructionIndex = 0; int beforeSubtructionRi = Integer.MAX_VALUE; for (int i = 0; i < inputLength - 1; i++) { int Ri = input[i]; if (beforeSubtructionRi < Ri) { continue; } int start = maxSubtructionIndex > i + 1 ? maxSubtructionIndex : i + 1; for (int j = start; j < inputLength; j++) { int Rj = input[j]; if (Rj - Ri > maxSubtruction) { maxSubtruction = Rj - Ri; maxSubtructionIndex = j; beforeSubtructionRi = Ri; } } } System.out.println(maxSubtruction); } public static int[] mockuop() { int input[] = {20,100,99,95,86,85,76,75,71,70,61,52,48,47,43,42,38,37,33,32,28}; return input; } public static int[] input() { Scanner in = new Scanner(System.in); int size = Integer.valueOf(in.nextLine()); int[] input = new int[size]; int i = 0; while(in.hasNext()) { input[i++] = Integer.valueOf(in.nextLine()); } in.close(); return input; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 13, 4, 18, 13, 41, 13, 40, 4, 18, 13, 17, 17, 41, 13, 4, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 92, 14 ], [ 92, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 33, 37 ], [ 17, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 17, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 59, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 59, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 17, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 15, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nimport static java.lang.Integer.parseInt;\n\n/**\n * Getting Started - Maximum Profit\n */\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\n\t\tint n = parseInt(br.readLine());\n\n\t\tint max = (int) -Math.pow(10, 9);\n\t\tint min = parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t} //end main\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import static java.lang.Integer.parseInt;", "import static java.lang.Integer.parseInt;", "import static java.lang.Integer.parseInt;", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\n\t\tint n = parseInt(br.readLine());\n\n\t\tint max = (int) -Math.pow(10, 9);\n\t\tint min = parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t} //end main\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\n\t\tint n = parseInt(br.readLine());\n\n\t\tint max = (int) -Math.pow(10, 9);\n\t\tint min = parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t} //end main", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\n\t\tint n = parseInt(br.readLine());\n\n\t\tint max = (int) -Math.pow(10, 9);\n\t\tint min = parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "int n = parseInt(br.readLine());", "n", "parseInt(br.readLine())", "parseInt", "br.readLine()", "br.readLine", "br", "int max = (int) -Math.pow(10, 9);", "max", "(int) -Math.pow(10, 9)", "Math.pow(10, 9)", "Math.pow", "Math", "10", "9", "int min = parseInt(br.readLine());", "min", "parseInt(br.readLine())", "parseInt", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < n - 1; i++) {\n\t\t\tint r = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\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\tint r = parseInt(br.readLine());\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 = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}", "int r = parseInt(br.readLine());", "r", "parseInt(br.readLine())", "parseInt", "br.readLine()", "br.readLine", "br", "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\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\n\t\tint n = parseInt(br.readLine());\n\n\t\tint max = (int) -Math.pow(10, 9);\n\t\tint min = parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t} //end main\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\n\t\tint n = parseInt(br.readLine());\n\n\t\tint max = (int) -Math.pow(10, 9);\n\t\tint min = parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = parseInt(br.readLine());\n\t\t\tmax = Math.max(max, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t} //end main\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.Integer.parseInt; /** * Getting Started - Maximum Profit */ public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; int n = parseInt(br.readLine()); int max = (int) -Math.pow(10, 9); int min = parseInt(br.readLine()); for (int i = 0; i < n - 1; i++) { int r = parseInt(br.readLine()); max = Math.max(max, r - min); min = Math.min(min, r); } System.out.println(max); } //end main }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 18, 13, 13, 41, 13, 4, 18, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 8, 2, 13, 2, 13, 13, 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 ], [ 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 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 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 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 52, 58 ], [ 52, 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 public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int minRate;\n int maxProfit = Integer.MIN_VALUE;\n int r = in.nextInt();\n minRate = r;\n\n for (int i = 1; i < n; i++) {\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }\n System.out.println(maxProfit);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int minRate;\n int maxProfit = Integer.MIN_VALUE;\n int r = in.nextInt();\n minRate = r;\n\n for (int i = 1; i < n; i++) {\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }\n System.out.println(maxProfit);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int minRate;\n int maxProfit = Integer.MIN_VALUE;\n int r = in.nextInt();\n minRate = r;\n\n for (int i = 1; i < n; i++) {\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }\n System.out.println(maxProfit);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int minRate;\n int maxProfit = Integer.MIN_VALUE;\n int r = in.nextInt();\n minRate = r;\n\n for (int i = 1; i < n; i++) {\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }\n System.out.println(maxProfit);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int minRate;", "minRate", "int maxProfit = Integer.MIN_VALUE;", "maxProfit", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int r = in.nextInt();", "r", "in.nextInt()", "in.nextInt", "in", "minRate = r", "minRate", "r", "for (int i = 1; i < n; i++) {\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }", "{\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }", "r = in.nextInt()", "r", "in.nextInt()", "in.nextInt", "in", "maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate", "maxProfit", "(maxProfit > r - minRate)? maxProfit : r - minRate", "(maxProfit > r - minRate)", "maxProfit", "r - minRate", "r", "minRate", "maxProfit", "r - minRate", "r", "minRate", "if(r < minRate) minRate = r;", "r < minRate", "r", "minRate", "minRate = r", "minRate", "r", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int minRate;\n int maxProfit = Integer.MIN_VALUE;\n int r = in.nextInt();\n minRate = r;\n\n for (int i = 1; i < n; i++) {\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }\n System.out.println(maxProfit);\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int minRate;\n int maxProfit = Integer.MIN_VALUE;\n int r = in.nextInt();\n minRate = r;\n\n for (int i = 1; i < n; i++) {\n r = in.nextInt();\n maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate;\n if(r < minRate) minRate = r;\n }\n System.out.println(maxProfit);\n }\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 minRate; int maxProfit = Integer.MIN_VALUE; int r = in.nextInt(); minRate = r; for (int i = 1; i < n; i++) { r = in.nextInt(); maxProfit = (maxProfit > r - minRate)? maxProfit : r - minRate; if(r < minRate) minRate = r; } System.out.println(maxProfit); } }
[ 7, 15, 13, 17, 15, 13, 17, 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 ], [ 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 ], [ 20, 21 ], [ 21, 22 ], [ 20, 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 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 17, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 17, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 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 ], [ 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 ], [ 17, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 15, 101 ], [ 101, 102 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\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 \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(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 /*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", "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 \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(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 /*reader.close();*/\n/* } catch (Exception e) {\n e.printStackTrace();\n }*/\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 \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(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 /*reader.close();*/\n/* } catch (Exception e) {\n e.printStackTrace();\n }*/\n }", "main", "{\n \t int n = Integer.parseInt(br.readLine());\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(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 /*reader.close();*/\n/* } catch (Exception e) {\n e.printStackTrace();\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 \t\t// R[i]=Integer.parseInt(sc.next());\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(sc.next());\n \t\t R[i]=Integer.parseInt(br.readLine());\n \t}", "{\n \t\t// R[i]=Integer.parseInt(sc.next());\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.BufferedReader; import java.io.InputStreamReader; 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()); //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(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); /*reader.close();*/ /* } catch (Exception e) { e.printStackTrace(); }*/ } }
[ 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, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 87, 5 ], [ 87, 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 ], [ 87, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 78, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Scanner;\n\n// ALDS1_1_D\npublic class Main {\n\tvoid run() {\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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run() {\n\t\tScanner 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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "void run() {\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}", "run", "{\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", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run() {\n\t\tScanner 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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run() {\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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; // ALDS1_1_D public class Main { void run() { 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); } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 0, 13, 20, 13, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 13, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 23, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 23, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 42, 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 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 42, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 42, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 42, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 89, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 101, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 42, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint MAX = 200000;\n\t\tint n;\n\t\tint[] R;\n\t\t\n\t\tR = new int[MAX];\n\t\t\n\t\tBufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}\n\t}\n}\n\t\t", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint MAX = 200000;\n\t\tint n;\n\t\tint[] R;\n\t\t\n\t\tR = new int[MAX];\n\t\t\n\t\tBufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tint MAX = 200000;\n\t\tint n;\n\t\tint[] R;\n\t\t\n\t\tR = new int[MAX];\n\t\t\n\t\tBufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}\n\t}", "main", "{\n\t\tint MAX = 200000;\n\t\tint n;\n\t\tint[] R;\n\t\t\n\t\tR = new int[MAX];\n\t\t\n\t\tBufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}\n\t}", "int MAX = 200000;", "MAX", "200000", "int n;", "n", "int[] R;", "R", "R = new int[MAX]", "R", "new int[MAX]", "MAX", "BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));", "reader", "new BufferedReader (new InputStreamReader(System.in))", "try{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}", "catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}", "NumberFormatException e", "{\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}", "System.out.println(\"??°????????\\?????????????????????\")", "System.out.println", "System.out", "System", "System.out", "\"??°????????\\?????????????????????\"", "{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t}", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "n = Integer.parseInt(line)", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "for(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}", "{\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}", "line =reader.readLine()", "line", "reader.readLine()", "reader.readLine", "reader", "R[i] = Integer.parseInt(line)", "R[i]", "R", "i", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "int maxv = -2000000000;", "maxv", "-2000000000", "2000000000", "int minv = R[0];", "minv", "R[0]", "R", "0", "for ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}", "{\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\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", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint MAX = 200000;\n\t\tint n;\n\t\tint[] R;\n\t\t\n\t\tR = new int[MAX];\n\t\t\n\t\tBufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint MAX = 200000;\n\t\tint n;\n\t\tint[] R;\n\t\t\n\t\tR = new int[MAX];\n\t\t\n\t\tBufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\t\n\t\t\tn = Integer.parseInt(line);\n\t\t\tfor(int i = 0; i < n; i++ ) {\n\t\t\t\tline =reader.readLine();\n\t\t\t\tR[i] = Integer.parseInt(line);\n\t\t\t}\n\t\t\t\n\t\t\tint maxv = -2000000000;\n\t\t\tint minv = R[0];\n\t\t\t\n\t\t\tfor ( int i = 1; i < n ; i++) {\n\t\t\t\tmaxv = Math.max(maxv, R[i] -minv);\n\t\t\t\tminv = Math.min(minv, R[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(maxv);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"??°????????\\?????????????????????\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) { int MAX = 200000; int n; int[] R; R = new int[MAX]; BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); try{ String line = reader.readLine(); n = Integer.parseInt(line); for(int i = 0; i < n; i++ ) { line =reader.readLine(); R[i] = Integer.parseInt(line); } 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); } catch (IOException e) { System.out.println(e); } catch (NumberFormatException e) { System.out.println("??°????????\?????????????????????"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 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, 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 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 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 ], [ 0, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t int n = scan.nextInt();\n\t int[] r = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t \n\t int min = r[0];\n\t\tint margin = r[1] - r[0];\n\t\tfor (int i = 1; i < r.length; i++) {\n\t\t\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(margin);\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 scan = new Scanner(System.in);\n\t int n = scan.nextInt();\n\t int[] r = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t \n\t int min = r[0];\n\t\tint margin = r[1] - r[0];\n\t\tfor (int i = 1; i < r.length; i++) {\n\t\t\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(margin);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t int n = scan.nextInt();\n\t int[] r = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t \n\t int min = r[0];\n\t\tint margin = r[1] - r[0];\n\t\tfor (int i = 1; i < r.length; i++) {\n\t\t\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(margin);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t int n = scan.nextInt();\n\t int[] r = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t \n\t int min = r[0];\n\t\tint margin = r[1] - r[0];\n\t\tfor (int i = 1; i < r.length; i++) {\n\t\t\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(margin);\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", "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 min = r[0];", "min", "r[0]", "r", "0", "int margin = r[1] - r[0];", "margin", "r[1] - r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "for (int i = 1; i < r.length; i++) {\n\t\t\tmargin = Math.max(margin, 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\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "{\n\t\t\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}", "margin = Math.max(margin, r[i] - min)", "margin", "Math.max(margin, r[i] - min)", "Math.max", "Math", "margin", "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(margin)", "System.out.println", "System.out", "System", "System.out", "margin", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t int n = scan.nextInt();\n\t int[] r = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t \n\t int min = r[0];\n\t\tint margin = r[1] - r[0];\n\t\tfor (int i = 1; i < r.length; i++) {\n\t\t\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(margin);\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t int n = scan.nextInt();\n\t int[] r = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t\t\tr[i] = scan.nextInt();\n\t\t}\n\t \n\t int min = r[0];\n\t\tint margin = r[1] - r[0];\n\t\tfor (int i = 1; i < r.length; i++) {\n\t\t\tmargin = Math.max(margin, r[i] - min);\n\t\t\tmin = Math.min(min, r[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(margin);\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[] r = new int[n]; for (int i = 0; i < n; i++) { r[i] = scan.nextInt(); } int min = r[0]; int margin = r[1] - r[0]; for (int i = 1; i < r.length; i++) { margin = Math.max(margin, r[i] - min); min = Math.min(min, r[i]); } System.out.println(margin); } }
[ 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, 13, 41, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 41, 13, 20, 2, 2, 13, 13, 17, 4, 18, 13, 13, 2, 13, 17, 13, 17, 2, 2, 13, 13, 17, 4, 18, 13, 13, 0, 13, 18, 13, 2, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 2, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 134, 8 ], [ 134, 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 ], [ 51, 53 ], [ 11, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 54, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 80, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 75, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 84, 91 ], [ 84, 92 ], [ 84, 93 ], [ 94, 94 ], [ 94, 95 ], [ 94, 96 ], [ 94, 97 ], [ 75, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 75, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 68, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 11, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 11, 128 ], [ 128, 129 ], [ 129, 130 ], [ 9, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint R[] = new int[n];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\n\t\tint ans = Integer.MIN_VALUE;\n\t\tint max = R[0];\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}\n\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint R[] = new int[n];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\n\t\tint ans = Integer.MIN_VALUE;\n\t\tint max = R[0];\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint R[] = new int[n];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\n\t\tint ans = Integer.MIN_VALUE;\n\t\tint max = R[0];\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint R[] = new int[n];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\n\t\tint ans = Integer.MIN_VALUE;\n\t\tint max = R[0];\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t\tscan.close();\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", "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 ans = Integer.MIN_VALUE;", "ans", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int max = R[0];", "max", "R[0]", "R", "0", "for (int i = 0; i < n - 1; i++) {\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\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 (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}", "{\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}", "if (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}", "max == R[i]", "max", "R[i]", "R", "i", "{\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}", "int array[] = new int[n - i - 1];", "array", "new int[n - i - 1]", "n - i - 1", "n - i - 1", "n", "i", "1", "System.arraycopy(R, i + 1, array, 0, n - i - 1)", "System.arraycopy", "System", "R", "i + 1", "i", "1", "array", "0", "n - i - 1", "n - i - 1", "n", "i", "1", "Arrays.sort(array)", "Arrays.sort", "Arrays", "array", "max = array[array.length-1]", "max", "array[array.length-1]", "array", "array.length-1", "array.length", "array", "array.length", "1", "ans = Math.max(ans, max - R[i])", "ans", "Math.max(ans, max - R[i])", "Math.max", "Math", "ans", "max - R[i]", "max", "R[i]", "R", "i", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint R[] = new int[n];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\n\t\tint ans = Integer.MIN_VALUE;\n\t\tint max = R[0];\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint R[] = new int[n];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = scan.nextInt();\n\t\t}\n\n\t\tint ans = Integer.MIN_VALUE;\n\t\tint max = R[0];\n\t\t\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tif (max == R[i]) {\n\t\t\t\tint array[] = new int[n - i - 1];\n\t\t\t\tSystem.arraycopy(R, i + 1, array, 0, n - i - 1);\n\t\t\t\tArrays.sort(array);\n\t\t\t\tmax = array[array.length-1];\n\t\t\t}\n\t\t\tans = Math.max(ans, max - R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}\n\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int R[] = new int[n]; for (int i = 0; i < n; i++) { R[i] = scan.nextInt(); } int ans = Integer.MIN_VALUE; int max = R[0]; for (int i = 0; i < n - 1; i++) { if (max == R[i]) { int array[] = new int[n - i - 1]; System.arraycopy(R, i + 1, array, 0, n - i - 1); Arrays.sort(array); max = array[array.length-1]; } ans = Math.max(ans, max - R[i]); } System.out.println(ans); scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 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, 2, 13, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 171, 14 ], [ 171, 15 ], [ 15, 16 ], [ 15, 17 ], [ 171, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 20, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 48, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 20, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 18, 80 ], [ 80, 81 ], [ 171, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 82, 86 ], [ 86, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 82, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 97, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 107, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 96, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 82, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 82, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 82, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 147, 148 ], [ 82, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 155, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 151, 168 ], [ 168, 169 ], [ 0, 170 ], [ 170, 171 ], [ 170, 172 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\t\t\n\t\tint ans = Integer.MIN_VALUE;\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\t\t\n\t\tint ans = Integer.MIN_VALUE;\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main", "private static FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "public static void main(String[] args) {\n\t\tint n = sc.nextInt();\t\t\n\t\tint ans = Integer.MIN_VALUE;\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tint n = sc.nextInt();\t\t\n\t\tint ans = Integer.MIN_VALUE;\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "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 = Integer.MAX_VALUE;", "min", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "for(int i=1; i<=n; i++){\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}", "{\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}", "int R = sc.nextInt();", "R", "sc.nextInt()", "sc.nextInt", "sc", "if(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}", "R - min > ans", "R - min", "R", "min", "ans", "{\n\t\t\t\tans = R - min;\n\t\t\t}", "ans = R - min", "ans", "R - min", "R", "min", "if(R < min){\n\t\t\t\tmin = R;\n\t\t\t}", "R < min", "R", "min", "{\n\t\t\t\tmin = R;\n\t\t\t}", "min = R", "min", "R", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastScanner", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\t\t\n\t\tint ans = Integer.MIN_VALUE;\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "public class Main {\n\tprivate static FastScanner sc = new FastScanner();\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\t\t\n\t\tint ans = Integer.MIN_VALUE;\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int i=1; i<=n; i++){\n\t\t\tint R = sc.nextInt();\n\t\t\t\n\t\t\tif(R - min > ans){\n\t\t\t\tans = R - min;\n\t\t\t}\n\t\t\t\n\t\t\tif(R < min){\n\t\t\t\tmin = R;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { private static FastScanner sc = new FastScanner(); public static void main(String[] args) { int n = sc.nextInt(); int ans = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; for(int i=1; i<=n; i++){ int R = sc.nextInt(); if(R - min > ans){ ans = R - min; } if(R < min){ min = R; } } System.out.println(ans); } static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 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, 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 ], [ 111, 5 ], [ 111, 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 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 73, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 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\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tint[] r = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}\n\tint max = r[1] - r[0];\n\tint min = r[0];\n\tfor (int i = 1; i < n; i++) {\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}\n\tSystem.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tint[] r = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}\n\tint max = r[1] - r[0];\n\tint min = r[0];\n\tfor (int i = 1; i < n; i++) {\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}\n\tSystem.out.println(max);\n }\n}", "Main", "public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tint[] r = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}\n\tint max = r[1] - r[0];\n\tint min = r[0];\n\tfor (int i = 1; i < n; i++) {\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}\n\tSystem.out.println(max);\n }", "main", "{\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tint[] r = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}\n\tint max = r[1] - r[0];\n\tint min = r[0];\n\tfor (int i = 1; i < n; i++) {\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}\n\tSystem.out.println(max);\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[] r = new int[n];", "r", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}", "{\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}", "r[i] = Integer.parseInt(scan.nextLine())", "r[i]", "r", "i", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "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\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}", "{\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}", "if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }", "max < r[i] - min", "max", "r[i] - min", "r[i]", "r", "i", "min", "{\n\t\tmax = r[i] - min;\n\t }", "max = r[i] - min", "max", "r[i] - min", "r[i]", "r", "i", "min", "if (min > r[i]){\n\t\tmin = r[i];\n\t }", "min > r[i]", "min", "r[i]", "r", "i", "{\n\t\tmin = r[i];\n\t }", "min = r[i]", "min", "r[i]", "r", "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\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tint[] r = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}\n\tint max = r[1] - r[0];\n\tint min = r[0];\n\tfor (int i = 1; i < n; i++) {\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}\n\tSystem.out.println(max);\n }\n}", "public class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tint[] r = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t r[i] = Integer.parseInt(scan.nextLine());\n\t}\n\tint max = r[1] - r[0];\n\tint min = r[0];\n\tfor (int i = 1; i < n; i++) {\n\t if (max < r[i] - min){\n\t\tmax = r[i] - min;\n\t }\n\t if (min > r[i]){\n\t\tmin = r[i];\n\t }\n\t}\n\tSystem.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 n = Integer.parseInt(scan.nextLine()); int[] r = new int[n]; for (int i = 0; i < n; i++) { r[i] = Integer.parseInt(scan.nextLine()); } int max = r[1] - r[0]; int min = r[0]; for (int i = 1; i < n; i++) { if (max < r[i] - min){ max = r[i] - min; } if (min > r[i]){ min = r[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, 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, 14, 2, 18, 13, 13, 13, 30, 0, 13, 18, 13, 13, 9, 14, 2, 2, 18, 13, 13, 13, 13, 30, 0, 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 ], [ 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 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 74, 80 ], [ 67, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 6, 103 ], [ 103, 104 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main (String[] args) {\n final Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n int[] numbers = new int[length];\n\n for (int i = 0; i < length; i++) {\n numbers[i] = sc.nextInt();\n }\n\n int max = numbers[1] - numbers[0];\n int min = numbers[0];\n for (int i = 1; i < length; i++) {\n if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }\n\n if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }\n }\n\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main (String[] args) {\n final Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n int[] numbers = new int[length];\n\n for (int i = 0; i < length; i++) {\n numbers[i] = sc.nextInt();\n }\n\n int max = numbers[1] - numbers[0];\n int min = numbers[0];\n for (int i = 1; i < length; i++) {\n if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }\n\n if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }\n }\n\n System.out.println(max);\n }\n}", "Main", "public static void main (String[] args) {\n final Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n int[] numbers = new int[length];\n\n for (int i = 0; i < length; i++) {\n numbers[i] = sc.nextInt();\n }\n\n int max = numbers[1] - numbers[0];\n int min = numbers[0];\n for (int i = 1; i < length; i++) {\n if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }\n\n if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }\n }\n\n System.out.println(max);\n }", "main", "{\n final Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n int[] numbers = new int[length];\n\n for (int i = 0; i < length; i++) {\n numbers[i] = sc.nextInt();\n }\n\n int max = numbers[1] - numbers[0];\n int min = numbers[0];\n for (int i = 1; i < length; i++) {\n if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }\n\n if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }\n }\n\n System.out.println(max);\n }", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int length = sc.nextInt();", "length", "sc.nextInt()", "sc.nextInt", "sc", "int[] numbers = new int[length];", "numbers", "new int[length]", "length", "for (int i = 0; i < length; i++) {\n numbers[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < length", "i", "length", "i++", "i++", "i", "{\n numbers[i] = sc.nextInt();\n }", "{\n numbers[i] = sc.nextInt();\n }", "numbers[i] = sc.nextInt()", "numbers[i]", "numbers", "i", "sc.nextInt()", "sc.nextInt", "sc", "int max = numbers[1] - numbers[0];", "max", "numbers[1] - numbers[0]", "numbers[1]", "numbers", "1", "numbers[0]", "numbers", "0", "int min = numbers[0];", "min", "numbers[0]", "numbers", "0", "for (int i = 1; i < length; i++) {\n if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }\n\n if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < length", "i", "length", "i++", "i++", "i", "{\n if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }\n\n if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }\n }", "{\n if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }\n\n if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }\n }", "if (numbers[i] < min) {\n min = numbers[i];\n continue;\n }", "numbers[i] < min", "numbers[i]", "numbers", "i", "min", "{\n min = numbers[i];\n continue;\n }", "min = numbers[i]", "min", "numbers[i]", "numbers", "i", "continue;", "if (numbers[i] - min > max) {\n max = numbers[i] - min;\n }", "numbers[i] - min > max", "numbers[i] - min", "numbers[i]", "numbers", "i", "min", "max", "{\n max = numbers[i] - min;\n }", "max = numbers[i] - min", "max", "numbers[i] - min", "numbers[i]", "numbers", "i", "min", "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) { final Scanner sc = new Scanner(System.in); int length = sc.nextInt(); int[] numbers = new int[length]; for (int i = 0; i < length; i++) { numbers[i] = sc.nextInt(); } int max = numbers[1] - numbers[0]; int min = numbers[0]; for (int i = 1; i < length; i++) { if (numbers[i] < min) { min = numbers[i]; continue; } if (numbers[i] - min > max) { max = numbers[i] - min; } } 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, 4, 18, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 17, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 84, 8 ], [ 84, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 11, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 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 ], [ 11, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 9, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????????????????°?????????\n int num =Integer.parseInt(br.readLine());\n //??????????°???? ???????????????????¨??????????\n int min = Integer.parseInt(br.readLine());\n //?????§?????? ????????????????????????????????????????????§??????????????????????????????????¨??????????\n int maxProfit = -1000000000;\n int currentNum = 0;\n for(int i = 1 ; i < num ; i++){\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }\n \n System.out.println(maxProfit);\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????????????????°?????????\n int num =Integer.parseInt(br.readLine());\n //??????????°???? ???????????????????¨??????????\n int min = Integer.parseInt(br.readLine());\n //?????§?????? ????????????????????????????????????????????§??????????????????????????????????¨??????????\n int maxProfit = -1000000000;\n int currentNum = 0;\n for(int i = 1 ; i < num ; i++){\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }\n \n System.out.println(maxProfit);\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????????????????°?????????\n int num =Integer.parseInt(br.readLine());\n //??????????°???? ???????????????????¨??????????\n int min = Integer.parseInt(br.readLine());\n //?????§?????? ????????????????????????????????????????????§??????????????????????????????????¨??????????\n int maxProfit = -1000000000;\n int currentNum = 0;\n for(int i = 1 ; i < num ; i++){\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }\n \n System.out.println(maxProfit);\n\n\t}", "main", "{\n\t\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????????????????°?????????\n int num =Integer.parseInt(br.readLine());\n //??????????°???? ???????????????????¨??????????\n int min = Integer.parseInt(br.readLine());\n //?????§?????? ????????????????????????????????????????????§??????????????????????????????????¨??????????\n int maxProfit = -1000000000;\n int currentNum = 0;\n for(int i = 1 ; i < num ; i++){\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }\n \n System.out.println(maxProfit);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int num =Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int min = Integer.parseInt(br.readLine());", "min", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int maxProfit = -1000000000;", "maxProfit", "-1000000000", "1000000000", "int currentNum = 0;", "currentNum", "0", "for(int i = 1 ; i < num ; i++){\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }", "int i = 1 ;", "int i = 1 ;", "i", "1", "i < num", "i", "num", "i++", "i++", "i", "{\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }", "{\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }", "currentNum = Integer.parseInt(br.readLine())", "currentNum", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "maxProfit = Math.max(maxProfit, currentNum - min)", "maxProfit", "Math.max(maxProfit, currentNum - min)", "Math.max", "Math", "maxProfit", "currentNum - min", "currentNum", "min", "min = Math.min(min, currentNum)", "min", "Math.min(min, currentNum)", "Math.min", "Math", "min", "currentNum", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????????????????°?????????\n int num =Integer.parseInt(br.readLine());\n //??????????°???? ???????????????????¨??????????\n int min = Integer.parseInt(br.readLine());\n //?????§?????? ????????????????????????????????????????????§??????????????????????????????????¨??????????\n int maxProfit = -1000000000;\n int currentNum = 0;\n for(int i = 1 ; i < num ; i++){\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }\n \n System.out.println(maxProfit);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t//??\\??????????????????\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //????????????????????°?????????\n int num =Integer.parseInt(br.readLine());\n //??????????°???? ???????????????????¨??????????\n int min = Integer.parseInt(br.readLine());\n //?????§?????? ????????????????????????????????????????????§??????????????????????????????????¨??????????\n int maxProfit = -1000000000;\n int currentNum = 0;\n for(int i = 1 ; i < num ; i++){\n \tcurrentNum = Integer.parseInt(br.readLine());\n \tmaxProfit = Math.max(maxProfit, currentNum - min);\n \tmin = Math.min(min, currentNum);\n }\n \n System.out.println(maxProfit);\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { //??\?????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //????????????????????°????????? int num =Integer.parseInt(br.readLine()); //??????????°???? ???????????????????¨?????????? int min = Integer.parseInt(br.readLine()); //?????§?????? ????????????????????????????????????????????§??????????????????????????????????¨?????????? int maxProfit = -1000000000; int currentNum = 0; for(int i = 1 ; i < num ; i++){ currentNum = Integer.parseInt(br.readLine()); maxProfit = Math.max(maxProfit, currentNum - min); min = Math.min(min, currentNum); } System.out.println(maxProfit); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 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, 17, 30, 0, 13, 13, 9, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 6 ], [ 6, 7 ], [ 6, 8 ], [ 80, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 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 ], [ 49, 53 ], [ 39, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 39, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 11, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 70, 76 ], [ 9, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", maxv);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", maxv);\n\t}\n}", "Main", "private static final Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "public static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", maxv);\n\t}", "main", "{\n\t\tint n = scan.nextInt();\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", maxv);\n\t}", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "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", "for(int i = 0; i < n; i++){\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}", "{\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}", "int r = scan.nextInt();", "r", "scan.nextInt()", "scan.nextInt", "scan", "if(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}", "i == 0", "i", "0", "{\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}", "minv = r", "minv", "r", "continue;", "maxv = Math.max(maxv, r - minv)", "maxv", "Math.max(maxv, r - minv)", "Math.max", "Math", "maxv", "r - minv", "r", "minv", "minv = Math.min(minv, r)", "minv", "Math.min(minv, r)", "Math.min", "Math", "minv", "r", "System.out.printf(\"%d\\n\", maxv)", "System.out.printf", "System.out", "System", "System.out", "\"%d\\n\"", "maxv", "String[] args", "args", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", maxv);\n\t}\n}", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tint minv = Integer.MAX_VALUE;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint r = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tminv = r;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmaxv = Math.max(maxv, r - minv);\n\t\t\tminv = Math.min(minv, r);\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", maxv);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); int maxv = Integer.MIN_VALUE; int minv = Integer.MAX_VALUE; for(int i = 0; i < n; i++){ int r = scan.nextInt(); if(i == 0){ minv = r; continue; } maxv = Math.max(maxv, r - minv); minv = Math.min(minv, r); } System.out.printf("%d\n", maxv); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 2, 4, 18, 13, 17, 17, 40, 17, 41, 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, 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 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 24, 28 ], [ 23, 29 ], [ 29, 30 ], [ 8, 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 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 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 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main (String args[]) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint R[] = new int[n];\n\tint max = (int)Math.pow(10,10)*(-1),min;\n\tfor(int i = 0;i < n;i++){\n\t R[i] = sc.nextInt();\n\t}\n\tmin = R[0];\n\tfor(int j = 1;j < n;j++){\t \n\t max = Math.max(max,(R[j] - min));\n\t min = Math.min(min,R[j]);\n\t}\n \tSystem.out.println(max);\n }\n}\n\n\n\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main (String args[]) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint R[] = new int[n];\n\tint max = (int)Math.pow(10,10)*(-1),min;\n\tfor(int i = 0;i < n;i++){\n\t R[i] = sc.nextInt();\n\t}\n\tmin = R[0];\n\tfor(int j = 1;j < n;j++){\t \n\t max = Math.max(max,(R[j] - min));\n\t min = Math.min(min,R[j]);\n\t}\n \tSystem.out.println(max);\n }\n}", "Main", "public static void main (String args[]) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint R[] = new int[n];\n\tint max = (int)Math.pow(10,10)*(-1),min;\n\tfor(int i = 0;i < n;i++){\n\t R[i] = sc.nextInt();\n\t}\n\tmin = R[0];\n\tfor(int j = 1;j < n;j++){\t \n\t max = Math.max(max,(R[j] - min));\n\t min = Math.min(min,R[j]);\n\t}\n \tSystem.out.println(max);\n }", "main", "{\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint R[] = new int[n];\n\tint max = (int)Math.pow(10,10)*(-1),min;\n\tfor(int i = 0;i < n;i++){\n\t R[i] = sc.nextInt();\n\t}\n\tmin = R[0];\n\tfor(int j = 1;j < n;j++){\t \n\t max = Math.max(max,(R[j] - min));\n\t min = Math.min(min,R[j]);\n\t}\n \tSystem.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", "int max = (int)Math.pow(10,10)*(-1)", "max", "(int)Math.pow(10,10)*(-1)", "(int)Math.pow(10,10)", "Math.pow", "Math", "10", "10", "(-1)", "1", "min;", "min", "for(int i = 0;i < n;i++){\n\t R[i] = sc.nextInt();\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t R[i] = sc.nextInt();\n\t}", "{\n\t R[i] = sc.nextInt();\n\t}", "R[i] = sc.nextInt()", "R[i]", "R", "i", "sc.nextInt()", "sc.nextInt", "sc", "min = R[0]", "min", "R[0]", "R", "0", "for(int j = 1;j < n;j++){\t \n\t max = Math.max(max,(R[j] - min));\n\t min = Math.min(min,R[j]);\n\t}", "int j = 1;", "int j = 1;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{\t \n\t max = Math.max(max,(R[j] - min));\n\t min = Math.min(min,R[j]);\n\t}", "{\t \n\t max = Math.max(max,(R[j] - min));\n\t min = Math.min(min,R[j]);\n\t}", "max = Math.max(max,(R[j] - min))", "max", "Math.max(max,(R[j] - min))", "Math.max", "Math", "max", "(R[j] - min)", "R[j]", "R", "j", "min", "min = Math.min(min,R[j])", "min", "Math.min(min,R[j])", "Math.min", "Math", "min", "R[j]", "R", "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 sc = new Scanner(System.in); int n = sc.nextInt(); int R[] = new int[n]; int max = (int)Math.pow(10,10)*(-1),min; for(int i = 0;i < n;i++){ R[i] = sc.nextInt(); } min = R[0]; for(int j = 1;j < n;j++){ max = Math.max(max,(R[j] - min)); min = Math.min(min,R[j]); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 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, 0, 13, 4, 13, 13, 2, 13, 13, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 29, 13, 30, 29, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 29, 13, 30, 29, 13, 23, 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 ], [ 19, 20 ], [ 20, 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 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 38, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 6, 64 ], [ 64, 65 ], [ 101, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 79, 80 ], [ 66, 81 ], [ 81, 82 ], [ 101, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 86, 93 ], [ 93, 94 ], [ 94, 95 ], [ 83, 96 ], [ 96, 97 ], [ 83, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minv=sc.nextInt();\n\t\tint maxv=-1000000000;\n\t\tfor(int j=1; j<n; j++){\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\tpublic static int max(int x,int y){\n\t\tif(x>y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\tpublic static int min(int x,int y){\n\t\tif(x<y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\n\t}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minv=sc.nextInt();\n\t\tint maxv=-1000000000;\n\t\tfor(int j=1; j<n; j++){\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\tpublic static int max(int x,int y){\n\t\tif(x>y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\tpublic static int min(int x,int y){\n\t\tif(x<y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\n\t}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minv=sc.nextInt();\n\t\tint maxv=-1000000000;\n\t\tfor(int j=1; j<n; j++){\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minv=sc.nextInt();\n\t\tint maxv=-1000000000;\n\t\tfor(int j=1; j<n; j++){\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int minv=sc.nextInt();", "minv", "sc.nextInt()", "sc.nextInt", "sc", "int maxv=-1000000000;", "maxv", "-1000000000", "1000000000", "for(int j=1; j<n; j++){\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}", "int j=1;", "int j=1;", "j", "1", "j<n", "j", "n", "j++", "j++", "j", "{\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}", "{\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}", "int x=sc.nextInt();", "x", "sc.nextInt()", "sc.nextInt", "sc", "maxv=max(maxv,x-minv)", "maxv", "max(maxv,x-minv)", "max", "maxv", "x-minv", "x", "minv", "minv=min(minv,x)", "minv", "min(minv,x)", "min", "minv", "x", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "String[] args", "args", "public static int max(int x,int y){\n\t\tif(x>y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}", "max", "{\n\t\tif(x>y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}", "if(x>y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}", "x>y", "x", "y", "{\n\t\t\treturn x;\n\t\t}", "return x;", "x", "{\n\t\t\treturn y;\n\t\t}", "return y;", "y", "int x", "x", "int y", "y", "public static int min(int x,int y){\n\t\tif(x<y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}", "min", "{\n\t\tif(x<y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}", "if(x<y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}", "x<y", "x", "y", "{\n\t\t\treturn x;\n\t\t}", "return x;", "x", "{\n\t\t\treturn y;\n\t\t}", "return y;", "y", "int x", "x", "int y", "y", "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 minv=sc.nextInt();\n\t\tint maxv=-1000000000;\n\t\tfor(int j=1; j<n; j++){\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\tpublic static int max(int x,int y){\n\t\tif(x>y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\tpublic static int min(int x,int y){\n\t\tif(x<y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\n\t}", "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 minv=sc.nextInt();\n\t\tint maxv=-1000000000;\n\t\tfor(int j=1; j<n; j++){\n\t\t\tint x=sc.nextInt();\n\t\t\tmaxv=max(maxv,x-minv);\n\t\t\tminv=min(minv,x);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\tpublic static int max(int x,int y){\n\t\tif(x>y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\tpublic static int min(int x,int y){\n\t\tif(x<y){\n\t\t\treturn x;\n\t\t}else{\n\t\t\treturn y;\n\t\t}\n\t}\n\n\t}", "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 minv=sc.nextInt(); int maxv=-1000000000; for(int j=1; j<n; j++){ int x=sc.nextInt(); maxv=max(maxv,x-minv); minv=min(minv,x); } System.out.println(maxv); } public static int max(int x,int y){ if(x>y){ return x; }else{ return y; } } public static int min(int x,int y){ if(x<y){ return x; }else{ return y; } } }
[ 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, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 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, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 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 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 6, 52 ], [ 52, 53 ], [ 107, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 67, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 81, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 56, 102 ], [ 102, 103 ], [ 54, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t/**\n\t * それぞれの購入地点から得られる最大利ざやを求め、 最も利益の大きい値を出力する\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint[] value = new int[num];\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}\n\n\t\tSystem.out.println(ExchangeMax(value));\n\n\t\tscan.close();\n\t}\n\n\t/**\n\t * 為替の最小値と最大値を見つけ、その差を最大利ざやとする。\n\t * \n\t * @param value\n\t * 為替レート\n\t * @return 最大利ざや\n\t */\n\tstatic int ExchangeMax(int[] value) {\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = value[0];\n\t\tfor (int i = 1; i < value.length; i++) {\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}\n\t\treturn max;\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\t/**\n\t * それぞれの購入地点から得られる最大利ざやを求め、 最も利益の大きい値を出力する\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint[] value = new int[num];\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}\n\n\t\tSystem.out.println(ExchangeMax(value));\n\n\t\tscan.close();\n\t}\n\n\t/**\n\t * 為替の最小値と最大値を見つけ、その差を最大利ざやとする。\n\t * \n\t * @param value\n\t * 為替レート\n\t * @return 最大利ざや\n\t */\n\tstatic int ExchangeMax(int[] value) {\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = value[0];\n\t\tfor (int i = 1; i < value.length; i++) {\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}\n\t\treturn max;\n\t}\n\n}", "Main", "/**\n\t * それぞれの購入地点から得られる最大利ざやを求め、 最も利益の大きい値を出力する\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint[] value = new int[num];\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}\n\n\t\tSystem.out.println(ExchangeMax(value));\n\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint[] value = new int[num];\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}\n\n\t\tSystem.out.println(ExchangeMax(value));\n\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int num = scan.nextInt();", "num", "scan.nextInt()", "scan.nextInt", "scan", "int[] value = new int[num];", "value", "new int[num]", "num", "for (int i = 0; i < num; i++) {\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}", "value[i] = scan.nextInt()", "value[i]", "value", "i", "scan.nextInt()", "scan.nextInt", "scan", "System.out.println(ExchangeMax(value))", "System.out.println", "System.out", "System", "System.out", "ExchangeMax(value)", "ExchangeMax", "value", "scan.close()", "scan.close", "scan", "String args[]", "args", "/**\n\t * 為替の最小値と最大値を見つけ、その差を最大利ざやとする。\n\t * \n\t * @param value\n\t * 為替レート\n\t * @return 最大利ざや\n\t */\n\tstatic int ExchangeMax(int[] value) {\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = value[0];\n\t\tfor (int i = 1; i < value.length; i++) {\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}\n\t\treturn max;\n\t}", "ExchangeMax", "{\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = value[0];\n\t\tfor (int i = 1; i < value.length; i++) {\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}\n\t\treturn max;\n\t}", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int min = value[0];", "min", "value[0]", "value", "0", "for (int i = 1; i < value.length; i++) {\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < value.length", "i", "value.length", "value", "value.length", "i++", "i++", "i", "{\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}", "{\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}", "max = Math.max(max, value[i] - min)", "max", "Math.max(max, value[i] - min)", "Math.max", "Math", "max", "value[i] - min", "value[i]", "value", "i", "min", "min = Math.min(min, value[i])", "min", "Math.min(min, value[i])", "Math.min", "Math", "min", "value[i]", "value", "i", "return max;", "max", "int[] value", "value", "public class Main {\n\n\t/**\n\t * それぞれの購入地点から得られる最大利ざやを求め、 最も利益の大きい値を出力する\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint[] value = new int[num];\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}\n\n\t\tSystem.out.println(ExchangeMax(value));\n\n\t\tscan.close();\n\t}\n\n\t/**\n\t * 為替の最小値と最大値を見つけ、その差を最大利ざやとする。\n\t * \n\t * @param value\n\t * 為替レート\n\t * @return 最大利ざや\n\t */\n\tstatic int ExchangeMax(int[] value) {\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = value[0];\n\t\tfor (int i = 1; i < value.length; i++) {\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}\n\t\treturn max;\n\t}\n\n}", "public class Main {\n\n\t/**\n\t * それぞれの購入地点から得られる最大利ざやを求め、 最も利益の大きい値を出力する\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint[] value = new int[num];\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tvalue[i] = scan.nextInt();\n\t\t}\n\n\t\tSystem.out.println(ExchangeMax(value));\n\n\t\tscan.close();\n\t}\n\n\t/**\n\t * 為替の最小値と最大値を見つけ、その差を最大利ざやとする。\n\t * \n\t * @param value\n\t * 為替レート\n\t * @return 最大利ざや\n\t */\n\tstatic int ExchangeMax(int[] value) {\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = value[0];\n\t\tfor (int i = 1; i < value.length; i++) {\n\t\t\tmax = Math.max(max, value[i] - min);\n\t\t\tmin = Math.min(min, value[i]);\n\t\t}\n\t\treturn max;\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { /** * それぞれの購入地点から得られる最大利ざやを求め、 最も利益の大きい値を出力する * * @param args */ public static void main(String args[]) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); int[] value = new int[num]; for (int i = 0; i < num; i++) { value[i] = scan.nextInt(); } System.out.println(ExchangeMax(value)); scan.close(); } /** * 為替の最小値と最大値を見つけ、その差を最大利ざやとする。 * * @param value * 為替レート * @return 最大利ざや */ static int ExchangeMax(int[] value) { int max = Integer.MIN_VALUE; int min = value[0]; for (int i = 1; i < value.length; i++) { max = Math.max(max, value[i] - min); min = Math.min(min, value[i]); } return max; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 71, 5 ], [ 71, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 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 ], [ 6, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long min = sc.nextInt();\n long ret = -1000000001;\n\n for (int i = 1; i<n; i++){\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }\n System.out.println(ret);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long min = sc.nextInt();\n long ret = -1000000001;\n\n for (int i = 1; i<n; i++){\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }\n System.out.println(ret);\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long min = sc.nextInt();\n long ret = -1000000001;\n\n for (int i = 1; i<n; i++){\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }\n System.out.println(ret);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long min = sc.nextInt();\n long ret = -1000000001;\n\n for (int i = 1; i<n; i++){\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }\n System.out.println(ret);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "long min = sc.nextInt();", "min", "sc.nextInt()", "sc.nextInt", "sc", "long ret = -1000000001;", "ret", "-1000000001", "1000000001", "for (int i = 1; i<n; i++){\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }", "int i = 1;", "int i = 1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }", "{\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }", "long r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if (r - min > ret) ret = r - min;", "r - min > ret", "r - min", "r", "min", "ret", "ret = r - min", "ret", "r - min", "r", "min", "if (r < min) min = r;", "r < min", "r", "min", "min = r", "min", "r", "System.out.println(ret)", "System.out.println", "System.out", "System", "System.out", "ret", "String args[]", "args", "public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long min = sc.nextInt();\n long ret = -1000000001;\n\n for (int i = 1; i<n; i++){\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }\n System.out.println(ret);\n }\n}", "public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long min = sc.nextInt();\n long ret = -1000000001;\n\n for (int i = 1; i<n; i++){\n long r = sc.nextInt();\n if (r - min > ret) ret = r - min;\n if (r < min) min = r;\n }\n System.out.println(ret);\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(); long min = sc.nextInt(); long ret = -1000000001; for (int i = 1; i<n; i++){ long r = sc.nextInt(); if (r - min > ret) ret = r - min; if (r < min) min = r; } System.out.println(ret); } }
[ 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 95, 5 ], [ 95, 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 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 62, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 6, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint maxProfit = -2000000000;\n\t\tint minProfit = R[0];\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}\n\n\t\tSystem.out.println(maxProfit);\n\n\t\tsc.close();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint maxProfit = -2000000000;\n\t\tint minProfit = R[0];\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}\n\n\t\tSystem.out.println(maxProfit);\n\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint maxProfit = -2000000000;\n\t\tint minProfit = R[0];\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}\n\n\t\tSystem.out.println(maxProfit);\n\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint maxProfit = -2000000000;\n\t\tint minProfit = R[0];\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}\n\n\t\tSystem.out.println(maxProfit);\n\n\t\tsc.close();\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 = new int[n];", "R", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "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", "int maxProfit = -2000000000;", "maxProfit", "-2000000000", "2000000000", "int minProfit = R[0];", "minProfit", "R[0]", "R", "0", "for (int i = 1; i < n; i++) {\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}", "{\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}", "maxProfit = Math.max(maxProfit, R[i] - minProfit)", "maxProfit", "Math.max(maxProfit, R[i] - minProfit)", "Math.max", "Math", "maxProfit", "R[i] - minProfit", "R[i]", "R", "i", "minProfit", "minProfit = Math.min(minProfit, R[i])", "minProfit", "Math.min(minProfit, R[i])", "Math.min", "Math", "minProfit", "R[i]", "R", "i", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint maxProfit = -2000000000;\n\t\tint minProfit = R[0];\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}\n\n\t\tSystem.out.println(maxProfit);\n\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint maxProfit = -2000000000;\n\t\tint minProfit = R[0];\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxProfit = Math.max(maxProfit, R[i] - minProfit);\n\t\t\tminProfit = Math.min(minProfit, R[i]);\n\t\t}\n\n\t\tSystem.out.println(maxProfit);\n\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] R = new int[n]; for (int i = 0; i < n; i++) { R[i] = sc.nextInt(); } int maxProfit = -2000000000; int minProfit = R[0]; for (int i = 1; i < n; i++) { maxProfit = Math.max(maxProfit, R[i] - minProfit); minProfit = Math.min(minProfit, R[i]); } System.out.println(maxProfit); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 13, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 4, 18, 13, 29, 0, 13, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 0, 13, 2, 18, 13, 13, 13, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 171, 5 ], [ 171, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 48, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 84, 97 ], [ 97, 98 ], [ 98, 99 ], [ 84, 100 ], [ 8, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 8, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 106, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 118, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 131, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 118, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 156, 158 ], [ 8, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 8, 165 ], [ 165, 166 ], [ 166, 167 ], [ 6, 168 ], [ 168, 169 ], [ 0, 170 ], [ 170, 171 ], [ 170, 172 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int i,j,n,max=0,min=0,dist=0;\n n=scan.nextInt();\n int r[]=new int [n];\n for(i=0;i<n;i++) {\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }\n if(min<max) {\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }\n \n min=r[0];\n for(i=1;i<n;i++){\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }\n System.out.println(dist);\n scan.close();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int i,j,n,max=0,min=0,dist=0;\n n=scan.nextInt();\n int r[]=new int [n];\n for(i=0;i<n;i++) {\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }\n if(min<max) {\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }\n \n min=r[0];\n for(i=1;i<n;i++){\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }\n System.out.println(dist);\n scan.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int i,j,n,max=0,min=0,dist=0;\n n=scan.nextInt();\n int r[]=new int [n];\n for(i=0;i<n;i++) {\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }\n if(min<max) {\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }\n \n min=r[0];\n for(i=1;i<n;i++){\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }\n System.out.println(dist);\n scan.close();\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n int i,j,n,max=0,min=0,dist=0;\n n=scan.nextInt();\n int r[]=new int [n];\n for(i=0;i<n;i++) {\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }\n if(min<max) {\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }\n \n min=r[0];\n for(i=1;i<n;i++){\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }\n System.out.println(dist);\n scan.close();\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int i", "i", "j", "j", "n", "n", "max=0", "max", "0", "min=0", "min", "0", "dist=0;", "dist", "0", "n=scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "int r[]=new int [n];", "r", "new int [n]", "n", "for(i=0;i<n;i++) {\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }", "{\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }", "r[i]=scan.nextInt()", "r[i]", "r", "i", "scan.nextInt()", "scan.nextInt", "scan", "if(r[max]<r[i]) {\n max=i;\n }", "r[max]<r[i]", "r[max]", "r", "max", "r[i]", "r", "i", "{\n max=i;\n }", "max=i", "max", "i", "if(r[min]>r[i]) {\n min=i;\n }", "r[min]>r[i]", "r[min]", "r", "min", "r[i]", "r", "i", "{\n min=i;\n }", "min=i", "min", "i", "if(min<max) {\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }", "min<max", "min", "max", "{\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }", "System.out.println(r[max]-r[min])", "System.out.println", "System.out", "System", "System.out", "r[max]-r[min]", "r[max]", "r", "max", "r[min]", "r", "min", "scan.close()", "scan.close", "scan", "return;", "min=r[0]", "min", "r[0]", "r", "0", "for(i=1;i<n;i++){\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }", "i=1;", "i=1", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }", "{\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }", "if(i==1){\n \t\tdist=r[i]-min;\n \t}", "i==1", "i", "1", "{\n \t\tdist=r[i]-min;\n \t}", "dist=r[i]-min", "dist", "r[i]-min", "r[i]", "r", "i", "min", "if(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}", "dist<r[i]-min", "dist", "r[i]-min", "r[i]", "r", "i", "min", "{\n \t\tdist=r[i]-min;\n \t}", "dist=r[i]-min", "dist", "r[i]-min", "r[i]", "r", "i", "min", "if(min>r[i]){\n \t\tmin=r[i];\n \t}", "min>r[i]", "min", "r[i]", "r", "i", "{\n \t\tmin=r[i];\n \t}", "min=r[i]", "min", "r[i]", "r", "i", "System.out.println(dist)", "System.out.println", "System.out", "System", "System.out", "dist", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main{\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int i,j,n,max=0,min=0,dist=0;\n n=scan.nextInt();\n int r[]=new int [n];\n for(i=0;i<n;i++) {\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }\n if(min<max) {\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }\n \n min=r[0];\n for(i=1;i<n;i++){\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }\n System.out.println(dist);\n scan.close();\n }\n}", "public class Main{\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int i,j,n,max=0,min=0,dist=0;\n n=scan.nextInt();\n int r[]=new int [n];\n for(i=0;i<n;i++) {\n r[i]=scan.nextInt();\n if(r[max]<r[i]) {\n max=i;\n }\n if(r[min]>r[i]) {\n min=i;\n }\n }\n if(min<max) {\n System.out.println(r[max]-r[min]);\n scan.close();\n return;\n }\n \n min=r[0];\n for(i=1;i<n;i++){\n \tif(i==1){\n \t\tdist=r[i]-min;\n \t}\n \tif(dist<r[i]-min){\n \t\tdist=r[i]-min;\n \t}\n \tif(min>r[i]){\n \t\tmin=r[i];\n \t}\n }\n System.out.println(dist);\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 i,j,n,max=0,min=0,dist=0; n=scan.nextInt(); int r[]=new int [n]; for(i=0;i<n;i++) { r[i]=scan.nextInt(); if(r[max]<r[i]) { max=i; } if(r[min]>r[i]) { min=i; } } if(min<max) { System.out.println(r[max]-r[min]); scan.close(); return; } min=r[0]; for(i=1;i<n;i++){ if(i==1){ dist=r[i]-min; } if(dist<r[i]-min){ dist=r[i]-min; } if(min>r[i]){ min=r[i]; } } System.out.println(dist); scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 75, 8 ], [ 75, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 35, 39 ], [ 11, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 44, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 11, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 9, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.io.File;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(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\tsc.nextInt();\n\t\t\n\t\tint r0 = sc.nextInt();\n\t\tint r1 = sc.nextInt();\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint r = sc.nextInt();\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.File;", "File", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(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\tsc.nextInt();\n\t\t\n\t\tint r0 = sc.nextInt();\n\t\tint r1 = sc.nextInt();\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint r = sc.nextInt();\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\tScanner sc = new Scanner(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\tsc.nextInt();\n\t\t\n\t\tint r0 = sc.nextInt();\n\t\tint r1 = sc.nextInt();\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint r = sc.nextInt();\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\tScanner sc = new Scanner(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\tsc.nextInt();\n\t\t\n\t\tint r0 = sc.nextInt();\n\t\tint r1 = sc.nextInt();\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint r = sc.nextInt();\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}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "sc.nextInt()", "sc.nextInt", "sc", "int r0 = sc.nextInt();", "r0", "sc.nextInt()", "sc.nextInt", "sc", "int r1 = sc.nextInt();", "r1", "sc.nextInt()", "sc.nextInt", "sc", "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", "while (sc.hasNextInt()) {\n\t\t\tint r = sc.nextInt();\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}", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n\t\t\tint r = sc.nextInt();\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 = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "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\tScanner sc = new Scanner(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\tsc.nextInt();\n\t\t\n\t\tint r0 = sc.nextInt();\n\t\tint r1 = sc.nextInt();\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint r = sc.nextInt();\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\tScanner sc = new Scanner(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\tsc.nextInt();\n\t\t\n\t\tint r0 = sc.nextInt();\n\t\tint r1 = sc.nextInt();\n\t\tint max_profit = r1 - r0;\n\t\tint min_r = Math.min(r0, r1);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint r = sc.nextInt();\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.File; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); // Scanner sc = new Scanner(new File("in1.txt")); // Scanner sc = new Scanner(new File("in2.txt")); sc.nextInt(); int r0 = sc.nextInt(); int r1 = sc.nextInt(); int max_profit = r1 - r0; int min_r = Math.min(r0, r1); while (sc.hasNextInt()) { int r = sc.nextInt(); 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, 20, 17, 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, 41, 13, 18, 13, 17, 41, 13, 40, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 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 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 66, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ] ]
[ "import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint[] r = new int[200000];\n\t\tint kai = -1000000000;\n\t\t\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\tint min = r[0];\n\t\tint max = -1000000000;\n\t\t\n\t\tfor(int j=1; j<n; j++){\n\t\t\tif(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}\n\t\t\tif(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}\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{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint[] r = new int[200000];\n\t\tint kai = -1000000000;\n\t\t\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\tint min = r[0];\n\t\tint max = -1000000000;\n\t\t\n\t\tfor(int j=1; j<n; j++){\n\t\t\tif(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}\n\t\t\tif(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}\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\t\n\t\tint[] r = new int[200000];\n\t\tint kai = -1000000000;\n\t\t\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\tint min = r[0];\n\t\tint max = -1000000000;\n\t\t\n\t\tfor(int j=1; j<n; j++){\n\t\t\tif(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}\n\t\t\tif(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}\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\t\n\t\tint[] r = new int[200000];\n\t\tint kai = -1000000000;\n\t\t\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\tint min = r[0];\n\t\tint max = -1000000000;\n\t\t\n\t\tfor(int j=1; j<n; j++){\n\t\t\tif(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}\n\t\t\tif(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}\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[] r = new int[200000];", "r", "new int[200000]", "200000", "int kai = -1000000000;", "kai", "-1000000000", "1000000000", "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 min = r[0];", "min", "r[0]", "r", "0", "int max = -1000000000;", "max", "-1000000000", "1000000000", "for(int j=1; j<n; j++){\n\t\t\tif(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}\n\t\t\tif(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}\n\t\t}", "int j=1;", "int j=1;", "j", "1", "j<n", "j", "n", "j++", "j++", "j", "{\n\t\t\tif(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}\n\t\t\tif(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}\n\t\t}", "{\n\t\t\tif(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}\n\t\t\tif(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}\n\t\t}", "if(max < r[j]-min){\n\t\t\t\tmax = r[j] - min;\n\t\t\t}", "max < r[j]-min", "max", "r[j]-min", "r[j]", "r", "j", "min", "{\n\t\t\t\tmax = r[j] - min;\n\t\t\t}", "max = r[j] - min", "max", "r[j] - min", "r[j]", "r", "j", "min", "if(min > r[j]){\n\t\t\t\tmin = r[j];\n\t\t\t}", "min > r[j]", "min", "r[j]", "r", "j", "{\n\t\t\t\tmin = r[j];\n\t\t\t}", "min = r[j]", "min", "r[j]", "r", "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[] r = new int[200000]; int kai = -1000000000; int n = scan.nextInt(); for(int i=0; i<n; i++){ r[i] = scan.nextInt(); } int min = r[0]; int max = -1000000000; for(int j=1; j<n; j++){ if(max < r[j]-min){ max = r[j] - min; } if(min > r[j]){ min = r[j]; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 40, 17, 41, 13, 12, 13, 30, 4, 13, 4, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 17, 12, 13, 30, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 116, 5 ], [ 116, 6 ], [ 6, 7 ], [ 6, 8 ], [ 116, 9 ], [ 9, 10 ], [ 116, 11 ], [ 11, 12 ], [ 116, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 116, 17 ], [ 17, 18 ], [ 116, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 24, 25 ], [ 21, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 19, 32 ], [ 32, 33 ], [ 116, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 36, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 116, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 88, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 86, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n static int answer = -1000000000;\n static int minv;\n\n\n public static void main(String[] args) {\n read();\n solve();\n System.out.println(answer);\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n minv = a[0];\n\n }\n\n public static void solve() {\n for (int i = 1; i < n; i++) {\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n static int answer = -1000000000;\n static int minv;\n\n\n public static void main(String[] args) {\n read();\n solve();\n System.out.println(answer);\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n minv = a[0];\n\n }\n\n public static void solve() {\n for (int i = 1; i < n; i++) {\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "static int n;", "n", "static int a[];", "a", "static int answer = -1000000000;", "answer", "-1000000000", "1000000000", "static int minv;", "minv", "public static void main(String[] args) {\n read();\n solve();\n System.out.println(answer);\n }", "main", "{\n read();\n solve();\n System.out.println(answer);\n }", "read()", "read", "solve()", "solve", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n minv = a[0];\n\n }", "read", "{\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n minv = a[0];\n\n }", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "a = new int[n]", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = sc.nextInt();\n }", "{\n a[i] = sc.nextInt();\n }", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "minv = a[0]", "minv", "a[0]", "a", "0", "public static void solve() {\n for (int i = 1; i < n; i++) {\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }\n }", "solve", "{\n for (int i = 1; i < n; i++) {\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }\n }", "for (int i = 1; i < n; i++) {\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }", "{\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }", "if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }", "a[i] - minv > answer", "a[i] - minv", "a[i]", "a", "i", "minv", "answer", "{\n answer = a[i] - minv;\n }", "answer = a[i] - minv", "answer", "a[i] - minv", "a[i]", "a", "i", "minv", "if (minv > a[i]) {\n minv = a[i];\n }", "minv > a[i]", "minv", "a[i]", "a", "i", "{\n minv = a[i];\n }", "minv = a[i]", "minv", "a[i]", "a", "i", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n static int answer = -1000000000;\n static int minv;\n\n\n public static void main(String[] args) {\n read();\n solve();\n System.out.println(answer);\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n minv = a[0];\n\n }\n\n public static void solve() {\n for (int i = 1; i < n; i++) {\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }\n }\n}", "public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n static int a[];\n static int answer = -1000000000;\n static int minv;\n\n\n public static void main(String[] args) {\n read();\n solve();\n System.out.println(answer);\n }\n\n public static void read() {\n n = sc.nextInt();\n a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n }\n minv = a[0];\n\n }\n\n public static void solve() {\n for (int i = 1; i < n; i++) {\n if (a[i] - minv > answer) {\n answer = a[i] - minv;\n }\n if (minv > a[i]) {\n minv = a[i];\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static int n; static int a[]; static int answer = -1000000000; static int minv; public static void main(String[] args) { read(); solve(); System.out.println(answer); } public static void read() { n = sc.nextInt(); a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } minv = a[0]; } public static void solve() { for (int i = 1; i < n; i++) { if (a[i] - minv > answer) { answer = a[i] - minv; } if (minv > a[i]) { minv = a[i]; } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 17, 41, 13, 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 ], [ 102, 5 ], [ 102, 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 ], [ 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 ], [ 69, 71 ], [ 68, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 65, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] nAry = new int[n];\n\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}\n\n\t\tint maxBenefit = Integer.MIN_VALUE;\n\t\tint min = nAry[0];\n\t\tint tmpBenefit;\n\n\t\tfor(int i = 1; i < n ; i++){\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxBenefit);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] nAry = new int[n];\n\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}\n\n\t\tint maxBenefit = Integer.MIN_VALUE;\n\t\tint min = nAry[0];\n\t\tint tmpBenefit;\n\n\t\tfor(int i = 1; i < n ; i++){\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxBenefit);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] nAry = new int[n];\n\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}\n\n\t\tint maxBenefit = Integer.MIN_VALUE;\n\t\tint min = nAry[0];\n\t\tint tmpBenefit;\n\n\t\tfor(int i = 1; i < n ; i++){\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxBenefit);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] nAry = new int[n];\n\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}\n\n\t\tint maxBenefit = Integer.MIN_VALUE;\n\t\tint min = nAry[0];\n\t\tint tmpBenefit;\n\n\t\tfor(int i = 1; i < n ; i++){\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxBenefit);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int[] nAry = new int[n];", "nAry", "new int[n]", "n", "for(int i = 0; i < n ; i++){\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}", "{\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}", "nAry[i] = scan.nextInt()", "nAry[i]", "nAry", "i", "scan.nextInt()", "scan.nextInt", "scan", "int maxBenefit = Integer.MIN_VALUE;", "maxBenefit", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int min = nAry[0];", "min", "nAry[0]", "nAry", "0", "int tmpBenefit;", "tmpBenefit", "for(int i = 1; i < n ; i++){\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}", "{\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}", "tmpBenefit = nAry[i] - min", "tmpBenefit", "nAry[i] - min", "nAry[i]", "nAry", "i", "min", "if(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}", "maxBenefit < tmpBenefit", "maxBenefit", "tmpBenefit", "{\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}", "maxBenefit = tmpBenefit", "maxBenefit", "tmpBenefit", "if(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}", "min > nAry[i]", "min", "nAry[i]", "nAry", "i", "{\n\t\t\t\tmin = nAry[i];\n\t\t\t}", "min = nAry[i]", "min", "nAry[i]", "nAry", "i", "System.out.println(maxBenefit)", "System.out.println", "System.out", "System", "System.out", "maxBenefit", "String[] args", "args", "public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] nAry = new int[n];\n\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}\n\n\t\tint maxBenefit = Integer.MIN_VALUE;\n\t\tint min = nAry[0];\n\t\tint tmpBenefit;\n\n\t\tfor(int i = 1; i < n ; i++){\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxBenefit);\n\t}\n\n}", "public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] nAry = new int[n];\n\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tnAry[i] = scan.nextInt();\n\t\t}\n\n\t\tint maxBenefit = Integer.MIN_VALUE;\n\t\tint min = nAry[0];\n\t\tint tmpBenefit;\n\n\t\tfor(int i = 1; i < n ; i++){\n\n\t\t\ttmpBenefit = nAry[i] - min;\n\n\t\t\tif(maxBenefit < tmpBenefit){\n\t\t\t\tmaxBenefit = tmpBenefit;\n\t\t\t}\n\n\t\t\tif(min > nAry[i]){\n\t\t\t\tmin = nAry[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxBenefit);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] nAry = new int[n]; for(int i = 0; i < n ; i++){ nAry[i] = scan.nextInt(); } int maxBenefit = Integer.MIN_VALUE; int min = nAry[0]; int tmpBenefit; for(int i = 1; i < n ; i++){ tmpBenefit = nAry[i] - min; if(maxBenefit < tmpBenefit){ maxBenefit = tmpBenefit; } if(min > nAry[i]){ min = nAry[i]; } } System.out.println(maxBenefit); } }
[ 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, 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 ], [ 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 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 67, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ] ]
[ "\n\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i< n ; i++){\n arr[i] = scanner.nextInt();\n }\n int maxMinus = arr[1] - arr[0];\n int minValue = arr[0];\n for (int i= 1; i< n ; i++){\n maxMinus = Math.max(maxMinus, arr[i] - minValue);\n minValue = Math.min(minValue, arr[i]);\n }\n System.out.println(maxMinus);\n }\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i< n ; i++){\n arr[i] = scanner.nextInt();\n }\n int maxMinus = arr[1] - arr[0];\n int minValue = arr[0];\n for (int i= 1; i< n ; i++){\n maxMinus = Math.max(maxMinus, arr[i] - minValue);\n minValue = Math.min(minValue, arr[i]);\n }\n System.out.println(maxMinus);\n }\n\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i< n ; i++){\n arr[i] = scanner.nextInt();\n }\n int maxMinus = arr[1] - arr[0];\n int minValue = arr[0];\n for (int i= 1; i< n ; i++){\n maxMinus = Math.max(maxMinus, arr[i] - minValue);\n minValue = Math.min(minValue, arr[i]);\n }\n System.out.println(maxMinus);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] arr = new int[n];\n for (int i = 0; i< n ; i++){\n arr[i] = scanner.nextInt();\n }\n int maxMinus = arr[1] - arr[0];\n int minValue = arr[0];\n for (int i= 1; i< n ; i++){\n maxMinus = Math.max(maxMinus, arr[i] - minValue);\n minValue = Math.min(minValue, arr[i]);\n }\n System.out.println(maxMinus);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for (int i = 0; i< n ; i++){\n arr[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i< n", "i", "n", "i++", "i++", "i", "{\n arr[i] = scanner.nextInt();\n }", "{\n arr[i] = scanner.nextInt();\n }", "arr[i] = scanner.nextInt()", "arr[i]", "arr", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "int maxMinus = arr[1] - arr[0];", "maxMinus", "arr[1] - arr[0]", "arr[1]", "arr", "1", "arr[0]", "arr", "0", "int minValue = arr[0];", "minValue", "arr[0]", "arr", "0", "for (int i= 1; i< n ; i++){\n maxMinus = Math.max(maxMinus, arr[i] - minValue);\n minValue = Math.min(minValue, arr[i]);\n }", "int i= 1;", "int i= 1;", "i", "1", "i< n", "i", "n", "i++", "i++", "i", "{\n maxMinus = Math.max(maxMinus, arr[i] - minValue);\n minValue = Math.min(minValue, arr[i]);\n }", "{\n maxMinus = Math.max(maxMinus, arr[i] - minValue);\n minValue = Math.min(minValue, arr[i]);\n }", "maxMinus = Math.max(maxMinus, arr[i] - minValue)", "maxMinus", "Math.max(maxMinus, arr[i] - minValue)", "Math.max", "Math", "maxMinus", "arr[i] - minValue", "arr[i]", "arr", "i", "minValue", "minValue = Math.min(minValue, arr[i])", "minValue", "Math.min(minValue, arr[i])", "Math.min", "Math", "minValue", "arr[i]", "arr", "i", "System.out.println(maxMinus)", "System.out.println", "System.out", "System", "System.out", "maxMinus", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] arr = new int[n]; for (int i = 0; i< n ; i++){ arr[i] = scanner.nextInt(); } int maxMinus = arr[1] - arr[0]; int minValue = arr[0]; for (int i= 1; i< n ; i++){ maxMinus = Math.max(maxMinus, arr[i] - minValue); minValue = Math.min(minValue, arr[i]); } System.out.println(maxMinus); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 4, 18, 13, 17, 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, 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 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 21, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 43, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 8, 65 ], [ 65, 66 ], [ 66, 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\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint max = 1 - (int) Math.pow(10, 9);\n\t\tint ri = scanner.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tSystem.out.println(max);\n\t}\n} \n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint max = 1 - (int) Math.pow(10, 9);\n\t\tint ri = scanner.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint max = 1 - (int) Math.pow(10, 9);\n\t\tint ri = scanner.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint max = 1 - (int) Math.pow(10, 9);\n\t\tint ri = scanner.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tSystem.out.println(max);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int max = 1 - (int) Math.pow(10, 9);", "max", "1 - (int) Math.pow(10, 9)", "1", "(int) Math.pow(10, 9)", "Math.pow", "Math", "10", "9", "int ri = scanner.nextInt();", "ri", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 1; i < n; i++) {\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}", "{\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}", "int rj = scanner.nextInt();", "rj", "scanner.nextInt()", "scanner.nextInt", "scanner", "max = Math.max(max, rj - ri)", "max", "Math.max(max, rj - ri)", "Math.max", "Math", "max", "rj - ri", "rj", "ri", "ri = Math.min(ri, rj)", "ri", "Math.min(ri, rj)", "Math.min", "Math", "ri", "rj", "scanner.close()", "scanner.close", "scanner", "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 scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint max = 1 - (int) Math.pow(10, 9);\n\t\tint ri = scanner.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}\n\t\t\n\t\tscanner.close();\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 scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint max = 1 - (int) Math.pow(10, 9);\n\t\tint ri = scanner.nextInt();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint rj = scanner.nextInt();\n\t\t\tmax = Math.max(max, rj - ri);\n\t\t\tri = Math.min(ri, rj); \n\t\t}\n\t\t\n\t\tscanner.close();\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 scanner = new Scanner(System.in); int n = scanner.nextInt(); int max = 1 - (int) Math.pow(10, 9); int ri = scanner.nextInt(); for (int i = 1; i < n; i++) { int rj = scanner.nextInt(); max = Math.max(max, rj - ri); ri = Math.min(ri, rj); } scanner.close(); 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, 4, 18, 18, 13, 13, 4, 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, 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, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 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 ], [ 108, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 53, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 68, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 85, 93 ], [ 82, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 53, 103 ], [ 103, 104 ], [ 51, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\n\n/**\n * Created by hwzheng on 2017/3/26.\n */\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++){\n R[i] = scanner.nextInt();\n }\n System.out.println(maxProfit(R));\n }\n\n public static int maxProfit(int[] R){\n int maxv = R[1] - R[0];\n int minv = R[0];\n for (int i = 1; i < R.length; i++){\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }\n return maxv;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++){\n R[i] = scanner.nextInt();\n }\n System.out.println(maxProfit(R));\n }\n\n public static int maxProfit(int[] R){\n int maxv = R[1] - R[0];\n int minv = R[0];\n for (int i = 1; i < R.length; i++){\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }\n return maxv;\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++){\n R[i] = scanner.nextInt();\n }\n System.out.println(maxProfit(R));\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++){\n R[i] = scanner.nextInt();\n }\n System.out.println(maxProfit(R));\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[] R = new int[n];", "R", "new int[n]", "n", "for (int i = 0; i < n; i++){\n R[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n R[i] = scanner.nextInt();\n }", "{\n R[i] = scanner.nextInt();\n }", "R[i] = scanner.nextInt()", "R[i]", "R", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "System.out.println(maxProfit(R))", "System.out.println", "System.out", "System", "System.out", "maxProfit(R)", "maxProfit", "R", "String[] args", "args", "public static int maxProfit(int[] R){\n int maxv = R[1] - R[0];\n int minv = R[0];\n for (int i = 1; i < R.length; i++){\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }\n return maxv;\n }", "maxProfit", "{\n int maxv = R[1] - R[0];\n int minv = R[0];\n for (int i = 1; i < R.length; i++){\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }\n return maxv;\n }", "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 < R.length; i++){\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < R.length", "i", "R.length", "R", "R.length", "i++", "i++", "i", "{\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }", "{\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }", "maxv = Math.max(R[i]-minv,maxv)", "maxv", "Math.max(R[i]-minv,maxv)", "Math.max", "Math", "R[i]-minv", "R[i]", "R", "i", "minv", "maxv", "minv = Math.min(R[i],minv)", "minv", "Math.min(R[i],minv)", "Math.min", "Math", "R[i]", "R", "i", "minv", "return maxv;", "maxv", "int[] R", "R", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++){\n R[i] = scanner.nextInt();\n }\n System.out.println(maxProfit(R));\n }\n\n public static int maxProfit(int[] R){\n int maxv = R[1] - R[0];\n int minv = R[0];\n for (int i = 1; i < R.length; i++){\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }\n return maxv;\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++){\n R[i] = scanner.nextInt();\n }\n System.out.println(maxProfit(R));\n }\n\n public static int maxProfit(int[] R){\n int maxv = R[1] - R[0];\n int minv = R[0];\n for (int i = 1; i < R.length; i++){\n maxv = Math.max(R[i]-minv,maxv);\n minv = Math.min(R[i],minv);\n }\n return maxv;\n }\n}", "Main" ]
import java.util.Scanner; /** * Created by hwzheng on 2017/3/26. */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] R = new int[n]; for (int i = 0; i < n; i++){ R[i] = scanner.nextInt(); } System.out.println(maxProfit(R)); } public static int maxProfit(int[] R){ int maxv = R[1] - R[0]; int minv = R[0]; for (int i = 1; i < R.length; i++){ maxv = Math.max(R[i]-minv,maxv); minv = Math.min(R[i],minv); } return maxv; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 4, 18, 13, 13, 13, 13, 0, 13, 4, 18, 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 ], [ 97, 8 ], [ 97, 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, 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 ], [ 11, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 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 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 68, 77 ], [ 65, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 80, 87 ], [ 11, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 9, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.io.*;\nimport 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 List<Integer> nums = new ArrayList<>();\n for(int i=0; i<n; ++i) {\n nums.add(sc.nextInt());\n }\n\n int n_max = (int)Float.NEGATIVE_INFINITY; //??????????????§\n int n_min = nums.get(0);\n for(int i=1; i<n; ++i) {\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }\n\n System.out.println(n_max);\n }\n}", "import java.io.*;", "io.*", "java", "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 List<Integer> nums = new ArrayList<>();\n for(int i=0; i<n; ++i) {\n nums.add(sc.nextInt());\n }\n\n int n_max = (int)Float.NEGATIVE_INFINITY; //??????????????§\n int n_min = nums.get(0);\n for(int i=1; i<n; ++i) {\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }\n\n System.out.println(n_max);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<Integer> nums = new ArrayList<>();\n for(int i=0; i<n; ++i) {\n nums.add(sc.nextInt());\n }\n\n int n_max = (int)Float.NEGATIVE_INFINITY; //??????????????§\n int n_min = nums.get(0);\n for(int i=1; i<n; ++i) {\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }\n\n System.out.println(n_max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<Integer> nums = new ArrayList<>();\n for(int i=0; i<n; ++i) {\n nums.add(sc.nextInt());\n }\n\n int n_max = (int)Float.NEGATIVE_INFINITY; //??????????????§\n int n_min = nums.get(0);\n for(int i=1; i<n; ++i) {\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }\n\n System.out.println(n_max);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "List<Integer> nums = new ArrayList<>();", "nums", "new ArrayList<>()", "for(int i=0; i<n; ++i) {\n nums.add(sc.nextInt());\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "++i", "++i", "i", "{\n nums.add(sc.nextInt());\n }", "{\n nums.add(sc.nextInt());\n }", "nums.add(sc.nextInt())", "nums.add", "nums", "sc.nextInt()", "sc.nextInt", "sc", "int n_max = (int)Float.NEGATIVE_INFINITY;", "n_max", "(int)Float.NEGATIVE_INFINITY", "Float", "Float.NEGATIVE_INFINITY", "int n_min = nums.get(0);", "n_min", "nums.get(0)", "nums.get", "nums", "0", "for(int i=1; i<n; ++i) {\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "++i", "++i", "i", "{\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }", "{\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }", "n_max = Math.max(nums.get(i) - n_min, n_max)", "n_max", "Math.max(nums.get(i) - n_min, n_max)", "Math.max", "Math", "nums.get(i) - n_min", "nums.get(i)", "nums.get", "nums", "i", "n_min", "n_max", "n_min = Math.min(nums.get(i), n_min)", "n_min", "Math.min(nums.get(i), n_min)", "Math.min", "Math", "nums.get(i)", "nums.get", "nums", "i", "n_min", "System.out.println(n_max)", "System.out.println", "System.out", "System", "System.out", "n_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 List<Integer> nums = new ArrayList<>();\n for(int i=0; i<n; ++i) {\n nums.add(sc.nextInt());\n }\n\n int n_max = (int)Float.NEGATIVE_INFINITY; //??????????????§\n int n_min = nums.get(0);\n for(int i=1; i<n; ++i) {\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }\n\n System.out.println(n_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 List<Integer> nums = new ArrayList<>();\n for(int i=0; i<n; ++i) {\n nums.add(sc.nextInt());\n }\n\n int n_max = (int)Float.NEGATIVE_INFINITY; //??????????????§\n int n_min = nums.get(0);\n for(int i=1; i<n; ++i) {\n n_max = Math.max(nums.get(i) - n_min, n_max);\n n_min = Math.min(nums.get(i), n_min);\n }\n\n System.out.println(n_max);\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Integer> nums = new ArrayList<>(); for(int i=0; i<n; ++i) { nums.add(sc.nextInt()); } int n_max = (int)Float.NEGATIVE_INFINITY; //??????????????§ int n_min = nums.get(0); for(int i=1; i<n; ++i) { n_max = Math.max(nums.get(i) - n_min, n_max); n_min = Math.min(nums.get(i), n_min); } System.out.println(n_max); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 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, 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, 18, 13, 13, 9, 0, 13, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 141, 11 ], [ 141, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 18, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 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 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 31, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 31, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 31, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 89, 95 ], [ 89, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 88, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 101, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 31, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 12, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t}", "int lim = Integer.parseInt(in.readLine());", "lim", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "int[] a = new int[lim];", "a", "new int[lim]", "lim", "for (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < lim", "i", "lim", "i++", "i++", "i", "{\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}", "{\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}", "a[i] = Integer.parseInt(in.readLine())", "a[i]", "a", "i", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "int max = -1000000000;", "max", "-1000000000", "1000000000", "int mini = a[0];", "mini", "a[0]", "a", "0", "for (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < lim", "i", "lim", "i++", "i++", "i", "{\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}", "if (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];", "mini < a[i]", "mini", "a[i]", "a", "i", "continue;", "mini = a[i]", "mini", "a[i]", "a", "i", "for (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}", "int j = (i + 1);", "int j = (i + 1);", "j", "(i + 1)", "i", "1", "j < lim", "j", "lim", "j++", "j++", "j", "{\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}", "{\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}", "int tmp = a[j] - a[i];", "tmp", "a[j] - a[i]", "a[j]", "a", "j", "a[i]", "a", "i", "if (max < tmp) max = tmp;", "max < tmp", "max", "tmp", "max = tmp", "max", "tmp", "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\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tint[] a = new int[lim];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\ta[i] = Integer.parseInt(in.readLine());\n\t\t\t}\n\n\t\t\tint max = -1000000000;\n\t\t\tint mini = a[0];\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tif (mini < a[i]) continue;\n\t\t\t\telse mini = a[i];\n\t\t\t\tfor (int j = (i + 1); j < lim; j++) {\n\t\t\t\t\tint tmp = a[j] - a[i];\n\t\t\t\t\tif (max < tmp) max = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(max);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try { int lim = Integer.parseInt(in.readLine()); int[] a = new int[lim]; for (int i = 0; i < lim; i++) { a[i] = Integer.parseInt(in.readLine()); } int max = -1000000000; int mini = a[0]; for (int i = 0; i < lim; i++) { if (mini < a[i]) continue; else mini = a[i]; for (int j = (i + 1); j < lim; j++) { int tmp = a[j] - a[i]; if (max < tmp) max = tmp; } } System.out.println(max); } catch (NumberFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ 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, 17, 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 ], [ 74, 5 ], [ 74, 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 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 39, 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 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\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\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int minv = Integer.MAX_VALUE;", "minv", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int maxv = Integer.MIN_VALUE;", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\n\t\t}", "{\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\n\t\t}", "int j = scanner.nextInt();", "j", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);", "i > 0", "i", "0", "maxv = Math.max(maxv, j - minv)", "maxv", "Math.max(maxv, j - minv)", "Math.max", "Math", "maxv", "j - minv", "j", "minv", "minv = Math.min(minv, j)", "minv", "Math.min(minv, j)", "Math.min", "Math", "minv", "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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = scanner.nextInt();\n\t\t\tif (i > 0)\n\t\t\t\tmaxv = Math.max(maxv, j - minv);\n\t\t\tminv = Math.min(minv, j);\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 scanner = new Scanner(System.in); int n = scanner.nextInt(); int minv = Integer.MAX_VALUE; int maxv = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { int j = scanner.nextInt(); if (i > 0) maxv = Math.max(maxv, j - minv); minv = Math.min(minv, j); } System.out.println(maxv); } }
[ 7, 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, 2, 13, 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 ], [ 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 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 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 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 46, 52 ], [ 38, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong dMax = -1000000001;\n\t\tlong min = sc.nextLong();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}\n\t\t\n\t\tSystem.out.println(dMax);\n\t\tsc.close();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong dMax = -1000000001;\n\t\tlong min = sc.nextLong();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}\n\t\t\n\t\tSystem.out.println(dMax);\n\t\tsc.close();\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\n\t\tlong dMax = -1000000001;\n\t\tlong min = sc.nextLong();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}\n\t\t\n\t\tSystem.out.println(dMax);\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong dMax = -1000000001;\n\t\tlong min = sc.nextLong();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}\n\t\t\n\t\tSystem.out.println(dMax);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "long dMax = -1000000001;", "dMax", "-1000000001", "1000000001", "long min = sc.nextLong();", "min", "sc.nextLong()", "sc.nextLong", "sc", "for (int i = 1; i < n; i++) {\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}", "{\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}", "long r = sc.nextLong();", "r", "sc.nextLong()", "sc.nextLong", "sc", "dMax = Math.max((r - min), dMax)", "dMax", "Math.max((r - min), dMax)", "Math.max", "Math", "(r - min)", "r", "min", "dMax", "min = Math.min(r, min)", "min", "Math.min(r, min)", "Math.min", "Math", "r", "min", "System.out.println(dMax)", "System.out.println", "System.out", "System", "System.out", "dMax", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong dMax = -1000000001;\n\t\tlong min = sc.nextLong();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}\n\t\t\n\t\tSystem.out.println(dMax);\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tlong dMax = -1000000001;\n\t\tlong min = sc.nextLong();\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tlong r = sc.nextLong();\n\t\t\tdMax = Math.max((r - min), dMax);\n\t\t\tmin = Math.min(r, min);\n\t\t}\n\t\t\n\t\tSystem.out.println(dMax);\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long dMax = -1000000001; long min = sc.nextLong(); for (int i = 1; i < n; i++) { long r = sc.nextLong(); dMax = Math.max((r - min), dMax); min = Math.min(r, min); } System.out.println(dMax); sc.close(); } }
[ 7, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 97, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 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 ], [ 10, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 10, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 10, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 64, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 10, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 10, 91 ], [ 91, 92 ], [ 92, 93 ], [ 8, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic boolean[] prime;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint ans = -2000000000;\n\t\tint min = R[0];\n\t\tfor (int i=1; i<n; i++) {\n\t\t\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic boolean[] prime;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint ans = -2000000000;\n\t\tint min = R[0];\n\t\tfor (int i=1; i<n; i++) {\n\t\t\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n}", "Main", "static boolean[] prime;", "prime", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint ans = -2000000000;\n\t\tint min = R[0];\n\t\tfor (int i=1; i<n; i++) {\n\t\t\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint ans = -2000000000;\n\t\tint min = R[0];\n\t\tfor (int i=1; i<n; i++) {\n\t\t\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\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 = new int[n];", "R", "new int[n]", "n", "for (int i=0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "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", "int ans = -2000000000;", "ans", "-2000000000", "2000000000", "int min = R[0];", "min", "R[0]", "R", "0", "for (int i=1; i<n; i++) {\n\t\t\tans = Math.max(ans, 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\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}", "{\n\t\t\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}", "ans = Math.max(ans, R[i]-min)", "ans", "Math.max(ans, R[i]-min)", "Math.max", "Math", "ans", "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(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tstatic boolean[] prime;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint ans = -2000000000;\n\t\tint min = R[0];\n\t\tfor (int i=1; i<n; i++) {\n\t\t\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tstatic boolean[] prime;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint[] R = new int[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\n\t\tint ans = -2000000000;\n\t\tint min = R[0];\n\t\tfor (int i=1; i<n; i++) {\n\t\t\tans = Math.max(ans, R[i]-min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { static boolean[] prime; 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 ans = -2000000000; int min = R[0]; for (int i=1; i<n; i++) { ans = Math.max(ans, R[i]-min); min = Math.min(min, R[i]); } System.out.println(ans); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 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, 18, 13, 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, 0, 13, 2, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 14, 2, 13, 17, 30, 4, 18, 13, 0, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 139, 8 ], [ 139, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 11, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 11, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 11, 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 ], [ 72, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 72, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 85, 92 ], [ 92, 93 ], [ 92, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 85, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 100, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 11, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 11, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 129, 133 ], [ 133, 134 ], [ 133, 135 ], [ 9, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ] ]
[ "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\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tlong[] arr = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}\n\n\t\tlong result = Long.MIN_VALUE;\n\t\tlong min = Long.MAX_VALUE;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tlong[] arr = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}\n\n\t\tlong result = Long.MIN_VALUE;\n\t\tlong min = Long.MAX_VALUE;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tlong[] arr = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}\n\n\t\tlong result = Long.MIN_VALUE;\n\t\tlong min = Long.MAX_VALUE;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tlong[] arr = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}\n\n\t\tlong result = Long.MIN_VALUE;\n\t\tlong min = Long.MAX_VALUE;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int N = Integer.parseInt(br.readLine());", "N", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "long[] arr = new long[N];", "arr", "new long[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}", "{\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}", "arr[i] = Long.parseLong(br.readLine())", "arr[i]", "arr", "i", "Long.parseLong(br.readLine())", "Long.parseLong", "Long", "br.readLine()", "br.readLine", "br", "long result = Long.MIN_VALUE;", "result", "Long.MIN_VALUE", "Long", "Long.MIN_VALUE", "long min = Long.MAX_VALUE;", "min", "Long.MAX_VALUE", "Long", "Long.MAX_VALUE", "for (int i = 0; i < N; i++) {\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}", "{\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}", "if (arr[i] > min)\n\t\t\t\tcontinue;", "arr[i] > min", "arr[i]", "arr", "i", "min", "continue;", "min = arr[i]", "min", "arr[i]", "arr", "i", "for (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\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 (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}", "{\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}", "if (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];", "arr[j] - arr[i] > result", "arr[j] - arr[i]", "arr[j]", "arr", "j", "arr[i]", "arr", "i", "result", "result = arr[j] - arr[i]", "result", "arr[j] - arr[i]", "arr[j]", "arr", "j", "arr[i]", "arr", "i", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "if (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}", "br != null", "br", "null", "{\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}", "br.close()", "br.close", "br", "br = null", "br", "null", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tlong[] arr = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}\n\n\t\tlong result = Long.MIN_VALUE;\n\t\tlong min = Long.MAX_VALUE;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tlong[] arr = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarr[i] = Long.parseLong(br.readLine());\n\t\t}\n\n\t\tlong result = Long.MIN_VALUE;\n\t\tlong min = Long.MAX_VALUE;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tif (arr[i] > min)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tmin = arr[i];\n\t\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tif (arr[j] - arr[i] > result)\n\t\t\t\t\tresult = arr[j] - arr[i];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); long[] arr = new long[N]; for (int i = 0; i < N; i++) { arr[i] = Long.parseLong(br.readLine()); } long result = Long.MIN_VALUE; long min = Long.MAX_VALUE; for (int i = 0; i < N; i++) { if (arr[i] > min) continue; min = arr[i]; for (int j = i + 1; j < N; j++) { if (arr[j] - arr[i] > result) result = arr[j] - arr[i]; } } System.out.println(result); if (br != null) { br.close(); br = null; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 2, 17, 17, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 22, 35 ], [ 35, 36 ], [ 22, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 22, 41 ], [ 41, 42 ], [ 22, 43 ], [ 43, 44 ], [ 22, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 22, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 22, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 70, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 70, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 90, 94 ], [ 22, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 22, 101 ], [ 101, 102 ], [ 102, 103 ], [ 6, 104 ], [ 104, 105 ] ]
[ "import java.io.*;\n \nclass Main {\n public static void main(String[] args) {\n BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n try {\n int n = Integer.parseInt( kb.readLine() );\n\t\t\t\n\t\t\tint[] nums = new int[n];\n int num, maxprofit, min;\n int i, j;\n \n maxprofit = 1-1000000000;\n min = Integer.parseInt( kb.readLine() );\n for( i=1; i<n; i++ ) {\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }\n \n System.out.println( maxprofit );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args) {\n BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n try {\n int n = Integer.parseInt( kb.readLine() );\n\t\t\t\n\t\t\tint[] nums = new int[n];\n int num, maxprofit, min;\n int i, j;\n \n maxprofit = 1-1000000000;\n min = Integer.parseInt( kb.readLine() );\n for( i=1; i<n; i++ ) {\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }\n \n System.out.println( maxprofit );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n try {\n int n = Integer.parseInt( kb.readLine() );\n\t\t\t\n\t\t\tint[] nums = new int[n];\n int num, maxprofit, min;\n int i, j;\n \n maxprofit = 1-1000000000;\n min = Integer.parseInt( kb.readLine() );\n for( i=1; i<n; i++ ) {\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }\n \n System.out.println( maxprofit );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }", "main", "{\n BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n try {\n int n = Integer.parseInt( kb.readLine() );\n\t\t\t\n\t\t\tint[] nums = new int[n];\n int num, maxprofit, min;\n int i, j;\n \n maxprofit = 1-1000000000;\n min = Integer.parseInt( kb.readLine() );\n for( i=1; i<n; i++ ) {\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }\n \n System.out.println( maxprofit );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }\n }", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n int n = Integer.parseInt( kb.readLine() );\n\t\t\t\n\t\t\tint[] nums = new int[n];\n int num, maxprofit, min;\n int i, j;\n \n maxprofit = 1-1000000000;\n min = Integer.parseInt( kb.readLine() );\n for( i=1; i<n; i++ ) {\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }\n \n System.out.println( maxprofit );\n \n kb.close();\n } catch( IOException e ) {\n System.err.println( e );\n }", "catch( IOException e ) {\n System.err.println( e );\n }", "IOException e", "{\n System.err.println( e );\n }", "System.err.println( e )", "System.err.println", "System.err", "System", "System.err", "e", "{\n int n = Integer.parseInt( kb.readLine() );\n\t\t\t\n\t\t\tint[] nums = new int[n];\n int num, maxprofit, min;\n int i, j;\n \n maxprofit = 1-1000000000;\n min = Integer.parseInt( kb.readLine() );\n for( i=1; i<n; i++ ) {\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }\n \n System.out.println( maxprofit );\n \n kb.close();\n }", "int n = Integer.parseInt( kb.readLine() );", "n", "Integer.parseInt( kb.readLine() )", "Integer.parseInt", "Integer", "kb.readLine()", "kb.readLine", "kb", "int[] nums = new int[n];", "nums", "new int[n]", "n", "int num", "num", "maxprofit", "maxprofit", "min;", "min", "int i", "i", "j;", "j", "maxprofit = 1-1000000000", "maxprofit", "1-1000000000", "1", "1000000000", "min = Integer.parseInt( kb.readLine() )", "min", "Integer.parseInt( kb.readLine() )", "Integer.parseInt", "Integer", "kb.readLine()", "kb.readLine", "kb", "for( i=1; i<n; i++ ) {\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }", "i=1;", "i=1", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }", "{\n \tnum = Integer.parseInt( kb.readLine() );\n\t\t\t\tmaxprofit = Math.max( maxprofit, num-min );\n\t\t\t\tmin = Math.min( min, num );\n }", "num = Integer.parseInt( kb.readLine() )", "num", "Integer.parseInt( kb.readLine() )", "Integer.parseInt", "Integer", "kb.readLine()", "kb.readLine", "kb", "maxprofit = Math.max( maxprofit, num-min )", "maxprofit", "Math.max( maxprofit, num-min )", "Math.max", "Math", "maxprofit", "num-min", "num", "min", "min = Math.min( min, num )", "min", "Math.min( min, num )", "Math.min", "Math", "min", "num", "System.out.println( maxprofit )", "System.out.println", "System.out", "System", "System.out", "maxprofit", "kb.close()", "kb.close", "kb", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); int[] nums = new int[n]; int num, maxprofit, min; int i, j; maxprofit = 1-1000000000; min = Integer.parseInt( kb.readLine() ); for( i=1; i<n; i++ ) { num = Integer.parseInt( kb.readLine() ); maxprofit = Math.max( maxprofit, num-min ); min = Math.min( min, num ); } System.out.println( maxprofit ); kb.close(); } catch( IOException e ) { System.err.println( e ); } } }
[ 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, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 0, 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, 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 ], [ 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 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 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 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 71, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 88, 94 ], [ 94, 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.*;\n//import java.util.Math.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int A[] = new int[n];\n int i,j;\n \n for(i = 0; i < n; i++){\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }\n \n int min = A[0];\n int maxv = A[1] - A[0];\n \n for(i = 1; i < n; i++){\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }\n \n System.out.println(maxv);\n\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int A[] = new int[n];\n int i,j;\n \n for(i = 0; i < n; i++){\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }\n \n int min = A[0];\n int maxv = A[1] - A[0];\n \n for(i = 1; i < n; i++){\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }\n \n System.out.println(maxv);\n\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int A[] = new int[n];\n int i,j;\n \n for(i = 0; i < n; i++){\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }\n \n int min = A[0];\n int maxv = A[1] - A[0];\n \n for(i = 1; i < n; i++){\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }\n \n System.out.println(maxv);\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int A[] = new int[n];\n int i,j;\n \n for(i = 0; i < n; i++){\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }\n \n int min = A[0];\n int maxv = A[1] - A[0];\n \n for(i = 1; i < n; i++){\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }\n \n System.out.println(maxv);\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", "int i", "i", "j;", "j", "for(i = 0; i < n; i++){\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }", "{\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "int min = A[0];", "min", "A[0]", "A", "0", "int maxv = A[1] - A[0];", "maxv", "A[1] - A[0]", "A[1]", "A", "1", "A[0]", "A", "0", "for(i = 1; i < n; i++){\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }", "i = 1;", "i = 1", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }", "{\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }", "if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }", "(A[i] - min) > maxv", "(A[i] - min)", "A[i]", "A", "i", "min", "maxv", "{\n maxv = (A[i] - min);\n }", "maxv = (A[i] - min)", "maxv", "(A[i] - min)", "A[i]", "A", "i", "min", "if(A[i] < min){\n min = A[i];\n }", "A[i] < min", "A[i]", "A", "i", "min", "{\n min = A[i];\n }", "min = A[i]", "min", "A[i]", "A", "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) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int A[] = new int[n];\n int i,j;\n \n for(i = 0; i < n; i++){\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }\n \n int min = A[0];\n int maxv = A[1] - A[0];\n \n for(i = 1; i < n; i++){\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }\n \n System.out.println(maxv);\n\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int A[] = new int[n];\n int i,j;\n \n for(i = 0; i < n; i++){\n A[i] = sc.nextInt();\n // System.out.println(A[i]);\n }\n \n int min = A[0];\n int maxv = A[1] - A[0];\n \n for(i = 1; i < n; i++){\n if((A[i] - min) > maxv){\n maxv = (A[i] - min);\n }\n if(A[i] < min){\n min = A[i];\n }\n }\n \n System.out.println(maxv);\n\n }\n}", "Main" ]
import java.util.*; //import java.util.Math.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n]; int i,j; for(i = 0; i < n; i++){ A[i] = sc.nextInt(); // System.out.println(A[i]); } int min = A[0]; int maxv = A[1] - A[0]; for(i = 1; i < n; i++){ if((A[i] - min) > maxv){ maxv = (A[i] - min); } if(A[i] < min){ min = 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, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 2, 13, 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 ], [ 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 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 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 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 46, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 46, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 46, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 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.*;\npublic class Main {\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint[] ary =new int[n];\n \tint i,m;\n \tint reg=0;\n \tint min=0;\n \tint max=0;\n \tfor(i=0;i<n;i++){\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}\n \tSystem.out.println(max);\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint[] ary =new int[n];\n \tint i,m;\n \tint reg=0;\n \tint min=0;\n \tint max=0;\n \tfor(i=0;i<n;i++){\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}\n \tSystem.out.println(max);\n\n }\n}", "Main", "public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint[] ary =new int[n];\n \tint i,m;\n \tint reg=0;\n \tint min=0;\n \tint max=0;\n \tfor(i=0;i<n;i++){\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}\n \tSystem.out.println(max);\n\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint[] ary =new int[n];\n \tint i,m;\n \tint reg=0;\n \tint min=0;\n \tint max=0;\n \tfor(i=0;i<n;i++){\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}\n \tSystem.out.println(max);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] ary =new int[n];", "ary", "new int[n]", "n", "int i", "i", "m;", "m", "int reg=0;", "reg", "0", "int min=0;", "min", "0", "int max=0;", "max", "0", "for(i=0;i<n;i++){\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}", "{\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}", "m=sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "if(i==0){\n \t\t\tmin=m;\n \t\t}", "i==0", "i", "0", "{\n \t\t\tmin=m;\n \t\t}", "min=m", "min", "m", "if(i==1){\n \t\t\tmax=m-min;\n \t\t}", "i==1", "i", "1", "{\n \t\t\tmax=m-min;\n \t\t}", "max=m-min", "max", "m-min", "m", "min", "if(m-min>max){\n \t\t\tmax=m-min;\n \t\t}", "m-min>max", "m-min", "m", "min", "max", "{\n \t\t\tmax=m-min;\n \t\t}", "max=m-min", "max", "m-min", "m", "min", "if(m<min){\n \t\t\tmin=m;\n \t\t}", "m<min", "m", "min", "{\n \t\t\tmin=m;\n \t\t}", "min=m", "min", "m", "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 \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint[] ary =new int[n];\n \tint i,m;\n \tint reg=0;\n \tint min=0;\n \tint max=0;\n \tfor(i=0;i<n;i++){\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}\n \tSystem.out.println(max);\n\n }\n}", "public class Main {\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint[] ary =new int[n];\n \tint i,m;\n \tint reg=0;\n \tint min=0;\n \tint max=0;\n \tfor(i=0;i<n;i++){\n \t\tm=sc.nextInt();\n \t\tif(i==0){\n \t\t\tmin=m;\n \t\t}\n \t\tif(i==1){\n \t\t\tmax=m-min;\n \t\t}\n \n \t\tif(m-min>max){\n \t\t\tmax=m-min;\n \t\t}\n \t\tif(m<min){\n \t\t\tmin=m;\n \t\t}\n \t\t\n \t}\n \tSystem.out.println(max);\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[] ary =new int[n]; int i,m; int reg=0; int min=0; int max=0; for(i=0;i<n;i++){ m=sc.nextInt(); if(i==0){ min=m; } if(i==1){ max=m-min; } if(m-min>max){ max=m-min; } if(m<min){ min=m; } } System.out.println(max); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 20, 13, 0, 13, 17, 30, 0, 18, 13, 13, 4, 18, 13, 13, 40, 13, 14, 2, 13, 13, 30, 3, 41, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 13, 30, 0, 13, 18, 13, 13, 0, 13, 17, 14, 2, 2, 13, 13, 2, 13, 2, 13, 17, 30, 0, 13, 13, 14, 2, 13, 2, 13, 17, 30, 0, 13, 18, 13, 2, 13, 17, 14, 2, 2, 13, 13, 13, 30, 4, 18, 18, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 13, 29, 30, 0, 13, 18, 13, 2, 13, 17, 0, 13, 13, 14, 2, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 2, 13, 13, 13, 30, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 227, 8 ], [ 227, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 13, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 22 ], [ 22, 23 ], [ 22, 24 ], [ 13, 25 ], [ 25, 26 ], [ 25, 27 ], [ 13, 28 ], [ 28, 29 ], [ 28, 30 ], [ 13, 31 ], [ 31, 32 ], [ 31, 33 ], [ 13, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 56 ], [ 56, 57 ], [ 56, 58 ], [ 43, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 59, 68 ], [ 68, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 13, 76 ], [ 76, 77 ], [ 76, 78 ], [ 13, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 13, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 13, 93 ], [ 93, 94 ], [ 93, 95 ], [ 13, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 96, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 108, 117 ], [ 117, 118 ], [ 117, 119 ], [ 108, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 120, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 134, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 140, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 148, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 148, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 140, 170 ], [ 134, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 171, 179 ], [ 179, 180 ], [ 179, 181 ], [ 171, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 185, 187 ], [ 182, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 191, 193 ], [ 182, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 120, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 206, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 215, 217 ], [ 13, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 218, 223 ], [ 9, 224 ], [ 224, 225 ], [ 0, 226 ], [ 226, 227 ], [ 226, 228 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }\n }", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }", "{\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "int n=0", "n", "0", "j=0;", "j", "0", "int[] store=null;", "store", "null", "boolean first=true", "first", "true", "min_flag=true;", "min_flag", "true", "while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }", "if(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t}", "first", "{\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}", "n=Integer.parseInt(line)", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "store=new int[n]", "store", "new int[n]", "n", "first=false", "first", "false", "{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t}", "store[j]=Integer.parseInt(line)", "store[j]", "store", "j", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "j++", "j", "if(j==n){\n \t\t\tbreak;\n \t\t}", "j==n", "j", "n", "{\n \t\t\tbreak;\n \t\t}", "break;", "int s=0;", "s", "0", "int result=store[1]-store[0];", "result", "store[1]-store[0]", "store[1]", "store", "1", "store[0]", "store", "0", "int min=store[0]", "min", "store[0]", "store", "0", "max=min;", "max", "min", "for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }", "{\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }", "if(min_flag){\n \t\ts=store[i];\n \t\t}", "min_flag", "{\n \t\ts=store[i];\n \t\t}", "s=store[i]", "s", "store[i]", "store", "i", "min_flag=true", "min_flag", "true", "if(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}", "s<=min&&i!=n-1", "s<=min", "s", "min", "i!=n-1", "i", "n-1", "n", "1", "{\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }", "min=s", "min", "s", "if(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}", "i==n-2", "i", "n-2", "n", "2", "{\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}", "max=store[i+1]", "max", "store[i+1]", "store", "i+1", "i", "1", "if(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}", "max-min>result", "max-min", "max", "min", "result", "{\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}", "System.out.println(max-min)", "System.out.println", "System.out", "System", "System.out", "max-min", "max", "min", "{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "return;", "{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}", "s=store[i+1]", "s", "store[i+1]", "store", "i+1", "i", "1", "max=s", "max", "s", "if(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}", "result<max-min", "result", "max-min", "max", "min", "{\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}", "result=max-min", "result", "max-min", "max", "min", "{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}", "min_flag=false", "min_flag", "false", "if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}", "s>=max", "s", "max", "{\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}", "max=s", "max", "s", "if(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}", "max-min>result", "max-min", "max", "min", "result", "{\n\t \t\t\tresult=max-min;\n\t \t\t}", "result=max-min", "result", "max-min", "max", "min", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }\n }\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,j=0;\n int[] store=null;\n boolean first=true,min_flag=true;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tstore=new int[n];\n \t\tfirst=false;\n \t}else{\n \t\tstore[j]=Integer.parseInt(line);\n \t\tj++;\n \t\tif(j==n){\n \t\t\tbreak;\n \t\t}\n \t} \t\n }\n int s=0;\n int result=store[1]-store[0];\n int min=store[0],max=min;\n for(int i=1;i<n;i++){\n \tif(min_flag){\n \t\ts=store[i];\n \t\t}\n \t//System.out.println(i);\n \tmin_flag=true;\n \t\tif(s<=min&&i!=n-1){\n \t\t\t//System.out.println(s);\n \t\tmin=s;\n\t \tif(i==n-2){\n\t \t\t\tmax=store[i+1];\n\t \t\tif(max-min>result){\n\t \t\t\tSystem.out.println(max-min);\n\t \t\t}else{\n\t \t\t\t\tSystem.out.println(result);\n\t \t\t\t}\n\t \t\t\treturn;\n\t \t\t}else{\n\t \t\t\ts=store[i+1];\n\t \t\t\tmax=s;\n\t \t\t\tif(result<max-min){\n\t \t\t\t\tresult=max-min;\n\t \t\t\t}else{\n\t \t\t\t\tmin_flag=false;\n\t \t\t\t}\n\t \t\t}\n\t }else if(s>=max){\n\t \t\tmax=s;\n\t \t\tif(max-min>result){\n\t \t\t\tresult=max-min;\n\t \t\t}\n\t \t}\n \t\t\n }\n \t\n System.out.println(result);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; int n=0,j=0; int[] store=null; boolean first=true,min_flag=true; while ((line = br.readLine()) != null) { if(first){ n=Integer.parseInt(line); store=new int[n]; first=false; }else{ store[j]=Integer.parseInt(line); j++; if(j==n){ break; } } } int s=0; int result=store[1]-store[0]; int min=store[0],max=min; for(int i=1;i<n;i++){ if(min_flag){ s=store[i]; } //System.out.println(i); min_flag=true; if(s<=min&&i!=n-1){ //System.out.println(s); min=s; if(i==n-2){ max=store[i+1]; if(max-min>result){ System.out.println(max-min); }else{ System.out.println(result); } return; }else{ s=store[i+1]; max=s; if(result<max-min){ result=max-min; }else{ min_flag=false; } } }else if(s>=max){ max=s; if(max-min>result){ result=max-min; } } } System.out.println(result); } } }
[ 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, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 17, 41, 13, 2, 18, 13, 17, 13, 14, 2, 13, 18, 13, 17, 0, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 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, 29, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 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 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 12, 61 ], [ 61, 62 ], [ 10, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 65, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 65, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 65, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 105, 111 ], [ 104, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 104, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 119, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 65, 130 ], [ 130, 131 ], [ 63, 132 ], [ 132, 133 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nclass Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] arr = new int[n];\n for(int i=0;i<n;i++){\n arr[i] = Integer.parseInt(br.readLine());\n }\n\n System.out.println(maxDif(arr));\n }\n private static int maxDif(int[] arr){\n int min = arr[0],\n maxDif = arr[1] - min;\n if(min > arr[1])min = arr[1];\n\n for(int i=2; i<arr.length; i++){\n if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];\n }\n return maxDif;\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] arr = new int[n];\n for(int i=0;i<n;i++){\n arr[i] = Integer.parseInt(br.readLine());\n }\n\n System.out.println(maxDif(arr));\n }\n private static int maxDif(int[] arr){\n int min = arr[0],\n maxDif = arr[1] - min;\n if(min > arr[1])min = arr[1];\n\n for(int i=2; i<arr.length; i++){\n if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];\n }\n return maxDif;\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] arr = new int[n];\n for(int i=0;i<n;i++){\n arr[i] = Integer.parseInt(br.readLine());\n }\n\n System.out.println(maxDif(arr));\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] arr = new int[n];\n for(int i=0;i<n;i++){\n arr[i] = Integer.parseInt(br.readLine());\n }\n\n System.out.println(maxDif(arr));\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[] arr = new int[n];", "arr", "new int[n]", "n", "for(int i=0;i<n;i++){\n arr[i] = Integer.parseInt(br.readLine());\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n arr[i] = Integer.parseInt(br.readLine());\n }", "{\n arr[i] = Integer.parseInt(br.readLine());\n }", "arr[i] = Integer.parseInt(br.readLine())", "arr[i]", "arr", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "System.out.println(maxDif(arr))", "System.out.println", "System.out", "System", "System.out", "maxDif(arr)", "maxDif", "arr", "String[] args", "args", "private static int maxDif(int[] arr){\n int min = arr[0],\n maxDif = arr[1] - min;\n if(min > arr[1])min = arr[1];\n\n for(int i=2; i<arr.length; i++){\n if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];\n }\n return maxDif;\n }", "maxDif", "{\n int min = arr[0],\n maxDif = arr[1] - min;\n if(min > arr[1])min = arr[1];\n\n for(int i=2; i<arr.length; i++){\n if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];\n }\n return maxDif;\n }", "int min = arr[0]", "min", "arr[0]", "arr", "0", "maxDif = arr[1] - min;", "maxDif", "arr[1] - min", "arr[1]", "arr", "1", "min", "if(min > arr[1])min = arr[1];", "min > arr[1]", "min", "arr[1]", "arr", "1", "min = arr[1]", "min", "arr[1]", "arr", "1", "for(int i=2; i<arr.length; i++){\n if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];\n }", "int i=2;", "int i=2;", "i", "2", "i<arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];\n }", "{\n if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];\n }", "if(arr[i] - min > maxDif) maxDif = arr[i] - min;\n else if(arr[i] < min)min = arr[i];", "arr[i] - min > maxDif", "arr[i] - min", "arr[i]", "arr", "i", "min", "maxDif", "maxDif = arr[i] - min", "maxDif", "arr[i] - min", "arr[i]", "arr", "i", "min", "if(arr[i] < min)min = arr[i];", "arr[i] < min", "arr[i]", "arr", "i", "min", "min = arr[i]", "min", "arr[i]", "arr", "i", "return maxDif;", "maxDif", "int[] arr", "arr" ]
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[] arr = new int[n]; for(int i=0;i<n;i++){ arr[i] = Integer.parseInt(br.readLine()); } System.out.println(maxDif(arr)); } private static int maxDif(int[] arr){ int min = arr[0], maxDif = arr[1] - min; if(min > arr[1])min = arr[1]; for(int i=2; i<arr.length; i++){ if(arr[i] - min > maxDif) maxDif = arr[i] - min; else if(arr[i] < min)min = arr[i]; } return maxDif; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 13, 41, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 17, 14, 2, 13, 18, 13, 13, 3, 41, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 13, 41, 13, 2, 18, 13, 13, 18, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 29, 20, 12, 13, 30, 41, 13, 4, 18, 13, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 13, 29, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 23, 13, 12, 13, 30, 4, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 14, 2, 2, 13, 13, 17, 30, 29, 17, 29, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 346, 8 ], [ 346, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 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 ], [ 47, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 50, 56 ], [ 44, 57 ], [ 57, 58 ], [ 57, 59 ], [ 44, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 60, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 60, 72 ], [ 72, 73 ], [ 73, 74 ], [ 60, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 44, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 89, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 44, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 44, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 44, 133 ], [ 133, 134 ], [ 133, 135 ], [ 11, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 9, 142 ], [ 142, 143 ], [ 346, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 346, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 151, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 149, 162 ], [ 162, 163 ], [ 346, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 166, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 166, 178 ], [ 178, 179 ], [ 178, 180 ], [ 181, 182 ], [ 181, 183 ], [ 166, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 191, 193 ], [ 184, 194 ], [ 194, 195 ], [ 195, 196 ], [ 184, 197 ], [ 198, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 206, 207 ], [ 206, 208 ], [ 166, 209 ], [ 209, 210 ], [ 164, 211 ], [ 211, 212 ], [ 346, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 218, 220 ], [ 215, 221 ], [ 221, 222 ], [ 221, 223 ], [ 215, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 225, 230 ], [ 230, 231 ], [ 230, 232 ], [ 225, 233 ], [ 233, 234 ], [ 234, 235 ], [ 225, 236 ], [ 237, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 242, 243 ], [ 242, 244 ], [ 215, 245 ], [ 245, 246 ], [ 213, 247 ], [ 247, 248 ], [ 346, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 252, 257 ], [ 257, 258 ], [ 257, 259 ], [ 252, 260 ], [ 260, 261 ], [ 261, 262 ], [ 252, 263 ], [ 264, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 265, 270 ], [ 270, 271 ], [ 270, 272 ], [ 264, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 276, 278 ], [ 273, 279 ], [ 279, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 280, 285 ], [ 251, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 286, 291 ], [ 249, 292 ], [ 292, 293 ], [ 249, 294 ], [ 294, 295 ], [ 346, 296 ], [ 296, 297 ], [ 296, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 299, 302 ], [ 302, 303 ], [ 302, 304 ], [ 296, 305 ], [ 305, 306 ], [ 346, 307 ], [ 307, 308 ], [ 307, 309 ], [ 309, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 314, 315 ], [ 313, 316 ], [ 312, 317 ], [ 309, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 318, 323 ], [ 323, 324 ], [ 323, 325 ], [ 318, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 318, 330 ], [ 331, 331 ], [ 331, 332 ], [ 332, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 332, 338 ], [ 338, 339 ], [ 339, 340 ], [ 309, 341 ], [ 341, 342 ], [ 307, 343 ], [ 343, 344 ], [ 0, 345 ], [ 345, 346 ], [ 345, 347 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\t\tint[] ary = getAryMl(breader);\n\t\tint maxdf = ary[1] - ary[0] ;\n\t\tfor( int i = 0 ; i < ary.length ; i++ ) {\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}\n\t\tSystem.out.println(maxdf);\n\t\t\n\t}\n\tpublic static BufferedReader getReader() {\n\t\treturn( new BufferedReader(new InputStreamReader(System.in)));\n\t}\n\tpublic static int getInt(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\treturn Integer.valueOf(line);\n\t}\n\tpublic static int[] getAry(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\tString[] nstr = line.split(\" \");\n\t\tint[] n = new int[nstr.length];\n\t\tfor( int i=0 ; i < nstr.length ; i++ ) {\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}\n\t\treturn n;\n\t}\n\tpublic static int[] getAryMl(BufferedReader br)throws Exception {\n\t\tint n = getInt(br);\n\t\tint[] ary = new int[n];\n\t\tfor( int i=0 ; i < n ; i++ ) {\n\t\t\tary[i] = getInt(br);\n\t\t}\n\t\treturn ary;\n\t}\n\tpublic static void putAry(int[] ary, int num) {\n\t\tfor( int i = 0; i < num ; i++ ) {\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\tpublic static void putAry(int[] ary) {\n\t\tputAry(ary, ary.length ) ;\n\t}\n\tpublic static boolean isPrime(int n) {\n\t\tint r = (int)Math.sqrt((double)n)+1;\n\t\tfor( int j = 2 ; j < r ; j += 1) {\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\t\tint[] ary = getAryMl(breader);\n\t\tint maxdf = ary[1] - ary[0] ;\n\t\tfor( int i = 0 ; i < ary.length ; i++ ) {\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}\n\t\tSystem.out.println(maxdf);\n\t\t\n\t}\n\tpublic static BufferedReader getReader() {\n\t\treturn( new BufferedReader(new InputStreamReader(System.in)));\n\t}\n\tpublic static int getInt(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\treturn Integer.valueOf(line);\n\t}\n\tpublic static int[] getAry(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\tString[] nstr = line.split(\" \");\n\t\tint[] n = new int[nstr.length];\n\t\tfor( int i=0 ; i < nstr.length ; i++ ) {\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}\n\t\treturn n;\n\t}\n\tpublic static int[] getAryMl(BufferedReader br)throws Exception {\n\t\tint n = getInt(br);\n\t\tint[] ary = new int[n];\n\t\tfor( int i=0 ; i < n ; i++ ) {\n\t\t\tary[i] = getInt(br);\n\t\t}\n\t\treturn ary;\n\t}\n\tpublic static void putAry(int[] ary, int num) {\n\t\tfor( int i = 0; i < num ; i++ ) {\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\tpublic static void putAry(int[] ary) {\n\t\tputAry(ary, ary.length ) ;\n\t}\n\tpublic static boolean isPrime(int n) {\n\t\tint r = (int)Math.sqrt((double)n)+1;\n\t\tfor( int j = 2 ; j < r ; j += 1) {\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\t\tint[] ary = getAryMl(breader);\n\t\tint maxdf = ary[1] - ary[0] ;\n\t\tfor( int i = 0 ; i < ary.length ; i++ ) {\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}\n\t\tSystem.out.println(maxdf);\n\t\t\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\t\tint[] ary = getAryMl(breader);\n\t\tint maxdf = ary[1] - ary[0] ;\n\t\tfor( int i = 0 ; i < ary.length ; i++ ) {\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}\n\t\tSystem.out.println(maxdf);\n\t\t\n\t}", "BufferedReader breader = getReader();", "breader", "getReader()", "getReader", "int[] ary = getAryMl(breader);", "ary", "getAryMl(breader)", "getAryMl", "breader", "int maxdf = ary[1] - ary[0] ;", "maxdf", "ary[1] - ary[0]", "ary[1]", "ary", "1", "ary[0]", "ary", "0", "for( int i = 0 ; i < ary.length ; i++ ) {\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < ary.length", "i", "ary.length", "ary", "ary.length", "i++", "i++", "i", "{\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}", "{\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}", "int maxj = i+1;", "maxj", "i+1", "i", "1", "if ( maxj == ary.length ) break;", "maxj == ary.length", "maxj", "ary.length", "ary", "ary.length", "break;", "int mini = i;", "mini", "i", "for( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}", "int j = i+2 ;", "int j = i+2 ;", "j", "i+2", "i", "2", "j < ary.length", "j", "ary.length", "ary", "ary.length", "j++", "j++", "j", "{\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}", "if ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}", "ary[maxj] <= ary[j]", "ary[maxj]", "ary", "maxj", "ary[j]", "ary", "j", "{\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}", "maxj = j", "maxj", "j", "for( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}", "int k = i+1 ;", "int k = i+1 ;", "k", "i+1", "i", "1", "k < maxj", "k", "maxj", "k++", "k++", "k", "{\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}", "if ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}", "ary[k] < ary[mini]", "ary[k]", "ary", "k", "ary[mini]", "ary", "mini", "{\n\t\t\t\t\tmini = k;\n\t\t\t\t}", "mini = k", "mini", "k", "int maxdfw = ary[maxj]- ary[mini];", "maxdfw", "ary[maxj]- ary[mini]", "ary[maxj]", "ary", "maxj", "ary[mini]", "ary", "mini", "if ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}", "maxdf < maxdfw", "maxdf", "maxdfw", "{\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}", "maxdf = maxdfw", "maxdf", "maxdfw", "i = maxj", "i", "maxj", "System.out.println(maxdf)", "System.out.println", "System.out", "System", "System.out", "maxdf", "String[] args", "args", "public static BufferedReader getReader() {\n\t\treturn( new BufferedReader(new InputStreamReader(System.in)));\n\t}", "getReader", "{\n\t\treturn( new BufferedReader(new InputStreamReader(System.in)));\n\t}", "return( new BufferedReader(new InputStreamReader(System.in)));", "( new BufferedReader(new InputStreamReader(System.in)))", "public static int getInt(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\treturn Integer.valueOf(line);\n\t}", "getInt", "{\n\t\tString line = br.readLine();\n\t\treturn Integer.valueOf(line);\n\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "return Integer.valueOf(line);", "Integer.valueOf(line)", "Integer.valueOf", "Integer", "line", "BufferedReader br", "br", "public static int[] getAry(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\tString[] nstr = line.split(\" \");\n\t\tint[] n = new int[nstr.length];\n\t\tfor( int i=0 ; i < nstr.length ; i++ ) {\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}\n\t\treturn n;\n\t}", "getAry", "{\n\t\tString line = br.readLine();\n\t\tString[] nstr = line.split(\" \");\n\t\tint[] n = new int[nstr.length];\n\t\tfor( int i=0 ; i < nstr.length ; i++ ) {\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}\n\t\treturn n;\n\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] nstr = line.split(\" \");", "nstr", "line.split(\" \")", "line.split", "line", "\" \"", "int[] n = new int[nstr.length];", "n", "new int[nstr.length]", "nstr.length", "nstr", "nstr.length", "for( int i=0 ; i < nstr.length ; i++ ) {\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}", "int i=0 ;", "int i=0 ;", "i", "0", "i < nstr.length", "i", "nstr.length", "nstr", "nstr.length", "i++", "i++", "i", "{\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}", "{\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}", "n[i] = Integer.valueOf(nstr[i])", "n[i]", "n", "i", "Integer.valueOf(nstr[i])", "Integer.valueOf", "Integer", "nstr[i]", "nstr", "i", "return n;", "n", "BufferedReader br", "br", "public static int[] getAryMl(BufferedReader br)throws Exception {\n\t\tint n = getInt(br);\n\t\tint[] ary = new int[n];\n\t\tfor( int i=0 ; i < n ; i++ ) {\n\t\t\tary[i] = getInt(br);\n\t\t}\n\t\treturn ary;\n\t}", "getAryMl", "{\n\t\tint n = getInt(br);\n\t\tint[] ary = new int[n];\n\t\tfor( int i=0 ; i < n ; i++ ) {\n\t\t\tary[i] = getInt(br);\n\t\t}\n\t\treturn ary;\n\t}", "int n = getInt(br);", "n", "getInt(br)", "getInt", "br", "int[] ary = new int[n];", "ary", "new int[n]", "n", "for( int i=0 ; i < n ; i++ ) {\n\t\t\tary[i] = getInt(br);\n\t\t}", "int i=0 ;", "int i=0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tary[i] = getInt(br);\n\t\t}", "{\n\t\t\tary[i] = getInt(br);\n\t\t}", "ary[i] = getInt(br)", "ary[i]", "ary", "i", "getInt(br)", "getInt", "br", "return ary;", "ary", "BufferedReader br", "br", "public static void putAry(int[] ary, int num) {\n\t\tfor( int i = 0; i < num ; i++ ) {\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "putAry", "{\n\t\tfor( int i = 0; i < num ; i++ ) {\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "for( int i = 0; i < num ; i++ ) {\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "{\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}", "System.out.print(ary[i])", "System.out.print", "System.out", "System", "System.out", "ary[i]", "ary", "i", "if ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "i < num-1", "i", "num-1", "num", "1", "{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int[] ary", "ary", "int num", "num", "public static void putAry(int[] ary) {\n\t\tputAry(ary, ary.length ) ;\n\t}", "putAry", "{\n\t\tputAry(ary, ary.length ) ;\n\t}", "putAry(ary, ary.length )", "putAry", "ary", "ary.length", "ary", "ary.length", "int[] ary", "ary", "public static boolean isPrime(int n) {\n\t\tint r = (int)Math.sqrt((double)n)+1;\n\t\tfor( int j = 2 ; j < r ; j += 1) {\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "isPrime", "{\n\t\tint r = (int)Math.sqrt((double)n)+1;\n\t\tfor( int j = 2 ; j < r ; j += 1) {\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "int r = (int)Math.sqrt((double)n)+1;", "r", "(int)Math.sqrt((double)n)+1", "(int)Math.sqrt((double)n)", "Math.sqrt", "Math", "(double)n", "1", "for( int j = 2 ; j < r ; j += 1) {\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "int j = 2 ;", "int j = 2 ;", "j", "2", "j < r", "j", "r", "j += 1", "j += 1", "j", "1", "{\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "{\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "if ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}", "n%j == 0", "n%j", "n", "j", "0", "{\n\t\t\t\treturn false;\n\t\t\t}", "return false;", "false", "return true;", "true", "int n", "n", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\t\tint[] ary = getAryMl(breader);\n\t\tint maxdf = ary[1] - ary[0] ;\n\t\tfor( int i = 0 ; i < ary.length ; i++ ) {\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}\n\t\tSystem.out.println(maxdf);\n\t\t\n\t}\n\tpublic static BufferedReader getReader() {\n\t\treturn( new BufferedReader(new InputStreamReader(System.in)));\n\t}\n\tpublic static int getInt(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\treturn Integer.valueOf(line);\n\t}\n\tpublic static int[] getAry(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\tString[] nstr = line.split(\" \");\n\t\tint[] n = new int[nstr.length];\n\t\tfor( int i=0 ; i < nstr.length ; i++ ) {\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}\n\t\treturn n;\n\t}\n\tpublic static int[] getAryMl(BufferedReader br)throws Exception {\n\t\tint n = getInt(br);\n\t\tint[] ary = new int[n];\n\t\tfor( int i=0 ; i < n ; i++ ) {\n\t\t\tary[i] = getInt(br);\n\t\t}\n\t\treturn ary;\n\t}\n\tpublic static void putAry(int[] ary, int num) {\n\t\tfor( int i = 0; i < num ; i++ ) {\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\tpublic static void putAry(int[] ary) {\n\t\tputAry(ary, ary.length ) ;\n\t}\n\tpublic static boolean isPrime(int n) {\n\t\tint r = (int)Math.sqrt((double)n)+1;\n\t\tfor( int j = 2 ; j < r ; j += 1) {\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\t\tint[] ary = getAryMl(breader);\n\t\tint maxdf = ary[1] - ary[0] ;\n\t\tfor( int i = 0 ; i < ary.length ; i++ ) {\n\t\t\tint maxj = i+1;\n\t\t\tif ( maxj == ary.length ) break;\n\t\t\tint mini = i;\n\t\t\tfor( int j = i+2 ; j < ary.length ; j++ ) {\n\t\t\t\tif ( ary[maxj] <= ary[j]) {\n\t\t\t\t\tmaxj = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor( int k = i+1 ; k < maxj ; k++ ) {\n\t\t\t\tif ( ary[k] < ary[mini]) {\n\t\t\t\t\tmini = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxdfw = ary[maxj]- ary[mini];\n\t\t\tif ( maxdf < maxdfw) {\n\t\t\t\tmaxdf = maxdfw ;\n\t\t\t}\n\t\t\ti = maxj;\n\t\t}\n\t\tSystem.out.println(maxdf);\n\t\t\n\t}\n\tpublic static BufferedReader getReader() {\n\t\treturn( new BufferedReader(new InputStreamReader(System.in)));\n\t}\n\tpublic static int getInt(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\treturn Integer.valueOf(line);\n\t}\n\tpublic static int[] getAry(BufferedReader br)throws Exception {\n\t\tString line = br.readLine();\n\t\tString[] nstr = line.split(\" \");\n\t\tint[] n = new int[nstr.length];\n\t\tfor( int i=0 ; i < nstr.length ; i++ ) {\n\t\t\tn[i] = Integer.valueOf(nstr[i]);\n\t\t}\n\t\treturn n;\n\t}\n\tpublic static int[] getAryMl(BufferedReader br)throws Exception {\n\t\tint n = getInt(br);\n\t\tint[] ary = new int[n];\n\t\tfor( int i=0 ; i < n ; i++ ) {\n\t\t\tary[i] = getInt(br);\n\t\t}\n\t\treturn ary;\n\t}\n\tpublic static void putAry(int[] ary, int num) {\n\t\tfor( int i = 0; i < num ; i++ ) {\n\t\t\tSystem.out.print(ary[i]);\n\t\t\tif ( i < num-1) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\tpublic static void putAry(int[] ary) {\n\t\tputAry(ary, ary.length ) ;\n\t}\n\tpublic static boolean isPrime(int n) {\n\t\tint r = (int)Math.sqrt((double)n)+1;\n\t\tfor( int j = 2 ; j < r ; j += 1) {\n\t\t\tif ( n%j == 0 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? BufferedReader breader = getReader(); int[] ary = getAryMl(breader); int maxdf = ary[1] - ary[0] ; for( int i = 0 ; i < ary.length ; i++ ) { int maxj = i+1; if ( maxj == ary.length ) break; int mini = i; for( int j = i+2 ; j < ary.length ; j++ ) { if ( ary[maxj] <= ary[j]) { maxj = j; } } for( int k = i+1 ; k < maxj ; k++ ) { if ( ary[k] < ary[mini]) { mini = k; } } int maxdfw = ary[maxj]- ary[mini]; if ( maxdf < maxdfw) { maxdf = maxdfw ; } i = maxj; } System.out.println(maxdf); } public static BufferedReader getReader() { return( new BufferedReader(new InputStreamReader(System.in))); } public static int getInt(BufferedReader br)throws Exception { String line = br.readLine(); return Integer.valueOf(line); } public static int[] getAry(BufferedReader br)throws Exception { String line = br.readLine(); String[] nstr = line.split(" "); int[] n = new int[nstr.length]; for( int i=0 ; i < nstr.length ; i++ ) { n[i] = Integer.valueOf(nstr[i]); } return n; } public static int[] getAryMl(BufferedReader br)throws Exception { int n = getInt(br); int[] ary = new int[n]; for( int i=0 ; i < n ; i++ ) { ary[i] = getInt(br); } return ary; } public static void putAry(int[] ary, int num) { for( int i = 0; i < num ; i++ ) { System.out.print(ary[i]); if ( i < num-1) { System.out.print(" "); } } System.out.println(""); } public static void putAry(int[] ary) { putAry(ary, ary.length ) ; } public static boolean isPrime(int n) { int r = (int)Math.sqrt((double)n)+1; for( int j = 2 ; j < r ; j += 1) { if ( n%j == 0 ) { return false; } } return true; } }
[ 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, 11, 1, 41, 13, 17, 2, 13, 18, 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, 8, 2, 2, 18, 13, 13, 13, 13, 2, 18, 13, 13, 13, 13, 0, 13, 8, 2, 13, 18, 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 ], [ 102, 5 ], [ 102, 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 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 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 ], [ 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 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 67, 80 ], [ 64, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 89, 91 ], [ 83, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r[] = new int[n];\n\t\tint maxv = -999999999;\n\t\tfor (int i = 0; i < r.length; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint minv = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? r[i] : minv;\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 sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r[] = new int[n];\n\t\tint maxv = -999999999;\n\t\tfor (int i = 0; i < r.length; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint minv = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? r[i] : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\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[] = new int[n];\n\t\tint maxv = -999999999;\n\t\tfor (int i = 0; i < r.length; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint minv = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? r[i] : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r[] = new int[n];\n\t\tint maxv = -999999999;\n\t\tfor (int i = 0; i < r.length; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint minv = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? r[i] : minv;\n\t\t}\n\t\tSystem.out.println(maxv);\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[] = new int[n];", "r", "new int[n]", "n", "int maxv = -999999999;", "maxv", "-999999999", "999999999", "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", "int minv = r[0];", "minv", "r[0]", "r", "0", "for (int i = 1; i < n; i++) {\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? r[i] : minv;\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? r[i] : minv;\n\t\t}", "{\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? 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 = minv > r[i] ? r[i] : minv", "minv", "minv > r[i] ? r[i] : minv", "minv > r[i]", "minv", "r[i]", "r", "i", "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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r[] = new int[n];\n\t\tint maxv = -999999999;\n\t\tfor (int i = 0; i < r.length; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint minv = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? 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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint r[] = new int[n];\n\t\tint maxv = -999999999;\n\t\tfor (int i = 0; i < r.length; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint minv = r[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tmaxv = r[i] - minv > maxv ? r[i] - minv : maxv;\n\t\t\tminv = minv > r[i] ? 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) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int r[] = new int[n]; int maxv = -999999999; for (int i = 0; i < r.length; i++) { r[i] = sc.nextInt(); } int minv = r[0]; for (int i = 1; i < n; i++) { maxv = r[i] - minv > maxv ? r[i] - minv : maxv; minv = minv > r[i] ? r[i] : 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, 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, 2, 18, 13, 13, 13, 14, 2, 13, 13, 0, 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 ], [ 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 ], [ 49, 50 ], [ 49, 51 ], [ 48, 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 ], [ 71, 73 ], [ 70, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 67, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 6, 99 ], [ 99, 100 ] ]
[ "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[] r = new int[n];\n for(int i = 0; i < n; i++){\n r[i] = stdIn.nextInt();\n }\n\n int min = r[0];\n int maxp = r[1] - r[0];\n for(int i = 1; i < n; i++){\n int prof = r[i] - min;\n if(prof > maxp)\n maxp = prof;\n if(r[i] < min)\n min = r[i];\n }\n\n System.out.println(maxp);\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[] r = new int[n];\n for(int i = 0; i < n; i++){\n r[i] = stdIn.nextInt();\n }\n\n int min = r[0];\n int maxp = r[1] - r[0];\n for(int i = 1; i < n; i++){\n int prof = r[i] - min;\n if(prof > maxp)\n maxp = prof;\n if(r[i] < min)\n min = r[i];\n }\n\n System.out.println(maxp);\n }\n}", "Main", "public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int[] r = new int[n];\n for(int i = 0; i < n; i++){\n r[i] = stdIn.nextInt();\n }\n\n int min = r[0];\n int maxp = r[1] - r[0];\n for(int i = 1; i < n; i++){\n int prof = r[i] - min;\n if(prof > maxp)\n maxp = prof;\n if(r[i] < min)\n min = r[i];\n }\n\n System.out.println(maxp);\n }", "main", "{\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int[] r = new int[n];\n for(int i = 0; i < n; i++){\n r[i] = stdIn.nextInt();\n }\n\n int min = r[0];\n int maxp = r[1] - r[0];\n for(int i = 1; i < n; i++){\n int prof = r[i] - min;\n if(prof > maxp)\n maxp = prof;\n if(r[i] < min)\n min = r[i];\n }\n\n System.out.println(maxp);\n }", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int n = stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int[] r = new int[n];", "r", "new int[n]", "n", "for(int i = 0; i < n; i++){\n r[i] = stdIn.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n r[i] = stdIn.nextInt();\n }", "{\n r[i] = stdIn.nextInt();\n }", "r[i] = stdIn.nextInt()", "r[i]", "r", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int min = r[0];", "min", "r[0]", "r", "0", "int maxp = r[1] - r[0];", "maxp", "r[1] - r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "for(int i = 1; i < n; i++){\n int prof = r[i] - min;\n if(prof > maxp)\n maxp = prof;\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 int prof = r[i] - min;\n if(prof > maxp)\n maxp = prof;\n if(r[i] < min)\n min = r[i];\n }", "{\n int prof = r[i] - min;\n if(prof > maxp)\n maxp = prof;\n if(r[i] < min)\n min = r[i];\n }", "int prof = r[i] - min;", "prof", "r[i] - min", "r[i]", "r", "i", "min", "if(prof > maxp)\n maxp = prof;", "prof > maxp", "prof", "maxp", "maxp = prof", "maxp", "prof", "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(maxp)", "System.out.println", "System.out", "System", "System.out", "maxp", "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[] r = new int[n]; for(int i = 0; i < n; i++){ r[i] = stdIn.nextInt(); } int min = r[0]; int maxp = r[1] - r[0]; for(int i = 1; i < n; i++){ int prof = r[i] - min; if(prof > maxp) maxp = prof; if(r[i] < min) min = r[i]; } System.out.println(maxp); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 40, 17, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 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 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 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 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 74, 82 ], [ 71, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 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\n\tpublic static void main(String[] args) {\n\t\tint j,k;\n\t\tint maxv = -1000000000;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint R[] = new int[n];\n\t\tfor(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next());\n\t\tint minv = R[0];\n\n\t\t\tfor(k=1;k<n;k++){\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}\n\t\t\tSystem.out.println(maxv);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint j,k;\n\t\tint maxv = -1000000000;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint R[] = new int[n];\n\t\tfor(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next());\n\t\tint minv = R[0];\n\n\t\t\tfor(k=1;k<n;k++){\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}\n\t\t\tSystem.out.println(maxv);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tint j,k;\n\t\tint maxv = -1000000000;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint R[] = new int[n];\n\t\tfor(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next());\n\t\tint minv = R[0];\n\n\t\t\tfor(k=1;k<n;k++){\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}\n\t\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tint j,k;\n\t\tint maxv = -1000000000;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint R[] = new int[n];\n\t\tfor(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next());\n\t\tint minv = R[0];\n\n\t\t\tfor(k=1;k<n;k++){\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}\n\t\t\tSystem.out.println(maxv);\n\t}", "int j", "j", "k;", "k", "int maxv = -1000000000;", "maxv", "-1000000000", "1000000000", "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 R[] = new int[n];", "R", "new int[n]", "n", "for(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next());", "j=0;", "j=0", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "R[j] = Integer.parseInt(sc.next());", "R[j] = Integer.parseInt(sc.next())", "R[j]", "R", "j", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int minv = R[0];", "minv", "R[0]", "R", "0", "for(k=1;k<n;k++){\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}", "k=1;", "k=1", "k", "1", "k<n", "k", "n", "k++", "k++", "k", "{\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}", "{\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}", "maxv = Math.max(R[k]-minv,maxv)", "maxv", "Math.max(R[k]-minv,maxv)", "Math.max", "Math", "R[k]-minv", "R[k]", "R", "k", "minv", "maxv", "minv = Math.min(minv,R[k])", "minv", "Math.min(minv,R[k])", "Math.min", "Math", "minv", "R[k]", "R", "k", "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\tint j,k;\n\t\tint maxv = -1000000000;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint R[] = new int[n];\n\t\tfor(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next());\n\t\tint minv = R[0];\n\n\t\t\tfor(k=1;k<n;k++){\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}\n\t\t\tSystem.out.println(maxv);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint j,k;\n\t\tint maxv = -1000000000;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint R[] = new int[n];\n\t\tfor(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next());\n\t\tint minv = R[0];\n\n\t\t\tfor(k=1;k<n;k++){\n\t\t\t\tmaxv = Math.max(R[k]-minv,maxv);\n\t\t\t\tminv = Math.min(minv,R[k]);\n\t\t\t\t}\n\t\t\tSystem.out.println(maxv);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int j,k; int maxv = -1000000000; Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); int R[] = new int[n]; for(j=0;j<n;j++)R[j] = Integer.parseInt(sc.next()); int minv = R[0]; for(k=1;k<n;k++){ maxv = Math.max(R[k]-minv,maxv); minv = Math.min(minv,R[k]); } System.out.println(maxv); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 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, 2, 4, 18, 13, 17, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 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 ], [ 133, 11 ], [ 133, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 18, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 28, 37 ], [ 37, 38 ], [ 37, 39 ], [ 28, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 28, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 28, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 28, 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 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 93, 100 ], [ 92, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 104, 109 ], [ 91, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 111, 116 ], [ 110, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 28, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 12, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main{\n public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\n\n System.out.println(max);\n\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main{\n public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\n\n System.out.println(max);\n\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }\n}", "Main", "public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\n\n System.out.println(max);\n\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\n\n System.out.println(max);\n\n }\n catch(Exception e){\n System.err.println(e);\n }\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 ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\n\n System.out.println(max);\n\n }\n catch(Exception e){\n System.err.println(e);\n }", "catch(Exception e){\n System.err.println(e);\n }", "Exception e", "{\n System.err.println(e);\n }", "System.err.println(e)", "System.err.println", "System.err", "System", "System.err", "e", "{\n int n = Integer.parseInt(br.readLine());\n ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\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", "ArrayList<Integer> array = new ArrayList<>();", "array", "new ArrayList<>()", "for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n array.add(Integer.parseInt(br.readLine()));\n }", "{\n array.add(Integer.parseInt(br.readLine()));\n }", "array.add(Integer.parseInt(br.readLine()))", "array.add", "array", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int max = array.get(1) - array.get(0);", "max", "array.get(1) - array.get(0)", "array.get(1)", "array.get", "array", "1", "array.get(0)", "array.get", "array", "0", "int min = array.get(0);", "min", "array.get(0)", "array.get", "array", "0", "for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }", "int i = 1 ;", "int i = 1 ;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }", "{\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }", "if(array.get(i) - min > max){\n max = array.get(i) - min;\n }", "array.get(i) - min > max", "array.get(i) - min", "array.get(i)", "array.get", "array", "i", "min", "max", "{\n max = array.get(i) - min;\n }", "max = array.get(i) - min", "max", "array.get(i) - min", "array.get(i)", "array.get", "array", "i", "min", "if(array.get(i) < min){\n min = array.get(i);\n }", "array.get(i) < min", "array.get(i)", "array.get", "array", "i", "min", "{\n min = array.get(i);\n }", "min = array.get(i)", "min", "array.get(i)", "array.get", "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) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\n\n System.out.println(max);\n\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }\n}", "public class Main{\n public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n ArrayList<Integer> array = new ArrayList<>();\n for(int i = 0 ; i < n ; i++){\n array.add(Integer.parseInt(br.readLine()));\n }\n int max = array.get(1) - array.get(0);\n int min = array.get(0);\n for(int i = 1 ; i < n ; i++){\n if(array.get(i) - min > max){\n max = array.get(i) - min;\n }\n if(array.get(i) < min){\n min = array.get(i);\n }\n }\n\n System.out.println(max);\n\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; public class Main{ public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ int n = Integer.parseInt(br.readLine()); ArrayList<Integer> array = new ArrayList<>(); for(int i = 0 ; i < n ; i++){ array.add(Integer.parseInt(br.readLine())); } int max = array.get(1) - array.get(0); int min = array.get(0); for(int i = 1 ; i < n ; i++){ if(array.get(i) - min > max){ max = array.get(i) - min; } if(array.get(i) < min){ min = array.get(i); } } System.out.println(max); } catch(Exception e){ System.err.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 18, 13, 13, 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, 41, 13, 2, 18, 13, 13, 18, 13, 13, 14, 2, 13, 13, 30, 0, 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 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 134, 17 ], [ 134, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 41 ], [ 41, 42 ], [ 41, 43 ], [ 20, 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 ], [ 20, 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 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 104, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 20, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 18, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileNotFoundException;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n \npublic class Main {\n \n public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n \n int n=Integer.parseInt(br.readLine());\n int [] in=new int[n];\n int max=Integer.MIN_VALUE;\n int mini=0; \n for(int i=0;i<n;i++)\n in[i]=Integer.parseInt(br.readLine());\n \n for(int i=0;i<n-1;i++){if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }\nSystem.out.println(max);\n \n \n \n \n }\n \n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.FileNotFoundException;", "FileNotFoundException", "java.io", "import java.io.FileReader;", "FileReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n \n public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n \n int n=Integer.parseInt(br.readLine());\n int [] in=new int[n];\n int max=Integer.MIN_VALUE;\n int mini=0; \n for(int i=0;i<n;i++)\n in[i]=Integer.parseInt(br.readLine());\n \n for(int i=0;i<n-1;i++){if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }\nSystem.out.println(max);\n \n \n \n \n }\n \n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n \n int n=Integer.parseInt(br.readLine());\n int [] in=new int[n];\n int max=Integer.MIN_VALUE;\n int mini=0; \n for(int i=0;i<n;i++)\n in[i]=Integer.parseInt(br.readLine());\n \n for(int i=0;i<n-1;i++){if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }\nSystem.out.println(max);\n \n \n \n \n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n \n int n=Integer.parseInt(br.readLine());\n int [] in=new int[n];\n int max=Integer.MIN_VALUE;\n int mini=0; \n for(int i=0;i<n;i++)\n in[i]=Integer.parseInt(br.readLine());\n \n for(int i=0;i<n-1;i++){if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }\nSystem.out.println(max);\n \n \n \n \n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n=Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "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", "for(int i=0;i<n;i++)\n in[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++){if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n-1", "i", "n-1", "n", "1", "i++", "i++", "i", "{if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }", "{if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }", "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 int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }", "int j=i+1;", "int j=i+1;", "j", "i+1", "i", "1", "j<n", "j", "n", "j++", "j++", "j", "{\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }", "{\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }", "int tmp=in[j]-in[i];", "tmp", "in[j]-in[i]", "in[j]", "in", "j", "in[i]", "in", "i", "if(tmp>max) {max=tmp;mini=i;}", "tmp>max", "tmp", "max", "{max=tmp;mini=i;}", "max=tmp", "max", "tmp", "mini=i", "mini", "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) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n \n int n=Integer.parseInt(br.readLine());\n int [] in=new int[n];\n int max=Integer.MIN_VALUE;\n int mini=0; \n for(int i=0;i<n;i++)\n in[i]=Integer.parseInt(br.readLine());\n \n for(int i=0;i<n-1;i++){if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }\nSystem.out.println(max);\n \n \n \n \n }\n \n}", "public class Main {\n \n public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n //BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n \n int n=Integer.parseInt(br.readLine());\n int [] in=new int[n];\n int max=Integer.MIN_VALUE;\n int mini=0; \n for(int i=0;i<n;i++)\n in[i]=Integer.parseInt(br.readLine());\n \n for(int i=0;i<n-1;i++){if(in[i]>in[mini])continue;\n for(int j=i+1;j<n;j++){\n int tmp=in[j]-in[i];\n if(tmp>max) {max=tmp;mini=i;}\n }\n }\nSystem.out.println(max);\n \n \n \n \n }\n \n}", "Main" ]
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //BufferedReader br = new BufferedReader(new FileReader("sample.txt")); int n=Integer.parseInt(br.readLine()); int [] in=new int[n]; int max=Integer.MIN_VALUE; int mini=0; 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++){ int tmp=in[j]-in[i]; if(tmp>max) {max=tmp;mini=i;} } } 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, 4, 18, 13, 4, 18, 13, 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, 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 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 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 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 45, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 45, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int rowCount = Integer.parseInt(sc.nextLine());\n\n int minNum = Integer.parseInt(sc.nextLine());\n int maxProfit = Integer.MIN_VALUE;\n\n for (int i = 1; i < rowCount; i++) {\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }\n\n System.out.println(maxProfit);\n }\n // public static void main(String[] args) {\n\n // Scanner sc = new Scanner(System.in);\n\n // int N = Integer.parseInt(sc.nextLine());\n\n // int[] nums = new int[N];\n // for(int i=0; i<N; i++) {\n // // int a = Integer.parseInt(sc.nextLine());\n // int a = sc.nextInt();\n // nums[i] = a;\n // }\n\n // int maxProfit = Integer.MIN_VALUE;\n // for (int i = 1; i < nums.length; i++) {\n // for (int j = 0; j < i; j++) {\n // // System.out.printf(\"%d %d -> %d\\n\", nums[i], nums[j], nums[i] - nums[j]);\n\n // maxProfit = Math.max(maxProfit, nums[i] - nums[j]);\n // }\n // }\n\n\n // System.out.println(maxProfit);\n // }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int rowCount = Integer.parseInt(sc.nextLine());\n\n int minNum = Integer.parseInt(sc.nextLine());\n int maxProfit = Integer.MIN_VALUE;\n\n for (int i = 1; i < rowCount; i++) {\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }\n\n System.out.println(maxProfit);\n }\n // public static void main(String[] args) {\n\n // Scanner sc = new Scanner(System.in);\n\n // int N = Integer.parseInt(sc.nextLine());\n\n // int[] nums = new int[N];\n // for(int i=0; i<N; i++) {\n // // int a = Integer.parseInt(sc.nextLine());\n // int a = sc.nextInt();\n // nums[i] = a;\n // }\n\n // int maxProfit = Integer.MIN_VALUE;\n // for (int i = 1; i < nums.length; i++) {\n // for (int j = 0; j < i; j++) {\n // // System.out.printf(\"%d %d -> %d\\n\", nums[i], nums[j], nums[i] - nums[j]);\n\n // maxProfit = Math.max(maxProfit, nums[i] - nums[j]);\n // }\n // }\n\n\n // System.out.println(maxProfit);\n // }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int rowCount = Integer.parseInt(sc.nextLine());\n\n int minNum = Integer.parseInt(sc.nextLine());\n int maxProfit = Integer.MIN_VALUE;\n\n for (int i = 1; i < rowCount; i++) {\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }\n\n System.out.println(maxProfit);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int rowCount = Integer.parseInt(sc.nextLine());\n\n int minNum = Integer.parseInt(sc.nextLine());\n int maxProfit = Integer.MIN_VALUE;\n\n for (int i = 1; i < rowCount; i++) {\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }\n\n System.out.println(maxProfit);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int rowCount = Integer.parseInt(sc.nextLine());", "rowCount", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int minNum = Integer.parseInt(sc.nextLine());", "minNum", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int maxProfit = Integer.MIN_VALUE;", "maxProfit", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 1; i < rowCount; i++) {\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < rowCount", "i", "rowCount", "i++", "i++", "i", "{\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }", "{\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }", "int num = Integer.parseInt(sc.nextLine());", "num", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "maxProfit = Math.max(maxProfit, num - minNum)", "maxProfit", "Math.max(maxProfit, num - minNum)", "Math.max", "Math", "maxProfit", "num - minNum", "num", "minNum", "minNum = Math.min(minNum, num)", "minNum", "Math.min(minNum, num)", "Math.min", "Math", "minNum", "num", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int rowCount = Integer.parseInt(sc.nextLine());\n\n int minNum = Integer.parseInt(sc.nextLine());\n int maxProfit = Integer.MIN_VALUE;\n\n for (int i = 1; i < rowCount; i++) {\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }\n\n System.out.println(maxProfit);\n }\n // public static void main(String[] args) {\n\n // Scanner sc = new Scanner(System.in);\n\n // int N = Integer.parseInt(sc.nextLine());\n\n // int[] nums = new int[N];\n // for(int i=0; i<N; i++) {\n // // int a = Integer.parseInt(sc.nextLine());\n // int a = sc.nextInt();\n // nums[i] = a;\n // }\n\n // int maxProfit = Integer.MIN_VALUE;\n // for (int i = 1; i < nums.length; i++) {\n // for (int j = 0; j < i; j++) {\n // // System.out.printf(\"%d %d -> %d\\n\", nums[i], nums[j], nums[i] - nums[j]);\n\n // maxProfit = Math.max(maxProfit, nums[i] - nums[j]);\n // }\n // }\n\n\n // System.out.println(maxProfit);\n // }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int rowCount = Integer.parseInt(sc.nextLine());\n\n int minNum = Integer.parseInt(sc.nextLine());\n int maxProfit = Integer.MIN_VALUE;\n\n for (int i = 1; i < rowCount; i++) {\n\n int num = Integer.parseInt(sc.nextLine());\n\n maxProfit = Math.max(maxProfit, num - minNum);\n minNum = Math.min(minNum, num);\n\n // System.out.printf(\"num:%3d, minNum:%3d, profit:%3d\\n\", num, minNum, maxProfit);\n }\n\n System.out.println(maxProfit);\n }\n // public static void main(String[] args) {\n\n // Scanner sc = new Scanner(System.in);\n\n // int N = Integer.parseInt(sc.nextLine());\n\n // int[] nums = new int[N];\n // for(int i=0; i<N; i++) {\n // // int a = Integer.parseInt(sc.nextLine());\n // int a = sc.nextInt();\n // nums[i] = a;\n // }\n\n // int maxProfit = Integer.MIN_VALUE;\n // for (int i = 1; i < nums.length; i++) {\n // for (int j = 0; j < i; j++) {\n // // System.out.printf(\"%d %d -> %d\\n\", nums[i], nums[j], nums[i] - nums[j]);\n\n // maxProfit = Math.max(maxProfit, nums[i] - nums[j]);\n // }\n // }\n\n\n // System.out.println(maxProfit);\n // }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int rowCount = Integer.parseInt(sc.nextLine()); int minNum = Integer.parseInt(sc.nextLine()); int maxProfit = Integer.MIN_VALUE; for (int i = 1; i < rowCount; i++) { int num = Integer.parseInt(sc.nextLine()); maxProfit = Math.max(maxProfit, num - minNum); minNum = Math.min(minNum, num); // System.out.printf("num:%3d, minNum:%3d, profit:%3d\n", num, minNum, maxProfit); } System.out.println(maxProfit); } // public static void main(String[] args) { // Scanner sc = new Scanner(System.in); // int N = Integer.parseInt(sc.nextLine()); // int[] nums = new int[N]; // for(int i=0; i<N; i++) { // // int a = Integer.parseInt(sc.nextLine()); // int a = sc.nextInt(); // nums[i] = a; // } // int maxProfit = Integer.MIN_VALUE; // for (int i = 1; i < nums.length; i++) { // for (int j = 0; j < i; j++) { // // System.out.printf("%d %d -> %d\n", nums[i], nums[j], nums[i] - nums[j]); // maxProfit = Math.max(maxProfit, nums[i] - nums[j]); // } // } // System.out.println(maxProfit); // } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 18, 13, 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, 12, 13, 30, 4, 18, 20, 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 ], [ 20, 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 ], [ 34, 35 ], [ 34, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 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 ], [ 78, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 69, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tint min = scan.nextInt();\n\t\tint ans = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tint min = scan.nextInt();\n\t\tint ans = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tint min = scan.nextInt();\n\t\tint ans = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tint min = scan.nextInt();\n\t\tint ans = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int min = scan.nextInt();", "min", "scan.nextInt()", "scan.nextInt", "scan", "int ans = Integer.MIN_VALUE;", "ans", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n - 1; i++) {\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\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\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}", "{\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}", "int r = scan.nextInt();", "r", "scan.nextInt()", "scan.nextInt", "scan", "ans = Math.max(ans, r - min)", "ans", "Math.max(ans, r - min)", "Math.max", "Math", "ans", "r - min", "r", "min", "min = Math.min(min, r)", "min", "Math.min(min, r)", "Math.min", "Math", "min", "r", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tint min = scan.nextInt();\n\t\tint ans = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tint min = scan.nextInt();\n\t\tint ans = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint r = scan.nextInt();\n\t\t\tans = Math.max(ans, r - min);\n\t\t\tmin = Math.min(min, r);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int min = scan.nextInt(); int ans = Integer.MIN_VALUE; for (int i = 0; i < n - 1; i++) { int r = scan.nextInt(); ans = Math.max(ans, r - min); min = Math.min(min, r); } System.out.println(ans); } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 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, 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 ], [ 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 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 48, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 48, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 12, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\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, IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(reader.readLine());", "n", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "int minv = Integer.MAX_VALUE;", "minv", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int maxv = Integer.MIN_VALUE;", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; i++) {\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}", "{\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}", "int j = Integer.parseInt(reader.readLine());", "j", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "if (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;", "maxv < j - minv", "maxv", "j - minv", "j", "minv", "maxv = j - minv", "maxv", "j - minv", "j", "minv", "if (j < minv)\n\t\t\t\tminv = j;", "j < minv", "j", "minv", "minv = j", "minv", "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) throws NumberFormatException, IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\tint minv = Integer.MAX_VALUE;\n\t\tint maxv = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint j = Integer.parseInt(reader.readLine());\n\t\t\tif (maxv < j - minv)\n\t\t\t\tmaxv = j - minv;\n\t\t\tif (j < minv)\n\t\t\t\tminv = j;\n\t\t}\n\t\tSystem.out.println(maxv);\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 reader = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(reader.readLine()); int minv = Integer.MAX_VALUE; int maxv = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { int j = Integer.parseInt(reader.readLine()); if (maxv < j - minv) maxv = j - minv; if (j < minv) minv = j; } 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, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 2, 18, 13, 17, 17, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 13, 0, 13, 18, 13, 13, 9, 11, 1, 0, 13, 2, 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, 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 ], [ 8, 24 ], [ 24, 25 ], [ 8, 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 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 67, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 82, 93 ], [ 81, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 94, 101 ], [ 101, 102 ], [ 101, 103 ], [ 94, 104 ], [ 104, 105 ], [ 105, 106 ], [ 94, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 8, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 6, 131 ], [ 131, 132 ] ]
[ "import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] price = new int[n];\n int i, j;\n\n for (i = 0; i < n; i++) {\n price[i] = Integer.parseInt(br.readLine());\n }\n\n int max = price[1] - price[0];\n int min = price[0] + 1;\n\n for (i = 0; i < n-1; i++) {\n if (price[i] < min) min = price[i];\n else continue;\n\n for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }\n }\n System.out.println(max);\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] price = new int[n];\n int i, j;\n\n for (i = 0; i < n; i++) {\n price[i] = Integer.parseInt(br.readLine());\n }\n\n int max = price[1] - price[0];\n int min = price[0] + 1;\n\n for (i = 0; i < n-1; i++) {\n if (price[i] < min) min = price[i];\n else continue;\n\n for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] price = new int[n];\n int i, j;\n\n for (i = 0; i < n; i++) {\n price[i] = Integer.parseInt(br.readLine());\n }\n\n int max = price[1] - price[0];\n int min = price[0] + 1;\n\n for (i = 0; i < n-1; i++) {\n if (price[i] < min) min = price[i];\n else continue;\n\n for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }\n }\n System.out.println(max);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int[] price = new int[n];\n int i, j;\n\n for (i = 0; i < n; i++) {\n price[i] = Integer.parseInt(br.readLine());\n }\n\n int max = price[1] - price[0];\n int min = price[0] + 1;\n\n for (i = 0; i < n-1; i++) {\n if (price[i] < min) min = price[i];\n else continue;\n\n for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }\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[] price = new int[n];", "price", "new int[n]", "n", "int i", "i", "j;", "j", "for (i = 0; i < n; i++) {\n price[i] = Integer.parseInt(br.readLine());\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n price[i] = Integer.parseInt(br.readLine());\n }", "{\n price[i] = Integer.parseInt(br.readLine());\n }", "price[i] = Integer.parseInt(br.readLine())", "price[i]", "price", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int max = price[1] - price[0];", "max", "price[1] - price[0]", "price[1]", "price", "1", "price[0]", "price", "0", "int min = price[0] + 1;", "min", "price[0] + 1", "price[0]", "price", "0", "1", "for (i = 0; i < n-1; i++) {\n if (price[i] < min) min = price[i];\n else continue;\n\n for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }\n }", "i = 0;", "i = 0", "i", "0", "i < n-1", "i", "n-1", "n", "1", "i++", "i++", "i", "{\n if (price[i] < min) min = price[i];\n else continue;\n\n for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }\n }", "{\n if (price[i] < min) min = price[i];\n else continue;\n\n for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }\n }", "if (price[i] < min) min = price[i];\n else continue;", "price[i] < min", "price[i]", "price", "i", "min", "min = price[i]", "min", "price[i]", "price", "i", "continue;", "for (j = i+1; j < n; j++) {\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }", "j = i+1;", "j = i+1", "j", "i+1", "i", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }", "{\n if (price[j] - min > max) {\n max = price[j] - min;\n }\n }", "if (price[j] - min > max) {\n max = price[j] - min;\n }", "price[j] - min > max", "price[j] - min", "price[j]", "price", "j", "min", "max", "{\n max = price[j] - min;\n }", "max = price[j] - min", "max", "price[j] - min", "price[j]", "price", "j", "min", "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 Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] price = new int[n]; int i, j; for (i = 0; i < n; i++) { price[i] = Integer.parseInt(br.readLine()); } int max = price[1] - price[0]; int min = price[0] + 1; for (i = 0; i < n-1; i++) { if (price[i] < min) min = price[i]; else continue; for (j = i+1; j < n; j++) { if (price[j] - min > max) { max = price[j] - min; } } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 40, 17, 41, 13, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 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 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 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 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 42, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ] ]
[ "import java.util.*;\nclass Main{\n public static void main(String args[]){\n\n int max = -1000000000;\n int rt;\n int min;\n\n Scanner sc = new Scanner(System.in);\n // input\n int n = sc.nextInt();\n //first\n min = sc.nextInt();\n //Comparison\n for(int i = 1; i<n; i++){\n rt = sc.nextInt();\n if(rt-min>max)max = rt-min;\n if(min>rt)min = rt;\n\n }\n System.out.println(max);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String args[]){\n\n int max = -1000000000;\n int rt;\n int min;\n\n Scanner sc = new Scanner(System.in);\n // input\n int n = sc.nextInt();\n //first\n min = sc.nextInt();\n //Comparison\n for(int i = 1; i<n; i++){\n rt = sc.nextInt();\n if(rt-min>max)max = rt-min;\n if(min>rt)min = rt;\n\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String args[]){\n\n int max = -1000000000;\n int rt;\n int min;\n\n Scanner sc = new Scanner(System.in);\n // input\n int n = sc.nextInt();\n //first\n min = sc.nextInt();\n //Comparison\n for(int i = 1; i<n; i++){\n rt = sc.nextInt();\n if(rt-min>max)max = rt-min;\n if(min>rt)min = rt;\n\n }\n System.out.println(max);\n }", "main", "{\n\n int max = -1000000000;\n int rt;\n int min;\n\n Scanner sc = new Scanner(System.in);\n // input\n int n = sc.nextInt();\n //first\n min = sc.nextInt();\n //Comparison\n for(int i = 1; i<n; i++){\n rt = sc.nextInt();\n if(rt-min>max)max = rt-min;\n if(min>rt)min = rt;\n\n }\n System.out.println(max);\n }", "int max = -1000000000;", "max", "-1000000000", "1000000000", "int rt;", "rt", "int min;", "min", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "min = sc.nextInt()", "min", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 1; i<n; i++){\n rt = sc.nextInt();\n if(rt-min>max)max = rt-min;\n if(min>rt)min = rt;\n\n }", "int i = 1;", "int i = 1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n rt = sc.nextInt();\n if(rt-min>max)max = rt-min;\n if(min>rt)min = rt;\n\n }", "{\n rt = sc.nextInt();\n if(rt-min>max)max = rt-min;\n if(min>rt)min = rt;\n\n }", "rt = sc.nextInt()", "rt", "sc.nextInt()", "sc.nextInt", "sc", "if(rt-min>max)max = rt-min;", "rt-min>max", "rt-min", "rt", "min", "max", "max = rt-min", "max", "rt-min", "rt", "min", "if(min>rt)min = rt;", "min>rt", "min", "rt", "min = rt", "min", "rt", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String args[]", "args" ]
import java.util.*; class Main{ public static void main(String args[]){ int max = -1000000000; int rt; int min; Scanner sc = new Scanner(System.in); // input int n = sc.nextInt(); //first min = sc.nextInt(); //Comparison for(int i = 1; i<n; i++){ rt = sc.nextInt(); if(rt-min>max)max = rt-min; if(min>rt)min = rt; } 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, 41, 13, 0, 13, 4, 18, 13, 0, 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, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 97, 5 ], [ 97, 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 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 65, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 59, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\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 min,t,ans;//minはその時間までの最安値\n\t\tmin=scan.nextInt();\n\t\tt=scan.nextInt();\n\t\tans=t-min;\n\t\tif(t<min) min=t;\n\t\tfor(int i=0;i<N-2;i++){\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint min,t,ans;//minはその時間までの最安値\n\t\tmin=scan.nextInt();\n\t\tt=scan.nextInt();\n\t\tans=t-min;\n\t\tif(t<min) min=t;\n\t\tfor(int i=0;i<N-2;i++){\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscan.close();\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 min,t,ans;//minはその時間までの最安値\n\t\tmin=scan.nextInt();\n\t\tt=scan.nextInt();\n\t\tans=t-min;\n\t\tif(t<min) min=t;\n\t\tfor(int i=0;i<N-2;i++){\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint min,t,ans;//minはその時間までの最安値\n\t\tmin=scan.nextInt();\n\t\tt=scan.nextInt();\n\t\tans=t-min;\n\t\tif(t<min) min=t;\n\t\tfor(int i=0;i<N-2;i++){\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N=scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int min", "min", "t", "t", "ans;", "ans", "min=scan.nextInt()", "min", "scan.nextInt()", "scan.nextInt", "scan", "t=scan.nextInt()", "t", "scan.nextInt()", "scan.nextInt", "scan", "ans=t-min", "ans", "t-min", "t", "min", "if(t<min) min=t;", "t<min", "t", "min", "min=t", "min", "t", "for(int i=0;i<N-2;i++){\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N-2", "i", "N-2", "N", "2", "i++", "i++", "i", "{\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}", "{\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}", "t=scan.nextInt()", "t", "scan.nextInt()", "scan.nextInt", "scan", "if(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}", "ans<t-min", "ans", "t-min", "t", "min", "{\n\t\t\t\tans=t-min;\n\t\t\t}", "ans=t-min", "ans", "t-min", "t", "min", "if(t<min){\n\t\t\t\tmin=t;\n\t\t\t}", "t<min", "t", "min", "{\n\t\t\t\tmin=t;\n\t\t\t}", "min=t", "min", "t", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint min,t,ans;//minはその時間までの最安値\n\t\tmin=scan.nextInt();\n\t\tt=scan.nextInt();\n\t\tans=t-min;\n\t\tif(t<min) min=t;\n\t\tfor(int i=0;i<N-2;i++){\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint min,t,ans;//minはその時間までの最安値\n\t\tmin=scan.nextInt();\n\t\tt=scan.nextInt();\n\t\tans=t-min;\n\t\tif(t<min) min=t;\n\t\tfor(int i=0;i<N-2;i++){\n\t\t\tt=scan.nextInt();\n\t\t\tif(ans<t-min){\n\t\t\t\tans=t-min;\n\t\t\t}\n\t\t\tif(t<min){\n\t\t\t\tmin=t;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan=new Scanner(System.in); int N=scan.nextInt(); int min,t,ans;//minはその時間までの最安値 min=scan.nextInt(); t=scan.nextInt(); ans=t-min; if(t<min) min=t; for(int i=0;i<N-2;i++){ t=scan.nextInt(); if(ans<t-min){ ans=t-min; } if(t<min){ min=t; } } System.out.println(ans); scan.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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 109, 11 ], [ 109, 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 ], [ 61, 62 ], [ 61, 63 ], [ 60, 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 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 79, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 14, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 12, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint inputNumTimes = Integer.parseInt(br.readLine());\n\n\t\tint[] value = new int[inputNumTimes];\n\n\t\tfor(int i = 0; i < inputNumTimes; i++) {\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint minValue = value[0];\n\t\tint maxValue = value[1] - value[0];\n\n\t\tfor(int i = 1; i < inputNumTimes; i++) {\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}\n\t\tSystem.out.println(maxValue);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint inputNumTimes = Integer.parseInt(br.readLine());\n\n\t\tint[] value = new int[inputNumTimes];\n\n\t\tfor(int i = 0; i < inputNumTimes; i++) {\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint minValue = value[0];\n\t\tint maxValue = value[1] - value[0];\n\n\t\tfor(int i = 1; i < inputNumTimes; i++) {\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}\n\t\tSystem.out.println(maxValue);\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint inputNumTimes = Integer.parseInt(br.readLine());\n\n\t\tint[] value = new int[inputNumTimes];\n\n\t\tfor(int i = 0; i < inputNumTimes; i++) {\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint minValue = value[0];\n\t\tint maxValue = value[1] - value[0];\n\n\t\tfor(int i = 1; i < inputNumTimes; i++) {\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}\n\t\tSystem.out.println(maxValue);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint inputNumTimes = Integer.parseInt(br.readLine());\n\n\t\tint[] value = new int[inputNumTimes];\n\n\t\tfor(int i = 0; i < inputNumTimes; i++) {\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint minValue = value[0];\n\t\tint maxValue = value[1] - value[0];\n\n\t\tfor(int i = 1; i < inputNumTimes; i++) {\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}\n\t\tSystem.out.println(maxValue);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int inputNumTimes = Integer.parseInt(br.readLine());", "inputNumTimes", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] value = new int[inputNumTimes];", "value", "new int[inputNumTimes]", "inputNumTimes", "for(int i = 0; i < inputNumTimes; i++) {\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < inputNumTimes", "i", "inputNumTimes", "i++", "i++", "i", "{\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}", "{\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}", "value[i] = Integer.parseInt(br.readLine())", "value[i]", "value", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int minValue = value[0];", "minValue", "value[0]", "value", "0", "int maxValue = value[1] - value[0];", "maxValue", "value[1] - value[0]", "value[1]", "value", "1", "value[0]", "value", "0", "for(int i = 1; i < inputNumTimes; i++) {\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < inputNumTimes", "i", "inputNumTimes", "i++", "i++", "i", "{\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}", "{\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}", "maxValue = Math.max(maxValue, value[i] - minValue)", "maxValue", "Math.max(maxValue, value[i] - minValue)", "Math.max", "Math", "maxValue", "value[i] - minValue", "value[i]", "value", "i", "minValue", "minValue = Math.min(minValue, value[i])", "minValue", "Math.min(minValue, value[i])", "Math.min", "Math", "minValue", "value[i]", "value", "i", "System.out.println(maxValue)", "System.out.println", "System.out", "System", "System.out", "maxValue", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint inputNumTimes = Integer.parseInt(br.readLine());\n\n\t\tint[] value = new int[inputNumTimes];\n\n\t\tfor(int i = 0; i < inputNumTimes; i++) {\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint minValue = value[0];\n\t\tint maxValue = value[1] - value[0];\n\n\t\tfor(int i = 1; i < inputNumTimes; i++) {\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}\n\t\tSystem.out.println(maxValue);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint inputNumTimes = Integer.parseInt(br.readLine());\n\n\t\tint[] value = new int[inputNumTimes];\n\n\t\tfor(int i = 0; i < inputNumTimes; i++) {\n\t\t\tvalue[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint minValue = value[0];\n\t\tint maxValue = value[1] - value[0];\n\n\t\tfor(int i = 1; i < inputNumTimes; i++) {\n\t\t\tmaxValue = Math.max(maxValue, value[i] - minValue);\n\t\t\tminValue = Math.min(minValue, value[i]);\n\t\t}\n\t\tSystem.out.println(maxValue);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int inputNumTimes = Integer.parseInt(br.readLine()); int[] value = new int[inputNumTimes]; for(int i = 0; i < inputNumTimes; i++) { value[i] = Integer.parseInt(br.readLine()); } int minValue = value[0]; int maxValue = value[1] - value[0]; for(int i = 1; i < inputNumTimes; i++) { maxValue = Math.max(maxValue, value[i] - minValue); minValue = Math.min(minValue, value[i]); } System.out.println(maxValue); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 13, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 2, 13, 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 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 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 ], [ 56, 57 ], [ 56, 58 ], [ 53, 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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint Ri = sc.nextInt();\n\t\tint Rj = 1;\n\t\tint minv = Ri; \t\t\t\t\t// Rjより前の最小値\n\t\tint maxv = Integer.MIN_VALUE;\t// 差の最大値\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\n\t}\n\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 = sc.nextInt();\n\t\tint Ri = sc.nextInt();\n\t\tint Rj = 1;\n\t\tint minv = Ri; \t\t\t\t\t// Rjより前の最小値\n\t\tint maxv = Integer.MIN_VALUE;\t// 差の最大値\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\n\t}\n\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 Ri = sc.nextInt();\n\t\tint Rj = 1;\n\t\tint minv = Ri; \t\t\t\t\t// Rjより前の最小値\n\t\tint maxv = Integer.MIN_VALUE;\t// 差の最大値\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint Ri = sc.nextInt();\n\t\tint Rj = 1;\n\t\tint minv = Ri; \t\t\t\t\t// Rjより前の最小値\n\t\tint maxv = Integer.MIN_VALUE;\t// 差の最大値\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}\n\n\t\tSystem.out.println(maxv);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int Ri = sc.nextInt();", "Ri", "sc.nextInt()", "sc.nextInt", "sc", "int Rj = 1;", "Rj", "1", "int minv = Ri;", "minv", "Ri", "int maxv = Integer.MIN_VALUE;", "maxv", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 1; i < n; i++) {\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}", "{\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}", "Rj = sc.nextInt()", "Rj", "sc.nextInt()", "sc.nextInt", "sc", "maxv = Math.max(Rj - minv, maxv)", "maxv", "Math.max(Rj - minv, maxv)", "Math.max", "Math", "Rj - minv", "Rj", "minv", "maxv", "minv = Math.min(minv, Rj)", "minv", "Math.min(minv, Rj)", "Math.min", "Math", "minv", "Rj", "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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint Ri = sc.nextInt();\n\t\tint Rj = 1;\n\t\tint minv = Ri; \t\t\t\t\t// Rjより前の最小値\n\t\tint maxv = Integer.MIN_VALUE;\t// 差の最大値\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}\n\n\t\tSystem.out.println(maxv);\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 = sc.nextInt();\n\t\tint Ri = sc.nextInt();\n\t\tint Rj = 1;\n\t\tint minv = Ri; \t\t\t\t\t// Rjより前の最小値\n\t\tint maxv = Integer.MIN_VALUE;\t// 差の最大値\n\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tRj = sc.nextInt();\n\t\t\tmaxv = Math.max(Rj - minv, maxv);\n\t\t\tminv = Math.min(minv, Rj);\n\t\t}\n\n\t\tSystem.out.println(maxv);\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 = sc.nextInt(); int Ri = sc.nextInt(); int Rj = 1; int minv = Ri; // Rjより前の最小値 int maxv = Integer.MIN_VALUE; // 差の最大値 for (int i = 1; i < n; i++) { Rj = sc.nextInt(); maxv = Math.max(Rj - minv, maxv); minv = Math.min(minv, Rj); } 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, 17, 41, 13, 40, 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 ], [ 94, 5 ], [ 94, 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 ], [ 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 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 64, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 6, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ] ]
[ "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\tint n = sc.nextInt();\n\t\tint []R = new int[n];\n\t\t\n\t\tfor (int i = 0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint min = R[0];\n\t\tint ans = -Integer.MAX_VALUE;\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(ans);\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\tint n = sc.nextInt();\n\t\tint []R = new int[n];\n\t\t\n\t\tfor (int i = 0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint min = R[0];\n\t\tint ans = -Integer.MAX_VALUE;\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(ans);\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 = sc.nextInt();\n\t\tint []R = new int[n];\n\t\t\n\t\tfor (int i = 0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint min = R[0];\n\t\tint ans = -Integer.MAX_VALUE;\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint []R = new int[n];\n\t\t\n\t\tfor (int i = 0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint min = R[0];\n\t\tint ans = -Integer.MAX_VALUE;\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\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 []R = new int[n];", "R", "new int[n]", "n", "for (int i = 0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "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", "int min = R[0];", "min", "R[0]", "R", "0", "int ans = -Integer.MAX_VALUE;", "ans", "-Integer.MAX_VALUE", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "for (int i = 1; i < n; i++) {\n\t\t\tans = Math.max(ans, 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\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}", "{\n\t\t\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}", "ans = Math.max(ans, R[i] - min)", "ans", "Math.max(ans, R[i] - min)", "Math.max", "Math", "ans", "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(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "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\tint n = sc.nextInt();\n\t\tint []R = new int[n];\n\t\t\n\t\tfor (int i = 0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint min = R[0];\n\t\tint ans = -Integer.MAX_VALUE;\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\n\t\t}\n\t\tSystem.out.println(ans);\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\tint n = sc.nextInt();\n\t\tint []R = new int[n];\n\t\t\n\t\tfor (int i = 0; i<n; i++) {\n\t\t\tR[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint min = R[0];\n\t\tint ans = -Integer.MAX_VALUE;\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tans = Math.max(ans, R[i] - min);\n\t\t\tmin = Math.min(min, R[i]);\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 []R = new int[n]; for (int i = 0; i<n; i++) { R[i] = sc.nextInt(); } int min = R[0]; int ans = -Integer.MAX_VALUE; for (int i = 1; i < n; i++) { ans = Math.max(ans, R[i] - min); min = Math.min(min, R[i]); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 40, 17, 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, 9, 41, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 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 ], [ 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 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 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 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 36, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 36, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 36, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 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\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int minR = 0;\n int maxDiff = -1000000000;\n for (int i = 0; i < n; i++) {\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }\n System.out.println(maxDiff);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int minR = 0;\n int maxDiff = -1000000000;\n for (int i = 0; i < n; i++) {\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }\n System.out.println(maxDiff);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int minR = 0;\n int maxDiff = -1000000000;\n for (int i = 0; i < n; i++) {\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }\n System.out.println(maxDiff);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int minR = 0;\n int maxDiff = -1000000000;\n for (int i = 0; i < n; i++) {\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }\n System.out.println(maxDiff);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int minR = 0;", "minR", "0", "int maxDiff = -1000000000;", "maxDiff", "-1000000000", "1000000000", "for (int i = 0; i < n; i++) {\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }", "{\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }", "int r = scanner.nextInt();", "r", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (i == 0) {\n minR = r;\n continue;\n }", "i == 0", "i", "0", "{\n minR = r;\n continue;\n }", "minR = r", "minR", "r", "continue;", "int diff = r - minR;", "diff", "r - minR", "r", "minR", "if (maxDiff < diff) {\n maxDiff = diff;\n }", "maxDiff < diff", "maxDiff", "diff", "{\n maxDiff = diff;\n }", "maxDiff = diff", "maxDiff", "diff", "if (r < minR) {\n minR = r;\n }", "r < minR", "r", "minR", "{\n minR = r;\n }", "minR = r", "minR", "r", "System.out.println(maxDiff)", "System.out.println", "System.out", "System", "System.out", "maxDiff", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int minR = 0;\n int maxDiff = -1000000000;\n for (int i = 0; i < n; i++) {\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }\n System.out.println(maxDiff);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int minR = 0;\n int maxDiff = -1000000000;\n for (int i = 0; i < n; i++) {\n int r = scanner.nextInt();\n if (i == 0) {\n minR = r;\n continue;\n }\n int diff = r - minR;\n if (maxDiff < diff) {\n maxDiff = diff;\n }\n if (r < minR) {\n minR = r;\n }\n }\n System.out.println(maxDiff);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int minR = 0; int maxDiff = -1000000000; for (int i = 0; i < n; i++) { int r = scanner.nextInt(); if (i == 0) { minR = r; continue; } int diff = r - minR; if (maxDiff < diff) { maxDiff = diff; } if (r < minR) { minR = r; } } System.out.println(maxDiff); } }
[ 7, 15, 13, 17, 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, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 0, 13, 18, 13, 13, 0, 18, 13, 13, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 40, 17, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 0, 13, 18, 13, 13, 30, 0, 13, 4, 18, 13, 13, 18, 13, 13, 29, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 481, 23 ], [ 481, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 26, 39 ], [ 39, 40 ], [ 39, 41 ], [ 42, 43 ], [ 42, 44 ], [ 26, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 26, 65 ], [ 65, 66 ], [ 65, 67 ], [ 26, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 68, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 101, 103 ], [ 87, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 104, 111 ], [ 111, 112 ], [ 111, 113 ], [ 104, 114 ], [ 114, 115 ], [ 115, 116 ], [ 104, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 119, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 140, 142 ], [ 83, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 143, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 149, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 162, 164 ], [ 159, 165 ], [ 165, 166 ], [ 165, 167 ], [ 149, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 172, 174 ], [ 168, 175 ], [ 175, 176 ], [ 175, 177 ], [ 168, 178 ], [ 178, 179 ], [ 179, 180 ], [ 168, 181 ], [ 182, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 192, 194 ], [ 183, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 204, 205 ], [ 204, 206 ], [ 143, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 26, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 219, 220 ], [ 219, 221 ], [ 24, 222 ], [ 222, 223 ], [ 481, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 226, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 230, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 237, 239 ], [ 230, 240 ], [ 240, 241 ], [ 241, 242 ], [ 230, 243 ], [ 244, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 245, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 252, 254 ], [ 245, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 259, 260 ], [ 258, 261 ], [ 258, 262 ], [ 262, 263 ], [ 262, 264 ], [ 226, 265 ], [ 265, 266 ], [ 224, 267 ], [ 267, 268 ], [ 481, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 269, 273 ], [ 273, 274 ], [ 273, 275 ], [ 269, 277 ], [ 277, 278 ], [ 269, 279 ], [ 279, 280 ], [ 269, 281 ], [ 281, 282 ], [ 269, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 286, 290 ], [ 283, 291 ], [ 291, 292 ], [ 269, 293 ], [ 293, 294 ], [ 293, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 296, 301 ], [ 301, 302 ], [ 295, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 303, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 307, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 315, 316 ], [ 311, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 320, 321 ], [ 321, 322 ], [ 320, 323 ], [ 307, 324 ], [ 324, 325 ], [ 325, 326 ], [ 325, 327 ], [ 324, 328 ], [ 328, 329 ], [ 329, 330 ], [ 295, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 269, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 341, 342 ], [ 338, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 343, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 338, 352 ], [ 352, 353 ], [ 352, 354 ], [ 338, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 355, 360 ], [ 360, 361 ], [ 361, 362 ], [ 362, 363 ], [ 361, 364 ], [ 360, 365 ], [ 365, 366 ], [ 365, 367 ], [ 367, 368 ], [ 338, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 269, 373 ], [ 373, 374 ], [ 373, 375 ], [ 375, 376 ], [ 376, 377 ], [ 376, 378 ], [ 378, 379 ], [ 375, 380 ], [ 380, 381 ], [ 381, 382 ], [ 381, 383 ], [ 380, 384 ], [ 384, 385 ], [ 384, 386 ], [ 386, 387 ], [ 375, 388 ], [ 388, 389 ], [ 388, 390 ], [ 375, 391 ], [ 391, 392 ], [ 392, 393 ], [ 392, 394 ], [ 391, 395 ], [ 395, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 395, 400 ], [ 400, 401 ], [ 400, 402 ], [ 402, 403 ], [ 375, 404 ], [ 404, 405 ], [ 404, 406 ], [ 375, 407 ], [ 407, 408 ], [ 408, 409 ], [ 409, 410 ], [ 409, 411 ], [ 407, 412 ], [ 412, 413 ], [ 413, 414 ], [ 414, 415 ], [ 415, 416 ], [ 415, 417 ], [ 414, 418 ], [ 418, 419 ], [ 418, 420 ], [ 413, 421 ], [ 421, 422 ], [ 412, 423 ], [ 423, 424 ], [ 423, 425 ], [ 412, 426 ], [ 426, 427 ], [ 426, 428 ], [ 428, 429 ], [ 428, 430 ], [ 412, 431 ], [ 431, 432 ], [ 431, 433 ], [ 433, 434 ], [ 375, 435 ], [ 435, 436 ], [ 436, 437 ], [ 436, 438 ], [ 269, 439 ], [ 439, 440 ], [ 439, 441 ], [ 441, 442 ], [ 442, 443 ], [ 443, 444 ], [ 443, 445 ], [ 442, 446 ], [ 446, 447 ], [ 447, 448 ], [ 448, 449 ], [ 447, 450 ], [ 441, 451 ], [ 451, 452 ], [ 455, 453 ], [ 465, 454 ], [ 462, 455 ], [ 455, 456 ], [ 456, 457 ], [ 456, 458 ], [ 455, 459 ], [ 459, 460 ], [ 459, 461 ], [ 462, 462 ], [ 462, 463 ], [ 462, 464 ], [ 465, 465 ], [ 465, 466 ], [ 465, 467 ], [ 455, 468 ], [ 468, 469 ], [ 468, 470 ], [ 470, 471 ], [ 439, 472 ], [ 472, 473 ], [ 269, 474 ], [ 474, 475 ], [ 474, 476 ], [ 476, 477 ], [ 476, 478 ], [ 478, 479 ], [ 0, 480 ], [ 480, 481 ], [ 480, 482 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\nimport java.util.LinkedList;\nimport java.util.PriorityQueue;\n\n\npublic class Main {\n public static void main(String[]args){\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n \n int[] R = new int[n]; //kakaku list\n int[] P = new int[n-1]; //profit list\n \n \n for(int i=0;i<n;i++){\n R[i] = sc.nextInt();\n }\n \n int minR = 0;\n for(int i = 0; i<n-1; i++){\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }\n \n /*System.out.println();\n for(int i=0;i<n;i++){\n System.out.println(R[i]);\n }\n for(int i=0;i<n;i++){\n System.out.println(P[i]);\n }*/\n \n System.out.println(findmax(P));\n }\n \n static int findmax(int[] x){\n int max=0;\n for(int i = 0;i<x.length;i++){\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }\n return max;\n } \n \n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.LinkedList;", "LinkedList", "java.util", "import java.util.PriorityQueue;", "PriorityQueue", "java.util", "public class Main {\n public static void main(String[]args){\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n \n int[] R = new int[n]; //kakaku list\n int[] P = new int[n-1]; //profit list\n \n \n for(int i=0;i<n;i++){\n R[i] = sc.nextInt();\n }\n \n int minR = 0;\n for(int i = 0; i<n-1; i++){\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }\n \n /*System.out.println();\n for(int i=0;i<n;i++){\n System.out.println(R[i]);\n }\n for(int i=0;i<n;i++){\n System.out.println(P[i]);\n }*/\n \n System.out.println(findmax(P));\n }\n \n static int findmax(int[] x){\n int max=0;\n for(int i = 0;i<x.length;i++){\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }\n return max;\n } \n \n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main", "public static void main(String[]args){\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n \n int[] R = new int[n]; //kakaku list\n int[] P = new int[n-1]; //profit list\n \n \n for(int i=0;i<n;i++){\n R[i] = sc.nextInt();\n }\n \n int minR = 0;\n for(int i = 0; i<n-1; i++){\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }\n \n /*System.out.println();\n for(int i=0;i<n;i++){\n System.out.println(R[i]);\n }\n for(int i=0;i<n;i++){\n System.out.println(P[i]);\n }*/\n \n System.out.println(findmax(P));\n }", "main", "{\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n \n int[] R = new int[n]; //kakaku list\n int[] P = new int[n-1]; //profit list\n \n \n for(int i=0;i<n;i++){\n R[i] = sc.nextInt();\n }\n \n int minR = 0;\n for(int i = 0; i<n-1; i++){\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }\n \n /*System.out.println();\n for(int i=0;i<n;i++){\n System.out.println(R[i]);\n }\n for(int i=0;i<n;i++){\n System.out.println(P[i]);\n }*/\n \n System.out.println(findmax(P));\n }", "InputReader sc = new InputReader(System.in);", "sc", "new InputReader(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] R = new int[n];", "R", "new int[n]", "n", "int[] P = new int[n-1];", "P", "new int[n-1]", "n-1", "n", "1", "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 minR = 0;", "minR", "0", "for(int i = 0; i<n-1; i++){\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }", "int i = 0;", "int i = 0;", "i", "0", "i<n-1", "i", "n-1", "n", "1", "i++", "i++", "i", "{\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }", "{\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }", "if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }", "i == 0", "i", "0", "{\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }", "minR = R[i]", "minR", "R[i]", "R", "i", "P[i] = R[1]-R[0]", "P[i]", "P", "i", "R[1]-R[0]", "R[1]", "R", "1", "R[0]", "R", "0", "for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }", "int j=i+1;", "int j=i+1;", "j", "i+1", "i", "1", "j<n", "j", "n", "j++", "j++", "j", "{\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }", "{\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }", "if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }", "P[i]<(R[j]- R[i])", "P[i]", "P", "i", "(R[j]- R[i])", "R[j]", "R", "j", "R[i]", "R", "i", "{\n P[i] = R[j]-R[i];\n }", "P[i] = R[j]-R[i]", "P[i]", "P", "i", "R[j]-R[i]", "R[j]", "R", "j", "R[i]", "R", "i", "if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }", "minR>R[i]", "minR", "R[i]", "R", "i", "{ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }", "minR = R[i]", "minR", "R[i]", "R", "i", "P[i] = R[i+1]-R[i]", "P[i]", "P", "i", "R[i+1]-R[i]", "R[i+1]", "R", "i+1", "i", "1", "R[i]", "R", "i", "for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }", "int j=i+1;", "int j=i+1;", "j", "i+1", "i", "1", "j<n", "j", "n", "j++", "j++", "j", "{\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }", "{\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }", "if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }", "P[i]<(R[j]- R[i])", "P[i]", "P", "i", "(R[j]- R[i])", "R[j]", "R", "j", "R[i]", "R", "i", "{\n P[i] = R[j]-R[i];\n }", "P[i] = R[j]-R[i]", "P[i]", "P", "i", "R[j]-R[i]", "R[j]", "R", "j", "R[i]", "R", "i", "{\n P[i] = -999999999;\n }", "P[i] = -999999999", "P[i]", "P", "i", "-999999999", "999999999", "System.out.println(findmax(P))", "System.out.println", "System.out", "System", "System.out", "findmax(P)", "findmax", "P", "String[]args", "args", "static int findmax(int[] x){\n int max=0;\n for(int i = 0;i<x.length;i++){\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }\n return max;\n }", "findmax", "{\n int max=0;\n for(int i = 0;i<x.length;i++){\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }\n return max;\n }", "int max=0;", "max", "0", "for(int i = 0;i<x.length;i++){\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }", "int i = 0;", "int i = 0;", "i", "0", "i<x.length", "i", "x.length", "x", "x.length", "i++", "i++", "i", "{\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }", "{\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }", "if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }", "i == 0", "i", "0", "{\n max = x[i];\n }", "max = x[i]", "max", "x[i]", "x", "i", "{\n max = Math.max(max, x[i]);\n }", "max = Math.max(max, x[i])", "max", "Math.max(max, x[i])", "Math.max", "Math", "max", "x[i]", "x", "i", "return max;", "max", "int[] x", "x", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "next", "{\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1)\n throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0)\n return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }", "nextStr", "{\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }", "int c = next();", "c", "next()", "next", "while(isSpaceChar(c)){c = next();}", "isSpaceChar(c)", "isSpaceChar", "c", "{c = next();}", "c = next()", "c", "next()", "next", "StringBuffer str = new StringBuffer();", "str", "new StringBuffer()", "do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n str.append((char)c);\n c = next();\n }", "str.append((char)c)", "str.append", "str", "(char)c", "c = next()", "c", "next()", "next", "return str.toString();", "str.toString()", "str.toString", "str", "public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = next();", "c", "next()", "next", "while (isSpaceChar(c))\n c = next();", "isSpaceChar(c)", "isSpaceChar", "c", "c = next()", "c", "next()", "next", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = next();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = next();\n }", "sgn = -1", "sgn", "-1", "1", "c = next()", "c", "next()", "next", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n }", "if (c < '0' || c > '9')\n throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = next()", "c", "next()", "next", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null)\n return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[]args){\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n \n int[] R = new int[n]; //kakaku list\n int[] P = new int[n-1]; //profit list\n \n \n for(int i=0;i<n;i++){\n R[i] = sc.nextInt();\n }\n \n int minR = 0;\n for(int i = 0; i<n-1; i++){\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }\n \n /*System.out.println();\n for(int i=0;i<n;i++){\n System.out.println(R[i]);\n }\n for(int i=0;i<n;i++){\n System.out.println(P[i]);\n }*/\n \n System.out.println(findmax(P));\n }\n \n static int findmax(int[] x){\n int max=0;\n for(int i = 0;i<x.length;i++){\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }\n return max;\n } \n \n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "public class Main {\n public static void main(String[]args){\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n \n int[] R = new int[n]; //kakaku list\n int[] P = new int[n-1]; //profit list\n \n \n for(int i=0;i<n;i++){\n R[i] = sc.nextInt();\n }\n \n int minR = 0;\n for(int i = 0; i<n-1; i++){\n \n if(i == 0){\n minR = R[i];\n P[i] = R[1]-R[0];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else if(minR>R[i]){ \n minR = R[i];\n P[i] = R[i+1]-R[i];\n for(int j=i+1; j<n; j++){\n if( P[i]<(R[j]- R[i]) ){\n P[i] = R[j]-R[i];\n }\n }\n }else{\n P[i] = -999999999;\n }\n \n }\n \n /*System.out.println();\n for(int i=0;i<n;i++){\n System.out.println(R[i]);\n }\n for(int i=0;i<n;i++){\n System.out.println(P[i]);\n }*/\n \n System.out.println(findmax(P));\n }\n \n static int findmax(int[] x){\n int max=0;\n for(int i = 0;i<x.length;i++){\n if(i == 0){\n max = x[i];\n }else{\n max = Math.max(max, x[i]);\n }\n \n }\n return max;\n } \n \n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.util.LinkedList; import java.util.PriorityQueue; public class Main { public static void main(String[]args){ InputReader sc = new InputReader(System.in); int n = sc.nextInt(); int[] R = new int[n]; //kakaku list int[] P = new int[n-1]; //profit list for(int i=0;i<n;i++){ R[i] = sc.nextInt(); } int minR = 0; for(int i = 0; i<n-1; i++){ if(i == 0){ minR = R[i]; P[i] = R[1]-R[0]; for(int j=i+1; j<n; j++){ if( P[i]<(R[j]- R[i]) ){ P[i] = R[j]-R[i]; } } }else if(minR>R[i]){ minR = R[i]; P[i] = R[i+1]-R[i]; for(int j=i+1; j<n; j++){ if( P[i]<(R[j]- R[i]) ){ P[i] = R[j]-R[i]; } } }else{ P[i] = -999999999; } } /*System.out.println(); for(int i=0;i<n;i++){ System.out.println(R[i]); } for(int i=0;i<n;i++){ System.out.println(P[i]); }*/ System.out.println(findmax(P)); } static int findmax(int[] x){ int max=0; for(int i = 0;i<x.length;i++){ if(i == 0){ max = x[i]; }else{ max = Math.max(max, x[i]); } } return max; } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int next() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public String nextStr() { int c = next(); while(isSpaceChar(c)){c = next();} StringBuffer str = new StringBuffer(); do{ str.append((char)c); c = next(); }while(!isSpaceChar(c)); return str.toString(); } public int nextInt() { int c = next(); while (isSpaceChar(c)) c = next(); int sgn = 1; if (c == '-') { sgn = -1; c = next(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = next(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 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, 2, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 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, 13, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 120, 5 ], [ 120, 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 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 80, 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 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 101, 103 ], [ 94, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 8, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 6, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] r = new int[n];\n\n int min = 1000000000;\n\n\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n\n int maxProfit = r[1] - r[0];\n\n for(int i = 0; i < n - 1; i++) {\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }\n\n System.out.println(maxProfit);\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 int[] r = new int[n];\n\n int min = 1000000000;\n\n\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n\n int maxProfit = r[1] - r[0];\n\n for(int i = 0; i < n - 1; i++) {\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }\n\n System.out.println(maxProfit);\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\n int min = 1000000000;\n\n\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n\n int maxProfit = r[1] - r[0];\n\n for(int i = 0; i < n - 1; i++) {\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }\n\n System.out.println(maxProfit);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] r = new int[n];\n\n int min = 1000000000;\n\n\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n\n int maxProfit = r[1] - r[0];\n\n for(int i = 0; i < n - 1; i++) {\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\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[] r = new int[n];", "r", "new int[n]", "n", "int min = 1000000000;", "min", "1000000000", "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 maxProfit = r[1] - r[0];", "maxProfit", "r[1] - r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "for(int i = 0; i < n - 1; i++) {\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n - 1", "i", "n - 1", "n", "1", "i++", "i++", "i", "{\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }", "{\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }", "if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }", "r[i] < min", "r[i]", "r", "i", "min", "{\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }", "min = r[i]", "min", "r[i]", "r", "i", "for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }", "int j = i + 1;", "int j = i + 1;", "j", "i + 1", "i", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }", "{\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }", "int dif = r[j] - r[i];", "dif", "r[j] - r[i]", "r[j]", "r", "j", "r[i]", "r", "i", "if(dif > maxProfit) maxProfit = dif;", "dif > maxProfit", "dif", "maxProfit", "maxProfit = dif", "maxProfit", "dif", "System.out.println(maxProfit)", "System.out.println", "System.out", "System", "System.out", "maxProfit", "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 int[] r = new int[n];\n\n int min = 1000000000;\n\n\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n\n int maxProfit = r[1] - r[0];\n\n for(int i = 0; i < n - 1; i++) {\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }\n\n System.out.println(maxProfit);\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 int[] r = new int[n];\n\n int min = 1000000000;\n\n\n for(int i = 0; i < n; i++) {\n r[i] = sc.nextInt();\n }\n\n int maxProfit = r[1] - r[0];\n\n for(int i = 0; i < n - 1; i++) {\n if(r[i] < min) {\n min = r[i];\n for(int j = i + 1; j < n; j++) {\n int dif = r[j] - r[i];\n if(dif > maxProfit) maxProfit = dif;\n }\n }\n }\n\n System.out.println(maxProfit);\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]; int min = 1000000000; for(int i = 0; i < n; i++) { r[i] = sc.nextInt(); } int maxProfit = r[1] - r[0]; for(int i = 0; i < n - 1; i++) { if(r[i] < min) { min = r[i]; for(int j = i + 1; j < n; j++) { int dif = r[j] - r[i]; if(dif > maxProfit) maxProfit = dif; } } } System.out.println(maxProfit); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 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, 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, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 125, 11 ], [ 125, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 14, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 12, 66 ], [ 66, 67 ], [ 125, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 70, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 85, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 99, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 70, 120 ], [ 120, 121 ], [ 68, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.Math;\n\n/*Question\n/FX????????§????????°?????????????????¨????????????????????¨??§????????????????????????????????¨?????§????????????\n/????????°????????????100???????????? 1000???????????????????????????????????? 1?????? 108???????????£??????????£??????¨???(108??? ??? 100???) ?? 1000?????? =\n8000??????????????????????????¨?????§????????????\n/???????????¨????????????????????? t?????????????????? Rt (t=0,1,2,,,n???1)?????\\?????¨??????????????????????????§??????????????? Rj???Ri (????????????j>i??¨??????) ????????§???????±??????????????????????\n*/\n\n/*Input\n/?????????????????´??° n?????????????????????????¶???? n ????????´??° Rt (t=0,1,2,,,n???1) ????????????????????????????????? \n*/\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tlong k;\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tlong[] r = new long[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}\n\t\t/*??°??????fxariganetokasu???????????????\n\t\t/??????????????£??????????????§??????\n\t\t*/\n\t\tk = fxariganetokasu(r);\n\t\tSystem.out.println(k);\n\t}\n\n\t/*fxariganetokasu????????????\n\t/????????????????????????????????§????±???????\n\t/@return long\n\t*/\n\n\tpublic static long fxariganetokasu(long[] r) {\n\t\t//????????¨?????¨??????????????\\???????????????????????????????????\\????????????????????????int???????°??????§??????????????????????????????\n\t\tlong s = r[1] - r[0];\n\t\t//????°??????\\????????¨????????????????????\\????????????\n\t\tlong minn = r[0];\n\t\tfor (int i = 1;i < r.length;i++) {\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}\n\t\treturn s;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tlong k;\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tlong[] r = new long[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}\n\t\t/*??°??????fxariganetokasu???????????????\n\t\t/??????????????£??????????????§??????\n\t\t*/\n\t\tk = fxariganetokasu(r);\n\t\tSystem.out.println(k);\n\t}\n\n\t/*fxariganetokasu????????????\n\t/????????????????????????????????§????±???????\n\t/@return long\n\t*/\n\n\tpublic static long fxariganetokasu(long[] r) {\n\t\t//????????¨?????¨??????????????\\???????????????????????????????????\\????????????????????????int???????°??????§??????????????????????????????\n\t\tlong s = r[1] - r[0];\n\t\t//????°??????\\????????¨????????????????????\\????????????\n\t\tlong minn = r[0];\n\t\tfor (int i = 1;i < r.length;i++) {\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}\n\t\treturn s;\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tlong k;\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tlong[] r = new long[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}\n\t\t/*??°??????fxariganetokasu???????????????\n\t\t/??????????????£??????????????§??????\n\t\t*/\n\t\tk = fxariganetokasu(r);\n\t\tSystem.out.println(k);\n\t}", "main", "{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tlong k;\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tlong[] r = new long[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}\n\t\t/*??°??????fxariganetokasu???????????????\n\t\t/??????????????£??????????????§??????\n\t\t*/\n\t\tk = fxariganetokasu(r);\n\t\tSystem.out.println(k);\n\t}", "BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));", "sc", "new BufferedReader(new InputStreamReader(System.in))", "long k;", "k", "int n = Integer.parseInt(sc.readLine());", "n", "Integer.parseInt(sc.readLine())", "Integer.parseInt", "Integer", "sc.readLine()", "sc.readLine", "sc", "long[] r = new long[n];", "r", "new long[n]", "n", "for(int i = 0;i < n;i++){\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}", "{\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}", "r[i] = Long.parseLong(sc.readLine())", "r[i]", "r", "i", "Long.parseLong(sc.readLine())", "Long.parseLong", "Long", "sc.readLine()", "sc.readLine", "sc", "k = fxariganetokasu(r)", "k", "fxariganetokasu(r)", "fxariganetokasu", "r", "System.out.println(k)", "System.out.println", "System.out", "System", "System.out", "k", "String[] args", "args", "public static long fxariganetokasu(long[] r) {\n\t\t//????????¨?????¨??????????????\\???????????????????????????????????\\????????????????????????int???????°??????§??????????????????????????????\n\t\tlong s = r[1] - r[0];\n\t\t//????°??????\\????????¨????????????????????\\????????????\n\t\tlong minn = r[0];\n\t\tfor (int i = 1;i < r.length;i++) {\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}\n\t\treturn s;\n\t}", "fxariganetokasu", "{\n\t\t//????????¨?????¨??????????????\\???????????????????????????????????\\????????????????????????int???????°??????§??????????????????????????????\n\t\tlong s = r[1] - r[0];\n\t\t//????°??????\\????????¨????????????????????\\????????????\n\t\tlong minn = r[0];\n\t\tfor (int i = 1;i < r.length;i++) {\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}\n\t\treturn s;\n\t}", "long s = r[1] - r[0];", "s", "r[1] - r[0]", "r[1]", "r", "1", "r[0]", "r", "0", "long minn = r[0];", "minn", "r[0]", "r", "0", "for (int i = 1;i < r.length;i++) {\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,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\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}", "{\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}", "s = Math.max(s,r[i] - minn)", "s", "Math.max(s,r[i] - minn)", "Math.max", "Math", "s", "r[i] - minn", "r[i]", "r", "i", "minn", "minn = Math.min(minn,r[i])", "minn", "Math.min(minn,r[i])", "Math.min", "Math", "minn", "r[i]", "r", "i", "return s;", "s", "long[] r", "r", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tlong k;\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tlong[] r = new long[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}\n\t\t/*??°??????fxariganetokasu???????????????\n\t\t/??????????????£??????????????§??????\n\t\t*/\n\t\tk = fxariganetokasu(r);\n\t\tSystem.out.println(k);\n\t}\n\n\t/*fxariganetokasu????????????\n\t/????????????????????????????????§????±???????\n\t/@return long\n\t*/\n\n\tpublic static long fxariganetokasu(long[] r) {\n\t\t//????????¨?????¨??????????????\\???????????????????????????????????\\????????????????????????int???????°??????§??????????????????????????????\n\t\tlong s = r[1] - r[0];\n\t\t//????°??????\\????????¨????????????????????\\????????????\n\t\tlong minn = r[0];\n\t\tfor (int i = 1;i < r.length;i++) {\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}\n\t\treturn s;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tlong k;\n\t\t/*??\\???\n\t\t/??????????´???°?????\\???????¬??????°????????\\???\n\t\t*/\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\tlong[] r = new long[n];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tr[i] = Long.parseLong(sc.readLine());\n\t\t}\n\t\t/*??°??????fxariganetokasu???????????????\n\t\t/??????????????£??????????????§??????\n\t\t*/\n\t\tk = fxariganetokasu(r);\n\t\tSystem.out.println(k);\n\t}\n\n\t/*fxariganetokasu????????????\n\t/????????????????????????????????§????±???????\n\t/@return long\n\t*/\n\n\tpublic static long fxariganetokasu(long[] r) {\n\t\t//????????¨?????¨??????????????\\???????????????????????????????????\\????????????????????????int???????°??????§??????????????????????????????\n\t\tlong s = r[1] - r[0];\n\t\t//????°??????\\????????¨????????????????????\\????????????\n\t\tlong minn = r[0];\n\t\tfor (int i = 1;i < r.length;i++) {\n\t\t\ts = Math.max(s,r[i] - minn);\n\t\t\tminn = Math.min(minn,r[i]);\n\t\t}\n\t\treturn s;\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Math; /*Question /FX????????§????????°?????????????????¨????????????????????¨??§????????????????????????????????¨?????§???????????? /????????°????????????100???????????? 1000???????????????????????????????????? 1?????? 108???????????£??????????£??????¨???(108??? ??? 100???) ?? 1000?????? = 8000??????????????????????????¨?????§???????????? /???????????¨????????????????????? t?????????????????? Rt (t=0,1,2,,,n???1)?????\?????¨??????????????????????????§??????????????? Rj???Ri (????????????j>i??¨??????) ????????§???????±?????????????????????? */ /*Input /?????????????????´??° n?????????????????????????¶???? n ????????´??° Rt (t=0,1,2,,,n???1) ????????????????????????????????? */ public class Main { public static void main(String[] args) throws Exception { BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); //????????¨ long k; /*??\??? /??????????´???°?????\???????¬??????°????????\??? */ int n = Integer.parseInt(sc.readLine()); long[] r = new long[n]; for(int i = 0;i < n;i++){ r[i] = Long.parseLong(sc.readLine()); } /*??°??????fxariganetokasu??????????????? /??????????????£??????????????§?????? */ k = fxariganetokasu(r); System.out.println(k); } /*fxariganetokasu???????????? /????????????????????????????????§????±??????? /@return long */ public static long fxariganetokasu(long[] r) { //????????¨?????¨??????????????\???????????????????????????????????\????????????????????????int???????°??????§?????????????????????????????? long s = r[1] - r[0]; //????°??????\????????¨????????????????????\???????????? long minn = r[0]; for (int i = 1;i < r.length;i++) { s = Math.max(s,r[i] - minn); minn = Math.min(minn,r[i]); } return s; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 18, 13, 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, 2, 13, 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 ], [ 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 ], [ 20, 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 ], [ 34, 35 ], [ 34, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 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 ], [ 52, 53 ], [ 52, 54 ], [ 49, 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 ], [ 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\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int min = sc.nextInt();\n int ans = Integer.MIN_VALUE;\n \n for (int i = 0; i < n - 1; i++) {\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int min = sc.nextInt();\n int ans = Integer.MIN_VALUE;\n \n for (int i = 0; i < n - 1; i++) {\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int min = sc.nextInt();\n int ans = Integer.MIN_VALUE;\n \n for (int i = 0; i < n - 1; i++) {\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }\n System.out.println(ans);\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int min = sc.nextInt();\n int ans = Integer.MIN_VALUE;\n \n for (int i = 0; i < n - 1; i++) {\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int min = sc.nextInt();", "min", "sc.nextInt()", "sc.nextInt", "sc", "int ans = Integer.MIN_VALUE;", "ans", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n - 1; i++) {\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n - 1", "i", "n - 1", "n", "1", "i++", "i++", "i", "{\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }", "{\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }", "int input = sc.nextInt();", "input", "sc.nextInt()", "sc.nextInt", "sc", "ans = Math.max(input - min, ans)", "ans", "Math.max(input - min, ans)", "Math.max", "Math", "input - min", "input", "min", "ans", "min = Math.min(input, min)", "min", "Math.min(input, min)", "Math.min", "Math", "input", "min", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int min = sc.nextInt();\n int ans = Integer.MIN_VALUE;\n \n for (int i = 0; i < n - 1; i++) {\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int min = sc.nextInt();\n int ans = Integer.MIN_VALUE;\n \n for (int i = 0; i < n - 1; i++) {\n int input = sc.nextInt();\n ans = Math.max(input - min, ans);\n min = Math.min(input, min);\n }\n System.out.println(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 min = sc.nextInt(); int ans = Integer.MIN_VALUE; for (int i = 0; i < n - 1; i++) { int input = sc.nextInt(); ans = Math.max(input - min, ans); min = Math.min(input, min); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 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 ], [ 17, 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 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 39, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 39, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 81, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 72, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.*;\n\npublic class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint maxDiff = Integer.MIN_VALUE;\n\t\tint minVal = scan.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxDiff);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint maxDiff = Integer.MIN_VALUE;\n\t\tint minVal = scan.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxDiff);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "Main", "void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint maxDiff = Integer.MIN_VALUE;\n\t\tint minVal = scan.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxDiff);\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint maxDiff = Integer.MIN_VALUE;\n\t\tint minVal = scan.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxDiff);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int maxDiff = Integer.MIN_VALUE;", "maxDiff", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int minVal = scan.nextInt();", "minVal", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 1; i < n; i++) {\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}", "{\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}", "int val = scan.nextInt();", "val", "scan.nextInt()", "scan.nextInt", "scan", "int diff = val - minVal;", "diff", "val - minVal", "val", "minVal", "if (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}", "maxDiff < diff", "maxDiff", "diff", "{\n\t\t\t\tmaxDiff = diff;\n\t\t\t}", "maxDiff = diff", "maxDiff", "diff", "if (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}", "minVal > val", "minVal", "val", "{\n\t\t\t\tminVal = val;\n\t\t\t}", "minVal = val", "minVal", "val", "System.out.println(maxDiff)", "System.out.println", "System.out", "System", "System.out", "maxDiff", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint maxDiff = Integer.MIN_VALUE;\n\t\tint minVal = scan.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxDiff);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "public class Main {\n\t\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint maxDiff = Integer.MIN_VALUE;\n\t\tint minVal = scan.nextInt();\n\t\t\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint val = scan.nextInt();\n\t\t\tint diff = val - minVal;\n\t\t\tif (maxDiff < diff) {\n\t\t\t\tmaxDiff = diff;\n\t\t\t}\n\t\t\tif (minVal > val) {\n\t\t\t\tminVal = val;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxDiff);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { void run() { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int maxDiff = Integer.MIN_VALUE; int minVal = scan.nextInt(); for (int i = 1; i < n; i++) { int val = scan.nextInt(); int diff = val - minVal; if (maxDiff < diff) { maxDiff = diff; } if (minVal > val) { minVal = val; } } System.out.println(maxDiff); } public static void main(String[] args) { // TODO Auto-generated method stub new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 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 ], [ 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 ], [ 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 ], [ 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 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 6, 95 ], [ 95, 96 ] ]
[ "import java.util.*;\nclass Main{\n public static void main(String[] args){\n \t//final int MAX =200000;\n \t\n \n \tScanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\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}\n \tlong maxv=-2000000000;\n \t\t\t \n \tlong 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 \t\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n \t//final int MAX =200000;\n \t\n \n \tScanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\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}\n \tlong maxv=-2000000000;\n \t\t\t \n \tlong 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 \t\n }\n}", "Main", "public static void main(String[] args){\n \t//final int MAX =200000;\n \t\n \n \tScanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\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}\n \tlong maxv=-2000000000;\n \t\t\t \n \tlong 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 \t\n }", "main", "{\n \t//final int MAX =200000;\n \t\n \n \tScanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\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}\n \tlong maxv=-2000000000;\n \t\t\t \n \tlong 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 \t\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", "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}", "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}", "{\n \t\t R[i]=Integer.parseInt(sc.next());\n \t}", "R[i]=Integer.parseInt(sc.next())", "R[i]", "R", "i", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "long maxv=-2000000000;", "maxv", "-2000000000", "2000000000", "long 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.util.*; class Main{ public static void main(String[] args){ //final int MAX =200000; 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()); } long maxv=-2000000000; long 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, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 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, 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 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 47, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 47, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint minval = Integer.parseInt(std.next());;\n\t\tint maxpro = (int)-1e+9;\n\t\tint nextval = 0;\n\t\tfor (int i=1; i<n; i++){\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}\n\t\tSystem.out.println(maxpro);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint minval = Integer.parseInt(std.next());;\n\t\tint maxpro = (int)-1e+9;\n\t\tint nextval = 0;\n\t\tfor (int i=1; i<n; i++){\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}\n\t\tSystem.out.println(maxpro);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint minval = Integer.parseInt(std.next());;\n\t\tint maxpro = (int)-1e+9;\n\t\tint nextval = 0;\n\t\tfor (int i=1; i<n; i++){\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}\n\t\tSystem.out.println(maxpro);\n\t}", "main", "{\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint minval = Integer.parseInt(std.next());;\n\t\tint maxpro = (int)-1e+9;\n\t\tint nextval = 0;\n\t\tfor (int i=1; i<n; i++){\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}\n\t\tSystem.out.println(maxpro);\n\t}", "Scanner std = new Scanner(System.in);", "std", "new Scanner(System.in)", "int n = Integer.parseInt(std.next());", "n", "Integer.parseInt(std.next())", "Integer.parseInt", "Integer", "std.next()", "std.next", "std", "int minval = Integer.parseInt(std.next());", "minval", "Integer.parseInt(std.next())", "Integer.parseInt", "Integer", "std.next()", "std.next", "std", "int maxpro = (int)-1e+9;", "maxpro", "(int)-1e+9", "1e+9", "int nextval = 0;", "nextval", "0", "for (int i=1; i<n; i++){\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}", "{\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}", "nextval = Integer.parseInt(std.next())", "nextval", "Integer.parseInt(std.next())", "Integer.parseInt", "Integer", "std.next()", "std.next", "std", "if(maxpro<(nextval-minval)){maxpro = nextval - minval;}", "maxpro<(nextval-minval)", "maxpro", "(nextval-minval)", "nextval", "minval", "{maxpro = nextval - minval;}", "maxpro = nextval - minval", "maxpro", "nextval - minval", "nextval", "minval", "if(nextval<minval){minval = nextval;}", "nextval<minval", "nextval", "minval", "{minval = nextval;}", "minval = nextval", "minval", "nextval", "System.out.println(maxpro)", "System.out.println", "System.out", "System", "System.out", "maxpro", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint minval = Integer.parseInt(std.next());;\n\t\tint maxpro = (int)-1e+9;\n\t\tint nextval = 0;\n\t\tfor (int i=1; i<n; i++){\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}\n\t\tSystem.out.println(maxpro);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint minval = Integer.parseInt(std.next());;\n\t\tint maxpro = (int)-1e+9;\n\t\tint nextval = 0;\n\t\tfor (int i=1; i<n; i++){\n\t\t\tnextval = Integer.parseInt(std.next());\n\t\t\tif(maxpro<(nextval-minval)){maxpro = nextval - minval;}\n\t\t\tif(nextval<minval){minval = nextval;}\n\t\t}\n\t\tSystem.out.println(maxpro);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner std = new Scanner(System.in); int n = Integer.parseInt(std.next()); int minval = Integer.parseInt(std.next());; int maxpro = (int)-1e+9; int nextval = 0; for (int i=1; i<n; i++){ nextval = Integer.parseInt(std.next()); if(maxpro<(nextval-minval)){maxpro = nextval - minval;} if(nextval<minval){minval = nextval;} } System.out.println(maxpro); } }
[ 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, 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, 18, 13, 14, 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 ]
[ [ 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 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 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 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 54, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 6, 86 ], [ 86, 87 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint count = scanner.nextInt();\n\t\tint price = scanner.nextInt();\n\t\tint changedPrice = scanner.nextInt();\n\t\tint profit = changedPrice - price;\n\n\t\tif (price > changedPrice) {\n\t\t\tprice = changedPrice;\n\t\t}\n\n\t\tfor (int i = 0; i < count - 2; i++) {\n\t\t\tchangedPrice = scanner.nextInt();\n\t\t\tif (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}\n\t\t\tif (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(profit);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint count = scanner.nextInt();\n\t\tint price = scanner.nextInt();\n\t\tint changedPrice = scanner.nextInt();\n\t\tint profit = changedPrice - price;\n\n\t\tif (price > changedPrice) {\n\t\t\tprice = changedPrice;\n\t\t}\n\n\t\tfor (int i = 0; i < count - 2; i++) {\n\t\t\tchangedPrice = scanner.nextInt();\n\t\t\tif (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}\n\t\t\tif (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(profit);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint count = scanner.nextInt();\n\t\tint price = scanner.nextInt();\n\t\tint changedPrice = scanner.nextInt();\n\t\tint profit = changedPrice - price;\n\n\t\tif (price > changedPrice) {\n\t\t\tprice = changedPrice;\n\t\t}\n\n\t\tfor (int i = 0; i < count - 2; i++) {\n\t\t\tchangedPrice = scanner.nextInt();\n\t\t\tif (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}\n\t\t\tif (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(profit);\n\t}", "main", "{\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint count = scanner.nextInt();\n\t\tint price = scanner.nextInt();\n\t\tint changedPrice = scanner.nextInt();\n\t\tint profit = changedPrice - price;\n\n\t\tif (price > changedPrice) {\n\t\t\tprice = changedPrice;\n\t\t}\n\n\t\tfor (int i = 0; i < count - 2; i++) {\n\t\t\tchangedPrice = scanner.nextInt();\n\t\t\tif (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}\n\t\t\tif (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\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 count = scanner.nextInt();", "count", "scanner.nextInt()", "scanner.nextInt", "scanner", "int price = scanner.nextInt();", "price", "scanner.nextInt()", "scanner.nextInt", "scanner", "int changedPrice = scanner.nextInt();", "changedPrice", "scanner.nextInt()", "scanner.nextInt", "scanner", "int profit = changedPrice - price;", "profit", "changedPrice - price", "changedPrice", "price", "if (price > changedPrice) {\n\t\t\tprice = changedPrice;\n\t\t}", "price > changedPrice", "price", "changedPrice", "{\n\t\t\tprice = changedPrice;\n\t\t}", "price = changedPrice", "price", "changedPrice", "for (int i = 0; i < count - 2; i++) {\n\t\t\tchangedPrice = scanner.nextInt();\n\t\t\tif (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}\n\t\t\tif (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count - 2", "i", "count - 2", "count", "2", "i++", "i++", "i", "{\n\t\t\tchangedPrice = scanner.nextInt();\n\t\t\tif (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}\n\t\t\tif (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\t\t}\n\t\t}", "{\n\t\t\tchangedPrice = scanner.nextInt();\n\t\t\tif (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}\n\t\t\tif (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\t\t}\n\t\t}", "changedPrice = scanner.nextInt()", "changedPrice", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (profit < (changedPrice - price)) {\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}", "profit < (changedPrice - price)", "profit", "(changedPrice - price)", "changedPrice", "price", "{\n\t\t\t\tprofit = changedPrice - price;\n\t\t\t}", "profit = changedPrice - price", "profit", "changedPrice - price", "changedPrice", "price", "if (changedPrice < price) {\n\t\t\t\tprice = changedPrice;\n\t\t\t}", "changedPrice < price", "changedPrice", "price", "{\n\t\t\t\tprice = changedPrice;\n\t\t\t}", "price = changedPrice", "price", "changedPrice", "System.out.println(profit)", "System.out.println", "System.out", "System", "System.out", "profit", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); int price = scanner.nextInt(); int changedPrice = scanner.nextInt(); int profit = changedPrice - price; if (price > changedPrice) { price = changedPrice; } for (int i = 0; i < count - 2; i++) { changedPrice = scanner.nextInt(); if (profit < (changedPrice - price)) { profit = changedPrice - price; } if (changedPrice < price) { price = changedPrice; } } System.out.println(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, 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, 41, 13, 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 ], [ 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 ], [ 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 ], [ 67, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 67, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 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;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner s=new Scanner(System.in);\n\t\tint n=s.nextInt();\n\t\tint a[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=s.nextInt();\n\t\t}\n\t\tint max=a[1]-a[0];\n\t\tint min=a[0];\n\t\tfor(int j=2;j<n;j++){\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\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 s=new Scanner(System.in);\n\t\tint n=s.nextInt();\n\t\tint a[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=s.nextInt();\n\t\t}\n\t\tint max=a[1]-a[0];\n\t\tint min=a[0];\n\t\tfor(int j=2;j<n;j++){\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner s=new Scanner(System.in);\n\t\tint n=s.nextInt();\n\t\tint a[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=s.nextInt();\n\t\t}\n\t\tint max=a[1]-a[0];\n\t\tint min=a[0];\n\t\tfor(int j=2;j<n;j++){\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner s=new Scanner(System.in);\n\t\tint n=s.nextInt();\n\t\tint a[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=s.nextInt();\n\t\t}\n\t\tint max=a[1]-a[0];\n\t\tint min=a[0];\n\t\tfor(int j=2;j<n;j++){\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\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 a[]=new int[n];", "a", "new int[n]", "n", "for(int i=0;i<n;i++){\n\t\t\ta[i]=s.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i]=s.nextInt();\n\t\t}", "{\n\t\t\ta[i]=s.nextInt();\n\t\t}", "a[i]=s.nextInt()", "a[i]", "a", "i", "s.nextInt()", "s.nextInt", "s", "int max=a[1]-a[0];", "max", "a[1]-a[0]", "a[1]", "a", "1", "a[0]", "a", "0", "int min=a[0];", "min", "a[0]", "a", "0", "for(int j=2;j<n;j++){\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\n\t\t}", "int j=2;", "int j=2;", "j", "2", "j<n", "j", "n", "j++", "j++", "j", "{\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\n\t\t}", "{\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\n\t\t}", "min=Math.min(min,a[j-1])", "min", "Math.min(min,a[j-1])", "Math.min", "Math", "min", "a[j-1]", "a", "j-1", "j", "1", "int sub;", "sub", "sub=a[j]-min", "sub", "a[j]-min", "a[j]", "a", "j", "min", "if(sub>max) max=sub;", "sub>max", "sub", "max", "max=sub", "max", "sub", "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 s=new Scanner(System.in);\n\t\tint n=s.nextInt();\n\t\tint a[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=s.nextInt();\n\t\t}\n\t\tint max=a[1]-a[0];\n\t\tint min=a[0];\n\t\tfor(int j=2;j<n;j++){\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\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 s=new Scanner(System.in);\n\t\tint n=s.nextInt();\n\t\tint a[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=s.nextInt();\n\t\t}\n\t\tint max=a[1]-a[0];\n\t\tint min=a[0];\n\t\tfor(int j=2;j<n;j++){\n\t\t\tmin=Math.min(min,a[j-1]);\n\t\t\tint sub;\n\t\t\tsub=a[j]-min;\n\t\t\tif(sub>max) max=sub;\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 s=new Scanner(System.in); int n=s.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++){ a[i]=s.nextInt(); } int max=a[1]-a[0]; int min=a[0]; for(int j=2;j<n;j++){ min=Math.min(min,a[j-1]); int sub; sub=a[j]-min; if(sub>max) max=sub; } 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, 0, 18, 13, 17, 4, 18, 13, 41, 13, 18, 13, 17, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 86, 5 ], [ 86, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 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 ], [ 49, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 49, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n int maxv = -1000000000;\n a[0] = sc.nextInt();\n int minv = a[0];\n for(int i = 1; i<n; i++){\n a[i] = sc.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", "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 int maxv = -1000000000;\n a[0] = sc.nextInt();\n int minv = a[0];\n for(int i = 1; i<n; i++){\n a[i] = sc.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 sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n int maxv = -1000000000;\n a[0] = sc.nextInt();\n int minv = a[0];\n for(int i = 1; i<n; i++){\n a[i] = sc.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 sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n int maxv = -1000000000;\n a[0] = sc.nextInt();\n int minv = a[0];\n for(int i = 1; i<n; i++){\n a[i] = sc.nextInt();\n maxv = Math.max(maxv, a[i]-minv);\n minv = Math.min(minv,a[i]);\n }\n System.out.println(maxv);\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", "int maxv = -1000000000;", "maxv", "-1000000000", "1000000000", "a[0] = sc.nextInt()", "a[0]", "a", "0", "sc.nextInt()", "sc.nextInt", "sc", "int minv = a[0];", "minv", "a[0]", "a", "0", "for(int i = 1; i<n; i++){\n a[i] = sc.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] = sc.nextInt();\n maxv = Math.max(maxv, a[i]-minv);\n minv = Math.min(minv,a[i]);\n }", "{\n a[i] = sc.nextInt();\n maxv = Math.max(maxv, a[i]-minv);\n minv = Math.min(minv,a[i]);\n }", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "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", "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 int maxv = -1000000000;\n a[0] = sc.nextInt();\n int minv = a[0];\n for(int i = 1; i<n; i++){\n a[i] = sc.nextInt();\n maxv = Math.max(maxv, a[i]-minv);\n minv = Math.min(minv,a[i]);\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 int n = sc.nextInt();\n int[] a = new int[n];\n int maxv = -1000000000;\n a[0] = sc.nextInt();\n int minv = a[0];\n for(int i = 1; i<n; i++){\n a[i] = sc.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" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int maxv = -1000000000; a[0] = sc.nextInt(); int minv = a[0]; for(int i = 1; i<n; i++){ a[i] = sc.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, 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, 20, 13, 41, 13, 20, 13, 0, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 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, 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, 40, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 18, 13, 2, 13, 17, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 14, 2, 13, 13, 30, 29, 17, 30, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 30, 29, 18, 13, 40, 13, 30, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 30, 40, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 30, 37, 20, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 40, 4, 13, 30, 37, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 30, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 30, 29, 8, 13, 40, 13, 13, 30, 37, 20, 0, 13, 4, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 18, 13, 13, 13, 30, 37, 20, 29, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 430, 11 ], [ 430, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 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 ], [ 14, 47 ], [ 47, 48 ], [ 47, 49 ], [ 14, 51 ], [ 51, 52 ], [ 51, 53 ], [ 14, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 14, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 98, 100 ], [ 14, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 101, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 128, 130 ], [ 14, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 14, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 135, 145 ], [ 145, 146 ], [ 146, 147 ], [ 135, 148 ], [ 149, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 155, 161 ], [ 161, 162 ], [ 161, 163 ], [ 152, 164 ], [ 14, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 12, 171 ], [ 171, 172 ], [ 0, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 177, 179 ], [ 173, 180 ], [ 180, 181 ], [ 180, 182 ], [ 173, 184 ], [ 184, 185 ], [ 184, 186 ], [ 173, 187 ], [ 187, 188 ], [ 187, 189 ], [ 173, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 193, 197 ], [ 197, 198 ], [ 198, 199 ], [ 193, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 204, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 214, 217 ], [ 200, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 223, 224 ], [ 192, 225 ], [ 225, 226 ], [ 173, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 230, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 230, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 173, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 247, 251 ], [ 251, 252 ], [ 251, 253 ], [ 243, 254 ], [ 254, 255 ], [ 173, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 260, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 266, 267 ], [ 266, 268 ], [ 259, 269 ], [ 269, 270 ], [ 270, 271 ], [ 258, 272 ], [ 272, 273 ], [ 273, 274 ], [ 173, 275 ], [ 275, 276 ], [ 275, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 280, 281 ], [ 278, 282 ], [ 282, 283 ], [ 283, 284 ], [ 277, 285 ], [ 285, 286 ], [ 285, 287 ], [ 277, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 277, 292 ], [ 292, 293 ], [ 293, 294 ], [ 293, 295 ], [ 292, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 297, 300 ], [ 296, 301 ], [ 301, 302 ], [ 301, 303 ], [ 303, 304 ], [ 277, 305 ], [ 305, 306 ], [ 306, 307 ], [ 307, 308 ], [ 173, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 312, 313 ], [ 313, 314 ], [ 314, 315 ], [ 312, 316 ], [ 316, 317 ], [ 317, 318 ], [ 311, 319 ], [ 319, 320 ], [ 319, 321 ], [ 311, 322 ], [ 322, 323 ], [ 322, 324 ], [ 311, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 311, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 329, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 337, 338 ], [ 337, 339 ], [ 339, 340 ], [ 311, 341 ], [ 341, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 342, 346 ], [ 346, 347 ], [ 346, 348 ], [ 341, 349 ], [ 349, 350 ], [ 350, 351 ], [ 311, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 356, 360 ], [ 360, 361 ], [ 360, 362 ], [ 355, 363 ], [ 363, 364 ], [ 364, 365 ], [ 364, 366 ], [ 363, 367 ], [ 367, 368 ], [ 367, 369 ], [ 369, 370 ], [ 369, 371 ], [ 355, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 376, 377 ], [ 373, 378 ], [ 378, 379 ], [ 379, 380 ], [ 379, 381 ], [ 372, 382 ], [ 382, 383 ], [ 383, 384 ], [ 384, 385 ], [ 384, 386 ], [ 386, 387 ], [ 384, 388 ], [ 372, 389 ], [ 389, 390 ], [ 390, 391 ], [ 354, 392 ], [ 392, 393 ], [ 392, 394 ], [ 394, 395 ], [ 173, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 399, 400 ], [ 399, 401 ], [ 401, 402 ], [ 398, 403 ], [ 403, 404 ], [ 404, 405 ], [ 405, 406 ], [ 405, 407 ], [ 407, 408 ], [ 407, 409 ], [ 404, 410 ], [ 410, 411 ], [ 411, 412 ], [ 411, 413 ], [ 410, 414 ], [ 403, 415 ], [ 415, 416 ], [ 416, 417 ], [ 398, 418 ], [ 418, 419 ], [ 173, 420 ], [ 420, 421 ], [ 420, 422 ], [ 422, 423 ], [ 423, 424 ], [ 424, 425 ], [ 425, 426 ], [ 424, 427 ], [ 427, 428 ], [ 0, 429 ], [ 429, 430 ], [ 429, 431 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tint[] min = new int[n];\n\t\tmax[n - 1] = r[n - 1];\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\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 ans = -1000000007;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}\n\nclass FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\tprivate int readByte() {\n\t\tif (hasNextByte()) {\n\t\t\treturn buffer[ptr++];\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n\t\t\tptr++;\n\t\t}\n\t\treturn hasNextByte();\n\t}\n\tpublic String next() {\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\tpublic long nextLong() {\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || Integer.MAX_VALUE < nl) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\treturn (int) nl;\n\t}\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tint[] min = new int[n];\n\t\tmax[n - 1] = r[n - 1];\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\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 ans = -1000000007;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tint[] min = new int[n];\n\t\tmax[n - 1] = r[n - 1];\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\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 ans = -1000000007;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tint[] min = new int[n];\n\t\tmax[n - 1] = r[n - 1];\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\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 ans = -1000000007;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "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\t\t\tr[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "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", "int[] max = new int[n];", "max", "new int[n]", "n", "int[] min = new int[n];", "min", "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", "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", "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 ans = -1000000007;", "ans", "-1000000007", "1000000007", "for (int i = 0; i < n - 1; i++) {\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\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\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}", "{\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}", "ans = Math.max(max[i + 1] - min[i], ans)", "ans", "Math.max(max[i + 1] - min[i], ans)", "Math.max", "Math", "max[i + 1] - min[i]", "max[i + 1]", "max", "i + 1", "i", "1", "min[i]", "min", "i", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "class FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\tprivate int readByte() {\n\t\tif (hasNextByte()) {\n\t\t\treturn buffer[ptr++];\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n\t\t\tptr++;\n\t\t}\n\t\treturn hasNextByte();\n\t}\n\tpublic String next() {\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\tpublic long nextLong() {\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || Integer.MAX_VALUE < nl) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\treturn (int) nl;\n\t}\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}", "FastScanner", "private final InputStream in = System.in;", "in", "System.in", "System", "System.in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "private boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "hasNextByte", "{\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "if (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "ptr < buflen", "ptr", "buflen", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "{\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "ptr = 0", "ptr", "0", "try {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "IOException e", "{\n\t\t\t\te.printStackTrace();\n\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t}", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}", "buflen <= 0", "buflen", "0", "{\n\t\t\t\treturn false;\n\t\t\t}", "return false;", "false", "return true;", "true", "private int readByte() {\n\t\tif (hasNextByte()) {\n\t\t\treturn buffer[ptr++];\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "readByte", "{\n\t\tif (hasNextByte()) {\n\t\t\treturn buffer[ptr++];\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "if (hasNextByte()) {\n\t\t\treturn buffer[ptr++];\n\t\t} else {\n\t\t\treturn -1;\n\t\t}", "hasNextByte()", "hasNextByte", "{\n\t\t\treturn buffer[ptr++];\n\t\t}", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "{\n\t\t\treturn -1;\n\t\t}", "return -1;", "-1", "1", "private static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}", "isPrintableChar", "{\n\t\treturn 33 <= c && c <= 126;\n\t}", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "int c", "c", "public boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n\t\t\tptr++;\n\t\t}\n\t\treturn hasNextByte();\n\t}", "hasNext", "{\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n\t\t\tptr++;\n\t\t}\n\t\treturn hasNextByte();\n\t}", "while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n\t\t\tptr++;\n\t\t}", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "{\n\t\t\tptr++;\n\t\t}", "ptr++", "ptr", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}", "next", "{\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}", "if (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "!hasNext()", "hasNext()", "hasNext", "{\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "throw new NoSuchElementException();", "new NoSuchElementException()", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public long nextLong() {\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}", "nextLong", "{\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}", "if (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "!hasNext()", "hasNext()", "hasNext", "{\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "throw new NoSuchElementException();", "new NoSuchElementException()", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}", "b == '-'", "b", "'-'", "{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n\t\t\tthrow new NumberFormatException();\n\t\t}", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}", "true", "{\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}", "if ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t}", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t\t\t\treturn minus ? -n : n;\n\t\t\t}", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || Integer.MAX_VALUE < nl) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\treturn (int) nl;\n\t}", "nextInt", "{\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || Integer.MAX_VALUE < nl) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\treturn (int) nl;\n\t}", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || Integer.MAX_VALUE < nl) {\n\t\t\tthrow new NumberFormatException();\n\t\t}", "nl < Integer.MIN_VALUE || Integer.MAX_VALUE < nl", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "Integer.MAX_VALUE < nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "nl", "{\n\t\t\tthrow new NumberFormatException();\n\t\t}", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}", "nextDouble", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tint[] min = new int[n];\n\t\tmax[n - 1] = r[n - 1];\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\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 ans = -1000000007;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tint[] r = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tr[i] = sc.nextInt();\n\t\t}\n\t\tint[] max = new int[n];\n\t\tint[] min = new int[n];\n\t\tmax[n - 1] = r[n - 1];\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\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 ans = -1000000007;\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tans = Math.max(max[i + 1] - min[i], ans);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int n = sc.nextInt(); int[] r = new int[n]; for (int i = 0; i < n; i++) { r[i] = sc.nextInt(); } int[] max = new int[n]; int[] min = new int[n]; max[n - 1] = r[n - 1]; min[0] = r[0]; for (int i = 1; i < n; i++) { min[i] = Math.min(min[i - 1], r[i]); } for (int i = n - 2; i >= 0; i--) { max[i] = Math.max(max[i + 1], r[i]); } int ans = -1000000007; for (int i = 0; i < n - 1; i++) { ans = Math.max(max[i + 1] - min[i], ans); } System.out.println(ans); } } class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; } else { ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) { return buffer[ptr++]; } else { return -1; } } private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126; } public boolean hasNext() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) { ptr++; } return hasNextByte(); } public String next() { if (!hasNext()) { throw new NoSuchElementException(); } StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) { throw new NoSuchElementException(); } long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) { return minus ? -n : n; } else { throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || Integer.MAX_VALUE < nl) { throw new NumberFormatException(); } return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 17, 0, 13, 18, 13, 13, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 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 ], [ 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 ], [ 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 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 6, 95 ], [ 95, 96 ] ]
[ "import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n int[] R = new int[t];\n int i, min, bnf;\n for(i=0; i<t; i++) R[i] = sc.nextInt();\n min = R[0];\n bnf = Integer.MIN_VALUE;\n for(i=1; i<t; i++){\n bnf = Math.max(bnf, R[i]-min);\n min = Math.min(min, R[i]);\n }\n \n System.out.println(bnf);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n int[] R = new int[t];\n int i, min, bnf;\n for(i=0; i<t; i++) R[i] = sc.nextInt();\n min = R[0];\n bnf = Integer.MIN_VALUE;\n for(i=1; i<t; i++){\n bnf = Math.max(bnf, R[i]-min);\n min = Math.min(min, R[i]);\n }\n \n System.out.println(bnf);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n int[] R = new int[t];\n int i, min, bnf;\n for(i=0; i<t; i++) R[i] = sc.nextInt();\n min = R[0];\n bnf = Integer.MIN_VALUE;\n for(i=1; i<t; i++){\n bnf = Math.max(bnf, R[i]-min);\n min = Math.min(min, R[i]);\n }\n \n System.out.println(bnf);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n int[] R = new int[t];\n int i, min, bnf;\n for(i=0; i<t; i++) R[i] = sc.nextInt();\n min = R[0];\n bnf = Integer.MIN_VALUE;\n for(i=1; i<t; i++){\n bnf = Math.max(bnf, R[i]-min);\n min = Math.min(min, R[i]);\n }\n \n System.out.println(bnf);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int t = sc.nextInt();", "t", "sc.nextInt()", "sc.nextInt", "sc", "int[] R = new int[t];", "R", "new int[t]", "t", "int i", "i", "min", "min", "bnf;", "bnf", "for(i=0; i<t; i++) R[i] = sc.nextInt();", "i=0;", "i=0", "i", "0", "i<t", "i", "t", "i++", "i++", "i", "R[i] = sc.nextInt();", "R[i] = sc.nextInt()", "R[i]", "R", "i", "sc.nextInt()", "sc.nextInt", "sc", "min = R[0]", "min", "R[0]", "R", "0", "bnf = Integer.MIN_VALUE", "bnf", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(i=1; i<t; i++){\n bnf = Math.max(bnf, R[i]-min);\n min = Math.min(min, R[i]);\n }", "i=1;", "i=1", "i", "1", "i<t", "i", "t", "i++", "i++", "i", "{\n bnf = Math.max(bnf, R[i]-min);\n min = Math.min(min, R[i]);\n }", "{\n bnf = Math.max(bnf, R[i]-min);\n min = Math.min(min, R[i]);\n }", "bnf = Math.max(bnf, R[i]-min)", "bnf", "Math.max(bnf, R[i]-min)", "Math.max", "Math", "bnf", "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(bnf)", "System.out.println", "System.out", "System", "System.out", "bnf", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int t = sc.nextInt(); int[] R = new int[t]; int i, min, bnf; for(i=0; i<t; i++) R[i] = sc.nextInt(); min = R[0]; bnf = Integer.MIN_VALUE; for(i=1; i<t; i++){ bnf = Math.max(bnf, R[i]-min); min = Math.min(min, R[i]); } System.out.println(bnf); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 2, 13, 13, 40, 17, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 4, 18, 13, 30, 29, 13, 41, 13, 4, 13, 13, 2, 13, 17, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 13, 13, 8, 2, 13, 40, 17, 17, 13, 13, 14, 2, 13, 40, 17, 30, 29, 4, 13, 13, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 4, 13, 13, 13, 4, 18, 13, 14, 2, 2, 13, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 29, 13, 29, 4, 13, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 17, 41, 13, 40, 17, 11, 1, 41, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 17, 41, 13, 40, 17, 11, 1, 41, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 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 ], [ 10, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 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 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 20, 51 ], [ 51, 52 ], [ 52, 53 ], [ 20, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 59, 65 ], [ 65, 66 ], [ 18, 67 ], [ 67, 68 ], [ 10, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 71, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 71, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 71, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 102, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 105, 110 ], [ 105, 111 ], [ 102, 112 ], [ 71, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 113, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 120, 123 ], [ 120, 124 ], [ 71, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 71, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 136, 137 ], [ 136, 138 ], [ 136, 139 ], [ 136, 140 ], [ 140, 141 ], [ 141, 142 ], [ 71, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 143, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 71, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 71, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 163, 166 ], [ 163, 167 ], [ 69, 168 ], [ 168, 169 ], [ 69, 170 ], [ 170, 171 ], [ 69, 172 ], [ 172, 173 ], [ 10, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 179, 181 ], [ 176, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 176, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 191, 192 ], [ 191, 193 ], [ 186, 194 ], [ 194, 195 ], [ 195, 196 ], [ 186, 197 ], [ 198, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 200, 205 ], [ 199, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 209, 212 ], [ 206, 213 ], [ 213, 214 ], [ 213, 215 ], [ 176, 216 ], [ 216, 217 ], [ 174, 218 ], [ 218, 219 ], [ 174, 220 ], [ 220, 221 ], [ 174, 222 ], [ 222, 223 ], [ 10, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 229, 231 ], [ 226, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 226, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 236, 241 ], [ 241, 242 ], [ 241, 243 ], [ 236, 244 ], [ 244, 245 ], [ 245, 246 ], [ 236, 247 ], [ 248, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 251, 254 ], [ 250, 255 ], [ 249, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 259, 262 ], [ 256, 263 ], [ 263, 264 ], [ 263, 265 ], [ 226, 266 ], [ 266, 267 ], [ 224, 268 ], [ 268, 269 ], [ 224, 270 ], [ 270, 271 ], [ 224, 272 ], [ 272, 273 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n static final int MAX_PRICE = 1000000000;\n static final int MIN_PRICE = 1;\n\n public static void main(String[] args) {\n // 標準入力の読み込み開始\n Scanner scanner = new Scanner(System.in);\n\n // 価格の数\n int n = scanner.nextInt();\n\n // 価格のリスト\n List<Integer> priceList = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n priceList.add(scanner.nextInt());\n }\n\n // 標準入力の読み込み終了\n scanner.close();\n\n // 処理実行\n System.out.println(getMaxProfit(priceList, MIN_PRICE - MAX_PRICE, -1));\n }\n\n static int getMaxProfit(List<Integer> priceList, int tempMaxProfit, int index_prevMax) {\n // 終了条件\n if (index_prevMax + 1 == priceList.size()) {\n // リストの最後まで検索した場合、これまでの最大値を返して処理終了\n return tempMaxProfit;\n }\n\n // 引数index_prevMax以降の最大値取得\n int max_index = getMaxIndexInArrayList(priceList, index_prevMax + 1, priceList.size());\n int max_price = priceList.get(max_index);\n\n // (引数index_prevMax以降、)最大値以前で最小値取得(初回実行の場合はindex_prevMax=0として実行)\n int min_index_before = getMinIndexInArrayList(priceList, ((index_prevMax == -1)? 0: index_prevMax), max_index);\n if (min_index_before == -1) {\n // 最大値以前で最小値が取得できない(最大値=最小値)場合\n // 以降の処理は不要なのでさっさと再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }\n int min_price_before = priceList.get(min_index_before);\n\n // 最大値以降(、リストの最後まで)で最小値取得\n int min_price_after = priceList.get(getMinIndexInArrayList(priceList, max_index, priceList.size()));\n\n // 引数tempMaxProfitを再設定\n if((max_price - min_price_before) > tempMaxProfit) {\n tempMaxProfit = max_price - min_price_before;\n }\n\n // 最大値以前の最小値のほうが小さい場合\n if (min_price_before <= min_price_after) {\n // 処理終了\n return tempMaxProfit;\n }\n\n // 再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }\n\n // リストから最大値のインデックスを取得する\n static int getMaxIndexInArrayList(List<Integer> priceList, int index_start, int index_end) {\n int max_price = MIN_PRICE - 1;\n int max_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }\n }\n\n return max_index;\n }\n\n // リストから最小値のインデックスを取得する\n static int getMinIndexInArrayList(List<Integer> priceList, int index_start, int index_end) {\n int min_price = MAX_PRICE + 1;\n int min_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }\n }\n\n return min_index;\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 static final int MAX_PRICE = 1000000000;\n static final int MIN_PRICE = 1;\n\n public static void main(String[] args) {\n // 標準入力の読み込み開始\n Scanner scanner = new Scanner(System.in);\n\n // 価格の数\n int n = scanner.nextInt();\n\n // 価格のリスト\n List<Integer> priceList = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n priceList.add(scanner.nextInt());\n }\n\n // 標準入力の読み込み終了\n scanner.close();\n\n // 処理実行\n System.out.println(getMaxProfit(priceList, MIN_PRICE - MAX_PRICE, -1));\n }\n\n static int getMaxProfit(List<Integer> priceList, int tempMaxProfit, int index_prevMax) {\n // 終了条件\n if (index_prevMax + 1 == priceList.size()) {\n // リストの最後まで検索した場合、これまでの最大値を返して処理終了\n return tempMaxProfit;\n }\n\n // 引数index_prevMax以降の最大値取得\n int max_index = getMaxIndexInArrayList(priceList, index_prevMax + 1, priceList.size());\n int max_price = priceList.get(max_index);\n\n // (引数index_prevMax以降、)最大値以前で最小値取得(初回実行の場合はindex_prevMax=0として実行)\n int min_index_before = getMinIndexInArrayList(priceList, ((index_prevMax == -1)? 0: index_prevMax), max_index);\n if (min_index_before == -1) {\n // 最大値以前で最小値が取得できない(最大値=最小値)場合\n // 以降の処理は不要なのでさっさと再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }\n int min_price_before = priceList.get(min_index_before);\n\n // 最大値以降(、リストの最後まで)で最小値取得\n int min_price_after = priceList.get(getMinIndexInArrayList(priceList, max_index, priceList.size()));\n\n // 引数tempMaxProfitを再設定\n if((max_price - min_price_before) > tempMaxProfit) {\n tempMaxProfit = max_price - min_price_before;\n }\n\n // 最大値以前の最小値のほうが小さい場合\n if (min_price_before <= min_price_after) {\n // 処理終了\n return tempMaxProfit;\n }\n\n // 再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }\n\n // リストから最大値のインデックスを取得する\n static int getMaxIndexInArrayList(List<Integer> priceList, int index_start, int index_end) {\n int max_price = MIN_PRICE - 1;\n int max_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }\n }\n\n return max_index;\n }\n\n // リストから最小値のインデックスを取得する\n static int getMinIndexInArrayList(List<Integer> priceList, int index_start, int index_end) {\n int min_price = MAX_PRICE + 1;\n int min_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }\n }\n\n return min_index;\n }\n}", "Main", "static final int MAX_PRICE = 1000000000;", "MAX_PRICE", "1000000000", "static final int MIN_PRICE = 1;", "MIN_PRICE", "1", "public static void main(String[] args) {\n // 標準入力の読み込み開始\n Scanner scanner = new Scanner(System.in);\n\n // 価格の数\n int n = scanner.nextInt();\n\n // 価格のリスト\n List<Integer> priceList = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n priceList.add(scanner.nextInt());\n }\n\n // 標準入力の読み込み終了\n scanner.close();\n\n // 処理実行\n System.out.println(getMaxProfit(priceList, MIN_PRICE - MAX_PRICE, -1));\n }", "main", "{\n // 標準入力の読み込み開始\n Scanner scanner = new Scanner(System.in);\n\n // 価格の数\n int n = scanner.nextInt();\n\n // 価格のリスト\n List<Integer> priceList = new ArrayList<Integer>();\n for (int i = 0; i < n; i++) {\n priceList.add(scanner.nextInt());\n }\n\n // 標準入力の読み込み終了\n scanner.close();\n\n // 処理実行\n System.out.println(getMaxProfit(priceList, MIN_PRICE - MAX_PRICE, -1));\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "List<Integer> priceList = new ArrayList<Integer>();", "priceList", "new ArrayList<Integer>()", "for (int i = 0; i < n; i++) {\n priceList.add(scanner.nextInt());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n priceList.add(scanner.nextInt());\n }", "{\n priceList.add(scanner.nextInt());\n }", "priceList.add(scanner.nextInt())", "priceList.add", "priceList", "scanner.nextInt()", "scanner.nextInt", "scanner", "scanner.close()", "scanner.close", "scanner", "System.out.println(getMaxProfit(priceList, MIN_PRICE - MAX_PRICE, -1))", "System.out.println", "System.out", "System", "System.out", "getMaxProfit(priceList, MIN_PRICE - MAX_PRICE, -1)", "getMaxProfit", "priceList", "MIN_PRICE - MAX_PRICE", "MIN_PRICE", "MAX_PRICE", "-1", "1", "String[] args", "args", "static int getMaxProfit(List<Integer> priceList, int tempMaxProfit, int index_prevMax) {\n // 終了条件\n if (index_prevMax + 1 == priceList.size()) {\n // リストの最後まで検索した場合、これまでの最大値を返して処理終了\n return tempMaxProfit;\n }\n\n // 引数index_prevMax以降の最大値取得\n int max_index = getMaxIndexInArrayList(priceList, index_prevMax + 1, priceList.size());\n int max_price = priceList.get(max_index);\n\n // (引数index_prevMax以降、)最大値以前で最小値取得(初回実行の場合はindex_prevMax=0として実行)\n int min_index_before = getMinIndexInArrayList(priceList, ((index_prevMax == -1)? 0: index_prevMax), max_index);\n if (min_index_before == -1) {\n // 最大値以前で最小値が取得できない(最大値=最小値)場合\n // 以降の処理は不要なのでさっさと再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }\n int min_price_before = priceList.get(min_index_before);\n\n // 最大値以降(、リストの最後まで)で最小値取得\n int min_price_after = priceList.get(getMinIndexInArrayList(priceList, max_index, priceList.size()));\n\n // 引数tempMaxProfitを再設定\n if((max_price - min_price_before) > tempMaxProfit) {\n tempMaxProfit = max_price - min_price_before;\n }\n\n // 最大値以前の最小値のほうが小さい場合\n if (min_price_before <= min_price_after) {\n // 処理終了\n return tempMaxProfit;\n }\n\n // 再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }", "getMaxProfit", "{\n // 終了条件\n if (index_prevMax + 1 == priceList.size()) {\n // リストの最後まで検索した場合、これまでの最大値を返して処理終了\n return tempMaxProfit;\n }\n\n // 引数index_prevMax以降の最大値取得\n int max_index = getMaxIndexInArrayList(priceList, index_prevMax + 1, priceList.size());\n int max_price = priceList.get(max_index);\n\n // (引数index_prevMax以降、)最大値以前で最小値取得(初回実行の場合はindex_prevMax=0として実行)\n int min_index_before = getMinIndexInArrayList(priceList, ((index_prevMax == -1)? 0: index_prevMax), max_index);\n if (min_index_before == -1) {\n // 最大値以前で最小値が取得できない(最大値=最小値)場合\n // 以降の処理は不要なのでさっさと再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }\n int min_price_before = priceList.get(min_index_before);\n\n // 最大値以降(、リストの最後まで)で最小値取得\n int min_price_after = priceList.get(getMinIndexInArrayList(priceList, max_index, priceList.size()));\n\n // 引数tempMaxProfitを再設定\n if((max_price - min_price_before) > tempMaxProfit) {\n tempMaxProfit = max_price - min_price_before;\n }\n\n // 最大値以前の最小値のほうが小さい場合\n if (min_price_before <= min_price_after) {\n // 処理終了\n return tempMaxProfit;\n }\n\n // 再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }", "if (index_prevMax + 1 == priceList.size()) {\n // リストの最後まで検索した場合、これまでの最大値を返して処理終了\n return tempMaxProfit;\n }", "index_prevMax + 1 == priceList.size()", "index_prevMax + 1", "index_prevMax", "1", "priceList.size()", "priceList.size", "priceList", "{\n // リストの最後まで検索した場合、これまでの最大値を返して処理終了\n return tempMaxProfit;\n }", "return tempMaxProfit;", "tempMaxProfit", "int max_index = getMaxIndexInArrayList(priceList, index_prevMax + 1, priceList.size());", "max_index", "getMaxIndexInArrayList(priceList, index_prevMax + 1, priceList.size())", "getMaxIndexInArrayList", "priceList", "index_prevMax + 1", "index_prevMax", "1", "priceList.size()", "priceList.size", "priceList", "int max_price = priceList.get(max_index);", "max_price", "priceList.get(max_index)", "priceList.get", "priceList", "max_index", "int min_index_before = getMinIndexInArrayList(priceList, ((index_prevMax == -1)? 0: index_prevMax), max_index);", "min_index_before", "getMinIndexInArrayList(priceList, ((index_prevMax == -1)? 0: index_prevMax), max_index)", "getMinIndexInArrayList", "priceList", "((index_prevMax == -1)? 0: index_prevMax)", "(index_prevMax == -1)", "index_prevMax", "-1", "1", "0", "index_prevMax", "max_index", "if (min_index_before == -1) {\n // 最大値以前で最小値が取得できない(最大値=最小値)場合\n // 以降の処理は不要なのでさっさと再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }", "min_index_before == -1", "min_index_before", "-1", "1", "{\n // 最大値以前で最小値が取得できない(最大値=最小値)場合\n // 以降の処理は不要なのでさっさと再実行\n return getMaxProfit(priceList, tempMaxProfit, max_index);\n }", "return getMaxProfit(priceList, tempMaxProfit, max_index);", "getMaxProfit(priceList, tempMaxProfit, max_index)", "getMaxProfit", "priceList", "tempMaxProfit", "max_index", "int min_price_before = priceList.get(min_index_before);", "min_price_before", "priceList.get(min_index_before)", "priceList.get", "priceList", "min_index_before", "int min_price_after = priceList.get(getMinIndexInArrayList(priceList, max_index, priceList.size()));", "min_price_after", "priceList.get(getMinIndexInArrayList(priceList, max_index, priceList.size()))", "priceList.get", "priceList", "getMinIndexInArrayList(priceList, max_index, priceList.size())", "getMinIndexInArrayList", "priceList", "max_index", "priceList.size()", "priceList.size", "priceList", "if((max_price - min_price_before) > tempMaxProfit) {\n tempMaxProfit = max_price - min_price_before;\n }", "(max_price - min_price_before) > tempMaxProfit", "(max_price - min_price_before)", "max_price", "min_price_before", "tempMaxProfit", "{\n tempMaxProfit = max_price - min_price_before;\n }", "tempMaxProfit = max_price - min_price_before", "tempMaxProfit", "max_price - min_price_before", "max_price", "min_price_before", "if (min_price_before <= min_price_after) {\n // 処理終了\n return tempMaxProfit;\n }", "min_price_before <= min_price_after", "min_price_before", "min_price_after", "{\n // 処理終了\n return tempMaxProfit;\n }", "return tempMaxProfit;", "tempMaxProfit", "return getMaxProfit(priceList, tempMaxProfit, max_index);", "getMaxProfit(priceList, tempMaxProfit, max_index)", "getMaxProfit", "priceList", "tempMaxProfit", "max_index", "List<Integer> priceList", "priceList", "int tempMaxProfit", "tempMaxProfit", "int index_prevMax", "index_prevMax", "// リストから最大値のインデックスを取得する\n static int getMaxIndexInArrayList(List<Integer> priceList, int index_start, int index_end) {\n int max_price = MIN_PRICE - 1;\n int max_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }\n }\n\n return max_index;\n }", "getMaxIndexInArrayList", "{\n int max_price = MIN_PRICE - 1;\n int max_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }\n }\n\n return max_index;\n }", "int max_price = MIN_PRICE - 1;", "max_price", "MIN_PRICE - 1", "MIN_PRICE", "1", "int max_index = -1;", "max_index", "-1", "1", "for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }\n }", "int i = index_start;", "int i = index_start;", "i", "index_start", "i < index_end", "i", "index_end", "i++", "i++", "i", "{\n if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }\n }", "{\n if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }\n }", "if (priceList.get(i) > max_price) {\n max_price = priceList.get(i);\n max_index = i;\n }", "priceList.get(i) > max_price", "priceList.get(i)", "priceList.get", "priceList", "i", "max_price", "{\n max_price = priceList.get(i);\n max_index = i;\n }", "max_price = priceList.get(i)", "max_price", "priceList.get(i)", "priceList.get", "priceList", "i", "max_index = i", "max_index", "i", "return max_index;", "max_index", "List<Integer> priceList", "priceList", "int index_start", "index_start", "int index_end", "index_end", "// リストから最小値のインデックスを取得する\n static int getMinIndexInArrayList(List<Integer> priceList, int index_start, int index_end) {\n int min_price = MAX_PRICE + 1;\n int min_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }\n }\n\n return min_index;\n }", "getMinIndexInArrayList", "{\n int min_price = MAX_PRICE + 1;\n int min_index = -1;\n\n for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }\n }\n\n return min_index;\n }", "int min_price = MAX_PRICE + 1;", "min_price", "MAX_PRICE + 1", "MAX_PRICE", "1", "int min_index = -1;", "min_index", "-1", "1", "for (int i = index_start; i < index_end; i++) {\n if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }\n }", "int i = index_start;", "int i = index_start;", "i", "index_start", "i < index_end", "i", "index_end", "i++", "i++", "i", "{\n if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }\n }", "{\n if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }\n }", "if (priceList.get(i) < min_price) {\n min_price = priceList.get(i);\n min_index = i;\n }", "priceList.get(i) < min_price", "priceList.get(i)", "priceList.get", "priceList", "i", "min_price", "{\n min_price = priceList.get(i);\n min_index = i;\n }", "min_price = priceList.get(i)", "min_price", "priceList.get(i)", "priceList.get", "priceList", "i", "min_index = i", "min_index", "i", "return min_index;", "min_index", "List<Integer> priceList", "priceList", "int index_start", "index_start", "int index_end", "index_end" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; class Main { static final int MAX_PRICE = 1000000000; static final int MIN_PRICE = 1; public static void main(String[] args) { // 標準入力の読み込み開始 Scanner scanner = new Scanner(System.in); // 価格の数 int n = scanner.nextInt(); // 価格のリスト List<Integer> priceList = new ArrayList<Integer>(); for (int i = 0; i < n; i++) { priceList.add(scanner.nextInt()); } // 標準入力の読み込み終了 scanner.close(); // 処理実行 System.out.println(getMaxProfit(priceList, MIN_PRICE - MAX_PRICE, -1)); } static int getMaxProfit(List<Integer> priceList, int tempMaxProfit, int index_prevMax) { // 終了条件 if (index_prevMax + 1 == priceList.size()) { // リストの最後まで検索した場合、これまでの最大値を返して処理終了 return tempMaxProfit; } // 引数index_prevMax以降の最大値取得 int max_index = getMaxIndexInArrayList(priceList, index_prevMax + 1, priceList.size()); int max_price = priceList.get(max_index); // (引数index_prevMax以降、)最大値以前で最小値取得(初回実行の場合はindex_prevMax=0として実行) int min_index_before = getMinIndexInArrayList(priceList, ((index_prevMax == -1)? 0: index_prevMax), max_index); if (min_index_before == -1) { // 最大値以前で最小値が取得できない(最大値=最小値)場合 // 以降の処理は不要なのでさっさと再実行 return getMaxProfit(priceList, tempMaxProfit, max_index); } int min_price_before = priceList.get(min_index_before); // 最大値以降(、リストの最後まで)で最小値取得 int min_price_after = priceList.get(getMinIndexInArrayList(priceList, max_index, priceList.size())); // 引数tempMaxProfitを再設定 if((max_price - min_price_before) > tempMaxProfit) { tempMaxProfit = max_price - min_price_before; } // 最大値以前の最小値のほうが小さい場合 if (min_price_before <= min_price_after) { // 処理終了 return tempMaxProfit; } // 再実行 return getMaxProfit(priceList, tempMaxProfit, max_index); } // リストから最大値のインデックスを取得する static int getMaxIndexInArrayList(List<Integer> priceList, int index_start, int index_end) { int max_price = MIN_PRICE - 1; int max_index = -1; for (int i = index_start; i < index_end; i++) { if (priceList.get(i) > max_price) { max_price = priceList.get(i); max_index = i; } } return max_index; } // リストから最小値のインデックスを取得する static int getMinIndexInArrayList(List<Integer> priceList, int index_start, int index_end) { int min_price = MAX_PRICE + 1; int min_index = -1; for (int i = index_start; i < index_end; i++) { if (priceList.get(i) < min_price) { min_price = priceList.get(i); min_index = i; } } return min_index; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 106, 5 ], [ 106, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 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 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 72, 78 ], [ 71, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 70, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 86, 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;\n\npublic class Main{\n \n \n public static void main(String[] args){\n int n;\n int[] R;\n \n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n R = new int[n];\n \n for( int i = 0; i < n; i++) R[i] = sc.nextInt();\n \n int a = R[1] - R[0];\n int m = R[0];\n for ( int i = 1; i < n; i++){\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }\n System.out.println(a);\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n \n \n public static void main(String[] args){\n int n;\n int[] R;\n \n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n R = new int[n];\n \n for( int i = 0; i < n; i++) R[i] = sc.nextInt();\n \n int a = R[1] - R[0];\n int m = R[0];\n for ( int i = 1; i < n; i++){\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }\n System.out.println(a);\n \n }\n}", "Main", "public static void main(String[] args){\n int n;\n int[] R;\n \n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n R = new int[n];\n \n for( int i = 0; i < n; i++) R[i] = sc.nextInt();\n \n int a = R[1] - R[0];\n int m = R[0];\n for ( int i = 1; i < n; i++){\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }\n System.out.println(a);\n \n }", "main", "{\n int n;\n int[] R;\n \n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n R = new int[n];\n \n for( int i = 0; i < n; i++) R[i] = sc.nextInt();\n \n int a = R[1] - R[0];\n int m = R[0];\n for ( int i = 1; i < n; i++){\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }\n System.out.println(a);\n \n }", "int n;", "n", "int[] R;", "R", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "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", "int a = R[1] - R[0];", "a", "R[1] - R[0]", "R[1]", "R", "1", "R[0]", "R", "0", "int m = R[0];", "m", "R[0]", "R", "0", "for ( int i = 1; i < n; i++){\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }", "{\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }", "if (R[i] - m > a ) a = R[i] - m;", "R[i] - m > a", "R[i] - m", "R[i]", "R", "i", "m", "a", "a = R[i] - m", "a", "R[i] - m", "R[i]", "R", "i", "m", "if (R[i] < m ) m = R[i];", "R[i] < m", "R[i]", "R", "i", "m", "m = R[i]", "m", "R[i]", "R", "i", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main{\n \n \n public static void main(String[] args){\n int n;\n int[] R;\n \n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n R = new int[n];\n \n for( int i = 0; i < n; i++) R[i] = sc.nextInt();\n \n int a = R[1] - R[0];\n int m = R[0];\n for ( int i = 1; i < n; i++){\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }\n System.out.println(a);\n \n }\n}", "public class Main{\n \n \n public static void main(String[] args){\n int n;\n int[] R;\n \n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n R = new int[n];\n \n for( int i = 0; i < n; i++) R[i] = sc.nextInt();\n \n int a = R[1] - R[0];\n int m = R[0];\n for ( int i = 1; i < n; i++){\n if (R[i] - m > a ) a = R[i] - m;\n if (R[i] < m ) m = R[i];\n }\n System.out.println(a);\n \n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ int n; int[] R; Scanner sc = new Scanner(System.in); n = sc.nextInt(); R = new int[n]; for( int i = 0; i < n; i++) R[i] = sc.nextInt(); int a = R[1] - R[0]; int m = R[0]; for ( int i = 1; i < n; i++){ if (R[i] - m > a ) a = R[i] - m; if (R[i] < m ) m = R[i]; } System.out.println(a); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 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 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 71, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 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;\npublic class Main{\n public static void main(String[] args){\n \n int n;\n int[]R;\n \n Scanner scan = new Scanner(System.in); \n n = scan.nextInt();\n R = new int[n];\n \n for(int i=0 ; i < n;i++) {\n R[i] = scan.nextInt();\n }\n \n \n int answer = R[1] - R [0] ; \n int min = R[0];\n \n for (int i = 1 ; i < n; i++){\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n } \n\n \n System.out.println(answer);\n }\n }", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n \n int n;\n int[]R;\n \n Scanner scan = new Scanner(System.in); \n n = scan.nextInt();\n R = new int[n];\n \n for(int i=0 ; i < n;i++) {\n R[i] = scan.nextInt();\n }\n \n \n int answer = R[1] - R [0] ; \n int min = R[0];\n \n for (int i = 1 ; i < n; i++){\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n } \n\n \n System.out.println(answer);\n }\n }", "Main", "public static void main(String[] args){\n \n int n;\n int[]R;\n \n Scanner scan = new Scanner(System.in); \n n = scan.nextInt();\n R = new int[n];\n \n for(int i=0 ; i < n;i++) {\n R[i] = scan.nextInt();\n }\n \n \n int answer = R[1] - R [0] ; \n int min = R[0];\n \n for (int i = 1 ; i < n; i++){\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n } \n\n \n System.out.println(answer);\n }", "main", "{\n \n int n;\n int[]R;\n \n Scanner scan = new Scanner(System.in); \n n = scan.nextInt();\n R = new int[n];\n \n for(int i=0 ; i < n;i++) {\n R[i] = scan.nextInt();\n }\n \n \n int answer = R[1] - R [0] ; \n int min = R[0];\n \n for (int i = 1 ; i < n; i++){\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n } \n\n \n System.out.println(answer);\n }", "int n;", "n", "int[]R;", "R", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "n = scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "R = new int[n]", "R", "new int[n]", "n", "for(int i=0 ; i < n;i++) {\n R[i] = scan.nextInt();\n }", "int i=0 ;", "int i=0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n R[i] = scan.nextInt();\n }", "{\n R[i] = scan.nextInt();\n }", "R[i] = scan.nextInt()", "R[i]", "R", "i", "scan.nextInt()", "scan.nextInt", "scan", "int answer = R[1] - R [0] ;", "answer", "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 if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n }", "int i = 1 ;", "int i = 1 ;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n }", "{\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n }", "if (R[i] - min > answer){ \n answer = R[i] - min;\n }", "R[i] - min > answer", "R[i] - min", "R[i]", "R", "i", "min", "answer", "{ \n answer = R[i] - min;\n }", "answer = R[i] - min", "answer", "R[i] - min", "R[i]", "R", "i", "min", "if(min> R[i]){\n min = R [i];\n }", "min> R[i]", "min", "R[i]", "R", "i", "{\n min = R [i];\n }", "min = R [i]", "min", "R [i]", "R", "i", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n \n int n;\n int[]R;\n \n Scanner scan = new Scanner(System.in); \n n = scan.nextInt();\n R = new int[n];\n \n for(int i=0 ; i < n;i++) {\n R[i] = scan.nextInt();\n }\n \n \n int answer = R[1] - R [0] ; \n int min = R[0];\n \n for (int i = 1 ; i < n; i++){\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n } \n\n \n System.out.println(answer);\n }\n }", "public class Main{\n public static void main(String[] args){\n \n int n;\n int[]R;\n \n Scanner scan = new Scanner(System.in); \n n = scan.nextInt();\n R = new int[n];\n \n for(int i=0 ; i < n;i++) {\n R[i] = scan.nextInt();\n }\n \n \n int answer = R[1] - R [0] ; \n int min = R[0];\n \n for (int i = 1 ; i < n; i++){\n if (R[i] - min > answer){ \n answer = R[i] - min;\n }\n if(min> R[i]){\n min = R [i];\n }\n \n\n } \n\n \n System.out.println(answer);\n }\n }", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ int n; int[]R; Scanner scan = new Scanner(System.in); n = scan.nextInt(); R = new int[n]; for(int i=0 ; i < n;i++) { R[i] = scan.nextInt(); } int answer = R[1] - R [0] ; int min = R[0]; for (int i = 1 ; i < n; i++){ if (R[i] - min > answer){ answer = R[i] - min; } if(min> R[i]){ min = R [i]; } } System.out.println(answer); } }
[ 7, 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, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 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 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 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 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 45, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 45, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 45, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=Integer.valueOf(sc.next());\n\t\tint min=Integer.valueOf(sc.next());\n\t\tint dmax=Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}\n\t\tSystem.out.println(dmax);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=Integer.valueOf(sc.next());\n\t\tint min=Integer.valueOf(sc.next());\n\t\tint dmax=Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}\n\t\tSystem.out.println(dmax);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=Integer.valueOf(sc.next());\n\t\tint min=Integer.valueOf(sc.next());\n\t\tint dmax=Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}\n\t\tSystem.out.println(dmax);\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=Integer.valueOf(sc.next());\n\t\tint min=Integer.valueOf(sc.next());\n\t\tint dmax=Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}\n\t\tSystem.out.println(dmax);\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=Integer.valueOf(sc.next());", "n", "Integer.valueOf(sc.next())", "Integer.valueOf", "Integer", "sc.next()", "sc.next", "sc", "int min=Integer.valueOf(sc.next());", "min", "Integer.valueOf(sc.next())", "Integer.valueOf", "Integer", "sc.next()", "sc.next", "sc", "int dmax=Integer.MIN_VALUE;", "dmax", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i=1;i<n;i++){\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}", "{\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}", "int next=Integer.valueOf(sc.next());", "next", "Integer.valueOf(sc.next())", "Integer.valueOf", "Integer", "sc.next()", "sc.next", "sc", "int d=next-min;", "d", "next-min", "next", "min", "if(d>dmax)dmax=d;", "d>dmax", "d", "dmax", "dmax=d", "dmax", "d", "if(next<min)min=next;", "next<min", "next", "min", "min=next", "min", "next", "System.out.println(dmax)", "System.out.println", "System.out", "System", "System.out", "dmax", "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.valueOf(sc.next());\n\t\tint min=Integer.valueOf(sc.next());\n\t\tint dmax=Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}\n\t\tSystem.out.println(dmax);\n\t}\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.valueOf(sc.next());\n\t\tint min=Integer.valueOf(sc.next());\n\t\tint dmax=Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint next=Integer.valueOf(sc.next());\n\t\t\tint d=next-min;\n\t\t\tif(d>dmax)dmax=d;\n\t\t\tif(next<min)min=next;\n\t\t}\n\t\tSystem.out.println(dmax);\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.valueOf(sc.next()); int min=Integer.valueOf(sc.next()); int dmax=Integer.MIN_VALUE; for(int i=1;i<n;i++){ int next=Integer.valueOf(sc.next()); int d=next-min; if(d>dmax)dmax=d; if(next<min)min=next; } System.out.println(dmax); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 17, 41, 13, 40, 13, 41, 13, 41, 13, 11, 1, 0, 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, 2, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 91, 8 ], [ 91, 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 ], [ 23, 24 ], [ 22, 25 ], [ 22, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 11, 31 ], [ 31, 32 ], [ 11, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 61, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 11, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 9, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main{\n\tpublic static void main(String args[]) throws Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\tint N= cin.nextInt();\n\t\t\n\t\tint min= (int)Math.pow(10d,9d);\n\t\tint MaxProfit= -min;\n\t\tint Rate;\n\t\t\n\t\tint i;\n\t\tfor(i=0;i<N;i++){\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(MaxProfit);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String args[]) throws Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\tint N= cin.nextInt();\n\t\t\n\t\tint min= (int)Math.pow(10d,9d);\n\t\tint MaxProfit= -min;\n\t\tint Rate;\n\t\t\n\t\tint i;\n\t\tfor(i=0;i<N;i++){\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(MaxProfit);\n\t}\n}", "Main", "public static void main(String args[]) throws Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\tint N= cin.nextInt();\n\t\t\n\t\tint min= (int)Math.pow(10d,9d);\n\t\tint MaxProfit= -min;\n\t\tint Rate;\n\t\t\n\t\tint i;\n\t\tfor(i=0;i<N;i++){\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(MaxProfit);\n\t}", "main", "{\n\t\tScanner cin= new Scanner(System.in);\n\t\tint N= cin.nextInt();\n\t\t\n\t\tint min= (int)Math.pow(10d,9d);\n\t\tint MaxProfit= -min;\n\t\tint Rate;\n\t\t\n\t\tint i;\n\t\tfor(i=0;i<N;i++){\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(MaxProfit);\n\t}", "Scanner cin= new Scanner(System.in);", "cin", "new Scanner(System.in)", "int N= cin.nextInt();", "N", "cin.nextInt()", "cin.nextInt", "cin", "int min= (int)Math.pow(10d,9d);", "min", "(int)Math.pow(10d,9d)", "Math.pow", "Math", "10d", "9d", "int MaxProfit= -min;", "MaxProfit", "-min", "min", "int Rate;", "Rate", "int i;", "i", "for(i=0;i<N;i++){\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "i=0;", "i=0", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "Rate= cin.nextInt()", "Rate", "cin.nextInt()", "cin.nextInt", "cin", "if(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}", "i==0", "i", "0", "{\n\t\t\t\tmin= Rate;\n\t\t\t}", "min= Rate", "min", "Rate", "{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}", "if( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}", "Rate-min > MaxProfit", "Rate-min", "Rate", "min", "MaxProfit", "{\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}", "MaxProfit= Rate-min", "MaxProfit", "Rate-min", "Rate", "min", "if( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}", "Rate<min", "Rate", "min", "{\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}", "min= Rate", "min", "Rate", "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 Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\tint N= cin.nextInt();\n\t\t\n\t\tint min= (int)Math.pow(10d,9d);\n\t\tint MaxProfit= -min;\n\t\tint Rate;\n\t\t\n\t\tint i;\n\t\tfor(i=0;i<N;i++){\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(MaxProfit);\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]) throws Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\tint N= cin.nextInt();\n\t\t\n\t\tint min= (int)Math.pow(10d,9d);\n\t\tint MaxProfit= -min;\n\t\tint Rate;\n\t\t\n\t\tint i;\n\t\tfor(i=0;i<N;i++){\n\t\t\tRate= cin.nextInt();\n\t\t\tif(i==0){\n\t\t\t\tmin= Rate;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif( Rate-min > MaxProfit ){\n\t\t\t\t\tMaxProfit= Rate-min;\n\t\t\t\t}\n\t\t\t\tif( Rate<min ){\n\t\t\t\t\tmin= Rate;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(MaxProfit);\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String args[]) throws Exception{ Scanner cin= new Scanner(System.in); int N= cin.nextInt(); int min= (int)Math.pow(10d,9d); int MaxProfit= -min; int Rate; int i; for(i=0;i<N;i++){ Rate= cin.nextInt(); if(i==0){ min= Rate; } else{ if( Rate-min > MaxProfit ){ MaxProfit= Rate-min; } if( Rate<min ){ min= Rate; } } } System.out.println(MaxProfit); } }
[ 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, 4, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 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, 29, 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 ], [ 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 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 109, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 67, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 81, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 56, 104 ], [ 104, 105 ], [ 54, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[] arr = new int[N];\n for(int i = 0; i < N; i++)\n {\n arr[i] = sc.nextInt();\n }\n int res = maximumProfit(arr);\n System.out.println(res);\n }\n public static int maximumProfit(int[] arr) {\n int max = Integer.MIN_VALUE;\n int min = Integer.MAX_VALUE;\n\n for(int i = 1; i < arr.length; i++)\n {\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }\n return max;\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[] arr = new int[N];\n for(int i = 0; i < N; i++)\n {\n arr[i] = sc.nextInt();\n }\n int res = maximumProfit(arr);\n System.out.println(res);\n }\n public static int maximumProfit(int[] arr) {\n int max = Integer.MIN_VALUE;\n int min = Integer.MAX_VALUE;\n\n for(int i = 1; i < arr.length; i++)\n {\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }\n return max;\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[] arr = new int[N];\n for(int i = 0; i < N; i++)\n {\n arr[i] = sc.nextInt();\n }\n int res = maximumProfit(arr);\n System.out.println(res);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[] arr = new int[N];\n for(int i = 0; i < N; i++)\n {\n arr[i] = sc.nextInt();\n }\n int res = maximumProfit(arr);\n System.out.println(res);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] arr = new int[N];", "arr", "new int[N]", "N", "for(int i = 0; i < N; i++)\n {\n arr[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n arr[i] = sc.nextInt();\n }", "{\n arr[i] = sc.nextInt();\n }", "arr[i] = sc.nextInt()", "arr[i]", "arr", "i", "sc.nextInt()", "sc.nextInt", "sc", "int res = maximumProfit(arr);", "res", "maximumProfit(arr)", "maximumProfit", "arr", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public static int maximumProfit(int[] arr) {\n int max = Integer.MIN_VALUE;\n int min = Integer.MAX_VALUE;\n\n for(int i = 1; i < arr.length; i++)\n {\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }\n return max;\n }", "maximumProfit", "{\n int max = Integer.MIN_VALUE;\n int min = Integer.MAX_VALUE;\n\n for(int i = 1; i < arr.length; i++)\n {\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }\n return max;\n }", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "int min = Integer.MAX_VALUE;", "min", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "for(int i = 1; i < arr.length; i++)\n {\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }", "int i = 1;", "int i = 1;", "i", "1", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }", "{\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }", "min = Math.min(min, arr[i-1])", "min", "Math.min(min, arr[i-1])", "Math.min", "Math", "min", "arr[i-1]", "arr", "i-1", "i", "1", "max = Math.max(max, arr[i]-min)", "max", "Math.max(max, arr[i]-min)", "Math.max", "Math", "max", "arr[i]-min", "arr[i]", "arr", "i", "min", "return max;", "max", "int[] arr", "arr", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[] arr = new int[N];\n for(int i = 0; i < N; i++)\n {\n arr[i] = sc.nextInt();\n }\n int res = maximumProfit(arr);\n System.out.println(res);\n }\n public static int maximumProfit(int[] arr) {\n int max = Integer.MIN_VALUE;\n int min = Integer.MAX_VALUE;\n\n for(int i = 1; i < arr.length; i++)\n {\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }\n return 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[] arr = new int[N];\n for(int i = 0; i < N; i++)\n {\n arr[i] = sc.nextInt();\n }\n int res = maximumProfit(arr);\n System.out.println(res);\n }\n public static int maximumProfit(int[] arr) {\n int max = Integer.MIN_VALUE;\n int min = Integer.MAX_VALUE;\n\n for(int i = 1; i < arr.length; i++)\n {\n min = Math.min(min, arr[i-1]);\n max = Math.max(max, arr[i]-min);\n }\n return max;\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[] arr = new int[N]; for(int i = 0; i < N; i++) { arr[i] = sc.nextInt(); } int res = maximumProfit(arr); System.out.println(res); } public static int maximumProfit(int[] arr) { int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; for(int i = 1; i < arr.length; i++) { min = Math.min(min, arr[i-1]); max = Math.max(max, arr[i]-min); } return 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, 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 ], [ 70, 5 ], [ 70, 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 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 39, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 6, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "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 min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; ++i) {\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\n }\n System.out.println(max);\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 min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; ++i) {\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\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 min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; ++i) {\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; ++i) {\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\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 = Integer.MAX_VALUE;", "min", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; ++i) {\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\n }", "{\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\n }", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; ++i) {\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\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 min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; ++i) {\n int r = sc.nextInt();\n max = Math.max(max, r - min);\n min = Math.min(min, r);\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 min = Integer.MAX_VALUE; int max = Integer.MIN_VALUE; for (int i = 0; i < n; ++i) { int r = sc.nextInt(); max = Math.max(max, r - min); min = Math.min(min, r); } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 13, 41, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 0, 13, 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 ], [ 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 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 47, 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 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 69, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 69, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 92, 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;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tint R0 = Integer.parseInt(line2);\n\t\t\n\t\tString line3 = sc.nextLine();\n\t\tint R1 = Integer.parseInt(line3);\n\t\t\n\t\tint min = Math.min(R0, R1);\n\t\tint answer = R1 - R0;\t\t\n\t\t\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\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\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tint R0 = Integer.parseInt(line2);\n\t\t\n\t\tString line3 = sc.nextLine();\n\t\tint R1 = Integer.parseInt(line3);\n\t\t\n\t\tint min = Math.min(R0, R1);\n\t\tint answer = R1 - R0;\t\t\n\t\t\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tint R0 = Integer.parseInt(line2);\n\t\t\n\t\tString line3 = sc.nextLine();\n\t\tint R1 = Integer.parseInt(line3);\n\t\t\n\t\tint min = Math.min(R0, R1);\n\t\tint answer = R1 - R0;\t\t\n\t\t\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tint R0 = Integer.parseInt(line2);\n\t\t\n\t\tString line3 = sc.nextLine();\n\t\tint R1 = Integer.parseInt(line3);\n\t\t\n\t\tint min = Math.min(R0, R1);\n\t\tint answer = R1 - R0;\t\t\n\t\t\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line1 = sc.nextLine();", "line1", "sc.nextLine()", "sc.nextLine", "sc", "int n = Integer.parseInt(line1);", "n", "Integer.parseInt(line1)", "Integer.parseInt", "Integer", "line1", "String line2 = sc.nextLine();", "line2", "sc.nextLine()", "sc.nextLine", "sc", "int R0 = Integer.parseInt(line2);", "R0", "Integer.parseInt(line2)", "Integer.parseInt", "Integer", "line2", "String line3 = sc.nextLine();", "line3", "sc.nextLine()", "sc.nextLine", "sc", "int R1 = Integer.parseInt(line3);", "R1", "Integer.parseInt(line3)", "Integer.parseInt", "Integer", "line3", "int min = Math.min(R0, R1);", "min", "Math.min(R0, R1)", "Math.min", "Math", "R0", "R1", "int answer = R1 - R0;", "answer", "R1 - R0", "R1", "R0", "for (int i = 2; i < n; i++) {\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}", "int i = 2;", "int i = 2;", "i", "2", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}", "{\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}", "String next = sc.nextLine();", "next", "sc.nextLine()", "sc.nextLine", "sc", "int R = Integer.parseInt(next);", "R", "Integer.parseInt(next)", "Integer.parseInt", "Integer", "next", "answer = Math.max(answer, R-min)", "answer", "Math.max(answer, R-min)", "Math.max", "Math", "answer", "R-min", "R", "min", "min = Math.min(min, R)", "min", "Math.min(min, R)", "Math.min", "Math", "min", "R", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tint R0 = Integer.parseInt(line2);\n\t\t\n\t\tString line3 = sc.nextLine();\n\t\tint R1 = Integer.parseInt(line3);\n\t\t\n\t\tint min = Math.min(R0, R1);\n\t\tint answer = R1 - R0;\t\t\n\t\t\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tint R0 = Integer.parseInt(line2);\n\t\t\n\t\tString line3 = sc.nextLine();\n\t\tint R1 = Integer.parseInt(line3);\n\t\t\n\t\tint min = Math.min(R0, R1);\n\t\tint answer = R1 - R0;\t\t\n\t\t\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tString next = sc.nextLine();\n\t\t\tint R = Integer.parseInt(next);\n\t\t\t\n\t\t\tanswer = Math.max(answer, R-min);\n\t\t\tmin = Math.min(min, R);\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); String line1 = sc.nextLine(); int n = Integer.parseInt(line1); String line2 = sc.nextLine(); int R0 = Integer.parseInt(line2); String line3 = sc.nextLine(); int R1 = Integer.parseInt(line3); int min = Math.min(R0, R1); int answer = R1 - R0; for (int i = 2; i < n; i++) { String next = sc.nextLine(); int R = Integer.parseInt(next); answer = Math.max(answer, R-min); min = Math.min(min, R); } System.out.println(answer); } }
[ 7, 15, 13, 17, 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, 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, 14, 2, 2, 13, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 302, 23 ], [ 302, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 26, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 26, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 56, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 26, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 24, 88 ], [ 88, 89 ], [ 302, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 90, 98 ], [ 98, 99 ], [ 90, 100 ], [ 100, 101 ], [ 90, 102 ], [ 102, 103 ], [ 90, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 104, 112 ], [ 112, 113 ], [ 90, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 117, 122 ], [ 122, 123 ], [ 116, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 132, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 128, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 116, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 90, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 159, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 159, 173 ], [ 173, 174 ], [ 173, 175 ], [ 159, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 176, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 182, 185 ], [ 181, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 159, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 90, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 196, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 196, 209 ], [ 209, 210 ], [ 209, 211 ], [ 196, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 216, 221 ], [ 221, 222 ], [ 221, 223 ], [ 223, 224 ], [ 196, 225 ], [ 225, 226 ], [ 225, 227 ], [ 196, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 228, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 235, 239 ], [ 239, 240 ], [ 239, 241 ], [ 234, 242 ], [ 242, 243 ], [ 233, 244 ], [ 244, 245 ], [ 244, 246 ], [ 233, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 249, 251 ], [ 233, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 196, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 90, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 263, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 268, 271 ], [ 262, 272 ], [ 272, 273 ], [ 276, 274 ], [ 286, 275 ], [ 283, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 276, 280 ], [ 280, 281 ], [ 280, 282 ], [ 283, 283 ], [ 283, 284 ], [ 283, 285 ], [ 286, 286 ], [ 286, 287 ], [ 286, 288 ], [ 276, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 260, 293 ], [ 293, 294 ], [ 90, 295 ], [ 295, 296 ], [ 295, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 0, 301 ], [ 301, 302 ], [ 301, 303 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\nimport java.util.LinkedList;\nimport java.util.PriorityQueue;\n\n \npublic class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n int max = -2000000000;\n int nowmin = sc.nextInt();\n for(int i = 1; i < n; i++){\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }\n System.out.println(max);\n }\n \n \n// LinkedList<Integer>[] setsu = new LinkedList[n];\n// for(int i = 0; i < n; i++){\n// setsu[i] = new LinkedList<Integer>();\n// } \n\n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n\n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.LinkedList;", "LinkedList", "java.util", "import java.util.PriorityQueue;", "PriorityQueue", "java.util", "public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n int max = -2000000000;\n int nowmin = sc.nextInt();\n for(int i = 1; i < n; i++){\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }\n System.out.println(max);\n }\n \n \n// LinkedList<Integer>[] setsu = new LinkedList[n];\n// for(int i = 0; i < n; i++){\n// setsu[i] = new LinkedList<Integer>();\n// } \n\n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n\n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main", "public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n int max = -2000000000;\n int nowmin = sc.nextInt();\n for(int i = 1; i < n; i++){\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }\n System.out.println(max);\n }", "main", "{\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n int max = -2000000000;\n int nowmin = sc.nextInt();\n for(int i = 1; i < n; i++){\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }\n System.out.println(max);\n }", "InputReader sc = new InputReader(System.in);", "sc", "new InputReader(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int max = -2000000000;", "max", "-2000000000", "2000000000", "int nowmin = sc.nextInt();", "nowmin", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 1; i < n; i++){\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }", "{\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }", "int nowvalue = sc.nextInt();", "nowvalue", "sc.nextInt()", "sc.nextInt", "sc", "if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }", "nowvalue - nowmin > max", "nowvalue - nowmin", "nowvalue", "nowmin", "max", "{\n max = nowvalue - nowmin;\n }", "max = nowvalue - nowmin", "max", "nowvalue - nowmin", "nowvalue", "nowmin", "if(nowvalue < nowmin){\n nowmin = nowvalue;\n }", "nowvalue < nowmin", "nowvalue", "nowmin", "{\n nowmin = nowvalue;\n }", "nowmin = nowvalue", "nowmin", "nowvalue", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", " static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n\n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "next", "{\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1)\n throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0)\n return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }", "nextStr", "{\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }", "int c = next();", "c", "next()", "next", "while(isSpaceChar(c)){c = next();}", "isSpaceChar(c)", "isSpaceChar", "c", "{c = next();}", "c = next()", "c", "next()", "next", "StringBuffer str = new StringBuffer();", "str", "new StringBuffer()", "do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n str.append((char)c);\n c = next();\n }", "str.append((char)c)", "str.append", "str", "(char)c", "c = next()", "c", "next()", "next", "return str.toString();", "str.toString()", "str.toString", "str", "public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = next();", "c", "next()", "next", "while (isSpaceChar(c))\n c = next();", "isSpaceChar(c)", "isSpaceChar", "c", "c = next()", "c", "next()", "next", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = next();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = next();\n }", "sgn = -1", "sgn", "-1", "1", "c = next()", "c", "next()", "next", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n }", "if (c < '0' || c > '9')\n throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = next()", "c", "next()", "next", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null)\n return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n int max = -2000000000;\n int nowmin = sc.nextInt();\n for(int i = 1; i < n; i++){\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }\n System.out.println(max);\n }\n \n \n// LinkedList<Integer>[] setsu = new LinkedList[n];\n// for(int i = 0; i < n; i++){\n// setsu[i] = new LinkedList<Integer>();\n// } \n\n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n\n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n int max = -2000000000;\n int nowmin = sc.nextInt();\n for(int i = 1; i < n; i++){\n int nowvalue = sc.nextInt();\n if(nowvalue - nowmin > max){\n max = nowvalue - nowmin;\n }\n if(nowvalue < nowmin){\n nowmin = nowvalue;\n }\n }\n System.out.println(max);\n }\n \n \n// LinkedList<Integer>[] setsu = new LinkedList[n];\n// for(int i = 0; i < n; i++){\n// setsu[i] = new LinkedList<Integer>();\n// } \n\n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n\n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.util.LinkedList; import java.util.PriorityQueue; public class Main { public static void main(String[] args) { InputReader sc = new InputReader(System.in); int n = sc.nextInt(); int max = -2000000000; int nowmin = sc.nextInt(); for(int i = 1; i < n; i++){ int nowvalue = sc.nextInt(); if(nowvalue - nowmin > max){ max = nowvalue - nowmin; } if(nowvalue < nowmin){ nowmin = nowvalue; } } System.out.println(max); } // LinkedList<Integer>[] setsu = new LinkedList[n]; // for(int i = 0; i < n; i++){ // setsu[i] = new LinkedList<Integer>(); // } //ここからテンプレ static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int next() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public String nextStr() { int c = next(); while(isSpaceChar(c)){c = next();} StringBuffer str = new StringBuffer(); do{ str.append((char)c); c = next(); }while(!isSpaceChar(c)); return str.toString(); } public int nextInt() { int c = next(); while (isSpaceChar(c)) c = next(); int sgn = 1; if (c == '-') { sgn = -1; c = next(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = next(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 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, 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, 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 ], [ 96, 8 ], [ 96, 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 ], [ 11, 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 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 11, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 11, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 64, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 11, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 9, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint maxv = -2000000000;\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i =0;i<N;i++){\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}\n\t\tint minv = numbers.get(0);\n\t\tfor(int i =1;i<N;i++){\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint maxv = -2000000000;\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i =0;i<N;i++){\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}\n\t\tint minv = numbers.get(0);\n\t\tfor(int i =1;i<N;i++){\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}\n\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 maxv = -2000000000;\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i =0;i<N;i++){\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}\n\t\tint minv = numbers.get(0);\n\t\tfor(int i =1;i<N;i++){\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint maxv = -2000000000;\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i =0;i<N;i++){\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}\n\t\tint minv = numbers.get(0);\n\t\tfor(int i =1;i<N;i++){\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\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 = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int maxv = -2000000000;", "maxv", "-2000000000", "2000000000", "ArrayList<Integer> numbers = new ArrayList<Integer>();", "numbers", "new ArrayList<Integer>()", "for(int i =0;i<N;i++){\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}", "{\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}", "numbers.add(sc.nextInt())", "numbers.add", "numbers", "sc.nextInt()", "sc.nextInt", "sc", "int minv = numbers.get(0);", "minv", "numbers.get(0)", "numbers.get", "numbers", "0", "for(int i =1;i<N;i++){\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(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, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\n\t\t}", "{\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\n\t\t}", "maxv = Math.max(maxv, numbers.get(i)-minv)", "maxv", "Math.max(maxv, numbers.get(i)-minv)", "Math.max", "Math", "maxv", "numbers.get(i)-minv", "numbers.get(i)", "numbers.get", "numbers", "i", "minv", "minv = Math.min(minv, numbers.get(i))", "minv", "Math.min(minv, numbers.get(i))", "Math.min", "Math", "minv", "numbers.get(i)", "numbers.get", "numbers", "i", "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\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint maxv = -2000000000;\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i =0;i<N;i++){\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}\n\t\tint minv = numbers.get(0);\n\t\tfor(int i =1;i<N;i++){\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\n\t\t}\n\t\tSystem.out.println(maxv);\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 = sc.nextInt();\n\t\tint maxv = -2000000000;\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i =0;i<N;i++){\n\t\t\tnumbers.add(sc.nextInt());\n\t\t}\n\t\tint minv = numbers.get(0);\n\t\tfor(int i =1;i<N;i++){\n\t\t\tmaxv = Math.max(maxv, numbers.get(i)-minv);\n\t\t\tminv = Math.min(minv, numbers.get(i));\n\t\t}\n\t\tSystem.out.println(maxv);\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int maxv = -2000000000; ArrayList<Integer> numbers = new ArrayList<Integer>(); for(int i =0;i<N;i++){ numbers.add(sc.nextInt()); } int minv = numbers.get(0); for(int i =1;i<N;i++){ maxv = Math.max(maxv, numbers.get(i)-minv); minv = Math.min(minv, numbers.get(i)); } System.out.println(maxv); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 4, 13, 13, 23, 13, 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, 18, 13, 13, 41, 13, 18, 13, 13, 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 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 6, 17 ], [ 17, 18 ], [ 111, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 21, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 21, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 21, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 21, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 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 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 21, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 19, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n// while (true)\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int n = in.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = Integer.MAX_VALUE;\n int diff = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }\n System.out.println(diff);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n// while (true)\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int n = in.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = Integer.MAX_VALUE;\n int diff = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }\n System.out.println(diff);\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n// while (true)\n solve(in);\n }\n }", "main", "{\n try (Scanner in = new Scanner(System.in)) {\n// while (true)\n solve(in);\n }\n }", "try (Scanner in = new Scanner(System.in)) {\n// while (true)\n solve(in);\n }", "{\n// while (true)\n solve(in);\n }", "Scanner in = new Scanner(System.in)", "Scanner in = new Scanner(System.in)", "new Scanner(System.in)", "solve(in)", "solve", "in", "String[] args", "args", "private static void solve(Scanner in) {\n int n = in.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = Integer.MAX_VALUE;\n int diff = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }\n System.out.println(diff);\n }", "solve", "{\n int n = in.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = Integer.MAX_VALUE;\n int diff = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }\n System.out.println(diff);\n }", "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 R[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n R[i] = in.nextInt();\n }", "{\n R[i] = in.nextInt();\n }", "R[i] = in.nextInt()", "R[i]", "R", "i", "in.nextInt()", "in.nextInt", "in", "int min = Integer.MAX_VALUE;", "min", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int diff = Integer.MIN_VALUE;", "diff", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; i++) {\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }", "{\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }", "if (diff < R[i] - min) {\n diff = R[i] - min;\n }", "diff < R[i] - min", "diff", "R[i] - min", "R[i]", "R", "i", "min", "{\n diff = R[i] - min;\n }", "diff = R[i] - min", "diff", "R[i] - min", "R[i]", "R", "i", "min", "if (min > R[i]) {\n min = R[i];\n }", "min > R[i]", "min", "R[i]", "R", "i", "{\n min = R[i];\n }", "min = R[i]", "min", "R[i]", "R", "i", "System.out.println(diff)", "System.out.println", "System.out", "System", "System.out", "diff", "Scanner in", "in", "public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n// while (true)\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int n = in.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = Integer.MAX_VALUE;\n int diff = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }\n System.out.println(diff);\n }\n}", "public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n// while (true)\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int n = in.nextInt();\n int[] R = new int[n];\n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = Integer.MAX_VALUE;\n int diff = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n if (diff < R[i] - min) {\n diff = R[i] - min;\n }\n if (min > R[i]) {\n min = R[i];\n }\n }\n System.out.println(diff);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner in = new Scanner(System.in)) { // while (true) solve(in); } } private static void solve(Scanner in) { int n = in.nextInt(); int[] R = new int[n]; for (int i = 0; i < n; i++) { R[i] = in.nextInt(); } int min = Integer.MAX_VALUE; int diff = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { if (diff < R[i] - min) { diff = R[i] - min; } if (min > R[i]) { min = R[i]; } } System.out.println(diff); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 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, 2, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 2, 13, 17, 13, 30, 0, 13, 4, 18, 13, 2, 13, 17, 14, 2, 2, 4, 18, 13, 13, 13, 13, 30, 0, 13, 2, 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 ], [ 123, 8 ], [ 123, 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 ], [ 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 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 11, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 11, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 11, 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 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 79, 86 ], [ 78, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 77, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 98, 103 ], [ 97, 104 ], [ 96, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 108, 113 ], [ 11, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 9, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}\n\n\t\t/**\n\t\t * ループ処理\n\t\t * t=1→N-1で探索\n\t\t * Rの最小値を保持し、それを用いてRの差分の最大値を求める\n\t\t */\n\t\tint minr = r.get(0);\n\t\tint maxdr = r.get(1) - r.get(0);\n\t\tfor(int i = 2; i < n; i++) {\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxdr);\n\n\t}\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}\n\n\t\t/**\n\t\t * ループ処理\n\t\t * t=1→N-1で探索\n\t\t * Rの最小値を保持し、それを用いてRの差分の最大値を求める\n\t\t */\n\t\tint minr = r.get(0);\n\t\tint maxdr = r.get(1) - r.get(0);\n\t\tfor(int i = 2; i < n; i++) {\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxdr);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}\n\n\t\t/**\n\t\t * ループ処理\n\t\t * t=1→N-1で探索\n\t\t * Rの最小値を保持し、それを用いてRの差分の最大値を求める\n\t\t */\n\t\tint minr = r.get(0);\n\t\tint maxdr = r.get(1) - r.get(0);\n\t\tfor(int i = 2; i < n; i++) {\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxdr);\n\n\t}", "main", "{\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}\n\n\t\t/**\n\t\t * ループ処理\n\t\t * t=1→N-1で探索\n\t\t * Rの最小値を保持し、それを用いてRの差分の最大値を求める\n\t\t */\n\t\tint minr = r.get(0);\n\t\tint maxdr = r.get(1) - r.get(0);\n\t\tfor(int i = 2; i < n; i++) {\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxdr);\n\n\t}", "@SuppressWarnings(\"resource\")\n\t\tScanner 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> r = new ArrayList<Integer>();", "r", "new ArrayList<Integer>()", "for(int i = 1; i <= n; i++) {\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= n", "i", "n", "i++", "i++", "i", "{\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}", "{\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}", "r.add(Integer.parseInt(sc.next()))", "r.add", "r", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int minr = r.get(0);", "minr", "r.get(0)", "r.get", "r", "0", "int maxdr = r.get(1) - r.get(0);", "maxdr", "r.get(1) - r.get(0)", "r.get(1)", "r.get", "r", "1", "r.get(0)", "r.get", "r", "0", "for(int i = 2; i < n; i++) {\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}", "int i = 2;", "int i = 2;", "i", "2", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}", "if(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}", "r.get(i-1) < minr", "r.get(i-1)", "r.get", "r", "i-1", "i", "1", "minr", "{\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}", "minr = r.get(i-1)", "minr", "r.get(i-1)", "r.get", "r", "i-1", "i", "1", "if(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}", "r.get(i) - minr > maxdr", "r.get(i) - minr", "r.get(i)", "r.get", "r", "i", "minr", "maxdr", "{\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}", "maxdr = r.get(i) - minr", "maxdr", "r.get(i) - minr", "r.get(i)", "r.get", "r", "i", "minr", "System.out.println(maxdr)", "System.out.println", "System.out", "System", "System.out", "maxdr", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}\n\n\t\t/**\n\t\t * ループ処理\n\t\t * t=1→N-1で探索\n\t\t * Rの最小値を保持し、それを用いてRの差分の最大値を求める\n\t\t */\n\t\tint minr = r.get(0);\n\t\tint maxdr = r.get(1) - r.get(0);\n\t\tfor(int i = 2; i < n; i++) {\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxdr);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tr.add(Integer.parseInt(sc.next()));\n\t\t}\n\n\t\t/**\n\t\t * ループ処理\n\t\t * t=1→N-1で探索\n\t\t * Rの最小値を保持し、それを用いてRの差分の最大値を求める\n\t\t */\n\t\tint minr = r.get(0);\n\t\tint maxdr = r.get(1) - r.get(0);\n\t\tfor(int i = 2; i < n; i++) {\n\t\t\tif(r.get(i-1) < minr) {\n\t\t\t\tminr = r.get(i-1);\n\t\t\t}\n\t\t\tif(r.get(i) - minr > maxdr) {\n\t\t\t\tmaxdr = r.get(i) - minr;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(maxdr);\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); ArrayList<Integer> r = new ArrayList<Integer>(); for(int i = 1; i <= n; i++) { r.add(Integer.parseInt(sc.next())); } /** * ループ処理 * t=1→N-1で探索 * Rの最小値を保持し、それを用いてRの差分の最大値を求める */ int minr = r.get(0); int maxdr = r.get(1) - r.get(0); for(int i = 2; i < n; i++) { if(r.get(i-1) < minr) { minr = r.get(i-1); } if(r.get(i) - minr > maxdr) { maxdr = r.get(i) - minr; } } System.out.println(maxdr); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 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, 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 ], [ 69, 5 ], [ 69, 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 ], [ 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 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 38, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minR=sc.nextInt();\n\t\tint maxR=-1000000000;\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}\n\t\tSystem.out.println(maxR);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minR=sc.nextInt();\n\t\tint maxR=-1000000000;\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}\n\t\tSystem.out.println(maxR);\n\t}\n\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 minR=sc.nextInt();\n\t\tint maxR=-1000000000;\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}\n\t\tSystem.out.println(maxR);\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minR=sc.nextInt();\n\t\tint maxR=-1000000000;\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}\n\t\tSystem.out.println(maxR);\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int minR=sc.nextInt();", "minR", "sc.nextInt()", "sc.nextInt", "sc", "int maxR=-1000000000;", "maxR", "-1000000000", "1000000000", "for(int i=1;i<n;i++){\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}", "{\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}", "int R=sc.nextInt();", "R", "sc.nextInt()", "sc.nextInt", "sc", "maxR=Math.max(maxR,R-minR)", "maxR", "Math.max(maxR,R-minR)", "Math.max", "Math", "maxR", "R-minR", "R", "minR", "minR=Math.min(minR, R)", "minR", "Math.min(minR, R)", "Math.min", "Math", "minR", "R", "System.out.println(maxR)", "System.out.println", "System.out", "System", "System.out", "maxR", "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 minR=sc.nextInt();\n\t\tint maxR=-1000000000;\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}\n\t\tSystem.out.println(maxR);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint minR=sc.nextInt();\n\t\tint maxR=-1000000000;\n\t\tfor(int i=1;i<n;i++){\n\t\t\tint R=sc.nextInt();\n\t\t\tmaxR=Math.max(maxR,R-minR);\n\t\t\tminR=Math.min(minR, R);\n\t\t}\n\t\tSystem.out.println(maxR);\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=sc.nextInt(); int minR=sc.nextInt(); int maxR=-1000000000; for(int i=1;i<n;i++){ int R=sc.nextInt(); maxR=Math.max(maxR,R-minR); minR=Math.min(minR, R); } System.out.println(maxR); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 13, 13, 0, 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, 14, 2, 2, 13, 13, 13, 30, 0, 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 ], [ 101, 5 ], [ 101, 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 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 47, 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 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 64, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 64, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 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\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n int max;\n int min;\n\n int r0 = Integer.parseInt(scanner.next());\n int r1 = Integer.parseInt(scanner.next());\n max = r1 - r0;\n min = Math.min(r1, r0);\n\n for (int i = 2; i < n; i++) {\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }\n\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n int max;\n int min;\n\n int r0 = Integer.parseInt(scanner.next());\n int r1 = Integer.parseInt(scanner.next());\n max = r1 - r0;\n min = Math.min(r1, r0);\n\n for (int i = 2; i < n; i++) {\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }\n\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n int max;\n int min;\n\n int r0 = Integer.parseInt(scanner.next());\n int r1 = Integer.parseInt(scanner.next());\n max = r1 - r0;\n min = Math.min(r1, r0);\n\n for (int i = 2; i < n; i++) {\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }\n\n System.out.println(max);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n int max;\n int min;\n\n int r0 = Integer.parseInt(scanner.next());\n int r1 = Integer.parseInt(scanner.next());\n max = r1 - r0;\n min = Math.min(r1, r0);\n\n for (int i = 2; i < n; i++) {\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }\n\n System.out.println(max);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = Integer.parseInt(scanner.next());", "n", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "int max;", "max", "int min;", "min", "int r0 = Integer.parseInt(scanner.next());", "r0", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "int r1 = Integer.parseInt(scanner.next());", "r1", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "max = r1 - r0", "max", "r1 - r0", "r1", "r0", "min = Math.min(r1, r0)", "min", "Math.min(r1, r0)", "Math.min", "Math", "r1", "r0", "for (int i = 2; i < n; i++) {\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }", "int i = 2;", "int i = 2;", "i", "2", "i < n", "i", "n", "i++", "i++", "i", "{\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }", "{\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }", "int ri = Integer.parseInt(scanner.next());", "ri", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "if (ri - min > max) {\n max = ri - min;\n }", "ri - min > max", "ri - min", "ri", "min", "max", "{\n max = ri - min;\n }", "max = ri - min", "max", "ri - min", "ri", "min", "min = Math.min(ri, min)", "min", "Math.min(ri, min)", "Math.min", "Math", "ri", "min", "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 scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n int max;\n int min;\n\n int r0 = Integer.parseInt(scanner.next());\n int r1 = Integer.parseInt(scanner.next());\n max = r1 - r0;\n min = Math.min(r1, r0);\n\n for (int i = 2; i < n; i++) {\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }\n\n System.out.println(max);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.next());\n int max;\n int min;\n\n int r0 = Integer.parseInt(scanner.next());\n int r1 = Integer.parseInt(scanner.next());\n max = r1 - r0;\n min = Math.min(r1, r0);\n\n for (int i = 2; i < n; i++) {\n int ri = Integer.parseInt(scanner.next());\n if (ri - min > max) {\n max = ri - min;\n }\n min = Math.min(ri, min);\n }\n\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.next()); int max; int min; int r0 = Integer.parseInt(scanner.next()); int r1 = Integer.parseInt(scanner.next()); max = r1 - r0; min = Math.min(r1, r0); for (int i = 2; i < n; i++) { int ri = Integer.parseInt(scanner.next()); if (ri - min > max) { max = ri - min; } min = Math.min(ri, min); } 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, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 40, 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, 2, 13, 17, 13, 0, 13, 4, 18, 13, 13, 18, 13, 2, 13, 17, 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 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 6, 45 ], [ 45, 46 ], [ 4, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 80, 86 ], [ 73, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 49, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 47, 104 ], [ 104, 105 ], [ 47, 106 ], [ 106, 107 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] num_list = new int[n];\n for (int i = 0; i < n; i++){\n num_list[i] = sc.nextInt();\n }\n max_value(num_list, n);\n }\n\n public static void max_value(int[] lst, int n){\n int maxval = -2000000000;\n int minval = lst[0];\n for (int i = 0; i < n - 1; i++){\n maxval = Math.max(maxval, lst[i + 1] - minval);\n minval = Math.min(minval, lst[i + 1]);\n }\n System.out.println(maxval);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] num_list = new int[n];\n for (int i = 0; i < n; i++){\n num_list[i] = sc.nextInt();\n }\n max_value(num_list, n);\n }\n\n public static void max_value(int[] lst, int n){\n int maxval = -2000000000;\n int minval = lst[0];\n for (int i = 0; i < n - 1; i++){\n maxval = Math.max(maxval, lst[i + 1] - minval);\n minval = Math.min(minval, lst[i + 1]);\n }\n System.out.println(maxval);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] num_list = new int[n];\n for (int i = 0; i < n; i++){\n num_list[i] = sc.nextInt();\n }\n max_value(num_list, n);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] num_list = new int[n];\n for (int i = 0; i < n; i++){\n num_list[i] = sc.nextInt();\n }\n max_value(num_list, n);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] num_list = new int[n];", "num_list", "new int[n]", "n", "for (int i = 0; i < n; i++){\n num_list[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n num_list[i] = sc.nextInt();\n }", "{\n num_list[i] = sc.nextInt();\n }", "num_list[i] = sc.nextInt()", "num_list[i]", "num_list", "i", "sc.nextInt()", "sc.nextInt", "sc", "max_value(num_list, n)", "max_value", "num_list", "n", "String[] args", "args", "public static void max_value(int[] lst, int n){\n int maxval = -2000000000;\n int minval = lst[0];\n for (int i = 0; i < n - 1; i++){\n maxval = Math.max(maxval, lst[i + 1] - minval);\n minval = Math.min(minval, lst[i + 1]);\n }\n System.out.println(maxval);\n }", "max_value", "{\n int maxval = -2000000000;\n int minval = lst[0];\n for (int i = 0; i < n - 1; i++){\n maxval = Math.max(maxval, lst[i + 1] - minval);\n minval = Math.min(minval, lst[i + 1]);\n }\n System.out.println(maxval);\n }", "int maxval = -2000000000;", "maxval", "-2000000000", "2000000000", "int minval = lst[0];", "minval", "lst[0]", "lst", "0", "for (int i = 0; i < n - 1; i++){\n maxval = Math.max(maxval, lst[i + 1] - minval);\n minval = Math.min(minval, lst[i + 1]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n - 1", "i", "n - 1", "n", "1", "i++", "i++", "i", "{\n maxval = Math.max(maxval, lst[i + 1] - minval);\n minval = Math.min(minval, lst[i + 1]);\n }", "{\n maxval = Math.max(maxval, lst[i + 1] - minval);\n minval = Math.min(minval, lst[i + 1]);\n }", "maxval = Math.max(maxval, lst[i + 1] - minval)", "maxval", "Math.max(maxval, lst[i + 1] - minval)", "Math.max", "Math", "maxval", "lst[i + 1] - minval", "lst[i + 1]", "lst", "i + 1", "i", "1", "minval", "minval = Math.min(minval, lst[i + 1])", "minval", "Math.min(minval, lst[i + 1])", "Math.min", "Math", "minval", "lst[i + 1]", "lst", "i + 1", "i", "1", "System.out.println(maxval)", "System.out.println", "System.out", "System", "System.out", "maxval", "int[] lst", "lst", "int n", "n" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] num_list = new int[n]; for (int i = 0; i < n; i++){ num_list[i] = sc.nextInt(); } max_value(num_list, n); } public static void max_value(int[] lst, int n){ int maxval = -2000000000; int minval = lst[0]; for (int i = 0; i < n - 1; i++){ maxval = Math.max(maxval, lst[i + 1] - minval); minval = Math.min(minval, lst[i + 1]); } System.out.println(maxval); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 40, 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, 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, 13, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 235, 26 ], [ 235, 27 ], [ 27, 28 ], [ 235, 29 ], [ 29, 30 ], [ 235, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 33, 40 ], [ 40, 41 ], [ 40, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 33, 46 ], [ 46, 47 ], [ 47, 48 ], [ 31, 49 ], [ 49, 50 ], [ 235, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 55, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 55, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 55, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 55, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 94, 102 ], [ 102, 103 ], [ 103, 104 ], [ 94, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 106, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 55, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 235, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 131, 135 ], [ 135, 136 ], [ 131, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 137, 143 ], [ 143, 144 ], [ 131, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 148, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 147, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 165, 166 ], [ 166, 167 ], [ 131, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 171, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 170, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 188, 189 ], [ 189, 190 ], [ 131, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 194, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 193, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 131, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 214, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 213, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 228, 231 ], [ 231, 232 ], [ 232, 233 ], [ 0, 234 ], [ 234, 235 ], [ 234, 236 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\nimport java.math.BigDecimal;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] R = new int[n];\n int max = -1000000000;\n \n \n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = R[0];\n \n for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }\n \n out.println(max);\n// End solve()\n }\n \n \n \n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.math.BigDecimal;", "BigDecimal", "java.math", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] R = new int[n];\n int max = -1000000000;\n \n \n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = R[0];\n \n for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }\n \n out.println(max);\n// End solve()\n }\n \n \n \n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "Main", "static InputReader in;", "in", "static PrintWriter out;", "out", "public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "main", "{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "in = new InputReader(System.in)", "in", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "Solution solver = new Solution();", "solver", "new Solution()", "solver.solve()", "solver.solve", "solver", "out.close()", "out.close", "out", "String[] args", "args", "static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] R = new int[n];\n int max = -1000000000;\n \n \n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = R[0];\n \n for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }\n \n out.println(max);\n// End solve()\n }\n \n \n \n// End Solution\n}", "Solution", "void solve() throws IOException {\n int n = in.nextInt();\n int[] R = new int[n];\n int max = -1000000000;\n \n \n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = R[0];\n \n for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }\n \n out.println(max);\n// End solve()\n }", "solve", "{\n int n = in.nextInt();\n int[] R = new int[n];\n int max = -1000000000;\n \n \n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = R[0];\n \n for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }\n \n out.println(max);\n// End solve()\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int[] R = new int[n];", "R", "new int[n]", "n", "int max = -1000000000;", "max", "-1000000000", "1000000000", "for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n R[i] = in.nextInt();\n }", "{\n R[i] = in.nextInt();\n }", "R[i] = in.nextInt()", "R[i]", "R", "i", "in.nextInt()", "in.nextInt", "in", "int min = R[0];", "min", "R[0]", "R", "0", "for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }", "int j = 1;", "int j = 1;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }", "{\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }", "max = Math.max(max, R[j] - min)", "max", "Math.max(max, R[j] - min)", "Math.max", "Math", "max", "R[j] - min", "R[j]", "R", "j", "min", "min = Math.min(min, R[j])", "min", "Math.min(min, R[j])", "Math.min", "Math", "min", "R[j]", "R", "j", "out.println(max)", "out.println", "out", "max", "static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }", "InputReader", "public BufferedReader br;", "br", "public StringTokenizer st;", "st", "public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }", "InputReader", "{\n br = new BufferedReader(new InputStreamReader(stream));\n }", "br = new BufferedReader(new InputStreamReader(stream))", "br", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "nextInt", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "nextLong", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Long.parseLong(st.nextToken());", "Long.parseLong(st.nextToken())", "Long.parseLong", "Long", "st.nextToken()", "st.nextToken", "st", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "nextDouble", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Double.parseDouble(st.nextToken());", "Double.parseDouble(st.nextToken())", "Double.parseDouble", "Double", "st.nextToken()", "st.nextToken", "st", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] R = new int[n];\n int max = -1000000000;\n \n \n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = R[0];\n \n for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }\n \n out.println(max);\n// End solve()\n }\n \n \n \n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] R = new int[n];\n int max = -1000000000;\n \n \n for (int i = 0; i < n; i++) {\n R[i] = in.nextInt();\n }\n int min = R[0];\n \n for (int j = 1; j < n; j++) {\n max = Math.max(max, R[j] - min);\n min = Math.min(min, R[j]);\n }\n \n out.println(max);\n// End solve()\n }\n \n \n \n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Scanner; import java.util.StringTokenizer; import java.math.BigDecimal; public class Main { static InputReader in; static PrintWriter out; static class Solution { void solve() throws IOException { int n = in.nextInt(); int[] R = new int[n]; int max = -1000000000; for (int i = 0; i < n; i++) { R[i] = in.nextInt(); } int min = R[0]; for (int j = 1; j < n; j++) { max = Math.max(max, R[j] - min); min = Math.min(min, R[j]); } out.println(max); // End solve() } // End Solution } public static void main(String[] args) throws IOException { in = new InputReader(System.in); out = new PrintWriter(System.out); Solution solver = new Solution(); solver.solve(); out.close(); } static class InputReader { public BufferedReader br; public StringTokenizer st; public InputReader(InputStream stream) { br = new BufferedReader(new InputStreamReader(stream)); } public int nextInt() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Integer.parseInt(st.nextToken()); } public long nextLong() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Long.parseLong(st.nextToken()); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } public double nextDouble() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Double.parseDouble(st.nextToken()); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 40, 17, 41, 13, 12, 13, 30, 0, 13, 4, 18, 13, 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, 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, 4, 18, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 4, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 4, 15 ], [ 15, 16 ], [ 4, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 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 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 44, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 19, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 4, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 73, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 70, 83 ], [ 83, 84 ], [ 4, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 88, 94 ], [ 94, 95 ], [ 85, 96 ], [ 96, 97 ], [ 85, 98 ], [ 98, 99 ], [ 4, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 100, 106 ], [ 106, 107 ] ]
[ "import java.util.*;\nclass Main{ \n\tScanner sc = new Scanner(System.in); \n\tint n; \n\tint m=-2000000000; \n\tint mini;\n\t \n\tvoid mp(){ \n\t\tn=sc.nextInt();\n\t\tmini=sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n-1; i++){ \n\t\t\tint d=sc.nextInt();\n\t\t \tm=maxv(m,d-mini); \n\t\t\tmini=minv(mini,d); \n\t\t} \n\t\tSystem.out.println(m); \n\t\t} \n\t\n\t\tint maxv(int a,int b){ \n\t\tif(a>b)return a; \n\t\telse return b; \n\t\t} \n\t\n\t\tint minv(int a,int b){ \n\t\tif(a<b)return a; \n\t\telse return b; \n\t\t} \n\t \n\tpublic static void main(String[] args){ \n\t\tnew Main().mp(); \n\t\t} \n\t}", "import java.util.*;", "util.*", "java", "class Main{ \n\tScanner sc = new Scanner(System.in); \n\tint n; \n\tint m=-2000000000; \n\tint mini;\n\t \n\tvoid mp(){ \n\t\tn=sc.nextInt();\n\t\tmini=sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n-1; i++){ \n\t\t\tint d=sc.nextInt();\n\t\t \tm=maxv(m,d-mini); \n\t\t\tmini=minv(mini,d); \n\t\t} \n\t\tSystem.out.println(m); \n\t\t} \n\t\n\t\tint maxv(int a,int b){ \n\t\tif(a>b)return a; \n\t\telse return b; \n\t\t} \n\t\n\t\tint minv(int a,int b){ \n\t\tif(a<b)return a; \n\t\telse return b; \n\t\t} \n\t \n\tpublic static void main(String[] args){ \n\t\tnew Main().mp(); \n\t\t} \n\t}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n;", "n", "int m=-2000000000;", "m", "-2000000000", "2000000000", "int mini;", "mini", "void mp(){ \n\t\tn=sc.nextInt();\n\t\tmini=sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n-1; i++){ \n\t\t\tint d=sc.nextInt();\n\t\t \tm=maxv(m,d-mini); \n\t\t\tmini=minv(mini,d); \n\t\t} \n\t\tSystem.out.println(m); \n\t\t}", "mp", "{ \n\t\tn=sc.nextInt();\n\t\tmini=sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n-1; i++){ \n\t\t\tint d=sc.nextInt();\n\t\t \tm=maxv(m,d-mini); \n\t\t\tmini=minv(mini,d); \n\t\t} \n\t\tSystem.out.println(m); \n\t\t}", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "mini=sc.nextInt()", "mini", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i<n-1; i++){ \n\t\t\tint d=sc.nextInt();\n\t\t \tm=maxv(m,d-mini); \n\t\t\tmini=minv(mini,d); \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\tint d=sc.nextInt();\n\t\t \tm=maxv(m,d-mini); \n\t\t\tmini=minv(mini,d); \n\t\t}", "{ \n\t\t\tint d=sc.nextInt();\n\t\t \tm=maxv(m,d-mini); \n\t\t\tmini=minv(mini,d); \n\t\t}", "int d=sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "m=maxv(m,d-mini)", "m", "maxv(m,d-mini)", "maxv", "m", "d-mini", "d", "mini", "mini=minv(mini,d)", "mini", "minv(mini,d)", "minv", "mini", "d", "System.out.println(m)", "System.out.println", "System.out", "System", "System.out", "m", "int maxv(int a,int b){ \n\t\tif(a>b)return a; \n\t\telse return b; \n\t\t}", "maxv", "{ \n\t\tif(a>b)return a; \n\t\telse return b; \n\t\t}", "if(a>b)return a; \n\t\telse return b;", "a>b", "a", "b", "return a;", "a", "return b;", "b", "int a", "a", "int b", "b", "int minv(int a,int b){ \n\t\tif(a<b)return a; \n\t\telse return b; \n\t\t}", "minv", "{ \n\t\tif(a<b)return a; \n\t\telse return b; \n\t\t}", "if(a<b)return a; \n\t\telse return b;", "a<b", "a", "b", "return a;", "a", "return b;", "b", "int a", "a", "int b", "b", "public static void main(String[] args){ \n\t\tnew Main().mp(); \n\t\t}", "main", "{ \n\t\tnew Main().mp(); \n\t\t}", "new Main().mp()", "new Main().mp", "new Main()", "String[] args", "args" ]
import java.util.*; class Main{ Scanner sc = new Scanner(System.in); int n; int m=-2000000000; int mini; void mp(){ n=sc.nextInt(); mini=sc.nextInt(); for(int i=0; i<n-1; i++){ int d=sc.nextInt(); m=maxv(m,d-mini); mini=minv(mini,d); } System.out.println(m); } int maxv(int a,int b){ if(a>b)return a; else return b; } int minv(int a,int b){ if(a<b)return a; else return b; } public static void main(String[] args){ new Main().mp(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 18, 13, 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, 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 ], [ 20, 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 ], [ 34, 35 ], [ 34, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 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 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\t//?????????????????????????????????????????????????????§?????¢???????????????\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tint smallerNum = sc.nextInt();\n\t\tint maxDef = Integer.MIN_VALUE;\n\t\t\n\t\tfor (int i = 0; i < num - 1; i++) {\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}\n\t\tSystem.out.println(maxDef);\n\t}\t\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\t//?????????????????????????????????????????????????????§?????¢???????????????\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tint smallerNum = sc.nextInt();\n\t\tint maxDef = Integer.MIN_VALUE;\n\t\t\n\t\tfor (int i = 0; i < num - 1; i++) {\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}\n\t\tSystem.out.println(maxDef);\n\t}\t\n}", "Main", "//?????????????????????????????????????????????????????§?????¢???????????????\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tint smallerNum = sc.nextInt();\n\t\tint maxDef = Integer.MIN_VALUE;\n\t\t\n\t\tfor (int i = 0; i < num - 1; i++) {\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}\n\t\tSystem.out.println(maxDef);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tint smallerNum = sc.nextInt();\n\t\tint maxDef = Integer.MIN_VALUE;\n\t\t\n\t\tfor (int i = 0; i < num - 1; i++) {\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}\n\t\tSystem.out.println(maxDef);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "int smallerNum = sc.nextInt();", "smallerNum", "sc.nextInt()", "sc.nextInt", "sc", "int maxDef = Integer.MIN_VALUE;", "maxDef", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < num - 1; i++) {\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num - 1", "i", "num - 1", "num", "1", "i++", "i++", "i", "{\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}", "{\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}", "int j = sc.nextInt();", "j", "sc.nextInt()", "sc.nextInt", "sc", "maxDef = Math.max(maxDef, j - smallerNum)", "maxDef", "Math.max(maxDef, j - smallerNum)", "Math.max", "Math", "maxDef", "j - smallerNum", "j", "smallerNum", "smallerNum = Math.min(smallerNum, j)", "smallerNum", "Math.min(smallerNum, j)", "Math.min", "Math", "smallerNum", "j", "System.out.println(maxDef)", "System.out.println", "System.out", "System", "System.out", "maxDef", "String[] args", "args", "public class Main {\n\t\n\t//?????????????????????????????????????????????????????§?????¢???????????????\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tint smallerNum = sc.nextInt();\n\t\tint maxDef = Integer.MIN_VALUE;\n\t\t\n\t\tfor (int i = 0; i < num - 1; i++) {\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}\n\t\tSystem.out.println(maxDef);\n\t}\t\n}", "public class Main {\n\t\n\t//?????????????????????????????????????????????????????§?????¢???????????????\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tint smallerNum = sc.nextInt();\n\t\tint maxDef = Integer.MIN_VALUE;\n\t\t\n\t\tfor (int i = 0; i < num - 1; i++) {\n\t\t\tint j = sc.nextInt();\n\t\t\tmaxDef = Math.max(maxDef, j - smallerNum);\n\t\t\tsmallerNum = Math.min(smallerNum, j);\n\t\t}\n\t\tSystem.out.println(maxDef);\n\t}\t\n}", "Main" ]
import java.util.Scanner; public class Main { //?????????????????????????????????????????????????????§?????¢??????????????? public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int smallerNum = sc.nextInt(); int maxDef = Integer.MIN_VALUE; for (int i = 0; i < num - 1; i++) { int j = sc.nextInt(); maxDef = Math.max(maxDef, j - smallerNum); smallerNum = Math.min(smallerNum, j); } System.out.println(maxDef); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 17, 9, 30, 14, 2, 13, 4, 18, 13, 2, 13, 17, 30, 0, 13, 4, 18, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 4, 18, 13, 17, 4, 18, 13, 17, 14, 2, 13, 2, 4, 18, 13, 13, 13, 30, 0, 13, 2, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 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 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 49, 56 ], [ 45, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 58, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 57, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 76, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 92, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 104, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "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 List<Integer> arr = new ArrayList<>();\n int min = 0;\n int max = 0;\n for(int i = 0; i < n; i++) {\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }\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 List<Integer> arr = new ArrayList<>();\n int min = 0;\n int max = 0;\n for(int i = 0; i < n; i++) {\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\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 n = sc.nextInt();\n List<Integer> arr = new ArrayList<>();\n int min = 0;\n int max = 0;\n for(int i = 0; i < n; i++) {\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n List<Integer> arr = new ArrayList<>();\n int min = 0;\n int max = 0;\n for(int i = 0; i < n; i++) {\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\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", "List<Integer> arr = new ArrayList<>();", "arr", "new ArrayList<>()", "int min = 0;", "min", "0", "int max = 0;", "max", "0", "for(int i = 0; i < n; i++) {\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }\n }", "{\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }\n }", "arr.add(sc.nextInt())", "arr.add", "arr", "sc.nextInt()", "sc.nextInt", "sc", "if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }", "i == 0", "i", "0", "{\n min = arr.get(0);\n continue;\n }", "min = arr.get(0)", "min", "arr.get(0)", "arr.get", "arr", "0", "continue;", "{\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }", "if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }", "min > arr.get(i - 1)", "min", "arr.get(i - 1)", "arr.get", "arr", "i - 1", "i", "1", "{\n min = arr.get(i - 1);\n }", "min = arr.get(i - 1)", "min", "arr.get(i - 1)", "arr.get", "arr", "i - 1", "i", "1", "if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }", "i == 1", "i", "1", "{\n max = arr.get(1) - arr.get(0);\n }", "max = arr.get(1) - arr.get(0)", "max", "arr.get(1) - arr.get(0)", "arr.get(1)", "arr.get", "arr", "1", "arr.get(0)", "arr.get", "arr", "0", "if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }", "max < arr.get(i) - min", "max", "arr.get(i) - min", "arr.get(i)", "arr.get", "arr", "i", "min", "{\n max = arr.get(i) - min;\n }", "max = arr.get(i) - min", "max", "arr.get(i) - min", "arr.get(i)", "arr.get", "arr", "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 List<Integer> arr = new ArrayList<>();\n int min = 0;\n int max = 0;\n for(int i = 0; i < n; i++) {\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\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 n = sc.nextInt();\n List<Integer> arr = new ArrayList<>();\n int min = 0;\n int max = 0;\n for(int i = 0; i < n; i++) {\n arr.add(sc.nextInt());\n if(i == 0) {\n min = arr.get(0);\n continue;\n } else {\n if(min > arr.get(i - 1)) {\n min = arr.get(i - 1);\n }\n if(i == 1) {\n max = arr.get(1) - arr.get(0);\n } else if(max < arr.get(i) - min) {\n max = arr.get(i) - min;\n }\n }\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(); List<Integer> arr = new ArrayList<>(); int min = 0; int max = 0; for(int i = 0; i < n; i++) { arr.add(sc.nextInt()); if(i == 0) { min = arr.get(0); continue; } else { if(min > arr.get(i - 1)) { min = arr.get(i - 1); } if(i == 1) { max = arr.get(1) - arr.get(0); } else if(max < arr.get(i) - min) { max = arr.get(i) - min; } } } 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, 17, 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, 0, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 8, 2, 13, 13, 13, 13, 30, 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 ], [ 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, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 64, 69 ], [ 52, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 79, 81 ], [ 73, 82 ], [ 70, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 85, 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\tpublic static void main(String[] a) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint loop=input.nextInt();\n\t\tint max=0;\n\t\tint minInput=0;\n\t\t\n\t\t\n\t\tfor(int i=0;i<loop;i++){\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] a) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint loop=input.nextInt();\n\t\tint max=0;\n\t\tint minInput=0;\n\t\t\n\t\t\n\t\tfor(int i=0;i<loop;i++){\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] a) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint loop=input.nextInt();\n\t\tint max=0;\n\t\tint minInput=0;\n\t\t\n\t\t\n\t\tfor(int i=0;i<loop;i++){\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}", "main", "{\n\t\tScanner input = new Scanner(System.in);\n\t\tint loop=input.nextInt();\n\t\tint max=0;\n\t\tint minInput=0;\n\t\t\n\t\t\n\t\tfor(int i=0;i<loop;i++){\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int loop=input.nextInt();", "loop", "input.nextInt()", "input.nextInt", "input", "int max=0;", "max", "0", "int minInput=0;", "minInput", "0", "for(int i=0;i<loop;i++){\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<loop", "i", "loop", "i++", "i++", "i", "{\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "int newNum=input.nextInt();", "newNum", "input.nextInt()", "input.nextInt", "input", "if(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}", "i==0", "i", "0", "{\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}", "minInput=newNum", "minInput", "newNum", "max=newNum", "max", "newNum", "if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}", "i==1", "i", "1", "{\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}", "max=newNum-max", "max", "newNum-max", "newNum", "max", "minInput= newNum<minInput ? newNum : minInput", "minInput", "newNum<minInput ? newNum : minInput", "newNum<minInput", "newNum", "minInput", "newNum", "minInput", "{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}", "max=newNum-minInput > max ? newNum-minInput : max", "max", "newNum-minInput > max ? newNum-minInput : max", "newNum-minInput > max", "newNum-minInput", "newNum", "minInput", "max", "newNum-minInput", "newNum", "minInput", "max", "minInput= newNum<minInput ? newNum : minInput", "minInput", "newNum<minInput ? newNum : minInput", "newNum<minInput", "newNum", "minInput", "newNum", "minInput", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] a", "a", "public class Main {\n\tpublic static void main(String[] a) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint loop=input.nextInt();\n\t\tint max=0;\n\t\tint minInput=0;\n\t\t\n\t\t\n\t\tfor(int i=0;i<loop;i++){\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] a) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint loop=input.nextInt();\n\t\tint max=0;\n\t\tint minInput=0;\n\t\t\n\t\t\n\t\tfor(int i=0;i<loop;i++){\n\t\t\tint newNum=input.nextInt();\n\t\t\t\n\t\t\tif(i==0){\n\t\t\t\tminInput=newNum;\n\t\t\t\tmax=newNum;\n\t\t\t}\n\t\t\telse if(i==1){\n\t\t\t\tmax=newNum-max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax=newNum-minInput > max ? newNum-minInput : max;\n\t\t\t\tminInput= newNum<minInput ? newNum : minInput;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(max);\n\t\t\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] a) { Scanner input = new Scanner(System.in); int loop=input.nextInt(); int max=0; int minInput=0; for(int i=0;i<loop;i++){ int newNum=input.nextInt(); if(i==0){ minInput=newNum; max=newNum; } else if(i==1){ max=newNum-max; minInput= newNum<minInput ? newNum : minInput; } else{ max=newNum-minInput > max ? newNum-minInput : max; minInput= newNum<minInput ? newNum : minInput; } } System.out.println(max); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 18, 13, 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, 0, 13, 4, 18, 13, 13, 2, 18, 13, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 30, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 4, 18, 13, 13, 29, 4, 13, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 320, 23 ], [ 320, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 320, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 61, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 61, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 93, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 93, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 61, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 59, 125 ], [ 125, 126 ], [ 59, 127 ], [ 127, 128 ], [ 59, 129 ], [ 129, 130 ], [ 320, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 131, 135 ], [ 135, 136 ], [ 135, 137 ], [ 131, 139 ], [ 139, 140 ], [ 131, 141 ], [ 141, 142 ], [ 131, 143 ], [ 143, 144 ], [ 131, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 145, 153 ], [ 153, 154 ], [ 131, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 158, 163 ], [ 163, 164 ], [ 164, 165 ], [ 157, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 174, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 170, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 157, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 131, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 202, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 202, 216 ], [ 216, 217 ], [ 216, 218 ], [ 202, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 219, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 223, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 202, 232 ], [ 232, 233 ], [ 232, 234 ], [ 202, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 235, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 242, 246 ], [ 246, 247 ], [ 246, 248 ], [ 241, 249 ], [ 249, 250 ], [ 250, 251 ], [ 240, 252 ], [ 252, 253 ], [ 252, 254 ], [ 240, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 257, 259 ], [ 240, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 202, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 131, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 271, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 277, 280 ], [ 270, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 268, 285 ], [ 285, 286 ], [ 131, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 290, 291 ], [ 294, 292 ], [ 304, 293 ], [ 301, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 298, 299 ], [ 298, 300 ], [ 301, 301 ], [ 301, 302 ], [ 301, 303 ], [ 304, 304 ], [ 304, 305 ], [ 304, 306 ], [ 294, 307 ], [ 307, 308 ], [ 307, 309 ], [ 309, 310 ], [ 287, 311 ], [ 311, 312 ], [ 131, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 0, 319 ], [ 319, 320 ], [ 319, 321 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Vishal Burman\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int a[] = new int[n];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }\n out.println(max);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int a[] = new int[n];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }\n out.println(max);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "Task solver = new Task();", "solver", "new Task()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int a[] = new int[n];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }\n out.println(max);\n }\n\n }", "Task", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int a[] = new int[n];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }\n out.println(max);\n }", "solve", "{\n int n = in.nextInt();\n int a[] = new int[n];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }\n out.println(max);\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int a[] = new int[n];", "a", "new int[n]", "n", "int min = Integer.MAX_VALUE;", "min", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "int max = Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }", "{\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }", "a[i] = in.nextInt()", "a[i]", "a", "i", "in.nextInt()", "in.nextInt", "in", "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(a[i], min)", "min", "Math.min(a[i], min)", "Math.min", "Math", "a[i]", "a", "i", "min", "out.println(max)", "out.println", "out", "max", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private InputReader.SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "if (numChars == -1) {\n throw new InputMismatchException();\n }", "numChars == -1", "numChars", "-1", "1", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) {\n return -1;\n }", "numChars <= 0", "numChars", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "isSpaceChar", "{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "if (filter != null) {\n return filter.isSpaceChar(c);\n }", "filter != null", "filter", "null", "{\n return filter.isSpaceChar(c);\n }", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return isWhitespace(c);", "isWhitespace(c)", "isWhitespace", "c", "int c", "c", "public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isWhitespace", "{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int a[] = new int[n];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }\n out.println(max);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int a[] = new int[n];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n max = Math.max(max, a[i] - min);\n min = Math.min(a[i], min);\n }\n out.println(max);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Vishal Burman */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); Task solver = new Task(); solver.solve(1, in, out); out.close(); } static class Task { public void solve(int testNumber, InputReader in, PrintWriter out) { int n = in.nextInt(); int a[] = new int[n]; int min = Integer.MAX_VALUE; int max = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { a[i] = in.nextInt(); max = Math.max(max, a[i] - min); min = Math.min(a[i], min); } out.println(max); } } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private InputReader.SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) { throw new InputMismatchException(); } if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) { return -1; } } return buf[curChar++]; } public int nextInt() { int c = read(); while (isSpaceChar(c)) { c = read(); } int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') { throw new InputMismatchException(); } res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) { return filter.isSpaceChar(c); } return isWhitespace(c); } public static boolean isWhitespace(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 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, 41, 13, 4, 18, 13, 0, 18, 13, 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 ], [ 108, 5 ], [ 108, 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 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 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 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 70, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 8, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint number[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}\n\t\tint min = number[0];\n\t\tint max = number[1] - number[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint number[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}\n\t\tint min = number[0];\n\t\tint max = number[1] - number[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint number[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}\n\t\tint min = number[0];\n\t\tint max = number[1] - number[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint number[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}\n\t\tint min = number[0];\n\t\tint max = number[1] - number[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int number[] = new int[n];", "number", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}", "{\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}", "int x = scanner.nextInt();", "x", "scanner.nextInt()", "scanner.nextInt", "scanner", "number[i] = x", "number[i]", "number", "i", "x", "int min = number[0];", "min", "number[0]", "number", "0", "int max = number[1] - number[0];", "max", "number[1] - number[0]", "number[1]", "number", "1", "number[0]", "number", "0", "for (int i = 1; i < n; i++) {\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[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 < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\n\t\t\t}\n\t\t}", "{\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\n\t\t\t}\n\t\t}", "if (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}", "max < number[i] - min", "max", "number[i] - min", "number[i]", "number", "i", "min", "{\n\t\t\t\tmax = number[i] - min;\n\t\t\t}", "max = number[i] - min", "max", "number[i] - min", "number[i]", "number", "i", "min", "if (min > number[i]) {\n\t\t\t\tmin = number[i];\n\t\t\t}", "min > number[i]", "min", "number[i]", "number", "i", "{\n\t\t\t\tmin = number[i];\n\t\t\t}", "min = number[i]", "min", "number[i]", "number", "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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint number[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}\n\t\tint min = number[0];\n\t\tint max = number[1] - number[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint number[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scanner.nextInt();\n\t\t\tnumber[i] = x;\n\t\t}\n\t\tint min = number[0];\n\t\tint max = number[1] - number[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max < number[i] - min) {\n\t\t\t\tmax = number[i] - min;\n\t\t\t}\n\t\t\tif (min > number[i]) {\n\t\t\t\tmin = number[i];\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 scanner = new Scanner(System.in); int n = scanner.nextInt(); int number[] = new int[n]; for (int i = 0; i < n; i++) { int x = scanner.nextInt(); number[i] = x; } int min = number[0]; int max = number[1] - number[0]; for (int i = 1; i < n; i++) { if (max < number[i] - min) { max = number[i] - min; } if (min > number[i]) { min = number[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, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 18, 13, 13, 0, 18, 13, 17, 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, 18, 13, 13, 4, 18, 13, 0, 13, 18, 13, 13, 14, 2, 13, 2, 13, 13, 30, 0, 13, 2, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 117, 20 ], [ 117, 21 ], [ 21, 22 ], [ 117, 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 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 25, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 25, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 25, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 25, 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 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 71, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 71, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 71, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 25, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 23, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "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\tint maxAns = Integer.MIN_VALUE;\n\t\t\n\t\tlist[0] = stdIn.nextInt();\n\t\tint min = list[0];\n\t\tint max = -2000000000;\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(maxAns);\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\tint maxAns = Integer.MIN_VALUE;\n\t\t\n\t\tlist[0] = stdIn.nextInt();\n\t\tint min = list[0];\n\t\tint max = -2000000000;\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(maxAns);\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\tint maxAns = Integer.MIN_VALUE;\n\t\t\n\t\tlist[0] = stdIn.nextInt();\n\t\tint min = list[0];\n\t\tint max = -2000000000;\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(maxAns);\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\tint maxAns = Integer.MIN_VALUE;\n\t\t\n\t\tlist[0] = stdIn.nextInt();\n\t\tint min = list[0];\n\t\tint max = -2000000000;\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(maxAns);\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", "int maxAns = Integer.MIN_VALUE;", "maxAns", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "list[0] = stdIn.nextInt()", "list[0]", "list", "0", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int min = list[0];", "min", "list[0]", "list", "0", "int max = -2000000000;", "max", "-2000000000", "2000000000", "for(int i = 1; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "{\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "list[i] = stdIn.nextInt()", "list[i]", "list", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "max = list[i]", "max", "list[i]", "list", "i", "if(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}", "maxAns < max - min", "maxAns", "max - min", "max", "min", "{\n\t\t\t\tmaxAns = max - min;\n\t\t\t}", "maxAns = max - min", "maxAns", "max - min", "max", "min", "if(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}", "min > list[i]", "min", "list[i]", "list", "i", "{\n\t\t\t\tmin = list[i];\n\t\t\t}", "min = list[i]", "min", "list[i]", "list", "i", "System.out.println(maxAns)", "System.out.println", "System.out", "System", "System.out", "maxAns", "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\tint maxAns = Integer.MIN_VALUE;\n\t\t\n\t\tlist[0] = stdIn.nextInt();\n\t\tint min = list[0];\n\t\tint max = -2000000000;\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(maxAns);\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\tint maxAns = Integer.MIN_VALUE;\n\t\t\n\t\tlist[0] = stdIn.nextInt();\n\t\tint min = list[0];\n\t\tint max = -2000000000;\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tlist[i] = stdIn.nextInt();\n\t\t\tmax = list[i];\n\t\t\tif(maxAns < max - min) {\n\t\t\t\tmaxAns = max - min;\n\t\t\t}\n\t\t\tif(min > list[i]) {\n\t\t\t\tmin = list[i];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(maxAns);\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]; int maxAns = Integer.MIN_VALUE; list[0] = stdIn.nextInt(); int min = list[0]; int max = -2000000000; for(int i = 1; i < n; i++) { list[i] = stdIn.nextInt(); max = list[i]; if(maxAns < max - min) { maxAns = max - min; } if(min > list[i]) { min = list[i]; } } System.out.println(maxAns); } }
[ 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, 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, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 110, 11 ], [ 110, 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 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 14, 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 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 110, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 101, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tvoid run() throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tint[] number = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint maxv = -1000000000;\n\t\tint minv = number[0];\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tnew Main().run();\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\tvoid run() throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tint[] number = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint maxv = -1000000000;\n\t\tint minv = number[0];\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tnew Main().run();\n\t}\n}", "Main", "void run() throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tint[] number = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint maxv = -1000000000;\n\t\tint minv = number[0];\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}", "run", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tint[] number = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint maxv = -1000000000;\n\t\tint minv = number[0];\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], 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[] number = new int[N];", "number", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t\tnumber[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\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}", "{\n\t\t\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}", "number[i] = Integer.parseInt(br.readLine())", "number[i]", "number", "i", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int maxv = -1000000000;", "maxv", "-1000000000", "1000000000", "int minv = number[0];", "minv", "number[0]", "number", "0", "for (int i = 1; i < N; i++) {\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\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, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\n\t\t}", "{\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\n\t\t}", "maxv = Math.max(maxv, number[i] - minv)", "maxv", "Math.max(maxv, number[i] - minv)", "Math.max", "Math", "maxv", "number[i] - minv", "number[i]", "number", "i", "minv", "minv = Math.min(number[i], minv)", "minv", "Math.min(number[i], minv)", "Math.min", "Math", "number[i]", "number", "i", "minv", "System.out.println(maxv)", "System.out.println", "System.out", "System", "System.out", "maxv", "public static void main(String[] args) throws IOException {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\n\tvoid run() throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tint[] number = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint maxv = -1000000000;\n\t\tint minv = number[0];\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\n\tvoid run() throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tint[] number = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tnumber[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tint maxv = -1000000000;\n\t\tint minv = number[0];\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tmaxv = Math.max(maxv, number[i] - minv); \n\t\t\tminv = Math.min(number[i], minv);\n\t\t}\n\t\tSystem.out.println(maxv);\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { void run() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int[] number = new int[N]; for (int i = 0; i < N; i++) { number[i] = Integer.parseInt(br.readLine()); } int maxv = -1000000000; int minv = number[0]; for (int i = 1; i < N; i++) { maxv = Math.max(maxv, number[i] - minv); minv = Math.min(number[i], minv); } System.out.println(maxv); } public static void main(String[] args) throws IOException { new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 41, 13, 41, 13, 40, 13, 41, 13, 13, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 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 ], [ 77, 9 ], [ 9, 10 ], [ 9, 11 ], [ 77, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 14, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 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 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 46, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 14, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 12, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tN = scanner.nextInt();\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tN = scanner.nextInt();\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tN = scanner.nextInt();\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}", "main", "{\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tN = scanner.nextInt();\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}", "int N", "N", "tmp", "tmp", "maximum = -BIG_NUM", "maximum", "-BIG_NUM", "BIG_NUM", "minimum = BIG_NUM;", "minimum", "BIG_NUM", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "N = scanner.nextInt()", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "for(int loop = 0; loop < N; loop++){\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}", "int loop = 0;", "int loop = 0;", "loop", "0", "loop < N", "loop", "N", "loop++", "loop++", "loop", "{\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}", "{\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}", "tmp = scanner.nextInt()", "tmp", "scanner.nextInt()", "scanner.nextInt", "scanner", "maximum = Math.max(maximum, tmp-minimum)", "maximum", "Math.max(maximum, tmp-minimum)", "Math.max", "Math", "maximum", "tmp-minimum", "tmp", "minimum", "minimum = Math.min(minimum, tmp)", "minimum", "Math.min(minimum, tmp)", "Math.min", "Math", "minimum", "tmp", "System.out.println(maximum)", "System.out.println", "System.out", "System", "System.out", "maximum", "String[] args", "args", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tN = scanner.nextInt();\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tN = scanner.nextInt();\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\ttmp = scanner.nextInt();\n\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\tminimum = Math.min(minimum, tmp);\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { int N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM; Scanner scanner = new Scanner(System.in); N = scanner.nextInt(); for(int loop = 0; loop < N; loop++){ tmp = scanner.nextInt(); maximum = Math.max(maximum, tmp-minimum); minimum = Math.min(minimum, tmp); } System.out.println(maximum); } }
[ 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 92, 5 ], [ 92, 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 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 62, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint min = a[0];\n\t\tint ans = -1001001001;\n\t\tfor(int i = 1 ; i < n ; i++) {\n\t\t\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint min = a[0];\n\t\tint ans = -1001001001;\n\t\tfor(int i = 1 ; i < n ; i++) {\n\t\t\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\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[] a = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint min = a[0];\n\t\tint ans = -1001001001;\n\t\tfor(int i = 1 ; i < n ; i++) {\n\t\t\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\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[] a = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint min = a[0];\n\t\tint ans = -1001001001;\n\t\tfor(int i = 1 ; i < n ; i++) {\n\t\t\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\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[] a = new int[n];", "a", "new int[n]", "n", "for(int i = 0 ; i < n ; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t}", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "int min = a[0];", "min", "a[0]", "a", "0", "int ans = -1001001001;", "ans", "-1001001001", "1001001001", "for(int i = 1 ; i < n ; i++) {\n\t\t\tans = Math.max(ans, 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\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t}", "{\n\t\t\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t}", "ans = Math.max(ans, a[i] - min)", "ans", "Math.max(ans, a[i] - min)", "Math.max", "Math", "ans", "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(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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint min = a[0];\n\t\tint ans = -1001001001;\n\t\tfor(int i = 1 ; i < n ; i++) {\n\t\t\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint min = a[0];\n\t\tint ans = -1001001001;\n\t\tfor(int i = 1 ; i < n ; i++) {\n\t\t\tans = Math.max(ans, a[i] - min);\n\t\t\tmin = Math.min(min, a[i]);\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[] a = new int[n]; for(int i = 0 ; i < n ; i++) { a[i] = sc.nextInt(); } int min = a[0]; int ans = -1001001001; for(int i = 1 ; i < n ; i++) { ans = Math.max(ans, a[i] - min); min = Math.min(min, a[i]); } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 13, 9, 41, 13, 2, 13, 13, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 96, 11 ], [ 96, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 44, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 44, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 44, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 44, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 14, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 12, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "\nimport java.io.IOException;\nimport java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\n\n int loopCount = Integer.parseInt(scanner.next());\n Integer cheaper = null;\n Integer maximum = null;\n for (int i = 0; i < loopCount; i++) {\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }\n\n System.out.println(maximum);\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\n\n int loopCount = Integer.parseInt(scanner.next());\n Integer cheaper = null;\n Integer maximum = null;\n for (int i = 0; i < loopCount; i++) {\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }\n\n System.out.println(maximum);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\n\n int loopCount = Integer.parseInt(scanner.next());\n Integer cheaper = null;\n Integer maximum = null;\n for (int i = 0; i < loopCount; i++) {\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }\n\n System.out.println(maximum);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int loopCount = Integer.parseInt(scanner.next());\n Integer cheaper = null;\n Integer maximum = null;\n for (int i = 0; i < loopCount; i++) {\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }\n\n System.out.println(maximum);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int loopCount = Integer.parseInt(scanner.next());", "loopCount", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "Integer cheaper = null;", "cheaper", "null", "Integer maximum = null;", "maximum", "null", "for (int i = 0; i < loopCount; i++) {\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < loopCount", "i", "loopCount", "i++", "i++", "i", "{\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }", "{\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }", "int current = Integer.parseInt(scanner.next());", "current", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "if (i == 0) {\n cheaper = current;\n continue;\n }", "i == 0", "i", "0", "{\n cheaper = current;\n continue;\n }", "cheaper = current", "cheaper", "current", "continue;", "int diff = current - cheaper;", "diff", "current - cheaper", "current", "cheaper", "if (maximum == null || diff > maximum) {\n maximum = diff;\n }", "maximum == null || diff > maximum", "maximum == null", "maximum", "null", "diff > maximum", "diff", "maximum", "{\n maximum = diff;\n }", "maximum = diff", "maximum", "diff", "if (current < cheaper) {\n cheaper = current;\n }", "current < cheaper", "current", "cheaper", "{\n cheaper = current;\n }", "cheaper = current", "cheaper", "current", "System.out.println(maximum)", "System.out.println", "System.out", "System", "System.out", "maximum", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\n\n int loopCount = Integer.parseInt(scanner.next());\n Integer cheaper = null;\n Integer maximum = null;\n for (int i = 0; i < loopCount; i++) {\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }\n\n System.out.println(maximum);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\n\n int loopCount = Integer.parseInt(scanner.next());\n Integer cheaper = null;\n Integer maximum = null;\n for (int i = 0; i < loopCount; i++) {\n int current = Integer.parseInt(scanner.next());\n if (i == 0) {\n cheaper = current;\n continue;\n }\n\n int diff = current - cheaper;\n if (maximum == null || diff > maximum) {\n maximum = diff;\n }\n if (current < cheaper) {\n cheaper = current;\n }\n }\n\n System.out.println(maximum);\n }\n}", "Main" ]
import java.io.IOException; import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int loopCount = Integer.parseInt(scanner.next()); Integer cheaper = null; Integer maximum = null; for (int i = 0; i < loopCount; i++) { int current = Integer.parseInt(scanner.next()); if (i == 0) { cheaper = current; continue; } int diff = current - cheaper; if (maximum == null || diff > maximum) { maximum = diff; } if (current < cheaper) { cheaper = current; } } System.out.println(maximum); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 41, 13, 41, 13, 40, 13, 41, 13, 13, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 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 ], [ 103, 11 ], [ 103, 12 ], [ 12, 13 ], [ 12, 14 ], [ 103, 15 ], [ 15, 16 ], [ 15, 17 ], [ 103, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 48, 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 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 69, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 20, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 18, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}", "main", "{\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}", "int N", "N", "tmp", "tmp", "maximum = -BIG_NUM", "maximum", "-BIG_NUM", "BIG_NUM", "minimum = BIG_NUM;", "minimum", "BIG_NUM", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t}", "N = Integer.parseInt(br.readLine())", "N", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}", "int loop = 0;", "int loop = 0;", "loop", "0", "loop < N", "loop", "N", "loop++", "loop++", "loop", "{\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}", "{\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}", "tmp = Integer.parseInt(br.readLine())", "tmp", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "maximum = Math.max(maximum, tmp-minimum)", "maximum", "Math.max(maximum, tmp-minimum)", "Math.max", "Math", "maximum", "tmp-minimum", "tmp", "minimum", "minimum = Math.min(minimum, tmp)", "minimum", "Math.min(minimum, tmp)", "Math.min", "Math", "minimum", "tmp", "System.out.println(maximum)", "System.out.println", "System.out", "System", "System.out", "maximum", "String[] args", "args", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(maximum);\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tN = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\ttmp = Integer.parseInt(br.readLine());\n\t\t\t\tmaximum = Math.max(maximum, tmp-minimum);\n\t\t\t\tminimum = Math.min(minimum, tmp);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\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 final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { int N,tmp,maximum = -BIG_NUM,minimum = BIG_NUM; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { N = Integer.parseInt(br.readLine()); for(int loop = 0; loop < N; loop++){ tmp = Integer.parseInt(br.readLine()); maximum = Math.max(maximum, tmp-minimum); minimum = Math.min(minimum, tmp); } } catch (NumberFormatException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } System.out.println(maximum); } }
[ 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, 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 ], [ 97, 5 ], [ 97, 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 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 67, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 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 public static void main(String[] args) throws Exception {\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++){\n a[i] = sc.nextLong();\n }\n long max = a[1] - a[0];\n long 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 System.out.println(max);\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n }\n long max = a[1] - a[0];\n long 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 System.out.println(max);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\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++){\n a[i] = sc.nextLong();\n }\n long max = a[1] - a[0];\n long 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 System.out.println(max);\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++){\n a[i] = sc.nextLong();\n }\n long max = a[1] - a[0];\n long 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 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", "long[] a = new long[n];", "a", "new long[n]", "n", "for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = sc.nextLong();\n }", "{\n a[i] = sc.nextLong();\n }", "a[i] = sc.nextLong()", "a[i]", "a", "i", "sc.nextLong()", "sc.nextLong", "sc", "long max = a[1] - a[0];", "max", "a[1] - a[0]", "a[1]", "a", "1", "a[0]", "a", "0", "long 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 }", "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 max = Math.max(max, a[i]-min);\n min = Math.min(min, a[i]);\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 public static void main(String[] args) throws Exception {\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++){\n a[i] = sc.nextLong();\n }\n long max = a[1] - a[0];\n long 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 System.out.println(max);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] a = new long[n];\n for(int i = 0; i < n; i++){\n a[i] = sc.nextLong();\n }\n long max = a[1] - a[0];\n long 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 System.out.println(max);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] a = new long[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextLong(); } long max = a[1] - a[0]; long 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, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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, 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, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 126, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 11, 33 ], [ 33, 34 ], [ 34, 35 ], [ 9, 36 ], [ 36, 37 ], [ 126, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 40, 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 ], [ 40, 90 ], [ 90, 91 ], [ 38, 92 ], [ 92, 93 ], [ 126, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 101, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 96, 121 ], [ 121, 122 ], [ 94, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint t = sc.nextInt();\n\t\tint[] R = inpNum(t);\n\n\t\tint mp = maxProfit(R);\n\t\tSystem.out.println(mp);\n\t\tsc.close();\n\t}\n\n\tprivate static int maxProfit(int[] R) {\n\t\tint max_p = R[1] - R[0];\n\t\tint min_p = R[0];\n\t\t\tfor(int j = 1; j < R.length; j++) {\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}\n\t\treturn max_p;\n\t}\n\n\tprivate static int[] inpNum(int n) {\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\treturn nums;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint t = sc.nextInt();\n\t\tint[] R = inpNum(t);\n\n\t\tint mp = maxProfit(R);\n\t\tSystem.out.println(mp);\n\t\tsc.close();\n\t}\n\n\tprivate static int maxProfit(int[] R) {\n\t\tint max_p = R[1] - R[0];\n\t\tint min_p = R[0];\n\t\t\tfor(int j = 1; j < R.length; j++) {\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}\n\t\treturn max_p;\n\t}\n\n\tprivate static int[] inpNum(int n) {\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\treturn nums;\n\t}\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\tint t = sc.nextInt();\n\t\tint[] R = inpNum(t);\n\n\t\tint mp = maxProfit(R);\n\t\tSystem.out.println(mp);\n\t\tsc.close();\n\t}", "main", "{\n\t\tint t = sc.nextInt();\n\t\tint[] R = inpNum(t);\n\n\t\tint mp = maxProfit(R);\n\t\tSystem.out.println(mp);\n\t\tsc.close();\n\t}", "int t = sc.nextInt();", "t", "sc.nextInt()", "sc.nextInt", "sc", "int[] R = inpNum(t);", "R", "inpNum(t)", "inpNum", "t", "int mp = maxProfit(R);", "mp", "maxProfit(R)", "maxProfit", "R", "System.out.println(mp)", "System.out.println", "System.out", "System", "System.out", "mp", "sc.close()", "sc.close", "sc", "String[] args", "args", "private static int maxProfit(int[] R) {\n\t\tint max_p = R[1] - R[0];\n\t\tint min_p = R[0];\n\t\t\tfor(int j = 1; j < R.length; j++) {\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}\n\t\treturn max_p;\n\t}", "maxProfit", "{\n\t\tint max_p = R[1] - R[0];\n\t\tint min_p = R[0];\n\t\t\tfor(int j = 1; j < R.length; j++) {\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}\n\t\treturn max_p;\n\t}", "int max_p = R[1] - R[0];", "max_p", "R[1] - R[0]", "R[1]", "R", "1", "R[0]", "R", "0", "int min_p = R[0];", "min_p", "R[0]", "R", "0", "for(int j = 1; j < R.length; j++) {\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < R.length", "j", "R.length", "R", "R.length", "j++", "j++", "j", "{\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}", "{\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}", "max_p = Math.max(max_p, R[j] - min_p)", "max_p", "Math.max(max_p, R[j] - min_p)", "Math.max", "Math", "max_p", "R[j] - min_p", "R[j]", "R", "j", "min_p", "min_p = Math.min(min_p, R[j])", "min_p", "Math.min(min_p, R[j])", "Math.min", "Math", "min_p", "R[j]", "R", "j", "return max_p;", "max_p", "int[] R", "R", "private static int[] inpNum(int n) {\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\treturn nums;\n\t}", "inpNum", "{\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\treturn nums;\n\t}", "int[] nums = new int[n];", "nums", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tnums[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tnums[i] = sc.nextInt();\n\t\t}", "nums[i] = sc.nextInt()", "nums[i]", "nums", "i", "sc.nextInt()", "sc.nextInt", "sc", "return nums;", "nums", "int n", "n", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint t = sc.nextInt();\n\t\tint[] R = inpNum(t);\n\n\t\tint mp = maxProfit(R);\n\t\tSystem.out.println(mp);\n\t\tsc.close();\n\t}\n\n\tprivate static int maxProfit(int[] R) {\n\t\tint max_p = R[1] - R[0];\n\t\tint min_p = R[0];\n\t\t\tfor(int j = 1; j < R.length; j++) {\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}\n\t\treturn max_p;\n\t}\n\n\tprivate static int[] inpNum(int n) {\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\treturn nums;\n\t}\n}", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint t = sc.nextInt();\n\t\tint[] R = inpNum(t);\n\n\t\tint mp = maxProfit(R);\n\t\tSystem.out.println(mp);\n\t\tsc.close();\n\t}\n\n\tprivate static int maxProfit(int[] R) {\n\t\tint max_p = R[1] - R[0];\n\t\tint min_p = R[0];\n\t\t\tfor(int j = 1; j < R.length; j++) {\n\t\t\t\t\tmax_p = Math.max(max_p, R[j] - min_p);\n\t\t\t\t\tmin_p = Math.min(min_p, R[j]);\n\t\t\t}\n\t\treturn max_p;\n\t}\n\n\tprivate static int[] inpNum(int n) {\n\t\tint[] nums = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnums[i] = sc.nextInt();\n\t\t}\n\t\treturn nums;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int t = sc.nextInt(); int[] R = inpNum(t); int mp = maxProfit(R); System.out.println(mp); sc.close(); } private static int maxProfit(int[] R) { int max_p = R[1] - R[0]; int min_p = R[0]; for(int j = 1; j < R.length; j++) { max_p = Math.max(max_p, R[j] - min_p); min_p = Math.min(min_p, R[j]); } return max_p; } private static int[] inpNum(int n) { int[] nums = new int[n]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } return nums; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 17, 41, 13, 13, 41, 13, 40, 17, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 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 ], [ 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 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 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 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 59, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 83, 99 ], [ 99, 100 ], [ 99, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 8, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 6, 120 ], [ 120, 121 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint max = b;\n\t\tint out = 0;\n\t\tint min = b;\n\t\tint sec = -1000000000;\n\t\tint thr = -1000000000;\n\t\tfor(int i = 1;i <= size - 1;i++){\n\t\t\tint num = sc.nextInt();\n\t\t\tif (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(sec < thr){\n\t\t\tout = thr;\n\t\t}else{\n\t\t\tout = sec;\n\t\t}\n\t\tSystem.out.println(out);\n\t}\n\t\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\tint size = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint max = b;\n\t\tint out = 0;\n\t\tint min = b;\n\t\tint sec = -1000000000;\n\t\tint thr = -1000000000;\n\t\tfor(int i = 1;i <= size - 1;i++){\n\t\t\tint num = sc.nextInt();\n\t\t\tif (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(sec < thr){\n\t\t\tout = thr;\n\t\t}else{\n\t\t\tout = sec;\n\t\t}\n\t\tSystem.out.println(out);\n\t}\n\t\n\t\n}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint max = b;\n\t\tint out = 0;\n\t\tint min = b;\n\t\tint sec = -1000000000;\n\t\tint thr = -1000000000;\n\t\tfor(int i = 1;i <= size - 1;i++){\n\t\t\tint num = sc.nextInt();\n\t\t\tif (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(sec < thr){\n\t\t\tout = thr;\n\t\t}else{\n\t\t\tout = sec;\n\t\t}\n\t\tSystem.out.println(out);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint size = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint max = b;\n\t\tint out = 0;\n\t\tint min = b;\n\t\tint sec = -1000000000;\n\t\tint thr = -1000000000;\n\t\tfor(int i = 1;i <= size - 1;i++){\n\t\t\tint num = sc.nextInt();\n\t\t\tif (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(sec < thr){\n\t\t\tout = thr;\n\t\t}else{\n\t\t\tout = sec;\n\t\t}\n\t\tSystem.out.println(out);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int size = sc.nextInt();", "size", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int max = b;", "max", "b", "int out = 0;", "out", "0", "int min = b;", "min", "b", "int sec = -1000000000;", "sec", "-1000000000", "1000000000", "int thr = -1000000000;", "thr", "-1000000000", "1000000000", "for(int i = 1;i <= size - 1;i++){\n\t\t\tint num = sc.nextInt();\n\t\t\tif (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}\n\t\t\t\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= size - 1", "i", "size - 1", "size", "1", "i++", "i++", "i", "{\n\t\t\tint num = sc.nextInt();\n\t\t\tif (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\tint num = sc.nextInt();\n\t\t\tif (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}\n\t\t\t\n\t\t}", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "if (max <= num){\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}else if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}", "max <= num", "max", "num", "{\n\t\t\t\tmax = num;\n\t\t\t\tif(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}\t\t\n\t\t\t}", "max = num", "max", "num", "if(sec < max - min){\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}", "sec < max - min", "sec", "max - min", "max", "min", "{\n\t\t\t\t\tsec = max - min;\n\t\t\t\t}", "sec = max - min", "sec", "max - min", "max", "min", "if(min > num){\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}", "min > num", "min", "num", "{\n\t\t\t\tmin = num;\n\t\t\t\tif(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}\n\t\t\t\tmax = num;\n\t\t\t}", "min = num", "min", "num", "if(thr < min - max){\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}", "thr < min - max", "thr", "min - max", "min", "max", "{\n\t\t\t\t\tthr = min - max;\n\t\t\t\t}", "thr = min - max", "thr", "min - max", "min", "max", "max = num", "max", "num", "if(sec < thr){\n\t\t\tout = thr;\n\t\t}else{\n\t\t\tout = sec;\n\t\t}", "sec < thr", "sec", "thr", "{\n\t\t\tout = thr;\n\t\t}", "out = thr", "out", "thr", "{\n\t\t\tout = sec;\n\t\t}", "out = sec", "out", "sec", "System.out.println(out)", "System.out.println", "System.out", "System", "System.out", "out", "String args[]", "args" ]
import java.util.*; class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int size = sc.nextInt(); int b = sc.nextInt(); int max = b; int out = 0; int min = b; int sec = -1000000000; int thr = -1000000000; for(int i = 1;i <= size - 1;i++){ int num = sc.nextInt(); if (max <= num){ max = num; if(sec < max - min){ sec = max - min; } }else if(min > num){ min = num; if(thr < min - max){ thr = min - max; } max = num; } } if(sec < thr){ out = thr; }else{ out = sec; } System.out.println(out); } }