Problem:


Score : 100 points

Problem Statement

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

Output

Print the necessary number of candies in total.

Sample Input 1

3

Sample Output 1

6

The answer is 1+2+3=6.

Sample Input 2

10

Sample Output 2

55

The sum of the integers from 1 to 10 is 55.

Sample Input 3

1

Sample Output 3

1

Only one child. The answer is 1 in this case.



Sample input:
3


Sample output:
6

Submission status: Accepted

Solution code:
n = int(input())

print(sum([i+1 for i in range(n)]))

Submission status: Accepted

Solution code:
N=int(input())
ans=0
for i in range(1,N+1):
    ans+=i
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
print(n*(1+n)//2)

Submission status: Accepted

Solution code:
N = int(input())
answer =int(N*(N+1)/2)

print(answer)

Submission status: Accepted

Solution code:
N = int(input())
print((N*(N+1))//2)

Submission status: Accepted

Solution code:
# 入力
N = int(input())

# totalの定義
total = 0

# ループ
while N > 0:
    total += N
    N -= 1
print(total)

Submission status: Accepted

Solution code:
n = int(input())
print(int(n * (n + 1) / 2))

Submission status: Accepted

Solution code:
print(sum(range(1, int(input()) + 1)))

Submission status: Accepted

Solution code:
n = int(input())

answer = int((n + 1) * n / 2)

print(answer)

Submission status: Accepted

Solution code:
number = int(input())

print(int((number + 1) * number / 2))

Submission status: Accepted

Solution code:
N = int(input())
print(sum(range(1, N +1)))

Submission status: Accepted

Solution code:
#子供の数を入力
child_num = int(input())

candy_num = int((child_num**2 + child_num) / 2)
print(candy_num)

Submission status: Accepted

Solution code:
N = int(input())
ans = 0
for i in range(1,N+1):
    ans+=i
print(ans)

Submission status: Accepted

Solution code:
# 入力
N = int(input())

# 処理
total = 0
for i in range(1, N+1):
    total = total + i

# 出力
print(total)

Submission status: Accepted

Solution code:
N=int(input())

a=int(N*(N+1)/2)

print(a)

Submission status: Accepted

Solution code:
N = int(input())

s = 0
for i in range(1, N+1):
    s = s + i
    
print(s)

Submission status: Accepted

Solution code:
N=int(input())
print(int(1/2*(N+1)*N))

Submission status: Accepted

Solution code:
N = int(input())
x = int(((N + 1) * N / 2))
print(x)

Submission status: Accepted

Solution code:
N = int(input())

row = list(range(1, N+1, 1))

total_candy = sum(row)
print(total_candy)

Submission status: Accepted

Solution code:
N=int(input())

total=0
for i in range(N):
    i+=1
    total+=i
print(total)

Submission status: Accepted

Solution code:
number = int(input())

print(int((number + 1)*number/2))

Submission status: Accepted

Solution code:
child_num = input()
child_num = int(child_num)
candy_num = int((child_num**2 + child_num) / 2)
print(candy_num)

Submission status: Accepted

Solution code:
n = input()
n = int(n)
sum = (n**2 + n) / 2
print(int(sum))

Submission status: Accepted

Solution code:
N=int(input())

answer=int(N*(N+1)/2)

print(answer)

Submission status: Accepted

Solution code:
a = 0
for i in range(1, int(input())+1):
    a += i
print(a)

Submission status: Accepted

Solution code:
# 043A

N = int(input())

answer = int(1/2 * N * (N + 1))

print(answer)

Submission status: Accepted

Solution code:
# A - キャンディーとN人の子供イージー
# N+(N-1)+....

# 子供の人数を入力
child_number = int(input())
# print(child_number)

# 計算
answer = int(child_number * (child_number + 1) / 2)

# 表示
print(answer)

Submission status: Accepted

Solution code:
num_of_children = int(input())
total_candy = 0

for i in range(1, num_of_children +1):
    total_candy = total_candy + i

print(total_candy)

Submission status: Accepted

Solution code:
N = int(input())
ans = (N+1)* N // 2
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
answer = 0
while not N == 0 :
    answer += N
    N -= 1
else :
    print(answer)

Submission status: Accepted

Solution code:
n = int(input())

print(int((n * (n + 1)) / 2))

Submission status: Accepted

Solution code:
n=int(input())
ans=0
for num in range(1,n+1):
    ans+=num
print(ans)

Submission status: Accepted

Solution code:
n=int(input())
ans=0
for i in range(1,n+1):
    ans+=i
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
print(n * (n+1) // 2)

Submission status: Accepted

Solution code:
n = int(input())

ans = 0
for i in range(1, n+1):
    ans += i

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
x = (n * (n + 1)) // 2
#dsafasdfasdfasdfsadfsadfasldfjasdklfasdkfjhasdkjfhaskldjfhsakjdfhsalkdfhasdkfjhsad
print(x)

Submission status: Accepted

Solution code:
n = int(input())
print((n * (n + 1)) // 2)

Submission status: Accepted

Solution code:
N = int(input())
ans = 0
for i in range(1, N+1):
    ans += i
print(ans)

Submission status: Accepted

Solution code:
N=int(input())
print(N*(N+1)//2)

Submission status: Accepted

Solution code:
n = int(input())
a = 0
for i in range(1, n+1):
  a += i
print(a)

Submission status: Accepted

Solution code:
n=int(input())
print(int((1+n)/2*n))

Submission status: Accepted

Solution code:
n = int(input())
print(n * (n + 1) // 2)

Submission status: Accepted

Solution code:
N = input()
N = int(N)

i=1
j=0
while i < N+1:
    j += i
    i += 1
print(j)

Submission status: Accepted

Solution code:
n = int(input())
ans = 0
for i in range(n):
    ans += i + 1
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
ans = 0
for i in range(1, n+1):
    ans += i
print(ans)

Submission status: Accepted

Solution code:
print(sum([i for i in range(1, int(input())+1)]))

Submission status: Accepted

Solution code:
n = int(input())
r = 0
while n!=0:
  r = r+n
  n-=1
print(r)

Submission status: Accepted

Solution code:
child=int(input())

sum=0
for num in range(1, child+1):
    sum= sum + num
print(sum)

Submission status: Accepted

Solution code:
# A - キャンディーとN人の子供イージー
def main():
    n = int(input())
    cnt = 0

    for i in range(1, n+1):
        cnt += i
    else:
        print(cnt)
 
    
if __name__ ==  "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())
num = 0
for i in range(1,n+1):
    num += i
print(num)

Submission status: Accepted

Solution code:
n = int(input())
print( n*(n+1)//2 )

Submission status: Accepted

Solution code:
N = int(input())
ans = 0
for i in range(N):
    ans += i + 1
print(ans)

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    total = [i for i in range(1, N+1)]
    print(sum(total))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N=int(input())

total=0

for i in range(1,N+1):
    total+=i

print(total)

Submission status: Accepted

Solution code:
a = int(input())
n = 0
for i in range(1,a+1):
    n += i
print(n)

Submission status: Accepted

Solution code:
s=int(input())

print(int(s*(s+1)/2))

Submission status: Accepted

Solution code:
import math
N=int(input())
sum=0
for I in range(1,N+1):
    sum= sum+ I
print(sum)

Submission status: Accepted

Solution code:
s = int(input())
t = 0
for i in range(s):
	t += i + 1
print(t)

Submission status: Accepted

Solution code:
n = int(input())

total = 0

for i in range(n+1):
    total += i

print(total)

Submission status: Accepted

Solution code:
N = int(input())
ans = 0

for i in range(1, N+1):
    ans += i
    
print(ans)

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]


n = int(input())

ans = 0
for i in range(1,n+1):
    ans += i
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
a = 0
for i in range(1,n+1):
  a += i
print(a)

Submission status: Accepted

Solution code:
n = int(input())
print(int(n*(n+1)/2))

Submission status: Accepted

Solution code:
n = int(input())

ans = int(n * (1 + n) / 2)
print(ans)

Submission status: Accepted

Solution code:
n=int(input())
print(n*(n+1)//2)

Submission status: Accepted

Solution code:
n = int(input())
a = 0
b = 0
for i in range(n):
    a += 1
    b += a
print(b)

Submission status: Accepted

Solution code:
print(sum(list(range(1, int(input())+1))))

Submission status: Accepted

Solution code:
N = int(input())
sum = 0
for i in range(1, N+1):
    sum += i
print(sum)

Submission status: Accepted

Solution code:
N = int(input())
sum = 0

for i in range(N):
    sum += i+1

print(sum)

Submission status: Accepted

Solution code:

N = int(input())
s = 0

for i in range(N):
    s += i+1

print(s)

Submission status: Accepted

Solution code:
N = int(input())
print( N * (N + 1) // 2)

Submission status: Accepted

Solution code:
N = int(input())
ans = N*(N+1)/2
print(int(ans))

Submission status: Accepted

Solution code:
print(sum(range(1, int(input())+1)))

Submission status: Accepted

Solution code:
n = int(input())
ans = n * (n+1) // 2
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
s = 0
i = 1
while i <= N:
  s = s + i
  i += 1
print(s)

Submission status: Accepted

Solution code:
N = int(input())
print(sum([i for i in range(1, N + 1)]))

Submission status: Accepted

Solution code:
def main():
    n = int(input())
    ans = 0
    for i in range(1, n+1):
        ans += i
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from sys  import stdin,stdout

import bisect

import math

def st():
    return list(stdin.readline().strip())

def inp():
    return int(stdin.readline())

def li():
    return list(map(int,stdin.readline().split()))

def mp():
    return map(int,stdin.readline().split())

def pr(n):
    stdout.write(str(n)+"\n")

def soe(limit):
    l=[1]*(limit+1)
    prime=[]
    for i in range(2,limit+1):
        if l[i]:
            for j in range(i*i,limit+1,i):
                l[j]=0

    for i in range(2,limit+1):
        if l[i]:
            prime.append(i)
    return prime

def segsoe(low,high):
    limit=int(high**0.5)+1
    prime=soe(limit)
    n=high-low+1
    l=[0]*(n+1)
    for i in range(len(prime)):
        lowlimit=(low//prime[i])*prime[i]
        if lowlimit<low:
            lowlimit+=prime[i]
        if lowlimit==prime[i]:
            lowlimit+=prime[i]
        for j in range(lowlimit,high+1,prime[i]):
            l[j-low]=1
    for i in range(low,high+1):
        if not l[i-low]:
            if i!=1:
                print(i)
                
def gcd(a,b):
    while b:
        a=a%b
        b,a=a,b
    return a

def power(a,n):
    r=1
    while n:
        if n&1:
            r=(r*a)
        a*=a
        n=n>>1
    return r

def check(n,s):
    v=str(n)
    for i in v:
        if i in s:
            return False
    return True
    

    
def solve():
    n=inp()
    a=n*(n+1)//2
    pr(a)

        
        

for _ in range(1):
    solve()

Submission status: Accepted

Solution code:
N = int(input())
print(int((N+1)*N/2))

Submission status: Accepted

Solution code:
val1=int(input())
print(int(val1*(val1+1)/2))

Submission status: Accepted

Solution code:
n = int(input())
print(int((n+1)*n/2))

Submission status: Accepted

Solution code:
n = int(input())
sum = 0

for i in range(1,n+1):
  sum += i
print(sum)

Submission status: Accepted

Solution code:
x = int(input())
out=[]
for i in range(0,x):
    out.append(i+1)
print(sum(out))

Submission status: Accepted

Solution code:
import math
import collections
import fractions
import itertools
import functools
import operator

def solve():
    n = int(input())
    print((n*(n+1))//2)
    return 0

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
n=int(input())
s=n*(n+1)/2
print(int(s))

Submission status: Accepted

Solution code:
inp=int(input())
print(int(inp*(inp+1)/2))

Submission status: Accepted

Solution code:
num = int(input())
s = 0
for i in range(num):
  s += (i+1)
  
print(s)

Submission status: Accepted

Solution code:
n=int(input())
i=0
while n > 0:
   i+=n
   n-=1
print(i)

Submission status: Accepted

Solution code:
n = int(input())
a = 0
while n > 0:
    a += n
    n -= 1
print(a)

Submission status: Accepted

Solution code:
def main():
  n=int(input())
  print(int(n*(n+1)/2))
  
  
if __name__=='__main__':
  main()

Submission status: Accepted

Solution code:
n = int(input())
count = 0
for i in range(n):
  count += i + 1
print(count)

Submission status: Accepted

Solution code:
n = int(input())
ans = 0
for i in range(n + 1):
    ans += i
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
total = 0
for num in range(n+1):
  total = total + num
print(total)

Submission status: Accepted

Solution code:
N = int(input())

r = 0

for i in range(1, N + 1):
    r += i

print(r)

Submission status: Accepted

Solution code:
n = int(input())

mylist = 0
for num in range(n+1):
    mylist = mylist + num
print(mylist)

Submission status: Accepted

Solution code:
sum = 0
for i in range(1,int(input())+1):
    sum += i
print(sum)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

def main():

    N = int(input())
    ans = 0

    for i in range(N + 1):
        ans = ans + i

    print(ans)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
def I(): return int(sys.stdin.readline().rstrip())

N = I()
print(N*(N+1)//2)