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(int(((1 + n) * n) / 2))

Submission status: Accepted

Solution code:
a = input()

sum = 0
for i in range(int(a)):
    sum += i + 1

print(sum)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
count=0
for i in range (N):
    count+=i+1
print (count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def sigma(n):
    if int(n) > 0:
        return int(n) + sigma(int(n)-1)
    return 0

  
import sys
N  = sys.stdin.readline().rstrip()

print(sigma(N))

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())
c=0
for i in range(1,n+1):
    c += i

print(c)

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 calc(n):
	return n*(n+1)/2

print calc(int(raw_input()))

Submission status: Accepted

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

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    n = int(input())
    candy_count = 0

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

    print(candy_count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

print(np.sum(range(int(input()) + 1)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import io


def run(input: io.TextIOBase, output: io.TextIOBase):
    n = int(input.readline())
    r = 0
    for i in range(1, n + 1):
        r += i
    output.write(str(r) + '\n')


if __name__ == '__main__':
    run(sys.stdin, sys.stdout)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

n = int(arr_data[0][0])


cnt=0

while n>0:
    
    cnt+=n
    n-=1
    
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

print(num)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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)*0.5))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

n = int(input())

if n == 1:
    print(1)
elif n % 2 == 0:
    print((1 + n) * math.floor(n/2))
else:
    print((1 + n) * math.floor(n/2) + math.ceil(n/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc043/tasks/abc043_a

"""
import sys
from sys import stdin
input = stdin.readline


def solve(N):
    return (1 + N) * N // 2


def main(args):
    N = int(input())
    ans = solve(N)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

print(sum(np.arange(int(input())+1)))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def main():
    N = int(input())
    ans = N*(N+1) // 2
    print(ans)

if __name__ == "__main__": main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

def addAll(n):
    if n == 1:
        return 1
    else:
        return addAll(n-1) + n

print(addAll(n))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

print(int(( N * (N + 1)) * 0.5))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
def main():
    N = int(input())
    c = 0
    for x in range(N + 1): c += x
    print(c)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input()) + 1

num = 0

for i in range(n):
    num += i

print(num)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range

class infix(object):
    def __init__(self, function):
        self.function = function

    def __ror__(self, other):
        self.left = other
        return self

    def __or__(self, other):
        return self.function(self.left, other)

    def __call__(self, value1, value2):
        return self.function(value1, value2)

@infix
def c(f_t_u, f_u_r): return lambda t: f_u_r(f_t_u(t))

class _Ap(object):
    def __rlshift__(self, other):
        self.value = other
        return self

    def __rshift__(self, other):
        return other(self.value)
Ap = _Ap()
ap = Ap

#d = {1:2, 3:5, 6:10, 1000043:3814}
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)



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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""043-a"""


import sys


def main():
    """Main function."""
    N = int(input())
    print(sum(range(N+1)))


if __name__ == '__main__':
    sys.exit(main())

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
n=int(input());print(n*-~n>>1)

Submission status: Accepted

Solution code:
def acum(n):
    if n <= 1:
        return 1
    return n + acum(n - 1)
print(acum(int(input())))

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())
child = 0
for i in range(1, N+1):
    child += i
print(child)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a = int(input())
b = a * (a + 1) // 2;
print(b)

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:
from collections import defaultdict


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(raw_input())

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

Submission status: Accepted

Solution code:
N = int(input())

ans = 0

if N % 2 == 0:
    ans = (N + 1) * (N // 2)
    
else:
    ans = (N + 1) * ((N-1) // 2) + (N+1) // 2
    
print(ans)

Submission status: Accepted

Solution code:
N=int(input())

C=int(N/2*(2+N-1))

print(C)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(input())
def pli(a): return "".join(list(map(str, a)))

n = ri()
print(n*(n+1)//2)

Submission status: Accepted

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

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

print(x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def ini(): return int(input())
def inli(): return list(map(int, input().split()))
def inf(): return float(input())
def inlf(): return list(map(float, input().split()))
def inl(): return list(input())
def pli(): return "".join(list(map(str, ans)))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(sum)

Submission status: Accepted

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

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

print(sum)

Submission status: Accepted

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

print(sum)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
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())

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

for count in range(n+1):
    ans += count
print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
input = int(raw_input())
count = 0
for i in range(1, input+1):
 count += i
print count

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def debug(x, table):
    for name, val in table.items():
        if x is val:
            print('DEBUG:{} -> {}'.format(name, val), file=sys.stderr)
            return None

def solve():
    N = int(input())
    ans = N * (N+1) // 2
    print(ans)


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

def main():
    x=int(input())
    
    print(x*(x+1)//2)
    

if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
N = int(input())
ans = 0
for tmp in range(1,N+1):
    ans += tmp
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
n = sum([x for x in range(n+1)])
print(n)

Submission status: Accepted

Solution code:
n = int(raw_input())
cnt = 0
for i in xrange(n + 1):
    cnt += i
print cnt

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8;

def main():
    n = int(input())
    r = 0
    for i in range(1, n + 1): r += i
    print(r)
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def fun(x):
    return x if x==1 else x+fun(x-1)

print(fun(int(input())))

Submission status: Accepted

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

N = int(input())

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7


def main():
    n = int(input())
    return int(n*(n+1) // 2)



print(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:

# 初項a，交差dの数列n個の和
def arithmetic_series(a, d, n):
    return n * (2 * a + (n - 1) * d) // 2


def main():
    n = int(input())
    print(arithmetic_series(1, 1, n))


if __name__ == '__main__':
    main()

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
i = 0
a = 0


while(i<=N):
    a = a + i

    i = i+1

print(a)

Submission status: Accepted

Solution code:
N=int(input())
a=0
for count in range(N):
    a=a+(1+count)

print(a)

Submission status: Accepted

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

print(sum)

Submission status: Accepted

Solution code:
N = int(input())

sum = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: UTF8
# python3
 
# input = "10"
input = input() 
 
sum = 0
for num in range(1,int(input) + 1):
	sum += num;
print(sum)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

sum = 0

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

print(sum)

Submission status: Accepted

Solution code:
def calc(n):
	return n * (n+1) / 2

def main():
	n = int(raw_input())
	print calc(n)

main()

Submission status: Accepted

Solution code:
N = int(raw_input())

print N * (N+1) / 2

Submission status: Accepted

Solution code:
N = int(raw_input())
ans = 0
for n in xrange(1, N+1):
    ans += n
print ans

Submission status: Accepted

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

Submission status: Accepted

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

print(answer)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

N = int(raw_input())
print N*(N + 1)/2

Submission status: Accepted

Solution code:
def read():
    return int(input())

def reads(sep=None):
    return list(map(int, input().split(sep)))

def main():
    n = read()
    print(sum([i+1 for i in range(n)]))

main()

Submission status: Accepted

Solution code:
n = input()

print n * (n + 1) / 2

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(raw_input())
print sum(range(n+1))

Submission status: Accepted

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

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=input()
print((n+1)*n/2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()

print N*(N+1)/2

Submission status: Accepted

Solution code:
#!/usr/bin/env python

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

Submission status: Accepted

Solution code:
N = int(raw_input())

sum = 0

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

print sum

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin, stdout

n = int(stdin.read().strip())

result = str(int(n * (n + 1) / 2))

stdout.write(result)

Submission status: Accepted

Solution code:
N=int(raw_input())

n=0

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

print n

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

#sys.stdin = open('a_2.txt', 'r')
N = int(raw_input())

print str(((N+1) * N) / 2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
import sys
     
n = int(raw_input())
     
print n*(n+1)/2

Submission status: Accepted

Solution code:
#coding: utf-8
#ABC043A

n=int(raw_input())

print n*(n+1)/2

Submission status: Accepted

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

Submission status: Accepted

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

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

print ans

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def fact(n):
   if n == 0: return 0
   return n + fact(n-1)

def main():
    a = int(raw_input())
    print fact(a)
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

x = int(input())

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

Submission status: Accepted

Solution code:
ans = 0

N = int(input())

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

print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8

import functools


n = int(input())
answer = functools.reduce(lambda x, y: x + y, range(1, n+1))
print(answer)

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:
def solve(N):
 return N * (N + 1) // 2 

print(solve(int(input())))

Submission status: Accepted

Solution code:
n = int(raw_input())

s = n*( n+1)/2

print s

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print sum

Submission status: Accepted

Solution code:
n=int(raw_input())
print (1+n)*(n/2) if n%2==0 else (1+n)*(n/2)+(1+n)/2

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
a += 1
s = 0

for i in range(a):
	s += i

print s

Submission status: Accepted

Solution code:
#! /usr/bin/env python3

print(sum(x for x in range(1, int(input())+1)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
import doctest

class IO_for_Contest(object):
    @staticmethod
    def my_input():
        #return raw_input()
        return input()

    @staticmethod
    def read_from_input():
        #TODO: impl this for each problem
        pass

    @staticmethod
    def read_line():
        return IO_for_Contest.my_input().strip()

    @staticmethod
    def read_int():
        return int(IO_for_Contest.my_input().strip())

    @staticmethod
    def read_n_int(n):
        return list(map( \
                int, \
                re.split('\s+', IO_for_Contest.my_input().strip())))[ : n]
def solve():
    n = IO_for_Contest.read_int()
    print(int(n * (n + 1) / 2))

if __name__ == '__main__':
    #doctest.testmod()
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
sum = 0
for i in range(n):
    sum += (i+1)

print sum

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Runtime Error

Solution code:
def iroha():
    count = int(input())
    result = 0
    for i in range(count+1):
        result += i

    print(result)


if __name__ == "__main__":
    iroha(

Submission status: Runtime Error

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

    print(result

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
list_s=list(s)
element='B'
l1=['0','1','B']
for i in range(0,len(list_s)-i):
	if(list_s[i] == element):
		index_element=list_s[i-1]
		if(index_element):
			list_s.remove(index_element)
			list_s.remove(element)
			print(list_s)
		else:
		    list_s.append("s")
		    list_s.remove("s")

	else:
		list_s.append("s")
		list_s.remove("s")
		print(list_s)

Submission status: Runtime Error

Solution code:
N = ini()
print(int((N*(N+1))/2))
'''
sum = 0
for i in range(N):
    sum += (i+1)
print(sum)
'''

Submission status: Runtime Error

Solution code:
k=0

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

Submission status: Runtime Error

Solution code:
 AキャンディーとNにんの子供イージー

# 競プロ幼稚園にはN人の子供がいます。えび先生は、子供たちを一列に並べ、一人目にはキャンディーを1個、二人目には2個,...,N人めにはN個あげることにしました。
# 必要なキャンディーの個数の合計は何個でしょう？
# 1 <= N <= 100

# Nは子供の人数
N = int(input())
# print(N)

# answerは合計個数
answer = (N * (N + 1) // 2)

print(answer)

Submission status: Runtime Error

Solution code:
x = N
if x % 2 == 1:
    print((N + 1)*(N // 2)+(N + 1) / 2)
if x % 2 == 0:
    print((N + 1) * N / 2)

Submission status: Runtime Error

Solution code:




#他人のコピー
n=input()
n = int(input())
candy = (1 / 2) * n * (n + 1)
print(int(candy))
#他人のコピー

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
candy = N * N /2 + N /2

print(candy)

Submission status: Runtime Error

Solution code:
c = N * (N + 1 )/2

print(c)

Submission status: Runtime Error

Solution code:
candy = N * (N + 1 )/2

print(candy)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# 043A
# N人の時のキャンディーの合計数
# 入力値 子供の人数

# 入力
 = int(input())

# 処理
answer = (n + 1) * n / 2

print(answer)

Submission status: Runtime Error

Solution code:
# 等差数列

N = int(input())

# 1+2+3+4+...+(N-2)+(N-1)+N
# N+(N-1)+(N-2)+...+4+3+2+1
# 上と下を足し算して、２で割る

a = N+1
b = N

# print( a * b / 2 )

# TypeError: can only concatenate str (not "int")
# Nという文字と数字を連結できない??
print(math.floor(a * b / 2 )

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int N, sum = 0;
    cin >> N;
    for (int i = 1; i < N + 1; i++)
    {
        sum += i;
    }
    cout << sum << endl;
    return 0;
}

Submission status: Runtime Error

Solution code:
# 1人目は１個
a = 1

# 入力
b, c = map(int, input().split())

# 処理
answer = a + b + c

# 出力
print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input()

total = 0

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

print(total)

Submission status: Runtime Error

Solution code:
n = map(int,input().split())

total = 0

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

print(total)

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
sum = 0

for i in range(N):
    sum += i**2
    
print(sum)

Submission status: Runtime Error

Solution code:

N = int(input())
list = [int(a) for a in input().split()]

A = sum(list)//N
ans = 0

for k in range(N):
    ans = ans + (list[j] - A) ** 2

for i in range(-100,100):
    sum = 0
    sum_new = 0
    for j in range(N):
        sum_new = sum_new + (list[j] - i) ** 2
    if(sum > sum_new):
        ans = sum_new

print(ans)

Submission status: Runtime Error

Solution code:
for i in N:
  x += 1
print(x)

Submission status: Runtime Error

Solution code:
val1=int(input())

print(val1*(val1+1)/)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = map(int, input().split())
a = 0
while n < 0:
    a += n
    n -= 1
print(a)

Submission status: Runtime Error

Solution code:
n = map(int, input().split())

while n < 0:
    a += n
    n -= 1
print(a)

Submission status: Runtime Error

Solution code:
n = map(int, input().split())

while n == 0:
    a += n
    n -= 1
print(a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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