import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) throws FileNotFoundException { long t = System.currentTimeMillis(); new Main().run(); System.err.println(System.currentTimeMillis() - t); } //plus>=1 long max(int[] val,int plus,int minus) { int n=val.length; long ret=0; if(minus==0) { for(int i=plus-1;i=1 long min(int[] val,int plus,int minus) { int n=val.length; long ret=0; if(minus==0) { int[] v=new int[plus]; for(int i=0;i