import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner aScanner = new Scanner(System.in); int n= aScanner.nextInt(); //读第一个 long a[] = new long[n]; //存放数组 long b[] = new long[n]; //备用数组…
import java.util.Scanner; public class _1区间K大数查询 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n= scanner.nextInt(); int[] shuzu = new int[n]; for (int i = 0; i < shuzu.length; i++) { shuzu[i] = scanner.next…