Arithmetic Progression

AtCoder
IDabc340_a
Time2000ms
Memory256MB
Difficulty
Print an arithmetic sequence with first term $A$, last term $B$, and common difference $D$. You are only given inputs for which such an arithmetic sequence exists. ## Constraints * $1 \leq A \leq B \leq 100$ * $1 \leq D \leq 100$ * There is an arithmetic sequence with first term $A$, last term $B$, and common difference $D$. * All input values are integers. ## Input The input is given from Standard Input in the following format: $A$ $B$ $D$ [samples]
Samples
Input #1
3 9 2
Output #1
3 5 7 9

The arithmetic sequence with first term $3$, last term $9$, and common difference $2$ is $(3,5,7,9)$.
Input #2
10 10 1
Output #2
10

The arithmetic sequence with first term $10$, last term $10$, and common difference $1$ is $(10)$.
API Response (JSON)
{
  "problem": {
    "name": "Arithmetic Progression",
    "description": {
      "content": "Print an arithmetic sequence with first term $A$, last term $B$, and common difference $D$. You are only given inputs for which such an arithmetic sequence exists.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc340_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Print an arithmetic sequence with first term $A$, last term $B$, and common difference $D$.\nYou are only given inputs for which such an arithmetic sequence exists.\n\n## Constraints\n\n*   $1 \\leq A \\leq ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments