Arithmetic Sequence


Submit solution

Points: 10
Time limit: 3.0s
Memory limit: 100M

Authors:
Problem type

給你一個等差數列的首項、大於等於末項的最小整數、公差,請輸出這個等差數列。

輸入只有一行,包含首項、大於等於末項的最小整數、公差等三個整數。輸入資料的公差一定大於等於1。

輸出等差數列,每兩項之間以空白隔開。

輸入限制: 數字

Sample Input1

1 9 2

Sample Output1

1 3 5 7 9

Sample Input2

-5 5 3

Sample Output2

-5 -2 1 4

Sample Input3

0 2 2

Sample Output3

0 2

Sample Input4

0 0 1

Sample Output4

0

Comments

There are no comments at the moment.