#abc340a. A - Arithmetic Progression
A - Arithmetic Progression
Score: points
问题描述
打印一个首项为 、末项为 、公差为 的等差数列。
请注意,仅当存在满足条件的等差数列时才会提供输入。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Print an arithmetic sequence with first term , last term , and common difference .
You are only given inputs for which such an arithmetic sequence exists.
Constraints
- There is an arithmetic sequence with first term , last term , and common difference .
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the terms of the arithmetic sequence with first term , last term , and common difference , in order, separated by spaces.
Sample Input 1
3 9 2
Sample Output 1
3 5 7 9
The arithmetic sequence with first term , last term , and common difference is .
Sample Input 2
10 10 1
Sample Output 2
10
The arithmetic sequence with first term , last term , and common difference is .
update @ 2024/3/10 01:32:22