Problem6243--鹦鹉学循环 4

6243: 鹦鹉学循环 4

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

学习完基础循环,鹦鹉变得更加聪明了。
你告诉鹦鹉两个个整数 $n,\ m$,鹦鹉就会从 $n$ 开始将 $n$ 到 $1$ 之间所有的差为 $m$ 整数说出来。

Input

两个整数 $n\ (2≤n≤3,000),\ m\ (1≤m≤10)$。

Output

一行包括若干个整数,每个整数之间用一个空格隔开。

Sample 1 Input

11 3

Sample 1 Output

11 8 5 2

Sample 2 Input

5 2

Sample 2 Output

5 3 1

Source/Category

C++语法 1.4.循环结构