import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { private static FastScanner sc = new FastScanner(); public static void main(String[] args) { int n = sc.nextInt(); long[] A = new long[n]; long[] B = new long[n]; for(int i=0; i>j & 1) == 1) { left[i] += A[j]; } else { left[i] += B[j]; } } System.out.println(left[i]); } long[] right = new long[1<>j & 1) == 1) { right[i] += A[ln + j]; } else { right[i] += B[ln + j]; } } } Arrays.sort(right); for(int i=0; i<(1<