import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()){ //在输入的值不为空的情况下 int n = sc.nextInt(); //定义输入的值的个数 int k = sc.nextInt(); //定义要输出的个数 int ar...