Children and Candies (ABC Edit)

AtCoder
IDabc043_a
Time2000ms
Memory256MB
Difficulty
There are $N$ children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give $1$ candy to the first child in the line, $2$ candies to the second child, ..., $N$ candies to the $N$\-th child. How many candies will be necessary in total? ## Constraints * $1≦N≦100$ ## Input The input is given from Standard Input in the following format: $N$ [samples]
Samples
Input #1
3
Output #1
6

The answer is $1+2+3=6$.
Input #2
10
Output #2
55

The sum of the integers from $1$ to $10$ is $55$.
Input #3
1
Output #3
1

Only one child. The answer is $1$ in this case.
API Response (JSON)
{
  "problem": {
    "name": "Children and Candies (ABC Edit)",
    "description": {
      "content": "There are $N$ children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give $1$ candy to the first child in the line, $2$ candies to the second child, ..., $N$ candies to th",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc043_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "There are $N$ children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give $1$ candy to the first child in the line, $2$ candies to the second child, ..., $N$ candies to th...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments