不负相思意
int a = 50;
int b = 12;
int n = (int)(Math.ceil(1.0 * a / b));
int[] d = IntStream.range(0, n).map(idx -> Math.min(b, a - b * idx)).toArray();