输入不写了,主要看代码逻辑 public class Main { public static void main(String[] args) { int n = 30; int m = 4; int[] v = new int[]{2,1,3,1}; int i = 0; int j = 0; int k = 1; int q = 0; int[] res = new int[200]; res[0] = v[0]; ...