#CCBCHBA0000006. Bước giảm cố định (Fixed Decrement)
Bước giảm cố định (Fixed Decrement)
Fixed Decrement
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given L<=R and positive k, print R,R-k,... while values remain at least L. The bounds may be negative.
Input
Three integers L R k.
Output
One line, with values separated by spaces.
Subtasks
- Subtask 1 (20%): , .
- Subtask 2 (30%): , .
- Subtask 3 (50%): , .
Examples
Example 1
Input
2 9 3
Output
9 6 3
Explanation
After 3 comes 0<L, so stop.
Example 2
Input
-4 -4 2
Output
-4
Explanation
Equal bounds produce one element.