import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; 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); } Scanner sc = new Scanner(); void run() { int N=sc.nextInt(); int K=sc.nextInt(); long[] a=new long[N]; for(int i=0;i gap=new ArrayList<>(); for(int i=0;i