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: Wrong Answer

Solution code:
N = int(input())

ans = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

    print(result)


if __name__ == "__main__":
    iroha()

Submission status: Wrong Answer

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

    print(result)

Submission status: Wrong Answer

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

    print(result)


if __name__ == "__main__":
    iroha()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(input())
x = len(s)
a = []

for i in range(x):
  if s[i] == '0':
    a.append(0)
  elif s[i] == '1':
    a.append(1)
  elif s[i] == 'B':
    if a != []:
      a.remove(a[-1])
    else:
      continue

print(*a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n  = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = ''
command = input()
for i in command:
  if i =="B":
    n=n[:-1]
  else:
    n+=i
print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

x=(N+1)*N/2

print(x)

Submission status: Wrong Answer

Solution code:
N=int(input())

x=(N+1)*N/2

print(x)

Submission status: Wrong Answer

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

answer=(N+1)*N/2

print(answer)

Submission status: Wrong Answer

Solution code:
s=input()
a=''

for i in s:
  if i=='B':
    a=a[:-1]
    
  else:
    a+=i
print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import re
 
 
a = re.compile("(.).\\1|(.)\\2")
s = input().rstrip()
x = a.search(s)
if x:
    print(x.start() + 1, x.end())
else:
    print("-1 -1")

Submission status: Wrong Answer

Solution code:
a = input()
test = ''
for i in range(len(a)):
  if a[i] == '0':
    test += '0'
  elif a[i] == '1':
    test += '1'
  else:
    if len(a) == 0:
      pass
    else:
      test = test[:-1]
      
print(test)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
print(math.factorial(int(input())))

Submission status: Wrong Answer

Solution code:
n = input()
s=""
for i in range(len(n)):
    if(n[i]=="B" and s != ""):
        s=s[:-1]
    else:
        s+=n[i]
print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#043A

#1.入力をちゃんと受け取ること
x=input()
i=int(x)
sum=0
#2.結果を出力する
while i>0:
    sum=sum+i
    i=i-1

    print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 等差数列の和　Sn=n(a+1)/2

N = int(input())
# 定義
# 1 <= N <= 100

total = N * ( N + 1)/ 2

print(total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

x = N * (N * 1) // 2

print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input("人数を入力してね >"))

ame = 0

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

Submission status: Wrong Answer

Solution code:
n = int(input("人数を入力してね >"))

ame = 0

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

answer = (N + 1 ) * N / 2

print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

N = int(input())


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

Submission status: Wrong Answer

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

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

#制約　1<=N<=100
#入力　標準入力　N
#出力　必要なキャンディーの個数の合計は何個でしょう?

#Nは整数で後から他者がNに数値を入力するからintとinput
N = int(input())

#一人目に1個、2人目に2個、N人目にN個…だから1+2+3+…Nなので等差数列
#等差数列だから　項数n(初項a+末項l)/2
#今回は初項は１、項数と末項が同じなのでどちらもN

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

Submission status: Wrong Answer

Solution code:
n = int(input())

answer = (n + 1) * n / 2

print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
# 必要なキャンディーの個数の合計を出力せよ
# 1からNまでの和はN/2(N+1)で表される

N = int(input())

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

Submission status: Wrong Answer

Solution code:
# 必要なキャンディーの個数の合計を出力せよ
# 1からNまでの和はN/2*(N+1)で表される

N = int(input())

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

Submission status: Wrong Answer

Solution code:
# abc055_a
# 必要なキャンディーの個数の合計を出力せよ
# 1からNまでの和はN/2*(N+1)で表される

N = int(input())

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

Submission status: Wrong Answer

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


# 入力
n =int(input())

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

print(answer)

Submission status: Wrong Answer

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


# 入力
n =int(input())

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

print(ansewr)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#子ども　N人
# 1人目に1個、2人目に2個・・・　N人めにはN個
#必要なキャンディーの合計

#N=2の時　1+2=3
#N=3の時　1+2+3=6
#N=4の時　1+2+3+4=10

#N=10の時　55

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 子供の人数を取得
N = int(input())
 
# 子供の人数分のキャンディの個数を計算
Childrencnt = 1
Candysum = 0
for Childrencnt in range(1, N):
    Candysum == Candysum + Childrencnt

# キャンディの合計個数を出力
print(Candysum)

Submission status: Wrong Answer

Solution code:
# 子供の人数を取得
N = int(input())
 
# 子供の人数分のキャンディの個数を計算
Childrencnt = 0
Candysum = 0
for Childrencnt in range(1, N):
    Candysum == Candysum + Childrencnt

# キャンディの合計個数を出力
print(Candysum)

Submission status: Wrong Answer

Solution code:
# 子供の人数を取得
N = int(input())
 
# 子供の人数分のキャンディの個数を計算
Childrencnt = 0
Candysum = 0
for Childrencnt in range(1, N):
    Candysum == Candysum + Childrencnt

# キャンディの合計個数を出力
else:
    print(Candysum)

Submission status: Wrong Answer

Solution code:
# 子供の人数を取得
N = int(input())

# 子供の人数分のキャンディの個数を計算
Childencnt = 0
Candysum = 0
for Childrencnt in range(1, N):
    Candysum == Candysum + Childrencnt

# キャンディの合計個数を出力
else:
    print(Candysum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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 )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(''.join(map(lambda x: x[0], input().split())).upper())

Submission status: Wrong Answer

Solution code:
# 式：y = N*(N+1)/2

N = int(input()) # 人数Nを代入

candy = N * (N + 1) / 2

print(candy)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

answer = (N + 1) * N / 2

print(answer)

Submission status: Wrong Answer

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

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

# 出力
print(total)

Submission status: Wrong Answer

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

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

# 出力
print(total)

Submission status: Wrong Answer

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

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

# 出力
print(total)

Submission status: Wrong Answer

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

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

# 出力
print(total)

Submission status: Wrong Answer

Solution code:
N=int(input())

a=N*(N+1)/2

print(a)

Submission status: Wrong Answer

Solution code:
N=int(input('子供は何人？'))

a=N*(N+1)/2

print(a)

Submission status: Wrong Answer

Solution code:
number = int(input("人数を入力> "))
answer = int(number*(number+1)/2)
print(answer)

Submission status: Wrong Answer

Solution code:
child_num = input("子供の数")
child_num = int(child_num)
candy_num = int((child_num**2 + child_num) / 2)
print(candy_num)

Submission status: Wrong Answer

Solution code:
number = int(input("人数を入力＞"))
print(int(1/2*number*(number+1)))

Submission status: Wrong Answer

Solution code:
candy=int(input('子供の人数にたいして必要なキャンディーの数は？>'))

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import factorial
print(factorial(int(input())))

Submission status: Wrong Answer

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

total = 0

for i in range(5):
    total += i

print(total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(sum)

Submission status: Wrong Answer

Solution code:

N = int(input())
s = 0

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

print(s)

Submission status: Wrong Answer

Solution code:
def actual(N):
    return ((N + 1) * N) / 2

N = int(input())
print(actual(N))

Submission status: Wrong Answer

Solution code:
s = list(input())
out = []

for s1 in s:
	if s1 == 'B':
		if out != []:
			out.pop()
	else:
		out.append(s1)
print(''.join(out))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = 0
i = 1
while i <= 100:
  s = s + i
  i += 1
print(s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
number = int(input())
answer = 0

for i in range(number):
  answer = answer + i
print(answer)

Submission status: Wrong Answer

Solution code:
number = int(input())
answer = 0

for i in range(number):
  number = number+1
  answer = answer + number
  
print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

  print(a)
    

candy()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


    
    
candies()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
print(math.factorial(N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
print(math.factorial(N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

sum = (1 + N)*N/2

print(sum)

Submission status: Wrong Answer

Solution code:
moji = []
ans=""
s = str(input())
s = list(s)

def keyboard(key,list):
    if key == "0":
        list.append("0")
    elif key == "1":
        list.append("1")
    elif key == "B" and len(list) != 0:
        list.pop(-1)

for i in range(len(s)):
    keyboard(s[i],moji)

for x in moji:
    ans += x

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

total = 0

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

print(total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
1+1

Submission status: Wrong Answer

Solution code:
from functools import reduce
from operator import mul

n = int(input())
print(reduce(mul, range(1,n+1)))

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    
    n = int(sys.stdin.readline())
    
    print(n*(n+1)/2)
    
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input("子供の数を入力してね:"))

n = 0

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

print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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



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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import Counter


def main():
    s = input()
    c, n = Counter(s).most_common()[0]
    end = False
    for i in range(3, n+1):
        for j in range(len(s)-i):
            c, m = Counter(s[j:j+i]).most_common()[0]
            if m * 2 > i:
                print(str(j+1) + ' ' + str(j+i))
                return
    print('-1 -1')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

candy = n*(n+1)/2

print(candy)

Submission status: Wrong Answer

Solution code:
from sys import stdin

N  = int(stdin.readline().rstrip())

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

N  = int(stdin.readline())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N  = int(input())

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
print(math.factorial(N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
s=input()
ans=""
for i in s:
    if i=="0":
        ans+="0"
    elif i=="1":
        ans+="1"
    else:
        ans=ans[:-1]
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

P = 0

for i in range(n):
    P += i
    
print(P)

Submission status: Wrong Answer

Solution code:
n = int(input())

P = 0

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

Solution code:
n = str(input())

ans = ''

for i in range(len(n)):
  if n[i] == 'B':
    ans = ans[:-1]
  elif n[i] == '0':
    ans += '0'
  elif n[i] == '1':
    ans += '1'

print(ans)

Submission status: Wrong Answer

Solution code:
a = input()
a = int(a) +1
i = 0

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

print(i)

Submission status: Wrong Answer

Solution code:
def candy(N):
    return (N**2 +N)/2

N = int(input())
print(candy(N))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

n = int(input())
print(total(n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import factorial as f
print(f(int(input())))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(map(str, input()))
letter = ''
dup = 0
ans = []
for i, j in enumerate(s):
    if dup < s.count(s[i]):
        dup = s.count(s[i])
        letter = j
for i, j in enumerate(s):
    if j == letter:
        ans.append(i+1)
if dup > len(s) // 2:
    print('{0} {1}'.format(ans[0], ans[-1]))
else:
    print('-1 -1')

Submission status: Wrong Answer

Solution code:
s = list(map(str, input().split(' ')))
letter = ''
dup = 0
ans = []
for i, j in enumerate(s):
    print(s.count(s[i]))
    if dup < s.count(s[i]):
        dup = s.count(s[i])
        letter = j
for i, j in enumerate(s):
    if j == letter:
        ans.append(i+1)
print(dup)
print(ans)
if dup > len(s) // 2:
    print('{0} {1}'.format(ans[0], ans[-1]))
else:
    print('-1 -1')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
s = input()
 
counter = 0
moji = ""
for i in s:
	
	if i == "B":
		moji = moji[:-1]
		
		continue
    	

	moji = moji+ i

print(moji)

Submission status: Wrong Answer

Solution code:
s = input()
 
counter = 0
moji = ""
for i in s:

	if i == "B":
		moji = moji[:-1]

		continue
    	

	moji = moji+ i

print(moji)

Submission status: Wrong Answer

Solution code:
x = int(input("あめ")) 

def main(x):
    y = 0
    for i in range(x+1):
        y = y + i
    return y
    
print(main(x))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import collections
s = input()
l = len(s)
for i in range(l-1):
	t = s[i:i+3]
	c = collections.Counter(t)
	if s[i] == s[i+1]:
		print (i+1,i+2)
		exit()
	if c.most_common()[0][1] >= 2:
		print (i+1,i+3)
		exit()
print (-1,-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
words=[a for a in S]
answers=[]
for n in words:
    if n=='1':
        answers.append('1')
    elif n=='0':
        answers.append('0')
    else:
        if not answers:
            continue
        else:
            answers.pop()
mojiretu=''
for x in answers:
    mojiretu+=x
print(mojiretu)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans =N*(N+1)/2

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

res = 1
for i in range(n):
  res *= (i+1)

print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

print((N + 1) // 2)

Submission status: Wrong Answer

Solution code:
given = [x for x in input()]
rets  = ''
for i, v in  enumerate(given):
    if v == "B" and len(rets) > 0:
        rets = rets[:-1]
    else:
        rets += v
print(rets)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
a=list(map(str,input().split()))
b=[]
c=len(a)
for k in range(1,c):
  if a[k]=="1":
    b.append("1")
  elif  a[k]=="0":
    b.append("0")
  else:
    del b[k-1]
f=" ".join(b) 
print(f)

Submission status: Wrong Answer

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

print(1)

Submission status: Wrong Answer

Solution code:
# 入力 N
a = int(input())
# キャンディーの個数の合計
sum = a * (a+1) / 2
print(sum)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
chars = input()

ans = []
for c in chars:
    if c in ['0','1']:
        ans.append(c)
    elif len(ans) != 0:
        ans.pop(-1)
        
        
print(''.join(ans))

Submission status: Wrong Answer

Solution code:
N = int(input())

S = N*(N+1)/2

print(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
s = s.replace("B0", "")
s = s.replace("B1", "")
r = s.replace("B", "")
print(r)

Submission status: Wrong Answer

Solution code:
def factorial(n):
    if n == 1:
        return 1
    else:
        return n * factorial(n-1)

a = int(input())
print(factorial(a))

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 0:
  print((N + 1) * N / 2)
else:
  print(N * (N - 1) / 2 + N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = sum(list(range(n, 0)))
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
temp=0
tem=0
tot=0
flag=0
for i in range(len(s)-2):
    if s[i]==s[i+1]:
        print(i+1,i+2)
        flag=1
        break
    elif s[i]==s[i+2]:
        print(i+1,i+3)
        flag=1
        break
if flag==0:
    print("-1 -1")

Submission status: Wrong Answer

Solution code:
S = input()
text = ""
for s in S:
  if(s=="1" or s=="0"):
    text = text + s
  else:
    text = text[:len(text)-1]
print(text)

Submission status: Wrong Answer

Solution code:
s=input()
temp=''
for i in s:
    if i!='B':
        temp+=i
    else:
        temp=temp[:-1]
print(temp)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

print((n+1)/2)

Submission status: Wrong Answer

Solution code:
a = int( input() )

sol = a * ( a + 1 ) / 2

print(sol)

Submission status: Wrong Answer

Solution code:
子供の数=int(input())
答え=0
for 飴の数 in range(1,子供の数):
  答え+=飴の数
print(答え)

Submission status: Wrong Answer

Solution code:
N = int(input())

n = 0

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

ans = math.factorial(n)
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
n = ni()
print((n*(n+1))/2)

Submission status: Wrong Answer

Solution code:
import math

N = int(input())
print(math.factorial(N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

candy = 0
for num in range(N):
    candy += num * 2

print(candy)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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