import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } long f(long[] A,long[] B,long x) { int n=A.length; long INF=Long.MAX_VALUE; long ret=INF,max=-INF,min=INF; for(int i=0;if(left+1) //f(right)<=f(right+1) long left=0,right=(long)1e9; while(right-left>1) { long middle=(right+left)/2; if(f(A,B,middle)<=f(A,B,middle+1)) { right=middle; }else { left=middle; } } System.out.println(right); } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }