#CCBCHBA0000005. Bước tăng cố định (Fixed Increment)
Bước tăng cố định (Fixed Increment)
Fixed Increment
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given integer bounds L<=R and positive step k, print L, L+k, ... without exceeding R. Bounds may be negative.
Input
Three integers L R k.
Output
One line of numbers separated by single spaces.
Subtasks
- Subtask 1 (20%): , .
- Subtask 2 (30%): , .
- Subtask 3 (50%): , .
Examples
Example 1
Input
2 9 3
Output
2 5 8
Explanation
The next candidate is 11>R.
Example 2
Input
-2 -2 5
Output
-2
Explanation
Equal endpoints yield one number.