node_ids
sequencelengths
4
1.4k
edge_index
sequencelengths
1
2.22k
text
sequencelengths
4
1.4k
source
stringlengths
14
427k
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 2, 13, 17, 0, 13, 4, 13, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 29, 2 ], [ 10, 9 ], [ 30, 12 ], [ 9, 15 ], [ 26, 18 ], [ 27, 24 ], [ 26, 27 ], [ 29, 30 ] ]
[ "# coding: utf-8\nN = int(input())\n\nans = sum([i + 1 for i in range(N)])\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "i + 1 for i in range(N)", "for i in range(N)", "i", "range(N)", "range", "N", "for i in range(N)", "i + 1", "i", "1", "ans = sum([i + 1 for i in range(N)])", "ans", "sum([i + 1 for i in range(N)])", "sum", "[i + 1 for i in range(N)]", "print(ans)", "print", "ans", "ans = sum([i + 1 for i in range(N)])", "sum([i + 1 for i in range(N)])", "ans", "N = int(input())", "int(input())", "N" ]
# coding: utf-8 N = int(input()) ans = sum([i + 1 for i in range(N)]) print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 42, 40, 2, 13, 17, 0, 13, 13, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 13, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 31, 2 ], [ 34, 8 ], [ 32, 13 ], [ 26, 13 ], [ 28, 16 ], [ 32, 17 ], [ 26, 17 ], [ 25, 19 ], [ 29, 23 ], [ 35, 23 ], [ 25, 26 ], [ 32, 28 ], [ 26, 28 ], [ 28, 29 ], [ 31, 32 ], [ 34, 35 ] ]
[ "N = int(input())\nanswer = 0\nwhile not N == 0 :\n answer += N\n N -= 1\nelse :\n print(answer)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "answer = 0", "answer", "0", "while not N == 0 :\n answer += N\n N -= 1\nelse :\n print(answer)", "not N == 0", "N == 0", "N", "0", "answer += N", "answer", "N", "N -= 1", "N", "1", "print(answer)", "print", "answer", "N -= 1", "1", "N", "answer += N", "N", "answer", "N = int(input())", "int(input())", "N", "answer = 0", "0", "answer" ]
N = int(input()) answer = 0 while not N == 0 : answer += N N -= 1 else : print(answer)
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 4, 13, 4, 13, 17, 2, 13, 17, 10, 4, 13 ]
[ [ 20, 2 ], [ 21, 17 ], [ 20, 21 ] ]
[ "W=int(input())\nprint (sum(list(range(1,W+1))) )\n\n", "W=int(input())", "W", "int(input())", "int", "input()", "input", "print (sum(list(range(1,W+1))) )", "print", "sum(list(range(1,W+1)))", "sum", "list(range(1,W+1))", "list", "range(1,W+1)", "range", "1", "W+1", "W", "1", "W=int(input())", "int(input())", "W" ]
W=int(input()) print (sum(list(range(1,W+1))) )
[ 7, 12, 13, 29, 2, 2, 2, 13, 17, 13, 17, 23, 13, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 13, 10, 4, 13, 10, 12, 13 ]
[ [ 12, 7 ], [ 12, 9 ], [ 12, 12 ], [ 25, 14 ], [ 29, 22 ], [ 26, 23 ], [ 25, 26 ] ]
[ "def candy(N):\n return (N**2 +N)//2\n\nN = int(input())\nprint(candy(N))", "def candy(N):\n return (N**2 +N)//2", "candy", "return (N**2 +N)//2", "(N**2 +N)//2", "N**2 +N", "N**2", "N", "2", "N", "2", "N", "N", "N = int(input())", "N", "int(input())", "int", "input()", "input", "print(candy(N))", "print", "candy(N)", "candy", "N", "N = int(input())", "int(input())", "N", "def candy(N):\n return (N**2 +N)//2", "def candy(N):\n return (N**2 +N)//2", "candy" ]
def candy(N): return (N**2 +N)//2 N = int(input()) print(candy(N))
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 2, 2, 2, 13, 17, 13, 17, 10, 4, 13 ]
[ [ 19, 2 ], [ 20, 14 ], [ 20, 16 ], [ 19, 20 ] ]
[ "number = int(input())\n\nprint(int((number + 1) * number / 2))", "number = int(input())", "number", "int(input())", "int", "input()", "input", "print(int((number + 1) * number / 2))", "print", "int((number + 1) * number / 2)", "int", "(number + 1) * number / 2", "(number + 1) * number", "number + 1", "number", "1", "number", "2", "number = int(input())", "int(input())", "number" ]
number = int(input()) print(int((number + 1) * number / 2))
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 13, 4, 13, 13, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 11, 10 ], [ 14, 13 ], [ 4, 18 ], [ 22, 21 ], [ 13, 22 ], [ 21, 25 ], [ 10, 25 ], [ 30, 27 ] ]
[ "def resolve():\n n=int(input())\n ans=0\n for i in range(1,n+1):\n ans+=i\n print(ans)\nresolve()", "def resolve():\n n=int(input())\n ans=0\n for i in range(1,n+1):\n ans+=i\n print(ans)", "resolve", "n=int(input())", "n", "int(input())", "int", "input()", "input", "ans=0", "ans", "0", "for i in range(1,n+1):\n ans+=i\n ", "i", "range(1,n+1)", "range", "1", "n+1", "n", "1", "ans+=i", "ans", "i", "print(ans)", "print", "ans", "resolve()", "resolve", "def resolve():\n n=int(input())\n ans=0\n for i in range(1,n+1):\n ans+=i\n print(ans)", "def resolve():\n n=int(input())\n ans=0\n for i in range(1,n+1):\n ans+=i\n print(ans)", "resolve" ]
def resolve(): n=int(input()) ans=0 for i in range(1,n+1): ans+=i print(ans) resolve()
[ 7, 0, 13, 4, 13, 4, 13, 12, 13, 14, 2, 13, 17, 29, 17, 29, 2, 13, 4, 13, 2, 13, 17, 23, 13, 4, 13, 4, 13, 13, 10, 4, 13, 10, 12, 13 ]
[ [ 31, 2 ], [ 24, 11 ], [ 24, 17 ], [ 24, 21 ], [ 24, 24 ], [ 35, 28 ], [ 32, 29 ], [ 31, 32 ] ]
[ "n = int(input())\ndef rec(a):\n if a == 1:\n return 1\n else:\n return a + rec(a - 1)\n \nprint(rec(n))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "def rec(a):\n if a == 1:\n return 1\n else:\n return a + rec(a - 1)\n ", "rec", "if a == 1:\n return 1\n else:\n return a + rec(a - 1)\n ", "a == 1", "a", "1", "return 1", "1", "return a + rec(a - 1)", "a + rec(a - 1)", "a", "rec(a - 1)", "rec", "a - 1", "a", "1", "a", "a", "print(rec(n))", "print", "rec(n)", "rec", "n", "n = int(input())", "int(input())", "n", "def rec(a):\n if a == 1:\n return 1\n else:\n return a + rec(a - 1)\n ", "def rec(a):\n if a == 1:\n return 1\n else:\n return a + rec(a - 1)\n ", "rec" ]
n = int(input()) def rec(a): if a == 1: return 1 else: return a + rec(a - 1) print(rec(n))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 2, 2, 13, 2, 13, 17, 17, 4, 13, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 23, 2 ], [ 20, 8 ], [ 24, 11 ], [ 24, 13 ], [ 21, 18 ], [ 20, 21 ], [ 23, 24 ] ]
[ "children = int(input())\ncandy = children * (children+1)//2\nprint(candy)", "children = int(input())", "children", "int(input())", "int", "input()", "input", "candy = children * (children+1)//2", "candy", "children * (children+1)//2", "children * (children+1)", "children", "children+1", "children", "1", "2", "print(candy)", "print", "candy", "candy = children * (children+1)//2", "children * (children+1)//2", "candy", "children = int(input())", "int(input())", "children" ]
children = int(input()) candy = children * (children+1)//2 print(candy)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 2, 2, 13, 2, 13, 17, 17, 4, 13, 4, 13, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 25, 2 ], [ 22, 8 ], [ 26, 11 ], [ 26, 13 ], [ 23, 20 ], [ 22, 23 ], [ 25, 26 ] ]
[ "n = int(input())\nans = n*(n+1)/2\nprint(round(ans))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "ans = n*(n+1)/2", "ans", "n*(n+1)/2", "n*(n+1)", "n", "n+1", "n", "1", "2", "print(round(ans))", "print", "round(ans)", "round", "ans", "ans = n*(n+1)/2", "n*(n+1)/2", "ans", "n = int(input())", "int(input())", "n" ]
n = int(input()) ans = n*(n+1)/2 print(round(ans))
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 10, 4, 13 ]
[ [ 19, 2 ], [ 20, 13 ], [ 20, 15 ], [ 19, 20 ] ]
[ "val1=int(input())\nprint(int(val1*(val1+1)/2))", "val1=int(input())", "val1", "int(input())", "int", "input()", "input", "print(int(val1*(val1+1)/2))", "print", "int(val1*(val1+1)/2)", "int", "val1*(val1+1)/2", "val1*(val1+1)", "val1", "val1+1", "val1", "1", "2", "val1=int(input())", "int(input())", "val1" ]
val1=int(input()) print(int(val1*(val1+1)/2))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 2, 2, 2, 13, 17, 13, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 25, 2 ], [ 22, 8 ], [ 26, 14 ], [ 26, 16 ], [ 23, 20 ], [ 22, 23 ], [ 25, 26 ] ]
[ "N=int(input())\n\nx=int((N+1)*N/2)\n\nprint(x)", "N=int(input())", "N", "int(input())", "int", "input()", "input", "x=int((N+1)*N/2)", "x", "int((N+1)*N/2)", "int", "(N+1)*N/2", "(N+1)*N", "N+1", "N", "1", "N", "2", "print(x)", "print", "x", "x=int((N+1)*N/2)", "int((N+1)*N/2)", "x", "N=int(input())", "int(input())", "N" ]
N=int(input()) x=int((N+1)*N/2) print(x)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 42, 40, 13, 13, 0, 13, 13, 0, 13, 17, 4, 13, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 39, 2 ], [ 30, 8 ], [ 33, 11 ], [ 31, 15 ], [ 37, 15 ], [ 40, 16 ], [ 27, 18 ], [ 31, 19 ], [ 37, 19 ], [ 36, 21 ], [ 28, 25 ], [ 34, 25 ], [ 31, 27 ], [ 37, 27 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ], [ 36, 37 ], [ 39, 40 ] ]
[ "n = int(input())\n\ni = 1\nans = 0\nwhile i<=n:\n ans += i\n i+=1\n\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "i = 1", "i", "1", "ans = 0", "ans", "0", "while i<=n:\n ans += i\n i+=1", "i<=n", "i", "n", "ans += i", "ans", "i", "i+=1", "i", "1", "print(ans)", "print", "ans", "ans += i", "i", "ans", "i = 1", "1", "i", "ans = 0", "0", "ans", "i+=1", "1", "i", "n = int(input())", "int(input())", "n" ]
n = int(input()) i = 1 ans = 0 while i<=n: ans += i i+=1 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 13, 17, 4, 13, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13 ]
[ [ 24, 2 ], [ 30, 8 ], [ 12, 11 ], [ 25, 14 ], [ 27, 16 ], [ 11, 18 ], [ 28, 22 ], [ 31, 22 ], [ 24, 25 ], [ 27, 28 ], [ 30, 31 ] ]
[ "n = int(input())\n \nx = 0\n \nfor i in range(n):\n x += (i+1)\n \nprint(x)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "x = 0", "x", "0", "for i in range(n):\n x += (i+1)\n ", "i", "range(n)", "range", "n", "x += (i+1)", "x", "i+1", "i", "1", "print(x)", "print", "x", "n = int(input())", "int(input())", "n", "x += (i+1)", "i+1", "x", "x = 0", "0", "x" ]
n = int(input()) x = 0 for i in range(n): x += (i+1) print(x)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 2, 13, 2, 2, 13, 2, 13, 17, 17, 14, 40, 40, 17, 13, 17, 4, 13, 13, 14, 2, 40, 13, 17, 2, 17, 13, 4, 13, 17, 10, 2, 13, 10, 4, 13 ]
[ [ 42, 2 ], [ 39, 8 ], [ 43, 10 ], [ 43, 13 ], [ 43, 15 ], [ 43, 22 ], [ 40, 26 ], [ 43, 30 ], [ 43, 34 ], [ 39, 40 ], [ 42, 43 ] ]
[ "# キャンディーとN人の子供イージー\n\nN = int(input())\n\nanswer = N + N * (N - 1) // 2\n\nif 1 <= N <= 100:\n print(answer)\nelif N <= 0 or 100 < N:\n print('Out of range')", "N = int(input())", "N", "int(input())", "int", "input()", "input", "answer = N + N * (N - 1) // 2", "answer", "N + N * (N - 1) // 2", "N", "N * (N - 1) // 2", "N * (N - 1)", "N", "N - 1", "N", "1", "2", "if 1 <= N <= 100:\n print(answer)\nelif N <= 0 or 100 < N:\n print('Out of range')", "1 <= N <= 100", "1 <= N", "1", "N", "100", "print(answer)", "print", "answer", "elif N <= 0 or 100 < N:\n print('Out of range')", "N <= 0 or 100 < N", "N <= 0", "N", "0", "100 < N", "100", "N", "print('Out of range')", "print", "'Out of range'", "answer = N + N * (N - 1) // 2", "N + N * (N - 1) // 2", "answer", "N = int(input())", "int(input())", "N" ]
# キャンディーとN人の子供イージー N = int(input()) answer = N + N * (N - 1) // 2 if 1 <= N <= 100: print(answer) elif N <= 0 or 100 < N: print('Out of range')
[ 7, 0, 13, 4, 13, 13, 2, 2, 13, 2, 13, 17, 17, 10, 4, 13 ]
[ [ 14, 2 ], [ 15, 8 ], [ 15, 10 ], [ 14, 15 ] ]
[ "a=input()\nprint a*(a+1)//2", "a=input()", "a", "input()", "input", "print", "a*(a+1)//2", "a*(a+1)", "a", "a+1", "a", "1", "2", "a=input()", "input()", "a" ]
a=input() print a*(a+1)//2
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 13, 4, 2, 13, 17, 4, 13, 4, 13, 13, 10, 4, 13 ]
[ [ 23, 2 ], [ 10, 9 ], [ 24, 12 ], [ 9, 15 ], [ 23, 24 ] ]
[ "n = int(input())\n\nprint(sum([i+1 for i in range(n)]))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "i+1 for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "i+1", "i", "1", "print(sum([i+1 for i in range(n)]))", "print", "sum([i+1 for i in range(n)])", "sum", "[i+1 for i in range(n)]", "n = int(input())", "int(input())", "n" ]
n = int(input()) print(sum([i+1 for i in range(n)]))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 42, 2, 13, 17, 0, 13, 13, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 13, 13, 10, 17, 13 ]
[ [ 27, 2 ], [ 24, 8 ], [ 28, 12 ], [ 34, 12 ], [ 30, 15 ], [ 28, 16 ], [ 34, 16 ], [ 33, 18 ], [ 31, 22 ], [ 25, 22 ], [ 24, 25 ], [ 27, 28 ], [ 28, 30 ], [ 34, 30 ], [ 30, 31 ], [ 33, 34 ] ]
[ "x = int(input())\ncount = 0\nwhile x > 0:\n count += x\n x -= 1\nprint(count)", "x = int(input())", "x", "int(input())", "int", "input()", "input", "count = 0", "count", "0", "while x > 0:\n count += x\n x -= 1", "x > 0", "x", "0", "count += x", "count", "x", "x -= 1", "x", "1", "print(count)", "print", "count", "count = 0", "0", "count", "x = int(input())", "int(input())", "x", "count += x", "x", "count", "x -= 1", "1", "x" ]
x = int(input()) count = 0 while x > 0: count += x x -= 1 print(count)
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 4, 13, 2, 13, 17, 10, 4, 13 ]
[ [ 17, 2 ], [ 18, 14 ], [ 17, 18 ] ]
[ "n = int(input())\n\nprint(sum(range(n+1)))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "print(sum(range(n+1)))", "print", "sum(range(n+1))", "sum", "range(n+1)", "range", "n+1", "n", "1", "n = int(input())", "int(input())", "n" ]
n = int(input()) print(sum(range(n+1)))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 2, 13, 13, 4, 13, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 33, 2 ], [ 30, 8 ], [ 12, 11 ], [ 34, 16 ], [ 27, 19 ], [ 31, 21 ], [ 28, 21 ], [ 11, 22 ], [ 28, 25 ], [ 31, 25 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ] ]
[ "number = int(input())\nanswer = 0\n \nfor i in range(1,number+1):\n answer = answer + i\nprint(answer)", "number = int(input())", "number", "int(input())", "int", "input()", "input", "answer = 0", "answer", "0", "for i in range(1,number+1):\n answer = answer + i", "i", "range(1,number+1)", "range", "1", "number+1", "number", "1", "answer = answer + i", "answer", "answer + i", "answer", "i", "print(answer)", "print", "answer", "answer = answer + i", "answer + i", "answer", "answer = 0", "0", "answer", "number = int(input())", "int(input())", "number" ]
number = int(input()) answer = 0 for i in range(1,number+1): answer = answer + i print(answer)
[ 7, 17, 15, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 12, 4, 18, 4, 18, 18, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 10, 12, 13, 10, 4, 13 ]
[ [ 39, 12 ], [ 42, 24 ], [ 40, 28 ], [ 43, 33 ], [ 43, 35 ], [ 39, 40 ], [ 42, 43 ] ]
[ "\"\"\"\nN = list(map(int,input().split()))\nS = [str(input()) for _ in range(N)]\nS = [list(map(int,list(input()))) for _ in range(h)] \nprint(*S,sep=\"\")\n\"\"\"\n\nimport sys\nsys.setrecursionlimit(10**6)\ninput = lambda: sys.stdin.readline().rstrip()\n\nn = int(input())\nprint((n*(n+1))//2)", "\"\"\"\nN = list(map(int,input().split()))\nS = [str(input()) for _ in range(N)]\nS = [list(map(int,list(input()))) for _ in range(h)] \nprint(*S,sep=\"\")\n\"\"\"", "import sys", "sys", "sys.setrecursionlimit(10**6)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10**6", "10", "6", "input = lambda: sys.stdin.readline().rstrip()", "input", "lambda: sys.stdin.readline().rstrip()", "sys.stdin.readline().rstrip()", "sys.stdin.readline().rstrip", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "rstrip", "n = int(input())", "n", "int(input())", "int", "input()", "input", "print((n*(n+1))//2)", "print", "(n*(n+1))//2", "n*(n+1)", "n", "n+1", "n", "1", "2", "input = lambda: sys.stdin.readline().rstrip()", "lambda: sys.stdin.readline().rstrip()", "input", "n = int(input())", "int(input())", "n" ]
""" N = list(map(int,input().split())) S = [str(input()) for _ in range(N)] S = [list(map(int,list(input()))) for _ in range(h)] print(*S,sep="") """ import sys sys.setrecursionlimit(10**6) input = lambda: sys.stdin.readline().rstrip() n = int(input()) print((n*(n+1))//2)
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 2, 2, 2, 17, 13, 13, 17, 10, 4, 13 ]
[ [ 19, 2 ], [ 20, 15 ], [ 20, 16 ], [ 19, 20 ] ]
[ "x = int(input())\nprint(int((1+x)*x/2))", "x = int(input())", "x", "int(input())", "int", "input()", "input", "print(int((1+x)*x/2))", "print", "int((1+x)*x/2)", "int", "(1+x)*x/2", "(1+x)*x", "1+x", "1", "x", "x", "2", "x = int(input())", "int(input())", "x" ]
x = int(input()) print(int((1+x)*x/2))
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 40, 40, 13, 17, 10, 4, 13 ]
[ [ 17, 2 ], [ 18, 11 ], [ 18, 14 ], [ 17, 18 ] ]
[ "n = int(input())\nprint(n*-~n//2)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "print(n*-~n//2)", "print", "n*-~n//2", "n*-~n", "n", "-~n", "~n", "n", "2", "n = int(input())", "int(input())", "n" ]
n = int(input()) print(n*-~n//2)
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 2, 13, 17, 0, 13, 13, 4, 13, 13, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 11, 10 ], [ 14, 13 ], [ 4, 17 ], [ 21, 20 ], [ 13, 21 ], [ 20, 24 ], [ 10, 24 ], [ 33, 30 ] ]
[ "def iroha():\n count = int(input())\n result = 0\n for i in range(count+1):\n result += i\n\n print(result)\n\n\nif __name__ == \"__main__\":\n iroha()", "def iroha():\n count = int(input())\n result = 0\n for i in range(count+1):\n result += i\n\n print(result)", "iroha", "count = int(input())", "count", "int(input())", "int", "input()", "input", "result = 0", "result", "0", "for i in range(count+1):\n result += i\n\n ", "i", "range(count+1)", "range", "count+1", "count", "1", "result += i", "result", "i", "print(result)", "print", "result", "if __name__ == \"__main__\":\n iroha()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "iroha()", "iroha", "def iroha():\n count = int(input())\n result = 0\n for i in range(count+1):\n result += i\n\n print(result)", "def iroha():\n count = int(input())\n result = 0\n for i in range(count+1):\n result += i\n\n print(result)", "iroha" ]
def iroha(): count = int(input()) result = 0 for i in range(count+1): result += i print(result) if __name__ == "__main__": iroha()
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 2, 2, 2, 17, 17, 13, 2, 13, 17, 10, 4, 13 ]
[ [ 21, 2 ], [ 22, 16 ], [ 22, 18 ], [ 21, 22 ] ]
[ "n = int(input())\nprint(int((1/2)*n*(n+1)))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "print(int((1/2)*n*(n+1)))", "print", "int((1/2)*n*(n+1))", "int", "(1/2)*n*(n+1)", "(1/2)*n", "1/2", "1", "2", "n", "n+1", "n", "1", "n = int(input())", "int(input())", "n" ]
n = int(input()) print(int((1/2)*n*(n+1)))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 42, 2, 13, 17, 0, 13, 13, 0, 13, 17, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 13, 13 ]
[ [ 24, 2 ], [ 30, 8 ], [ 25, 12 ], [ 28, 12 ], [ 33, 15 ], [ 25, 16 ], [ 28, 16 ], [ 27, 18 ], [ 34, 22 ], [ 31, 22 ], [ 24, 25 ], [ 27, 28 ], [ 30, 31 ], [ 25, 33 ], [ 28, 33 ], [ 33, 34 ] ]
[ "# 入力\nN = int(input())\n\n# totalの定義\ntotal = 0\n\n# ループ\nwhile N > 0:\n total += N\n N -= 1\nprint(total)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "total = 0", "total", "0", "while N > 0:\n total += N\n N -= 1", "N > 0", "N", "0", "total += N", "total", "N", "N -= 1", "N", "1", "print(total)", "print", "total", "N = int(input())", "int(input())", "N", "N -= 1", "1", "N", "total = 0", "0", "total", "total += N", "N", "total" ]
# 入力 N = int(input()) # totalの定義 total = 0 # ループ while N > 0: total += N N -= 1 print(total)
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 4, 13, 17, 2, 13, 17, 10, 4, 13 ]
[ [ 18, 2 ], [ 19, 15 ], [ 18, 19 ] ]
[ "n = int(input())\nprint(sum(range(1, n + 1)))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "print(sum(range(1, n + 1)))", "print", "sum(range(1, n + 1))", "sum", "range(1, n + 1)", "range", "1", "n + 1", "n", "1", "n = int(input())", "int(input())", "n" ]
n = int(input()) print(sum(range(1, n + 1)))
[ 7, 41, 28, 13, 4, 13, 2, 4, 13, 4, 13, 17, 4, 13, 4, 13, 4, 13, 13 ]
[ [ 4, 3 ], [ 3, 13 ] ]
[ "print(sum([x for x in range(int(input())+1)]))", "x for x in range(int(input())+1)", "for x in range(int(input())+1)", "x", "range(int(input())+1)", "range", "int(input())+1", "int(input())", "int", "input()", "input", "1", "for x in range(int(input())+1)", "x", "print(sum([x for x in range(int(input())+1)]))", "print", "sum([x for x in range(int(input())+1)])", "sum", "[x for x in range(int(input())+1)]" ]
print(sum([x for x in range(int(input())+1)]))
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 10, 4, 13 ]
[ [ 17, 2 ], [ 18, 11 ], [ 18, 13 ], [ 17, 18 ] ]
[ "n=int(input());print((n*(n+1))//2)", "n=int(input())", "n", "int(input())", "int", "input()", "input", "print((n*(n+1))//2)", "print", "(n*(n+1))//2", "n*(n+1)", "n", "n+1", "n", "1", "2", "n=int(input())", "int(input())", "n" ]
n=int(input());print((n*(n+1))//2)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 2, 13, 13, 4, 13, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 30, 2 ], [ 33, 8 ], [ 12, 11 ], [ 31, 16 ], [ 27, 19 ], [ 34, 21 ], [ 28, 21 ], [ 11, 22 ], [ 28, 25 ], [ 34, 25 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ] ]
[ "N = int(input())\nI = 0\nfor K in range(1,N+1):\n I = I+K\nprint(I)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "I = 0", "I", "0", "for K in range(1,N+1):\n I = I+K", "K", "range(1,N+1)", "range", "1", "N+1", "N", "1", "I = I+K", "I", "I+K", "I", "K", "print(I)", "print", "I", "I = I+K", "I+K", "I", "N = int(input())", "int(input())", "N", "I = 0", "0", "I" ]
N = int(input()) I = 0 for K in range(1,N+1): I = I+K print(I)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 42, 40, 13, 13, 0, 13, 13, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 13, 13 ]
[ [ 36, 2 ], [ 30, 8 ], [ 33, 11 ], [ 34, 15 ], [ 28, 15 ], [ 37, 16 ], [ 39, 18 ], [ 34, 19 ], [ 28, 19 ], [ 27, 21 ], [ 40, 25 ], [ 31, 25 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ], [ 36, 37 ], [ 34, 39 ], [ 28, 39 ], [ 39, 40 ] ]
[ "N=int(input())\nsum=0\ni=1\nwhile i<=N:\n sum+=i\n i+=1\nprint(sum)", "N=int(input())", "N", "int(input())", "int", "input()", "input", "sum=0", "sum", "0", "i=1", "i", "1", "while i<=N:\n sum+=i\n i+=1", "i<=N", "i", "N", "sum+=i", "sum", "i", "i+=1", "i", "1", "print(sum)", "print", "sum", "i+=1", "1", "i", "sum=0", "0", "sum", "i=1", "1", "i", "N=int(input())", "int(input())", "N", "sum+=i", "i", "sum" ]
N=int(input()) sum=0 i=1 while i<=N: sum+=i i+=1 print(sum)
[ 7, 15, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 2, 17, 17, 0, 13, 2, 2, 17, 17, 17, 0, 13, 12, 4, 18, 4, 18, 18, 13, 13, 13, 13, 0, 13, 12, 4, 13, 8, 13, 39, 4, 13, 17, 4, 13, 17, 23, 0, 13, 12, 4, 13, 8, 13, 39, 4, 13, 17, 4, 13, 17, 23, 0, 13, 12, 2, 4, 13, 13, 17, 23, 12, 13, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 14, 2, 13, 17, 4, 13, 10, 2, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 2, 13 ]
[ [ 115, 11 ], [ 97, 16 ], [ 106, 23 ], [ 103, 35 ], [ 109, 50 ], [ 112, 65 ], [ 77, 76 ], [ 107, 80 ], [ 76, 85 ], [ 76, 87 ], [ 101, 95 ], [ 97, 98 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ] ]
[ "# -*- coding: utf-8 -*-\nimport sys\nsys.setrecursionlimit(10**9)\nINF=10**18\nMOD=10**9+7\ninput=lambda: sys.stdin.readline().rstrip()\nYesNo=lambda b: bool([print('Yes')] if b else print('No'))\nYESNO=lambda b: bool([print('YES')] if b else print('NO'))\nint1=lambda x:int(x)-1\n\ndef main():\n N=int(input())\n print(N*(N+1)//2)\n\nif __name__ == '__main__':\n main()", "import sys", "sys", "sys.setrecursionlimit(10**9)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10**9", "10", "9", "INF=10**18", "INF", "10**18", "10", "18", "MOD=10**9+7", "MOD", "10**9+7", "10**9", "10", "9", "7", "input=lambda: sys.stdin.readline().rstrip()", "input", "lambda: sys.stdin.readline().rstrip()", "sys.stdin.readline().rstrip()", "sys.stdin.readline().rstrip", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "rstrip", "YesNo=lambda b: bool([print('Yes')] if b else print('No'))", "YesNo", "lambda b: bool([print('Yes')] if b else print('No'))", "bool([print('Yes')] if b else print('No'))", "bool", "[print('Yes')] if b else print('No')", "b", "[print('Yes')]", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "b", "YESNO=lambda b: bool([print('YES')] if b else print('NO'))", "YESNO", "lambda b: bool([print('YES')] if b else print('NO'))", "bool([print('YES')] if b else print('NO'))", "bool", "[print('YES')] if b else print('NO')", "b", "[print('YES')]", "print('YES')", "print", "'YES'", "print('NO')", "print", "'NO'", "b", "int1=lambda x:int(x)-1", "int1", "lambda x:int(x)-1", "int(x)-1", "int(x)", "int", "x", "1", "x", "def main():\n N=int(input())\n print(N*(N+1)//2)", "main", "N=int(input())", "N", "int(input())", "int", "input()", "input", "print(N*(N+1)//2)", "print", "N*(N+1)//2", "N*(N+1)", "N", "N+1", "N", "1", "2", "if __name__ == '__main__':\n main()", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "MOD=10**9+7", "10**9+7", "MOD", "def main():\n N=int(input())\n print(N*(N+1)//2)", "def main():\n N=int(input())\n print(N*(N+1)//2)", "main", "YesNo=lambda b: bool([print('Yes')] if b else print('No'))", "lambda b: bool([print('Yes')] if b else print('No'))", "YesNo", "input=lambda: sys.stdin.readline().rstrip()", "lambda: sys.stdin.readline().rstrip()", "input", "YESNO=lambda b: bool([print('YES')] if b else print('NO'))", "lambda b: bool([print('YES')] if b else print('NO'))", "YESNO", "int1=lambda x:int(x)-1", "lambda x:int(x)-1", "int1", "INF=10**18", "10**18", "INF" ]
# -*- coding: utf-8 -*- import sys sys.setrecursionlimit(10**9) INF=10**18 MOD=10**9+7 input=lambda: sys.stdin.readline().rstrip() YesNo=lambda b: bool([print('Yes')] if b else print('No')) YESNO=lambda b: bool([print('YES')] if b else print('NO')) int1=lambda x:int(x)-1 def main(): N=int(input()) print(N*(N+1)//2) if __name__ == '__main__': main()
[ 7, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 42, 40, 13, 4, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 17, 4, 13, 13, 10, 2, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 40, 2 ], [ 37, 6 ], [ 34, 9 ], [ 35, 13 ], [ 44, 13 ], [ 41, 16 ], [ 31, 18 ], [ 38, 20 ], [ 32, 20 ], [ 35, 21 ], [ 44, 21 ], [ 43, 23 ], [ 35, 25 ], [ 44, 25 ], [ 32, 29 ], [ 38, 29 ], [ 31, 32 ], [ 34, 35 ], [ 37, 38 ], [ 40, 41 ], [ 43, 44 ] ]
[ "N = input()\ns = 0\ni = 1\nwhile i <= int(N):\n\ts = s + i\n\ti = i + 1\nprint(s)", "N = input()", "N", "input()", "input", "s = 0", "s", "0", "i = 1", "i", "1", "while i <= int(N):\n\ts = s + i\n\ti = i + 1", "i <= int(N)", "i", "int(N)", "int", "N", "s = s + i", "s", "s + i", "s", "i", "i = i + 1", "i", "i + 1", "i", "1", "print(s)", "print", "s", "s = s + i", "s + i", "s", "i = 1", "1", "i", "s = 0", "0", "s", "N = input()", "input()", "N", "i = i + 1", "i + 1", "i" ]
N = input() s = 0 i = 1 while i <= int(N): s = s + i i = i + 1 print(s)
[ 7, 41, 28, 13, 4, 13, 17, 2, 4, 13, 4, 13, 17, 4, 13, 4, 13, 4, 13, 13 ]
[ [ 4, 3 ], [ 3, 14 ] ]
[ "print(sum([i for i in range(1, int(input())+1)]))", "i for i in range(1, int(input())+1)", "for i in range(1, int(input())+1)", "i", "range(1, int(input())+1)", "range", "1", "int(input())+1", "int(input())", "int", "input()", "input", "1", "for i in range(1, int(input())+1)", "i", "print(sum([i for i in range(1, int(input())+1)]))", "print", "sum([i for i in range(1, int(input())+1)])", "sum", "[i for i in range(1, int(input())+1)]" ]
print(sum([i for i in range(1, int(input())+1)]))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 13, 0, 13, 17, 4, 13, 13, 10, 13, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 34, 2 ], [ 31, 8 ], [ 37, 11 ], [ 15, 14 ], [ 35, 17 ], [ 28, 19 ], [ 38, 20 ], [ 41, 20 ], [ 40, 22 ], [ 29, 26 ], [ 32, 26 ], [ 38, 28 ], [ 41, 28 ], [ 28, 29 ], [ 31, 32 ], [ 34, 35 ], [ 37, 38 ], [ 40, 41 ] ]
[ "Array = int(input())\ntmp = 0\nadd = 1\nfor i in range(Array):\n tmp += add\n add += 1\nprint(tmp)", "Array = int(input())", "Array", "int(input())", "int", "input()", "input", "tmp = 0", "tmp", "0", "add = 1", "add", "1", "for i in range(Array):\n tmp += add\n add += 1", "i", "range(Array)", "range", "Array", "tmp += add", "tmp", "add", "add += 1", "add", "1", "print(tmp)", "print", "tmp", "tmp += add", "add", "tmp", "tmp = 0", "0", "tmp", "Array = int(input())", "int(input())", "Array", "add = 1", "1", "add", "add += 1", "1", "add" ]
Array = int(input()) tmp = 0 add = 1 for i in range(Array): tmp += add add += 1 print(tmp)
[ 7, 15, 13, 0, 13, 4, 13, 4, 13, 0, 13, 4, 18, 13, 13, 2, 2, 13, 2, 17, 13, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 26, 4 ], [ 29, 10 ], [ 27, 17 ], [ 27, 20 ], [ 30, 24 ], [ 26, 27 ], [ 29, 30 ] ]
[ "import math\nN = int(input())\n\nsum = math.floor((N * (1 + N))/2)\n\nprint(sum)", "import math", "math", "N = int(input())", "N", "int(input())", "int", "input()", "input", "sum = math.floor((N * (1 + N))/2)", "sum", "math.floor((N * (1 + N))/2)", "math.floor", "math", "floor", "(N * (1 + N))/2", "N * (1 + N)", "N", "1 + N", "1", "N", "2", "print(sum)", "print", "sum", "N = int(input())", "int(input())", "N", "sum = math.floor((N * (1 + N))/2)", "math.floor((N * (1 + N))/2)", "sum" ]
import math N = int(input()) sum = math.floor((N * (1 + N))/2) print(sum)
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 2, 17, 13, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 4, 15 ], [ 4, 16 ], [ 22, 19 ] ]
[ "def resolve():\n n=int(input())\n print((1+n)*n//2)\nresolve()", "def resolve():\n n=int(input())\n print((1+n)*n//2)", "resolve", "n=int(input())", "n", "int(input())", "int", "input()", "input", "print((1+n)*n//2)", "print", "(1+n)*n//2", "(1+n)*n", "1+n", "1", "n", "n", "2", "resolve()", "resolve", "def resolve():\n n=int(input())\n print((1+n)*n//2)", "def resolve():\n n=int(input())\n print((1+n)*n//2)", "resolve" ]
def resolve(): n=int(input()) print((1+n)*n//2) resolve()
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 13, 17, 4, 13, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 30, 2 ], [ 36, 6 ], [ 31, 9 ], [ 33, 11 ], [ 15, 14 ], [ 37, 17 ], [ 27, 19 ], [ 14, 21 ], [ 28, 25 ], [ 34, 25 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ], [ 36, 37 ] ]
[ "# coding: utf-8\n\ninput_ = input()\nN = int(input_)\n\nsum_ = 0\n\nfor i in range(N):\n sum_ += i + 1\n\nprint(sum_)", "input_ = input()", "input_", "input()", "input", "N = int(input_)", "N", "int(input_)", "int", "input_", "sum_ = 0", "sum_", "0", "for i in range(N):\n sum_ += i + 1", "i", "range(N)", "range", "N", "sum_ += i + 1", "sum_", "i + 1", "i", "1", "print(sum_)", "print", "sum_", "sum_ += i + 1", "i + 1", "sum_", "input_ = input()", "input()", "input_", "sum_ = 0", "0", "sum_", "N = int(input_)", "int(input_)", "N" ]
# coding: utf-8 input_ = input() N = int(input_) sum_ = 0 for i in range(N): sum_ += i + 1 print(sum_)
[ 7, 15, 13, 12, 13, 29, 4, 13, 4, 13, 17, 2, 13, 17, 23, 13, 12, 13, 12, 13, 28, 13, 18, 13, 13, 28, 13, 4, 18, 13, 13, 27, 13, 0, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 4, 13, 4, 13, 13, 12, 13, 15, 13, 4, 18, 13, 13, 14, 2, 13, 17, 4, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 15, 12 ], [ 15, 15 ], [ 22, 21 ], [ 27, 26 ], [ 21, 29 ], [ 26, 32 ], [ 35, 34 ], [ 19, 36 ], [ 39, 38 ], [ 34, 43 ], [ 65, 47 ], [ 38, 48 ], [ 71, 62 ] ]
[ "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(N: int):\n return sum(range(1, N+1))\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n print(solve(N))\n\ndef test():\n import doctest\n doctest.testmod()\n\nif __name__ == '__main__':\n #test()\n main()", "import sys", "sys", "def solve(N: int):\n return sum(range(1, N+1))\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools", "solve", "return sum(range(1, N+1))", "sum(range(1, N+1))", "sum", "range(1, N+1)", "range", "1", "N+1", "N", "1", "N: int", "N", "def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n print(solve(N))", "main", "def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n ", "iterate_tokens", "for line in sys.stdin:\n for word in line.split():\n yield word\n ", "line", "sys.stdin", "sys", "stdin", "for word in line.split():\n yield word\n ", "word", "line.split()", "line.split", "line", "split", "yield word", "word", "tokens = iterate_tokens()", "tokens", "iterate_tokens()", "iterate_tokens", "N = int(next(tokens))", "N", "int(next(tokens))", "int", "next(tokens)", "next", "tokens", "print(solve(N))", "print", "solve(N)", "solve", "N", "def test():\n import doctest\n doctest.testmod()", "test", "import doctest", "doctest", "doctest.testmod()", "doctest.testmod", "doctest", "testmod", "if __name__ == '__main__':\n #test()\n main()", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "def solve(N: int):\n return sum(range(1, N+1))\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools", "def solve(N: int):\n return sum(range(1, N+1))\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools", "solve", "def test():\n import doctest\n doctest.testmod()", "def test():\n import doctest\n doctest.testmod()", "test", "def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n print(solve(N))", "def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n print(solve(N))", "main" ]
#!/usr/bin/env python3 import sys def solve(N: int): return sum(range(1, N+1)) # Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools def main(): def iterate_tokens(): for line in sys.stdin: for word in line.split(): yield word tokens = iterate_tokens() N = int(next(tokens)) # type: int print(solve(N)) def test(): import doctest doctest.testmod() if __name__ == '__main__': #test() main()
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 40, 40, 13, 17, 10, 4, 13 ]
[ [ 17, 2 ], [ 18, 11 ], [ 18, 14 ], [ 17, 18 ] ]
[ "n=int(input())\nprint(n*-~n>>1)", "n=int(input())", "n", "int(input())", "int", "input()", "input", "print(n*-~n>>1)", "print", "n*-~n>>1", "n*-~n", "n", "-~n", "~n", "n", "1", "n=int(input())", "int(input())", "n" ]
n=int(input()) print(n*-~n>>1)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 17, 2, 13, 17, 4, 13, 0, 13, 4, 13, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 27, 2 ], [ 10, 9 ], [ 28, 14 ], [ 9, 17 ], [ 30, 19 ], [ 31, 25 ], [ 27, 28 ], [ 30, 31 ] ]
[ "n = int(input())\nans = sum([x for x in range(1, n+1)])\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "x for x in range(1, n+1)", "for x in range(1, n+1)", "x", "range(1, n+1)", "range", "1", "n+1", "n", "1", "for x in range(1, n+1)", "x", "ans = sum([x for x in range(1, n+1)])", "ans", "sum([x for x in range(1, n+1)])", "sum", "[x for x in range(1, n+1)]", "print(ans)", "print", "ans", "n = int(input())", "int(input())", "n", "ans = sum([x for x in range(1, n+1)])", "sum([x for x in range(1, n+1)])", "ans" ]
n = int(input()) ans = sum([x for x in range(1, n+1)]) print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 10, 4, 13 ]
[ [ 17, 2 ], [ 18, 11 ], [ 18, 13 ], [ 17, 18 ] ]
[ "a = int(input())\nprint((a*(a+1))//2)", "a = int(input())", "a", "int(input())", "int", "input()", "input", "print((a*(a+1))//2)", "print", "(a*(a+1))//2", "a*(a+1)", "a", "a+1", "a", "1", "2", "a = int(input())", "int(input())", "a" ]
a = int(input()) print((a*(a+1))//2)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 13, 17, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13 ]
[ [ 24, 2 ], [ 27, 8 ], [ 12, 11 ], [ 25, 14 ], [ 30, 16 ], [ 11, 18 ], [ 31, 22 ], [ 28, 22 ], [ 24, 25 ], [ 27, 28 ], [ 30, 31 ] ]
[ "# https://atcoder.jp/contests/abc043/tasks/abc043_a\nn = int(input())\nsum = 0\nfor i in range(n):\n sum += (i + 1)\nprint(sum)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "sum = 0", "sum", "0", "for i in range(n):\n sum += (i + 1)", "i", "range(n)", "range", "n", "sum += (i + 1)", "sum", "i + 1", "i", "1", "print(sum)", "print", "sum", "n = int(input())", "int(input())", "n", "sum = 0", "0", "sum", "sum += (i + 1)", "i + 1", "sum" ]
# https://atcoder.jp/contests/abc043/tasks/abc043_a n = int(input()) sum = 0 for i in range(n): sum += (i + 1) print(sum)
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 10, 4, 13 ]
[ [ 17, 2 ], [ 18, 11 ], [ 18, 13 ], [ 17, 18 ] ]
[ "n = int(input())\n\nprint(n*(n+1)//2)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "print(n*(n+1)//2)", "print", "n*(n+1)//2", "n*(n+1)", "n", "n+1", "n", "1", "2", "n = int(input())", "int(input())", "n" ]
n = int(input()) print(n*(n+1)//2)
[ 7, 41, 28, 13, 4, 13, 17, 2, 4, 13, 4, 13, 17, 4, 13, 0, 13, 13, 4, 13, 4, 13, 13, 10, 13, 13 ]
[ [ 4, 3 ], [ 3, 14 ], [ 24, 16 ], [ 25, 22 ], [ 24, 25 ] ]
[ "x=[i for i in range(1,int(input())+1)]\nprint(sum(x))", "i for i in range(1,int(input())+1)", "for i in range(1,int(input())+1)", "i", "range(1,int(input())+1)", "range", "1", "int(input())+1", "int(input())", "int", "input()", "input", "1", "for i in range(1,int(input())+1)", "i", "x=[i for i in range(1,int(input())+1)]", "x", "[i for i in range(1,int(input())+1)]", "print(sum(x))", "print", "sum(x)", "sum", "x", "x=[i for i in range(1,int(input())+1)]", "[i for i in range(1,int(input())+1)]", "x" ]
x=[i for i in range(1,int(input())+1)] print(sum(x))
[ 7, 0, 13, 4, 13, 4, 13, 12, 13, 14, 2, 13, 17, 29, 17, 29, 2, 13, 4, 13, 2, 13, 17, 23, 13, 4, 13, 4, 13, 13, 10, 12, 13, 10, 4, 13 ]
[ [ 34, 2 ], [ 24, 11 ], [ 24, 17 ], [ 24, 21 ], [ 24, 24 ], [ 32, 28 ], [ 35, 29 ], [ 34, 35 ] ]
[ "n = int(input())\ndef func(n):\n if n==1:\n return 1\n return n + func(n-1)\nprint(func(n))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "def func(n):\n if n==1:\n return 1\n return n + func(n-1)", "func", "if n==1:\n return 1\n ", "n==1", "n", "1", "return 1", "1", "return n + func(n-1)", "n + func(n-1)", "n", "func(n-1)", "func", "n-1", "n", "1", "n", "n", "print(func(n))", "print", "func(n)", "func", "n", "def func(n):\n if n==1:\n return 1\n return n + func(n-1)", "def func(n):\n if n==1:\n return 1\n return n + func(n-1)", "func", "n = int(input())", "int(input())", "n" ]
n = int(input()) def func(n): if n==1: return 1 return n + func(n-1) print(func(n))
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 13, 4, 13, 13, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 11, 10 ], [ 14, 13 ], [ 4, 18 ], [ 22, 21 ], [ 13, 22 ], [ 21, 25 ], [ 10, 25 ], [ 34, 31 ] ]
[ "# A - キャンディーとN人の子供イージー\ndef main():\n n = int(input())\n cnt = 0\n\n for i in range(1, n+1):\n cnt += i\n else:\n print(cnt)\n \n \nif __name__ == \"__main__\":\n main()", "def main():\n n = int(input())\n cnt = 0\n\n for i in range(1, n+1):\n cnt += i\n else:\n print(cnt)\n \n ", "main", "n = int(input())", "n", "int(input())", "int", "input()", "input", "cnt = 0", "cnt", "0", "for i in range(1, n+1):\n cnt += i\n else:\n print(cnt)\n \n ", "i", "range(1, n+1)", "range", "1", "n+1", "n", "1", "cnt += i", "cnt", "i", "print(cnt)", "print", "cnt", "if __name__ == \"__main__\":\n main()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "def main():\n n = int(input())\n cnt = 0\n\n for i in range(1, n+1):\n cnt += i\n else:\n print(cnt)\n \n ", "def main():\n n = int(input())\n cnt = 0\n\n for i in range(1, n+1):\n cnt += i\n else:\n print(cnt)\n \n ", "main" ]
# 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()
[ 7, 15, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 2, 13, 17, 0, 13, 13, 4, 13, 13, 10, 13, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 35, 7 ], [ 32, 13 ], [ 17, 16 ], [ 36, 20 ], [ 29, 23 ], [ 16, 24 ], [ 30, 27 ], [ 33, 27 ], [ 16, 29 ], [ 29, 30 ], [ 32, 33 ], [ 35, 36 ] ]
[ "import os, sys, re, math\n\nN = int(input())\n\nret = 0\nfor i in range(N+1):\n ret += i\n\nprint(ret)", "import os, sys, re, math", "os", "sys", "re", "math", "N = int(input())", "N", "int(input())", "int", "input()", "input", "ret = 0", "ret", "0", "for i in range(N+1):\n ret += i", "i", "range(N+1)", "range", "N+1", "N", "1", "ret += i", "ret", "i", "print(ret)", "print", "ret", "ret += i", "i", "ret", "ret = 0", "0", "ret", "N = int(input())", "int(input())", "N" ]
import os, sys, re, math N = int(input()) ret = 0 for i in range(N+1): ret += i print(ret)
[ 7, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 10, 4, 13 ]
[ [ 17, 2 ], [ 18, 11 ], [ 18, 13 ], [ 17, 18 ] ]
[ "a=int(input())\nprint(a*(a+1)//2)", "a=int(input())", "a", "int(input())", "int", "input()", "input", "print(a*(a+1)//2)", "print", "a*(a+1)//2", "a*(a+1)", "a", "a+1", "a", "1", "2", "a=int(input())", "int(input())", "a" ]
a=int(input()) print(a*(a+1)//2)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 2, 13, 17, 0, 13, 2, 13, 13, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13 ]
[ [ 26, 2 ], [ 29, 8 ], [ 12, 11 ], [ 27, 15 ], [ 32, 18 ], [ 30, 20 ], [ 33, 20 ], [ 11, 21 ], [ 33, 24 ], [ 30, 24 ], [ 26, 27 ], [ 29, 30 ], [ 32, 33 ] ]
[ "# -*- coding: utf-8 -*-\n\nn = int(input())\ncounter = 0\n\nfor i in range(n + 1):\n counter = counter + i\n\nprint(counter)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "counter = 0", "counter", "0", "for i in range(n + 1):\n counter = counter + i", "i", "range(n + 1)", "range", "n + 1", "n", "1", "counter = counter + i", "counter", "counter + i", "counter", "i", "print(counter)", "print", "counter", "n = int(input())", "int(input())", "n", "counter = 0", "0", "counter", "counter = counter + i", "counter + i", "counter" ]
# -*- coding: utf-8 -*- n = int(input()) counter = 0 for i in range(n + 1): counter = counter + i print(counter)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 2, 2, 13, 2, 13, 17, 17, 4, 13, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 23, 2 ], [ 20, 8 ], [ 24, 11 ], [ 24, 13 ], [ 21, 18 ], [ 20, 21 ], [ 23, 24 ] ]
[ "n = int(input())\nanswer = n*(n+1)//2\nprint(answer)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "answer = n*(n+1)//2", "answer", "n*(n+1)//2", "n*(n+1)", "n", "n+1", "n", "1", "2", "print(answer)", "print", "answer", "answer = n*(n+1)//2", "n*(n+1)//2", "answer", "n = int(input())", "int(input())", "n" ]
n = int(input()) answer = n*(n+1)//2 print(answer)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 13, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 27, 2 ], [ 24, 8 ], [ 12, 11 ], [ 28, 14 ], [ 30, 16 ], [ 28, 18 ], [ 11, 19 ], [ 31, 22 ], [ 25, 22 ], [ 24, 25 ], [ 27, 28 ], [ 30, 31 ] ]
[ "N = int (input ())\nx =0\nfor i in range (N):\n x += N-i\nprint (x)", "N = int (input ())", "N", "int (input ())", "int", "input ()", "input", "x =0", "x", "0", "for i in range (N):\n x += N-i", "i", "range (N)", "range", "N", "x += N-i", "x", "N-i", "N", "i", "print (x)", "print", "x", "x =0", "0", "x", "N = int (input ())", "int (input ())", "N", "x += N-i", "N-i", "x" ]
N = int (input ()) x =0 for i in range (N): x += N-i print (x)
[ 7, 15, 13, 15, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 12, 4, 13, 4, 18, 18, 13, 13, 13, 0, 13, 12, 4, 13, 13, 4, 18, 4, 18, 18, 13, 13, 13, 13, 0, 13, 12, 4, 13, 4, 13, 0, 13, 12, 4, 18, 4, 18, 18, 13, 13, 13, 13, 0, 13, 12, 4, 13, 17, 31, 13, 17, 32, 4, 13, 0, 13, 18, 13, 13, 32, 13, 23, 16, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 17, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 4, 13 ]
[ [ 98, 13 ], [ 104, 24 ], [ 95, 39 ], [ 105, 44 ], [ 107, 46 ], [ 101, 58 ], [ 71, 70 ], [ 110, 79 ], [ 99, 81 ], [ 111, 88 ], [ 111, 90 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ] ]
[ "import sys\nimport math\n\n#https://atcoder.jp/contests/agc008/submissions/15248942\nsys.setrecursionlimit(10 ** 8)\nini = lambda: int(sys.stdin.readline())\ninm = lambda: map(int, sys.stdin.readline().split())\ninl = lambda: list(inm())\nins = lambda: sys.stdin.readline().rstrip()\ndebug = lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))\n\nN = ini()\nprint(int((N*(N+1))/2))\n'''\nsum = 0\nfor i in range(N):\n sum += (i+1)\nprint(sum)\n'''", "import sys", "sys", "import math", "math", "sys.setrecursionlimit(10 ** 8)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10 ** 8", "10", "8", "ini = lambda: int(sys.stdin.readline())", "ini", "lambda: int(sys.stdin.readline())", "int(sys.stdin.readline())", "int", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "inm = lambda: map(int, sys.stdin.readline().split())", "inm", "lambda: map(int, sys.stdin.readline().split())", "map(int, sys.stdin.readline().split())", "map", "int", "sys.stdin.readline().split()", "sys.stdin.readline().split", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "split", "inl = lambda: list(inm())", "inl", "lambda: list(inm())", "list(inm())", "list", "inm()", "inm", "ins = lambda: sys.stdin.readline().rstrip()", "ins", "lambda: sys.stdin.readline().rstrip()", "sys.stdin.readline().rstrip()", "sys.stdin.readline().rstrip", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "rstrip", "debug = lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))", "debug", "lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))", "print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))", "print", "\"\\033[33m\"", "*a", "a", "\"\\033[0m\"", "**dict(file=sys.stderr, **kw)", "dict(file=sys.stderr, **kw)", "dict", "file=sys.stderr", "file", "sys.stderr", "sys", "stderr", "**kw", "kw", "*a", "**kw", "N = ini()", "N", "ini()", "ini", "print(int((N*(N+1))/2))", "print", "int((N*(N+1))/2)", "int", "(N*(N+1))/2", "N*(N+1)", "N", "N+1", "N", "1", "2", "'''\nsum = 0\nfor i in range(N):\n sum += (i+1)\nprint(sum)\n'''", "inl = lambda: list(inm())", "lambda: list(inm())", "inl", "ini = lambda: int(sys.stdin.readline())", "lambda: int(sys.stdin.readline())", "ini", "debug = lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))", "lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))", "debug", "inm = lambda: map(int, sys.stdin.readline().split())", "lambda: map(int, sys.stdin.readline().split())", "inm", "ins = lambda: sys.stdin.readline().rstrip()", "lambda: sys.stdin.readline().rstrip()", "ins", "N = ini()", "ini()", "N" ]
import sys import math #https://atcoder.jp/contests/agc008/submissions/15248942 sys.setrecursionlimit(10 ** 8) ini = lambda: int(sys.stdin.readline()) inm = lambda: map(int, sys.stdin.readline().split()) inl = lambda: list(inm()) ins = lambda: sys.stdin.readline().rstrip() debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw)) N = ini() print(int((N*(N+1))/2)) ''' sum = 0 for i in range(N): sum += (i+1) print(sum) '''
[ 7, 0, 13, 4, 13, 4, 13, 28, 13, 4, 13, 13, 0, 13, 2, 13, 13, 4, 13, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 24, 2 ], [ 9, 8 ], [ 25, 11 ], [ 21, 13 ], [ 25, 15 ], [ 22, 15 ], [ 8, 16 ], [ 22, 19 ], [ 25, 19 ], [ 21, 22 ], [ 24, 25 ] ]
[ "n=int(input())\nfor i in range(n):\n n=n+i\nprint(n)", "n=int(input())", "n", "int(input())", "int", "input()", "input", "for i in range(n):\n n=n+i", "i", "range(n)", "range", "n", "n=n+i", "n", "n+i", "n", "i", "print(n)", "print", "n", "n=n+i", "n+i", "n", "n=int(input())", "int(input())", "n" ]
n=int(input()) for i in range(n): n=n+i print(n)
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 2, 13, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13 ]
[ [ 33, 2 ], [ 30, 6 ], [ 34, 9 ], [ 39, 11 ], [ 15, 14 ], [ 31, 19 ], [ 34, 19 ], [ 36, 22 ], [ 40, 24 ], [ 37, 24 ], [ 14, 25 ], [ 37, 28 ], [ 40, 28 ], [ 30, 31 ], [ 33, 34 ], [ 36, 37 ], [ 39, 40 ] ]
[ "n=input()\nn=int(n)\ns=0\nfor i in range(1,n+1):\n s =s+i\nprint(s)\n\n \n ", "n=input()", "n", "input()", "input", "n=int(n)", "n", "int(n)", "int", "n", "s=0", "s", "0", "for i in range(1,n+1):\n s =s+i", "i", "range(1,n+1)", "range", "1", "n+1", "n", "1", "s =s+i", "s", "s+i", "s", "i", "print(s)", "print", "s", "n=int(n)", "int(n)", "n", "n=input()", "input()", "n", "s =s+i", "s+i", "s", "s=0", "0", "s" ]
n=input() n=int(n) s=0 for i in range(1,n+1): s =s+i print(s)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 13, 17, 4, 13, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13 ]
[ [ 26, 2 ], [ 29, 8 ], [ 12, 11 ], [ 27, 14 ], [ 32, 16 ], [ 11, 18 ], [ 33, 24 ], [ 30, 24 ], [ 26, 27 ], [ 29, 30 ], [ 32, 33 ] ]
[ "n=int(input())\nsum_num=0\nfor i in range(n):\n sum_num+=(i+1)\nprint(str(sum_num))", "n=int(input())", "n", "int(input())", "int", "input()", "input", "sum_num=0", "sum_num", "0", "for i in range(n):\n sum_num+=(i+1)", "i", "range(n)", "range", "n", "sum_num+=(i+1)", "sum_num", "i+1", "i", "1", "print(str(sum_num))", "print", "str(sum_num)", "str", "sum_num", "n=int(input())", "int(input())", "n", "sum_num=0", "0", "sum_num", "sum_num+=(i+1)", "i+1", "sum_num" ]
n=int(input()) sum_num=0 for i in range(n): sum_num+=(i+1) print(str(sum_num))
[ 7, 12, 13, 29, 4, 13, 4, 18, 4, 13, 13, 12, 13, 29, 4, 13, 4, 13, 13, 4, 18, 4, 18, 4, 13, 13, 13, 17, 12, 13, 0, 13, 4, 13, 29, 2, 2, 13, 2, 13, 17, 17, 14, 2, 13, 17, 4, 13, 4, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 32, 31 ], [ 55, 33 ], [ 31, 37 ], [ 31, 39 ], [ 52, 49 ] ]
[ "\n\ndef read_int():\n return int(input().strip())\n\n\ndef read_ints():\n return list(map(int, input().strip().split(' ')))\n\n\ndef solve():\n N = read_int()\n return N*(N+1)//2\n\n\nif __name__ == '__main__':\n print(solve())", "def read_int():\n return int(input().strip())", "read_int", "return int(input().strip())", "int(input().strip())", "int", "input().strip()", "().strip", "()", "input", "strip", "def read_ints():\n return list(map(int, input().strip().split(' ')))", "read_ints", "return list(map(int, input().strip().split(' ')))", "list(map(int, input().strip().split(' ')))", "list", "map(int, input().strip().split(' '))", "map", "int", "input().strip().split(' ')", "().strip().split", "().strip()", "().strip", "()", "input", "strip", "split", "' '", "def solve():\n N = read_int()\n return N*(N+1)//2", "solve", "N = read_int()", "N", "read_int()", "read_int", "return N*(N+1)//2", "N*(N+1)//2", "N*(N+1)", "N", "N+1", "N", "1", "2", "if __name__ == '__main__':\n print(solve())", "__name__ == '__main__'", "__name__", "'__main__'", "print(solve())", "print", "solve()", "solve", "def solve():\n N = read_int()\n return N*(N+1)//2", "def solve():\n N = read_int()\n return N*(N+1)//2", "solve", "def read_int():\n return int(input().strip())", "def read_int():\n return int(input().strip())", "read_int", "def read_ints():\n return list(map(int, input().strip().split(' ')))", "def read_ints():\n return list(map(int, input().strip().split(' ')))", "read_ints" ]
def read_int(): return int(input().strip()) def read_ints(): return list(map(int, input().strip().split(' '))) def solve(): N = read_int() return N*(N+1)//2 if __name__ == '__main__': print(solve())
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 13, 17, 2, 13, 17, 4, 13, 4, 13, 4, 13, 13, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 12, 11 ], [ 4, 16 ], [ 11, 19 ], [ 29, 26 ] ]
[ "def resolve():\n N = int(input())\n print(sum([i for i in range(1, N+1)]))\n\nresolve()", "def resolve():\n N = int(input())\n print(sum([i for i in range(1, N+1)]))", "resolve", "N = int(input())", "N", "int(input())", "int", "input()", "input", "i for i in range(1, N+1)", "for i in range(1, N+1)", "i", "range(1, N+1)", "range", "1", "N+1", "N", "1", "for i in range(1, N+1)", "i", "print(sum([i for i in range(1, N+1)]))", "print", "sum([i for i in range(1, N+1)])", "sum", "[i for i in range(1, N+1)]", "resolve()", "resolve", "def resolve():\n N = int(input())\n print(sum([i for i in range(1, N+1)]))", "def resolve():\n N = int(input())\n print(sum([i for i in range(1, N+1)]))", "resolve" ]
def resolve(): N = int(input()) print(sum([i for i in range(1, N+1)])) resolve()
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 4, 13, 2, 2, 2, 13, 17, 13, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 31, 2 ], [ 28, 6 ], [ 32, 9 ], [ 25, 11 ], [ 29, 17 ], [ 32, 17 ], [ 29, 19 ], [ 32, 19 ], [ 26, 23 ], [ 25, 26 ], [ 28, 29 ], [ 31, 32 ] ]
[ "child_num = input()\nchild_num = int(child_num)\ncandy_num = int((child_num**2 + child_num) / 2)\nprint(candy_num)", "child_num = input()", "child_num", "input()", "input", "child_num = int(child_num)", "child_num", "int(child_num)", "int", "child_num", "candy_num = int((child_num**2 + child_num) / 2)", "candy_num", "int((child_num**2 + child_num) / 2)", "int", "(child_num**2 + child_num) / 2", "child_num**2 + child_num", "child_num**2", "child_num", "2", "child_num", "2", "print(candy_num)", "print", "candy_num", "candy_num = int((child_num**2 + child_num) / 2)", "int((child_num**2 + child_num) / 2)", "candy_num", "child_num = int(child_num)", "int(child_num)", "child_num", "child_num = input()", "input()", "child_num" ]
child_num = input() child_num = int(child_num) candy_num = int((child_num**2 + child_num) / 2) print(candy_num)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 2, 13, 17, 0, 13, 2, 13, 13, 4, 13, 13, 10, 17, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 32, 2 ], [ 26, 8 ], [ 12, 11 ], [ 33, 15 ], [ 29, 18 ], [ 27, 20 ], [ 30, 20 ], [ 11, 21 ], [ 30, 24 ], [ 27, 24 ], [ 26, 27 ], [ 29, 30 ], [ 32, 33 ] ]
[ "child = int(input())\n\ncandy = 0\n\nfor i in range(child + 1):\n candy = candy + i\n\nprint(candy)", "child = int(input())", "child", "int(input())", "int", "input()", "input", "candy = 0", "candy", "0", "for i in range(child + 1):\n candy = candy + i", "i", "range(child + 1)", "range", "child + 1", "child", "1", "candy = candy + i", "candy", "candy + i", "candy", "i", "print(candy)", "print", "candy", "candy = 0", "0", "candy", "candy = candy + i", "candy + i", "candy", "child = int(input())", "int(input())", "child" ]
child = int(input()) candy = 0 for i in range(child + 1): candy = candy + i print(candy)
[ 7, 12, 13, 29, 4, 13, 13, 4, 18, 4, 13, 13, 12, 13, 14, 40, 13, 29, 4, 13, 4, 13, 29, 4, 13, 23, 13, 17, 12, 13, 29, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 10, 12, 13, 10, 4, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 26, 16 ], [ 27, 26 ], [ 58, 42 ], [ 56, 44 ], [ 59, 49 ], [ 59, 51 ], [ 58, 59 ] ]
[ "def cin():\n\treturn map(int,input().split())\n\ndef cino(test=False):\n if not test:\n return int(input())\n else:\n return input()\ndef cina():\n return list(map(int,input().split()))\n\na = cino()\nprint((a*(a+1))//2)\n", "def cin():\n\treturn map(int,input().split())", "cin", "return map(int,input().split())", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "def cino(test=False):\n if not test:\n return int(input())\n else:\n return input()", "cino", "if not test:\n return int(input())\n else:\n return input()", "not test", "test", "return int(input())", "int(input())", "int", "input()", "input", "return input()", "input()", "input", "test=False", "test", "False", "def cina():\n return list(map(int,input().split()))", "cina", "return list(map(int,input().split()))", "list(map(int,input().split()))", "list", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a = cino()", "a", "cino()", "cino", "print((a*(a+1))//2)", "print", "(a*(a+1))//2", "a*(a+1)", "a", "a+1", "a", "1", "2", "def cino(test=False):\n if not test:\n return int(input())\n else:\n return input()", "def cino(test=False):\n if not test:\n return int(input())\n else:\n return input()", "cino", "a = cino()", "cino()", "a", "def cina():\n return list(map(int,input().split()))", "def cina():\n return list(map(int,input().split()))", "cina", "def cin():\n\treturn map(int,input().split())", "def cin():\n\treturn map(int,input().split())", "cin" ]
def cin(): return map(int,input().split()) def cino(test=False): if not test: return int(input()) else: return input() def cina(): return list(map(int,input().split())) a = cino() print((a*(a+1))//2)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 17, 13, 0, 13, 2, 13, 17, 4, 13, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13 ]
[ [ 35, 2 ], [ 38, 8 ], [ 44, 11 ], [ 15, 14 ], [ 36, 17 ], [ 32, 19 ], [ 45, 22 ], [ 42, 22 ], [ 41, 24 ], [ 45, 26 ], [ 42, 26 ], [ 33, 30 ], [ 39, 30 ], [ 32, 33 ], [ 35, 36 ], [ 38, 39 ], [ 41, 42 ], [ 44, 45 ] ]
[ "N=int(input())\nans=0\na=1\nfor i in range(N):\n ans+=1*a\n a=a+1\nprint(ans)", "N=int(input())", "N", "int(input())", "int", "input()", "input", "ans=0", "ans", "0", "a=1", "a", "1", "for i in range(N):\n ans+=1*a\n a=a+1", "i", "range(N)", "range", "N", "ans+=1*a", "ans", "1*a", "1", "a", "a=a+1", "a", "a+1", "a", "1", "print(ans)", "print", "ans", "ans+=1*a", "1*a", "ans", "N=int(input())", "int(input())", "N", "ans=0", "0", "ans", "a=a+1", "a+1", "a", "a=1", "1", "a" ]
N=int(input()) ans=0 a=1 for i in range(N): ans+=1*a a=a+1 print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 2, 13, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 30, 2 ], [ 27, 8 ], [ 12, 11 ], [ 31, 16 ], [ 33, 19 ], [ 28, 21 ], [ 34, 21 ], [ 11, 22 ], [ 34, 25 ], [ 28, 25 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ] ]
[ "N=int(input())\ns=0\nfor i in range(0,N+1):\n s=s+i\nprint(s)", "N=int(input())", "N", "int(input())", "int", "input()", "input", "s=0", "s", "0", "for i in range(0,N+1):\n s=s+i", "i", "range(0,N+1)", "range", "0", "N+1", "N", "1", "s=s+i", "s", "s+i", "s", "i", "print(s)", "print", "s", "s=0", "0", "s", "N=int(input())", "int(input())", "N", "s=s+i", "s+i", "s" ]
N=int(input()) s=0 for i in range(0,N+1): s=s+i print(s)
[ 7, 12, 13, 15, 13, 0, 13, 18, 18, 13, 13, 13, 4, 18, 13, 13, 2, 17, 17, 15, 15, 15, 15, 15, 0, 13, 4, 13, 4, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 7, 6 ], [ 26, 25 ], [ 6, 29 ], [ 25, 34 ], [ 25, 36 ], [ 47, 44 ] ]
[ "def main():\n import sys\n input = sys.stdin.readline\n sys.setrecursionlimit(10**7)\n from collections import Counter, deque\n #from collections import defaultdict\n from itertools import combinations, permutations, accumulate, groupby, product\n from bisect import bisect_left,bisect_right\n from heapq import heapify, heappop, heappush\n from math import floor, ceil\n #from operator import itemgetter\n\n #inf = 10**17\n #mod = 10**9 + 7\n\n n = int(input())\n print(n*(n+1)//2)\n\nif __name__ == '__main__':\n main()", "def main():\n import sys\n input = sys.stdin.readline\n sys.setrecursionlimit(10**7)\n from collections import Counter, deque\n #from collections import defaultdict\n from itertools import combinations, permutations, accumulate, groupby, product\n from bisect import bisect_left,bisect_right\n from heapq import heapify, heappop, heappush\n from math import floor, ceil\n #from operator import itemgetter\n\n #inf = 10**17\n #mod = 10**9 + 7\n\n n = int(input())\n print(n*(n+1)//2)", "main", "import sys", "sys", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "sys.setrecursionlimit(10**7)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10**7", "10", "7", "from collections import Counter, deque", "from itertools import combinations, permutations, accumulate, groupby, product", "from bisect import bisect_left,bisect_right", "from heapq import heapify, heappop, heappush", "from math import floor, ceil", "n = int(input())", "n", "int(input())", "int", "input()", "input", "print(n*(n+1)//2)", "print", "n*(n+1)//2", "n*(n+1)", "n", "n+1", "n", "1", "2", "if __name__ == '__main__':\n main()", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "def main():\n import sys\n input = sys.stdin.readline\n sys.setrecursionlimit(10**7)\n from collections import Counter, deque\n #from collections import defaultdict\n from itertools import combinations, permutations, accumulate, groupby, product\n from bisect import bisect_left,bisect_right\n from heapq import heapify, heappop, heappush\n from math import floor, ceil\n #from operator import itemgetter\n\n #inf = 10**17\n #mod = 10**9 + 7\n\n n = int(input())\n print(n*(n+1)//2)", "def main():\n import sys\n input = sys.stdin.readline\n sys.setrecursionlimit(10**7)\n from collections import Counter, deque\n #from collections import defaultdict\n from itertools import combinations, permutations, accumulate, groupby, product\n from bisect import bisect_left,bisect_right\n from heapq import heapify, heappop, heappush\n from math import floor, ceil\n #from operator import itemgetter\n\n #inf = 10**17\n #mod = 10**9 + 7\n\n n = int(input())\n print(n*(n+1)//2)", "main" ]
def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from collections import Counter, deque #from collections import defaultdict from itertools import combinations, permutations, accumulate, groupby, product from bisect import bisect_left,bisect_right from heapq import heapify, heappop, heappush from math import floor, ceil #from operator import itemgetter #inf = 10**17 #mod = 10**9 + 7 n = int(input()) print(n*(n+1)//2) if __name__ == '__main__': main()
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 2, 2, 13, 17, 2, 13, 17, 4, 13, 4, 13, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 22, 2 ], [ 25, 8 ], [ 23, 11 ], [ 23, 14 ], [ 26, 20 ], [ 22, 23 ], [ 25, 26 ] ]
[ "N=int(input())\nans=(N+1)*(N/2)\nprint(int(ans))", "N=int(input())", "N", "int(input())", "int", "input()", "input", "ans=(N+1)*(N/2)", "ans", "(N+1)*(N/2)", "N+1", "N", "1", "N/2", "N", "2", "print(int(ans))", "print", "int(ans)", "int", "ans", "N=int(input())", "int(input())", "N", "ans=(N+1)*(N/2)", "(N+1)*(N/2)", "ans" ]
N=int(input()) ans=(N+1)*(N/2) print(int(ans))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 17, 0, 13, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 31, 2 ], [ 28, 8 ], [ 37, 11 ], [ 15, 14 ], [ 32, 17 ], [ 40, 19 ], [ 34, 22 ], [ 41, 23 ], [ 29, 23 ], [ 35, 26 ], [ 38, 26 ], [ 28, 29 ], [ 31, 32 ], [ 41, 34 ], [ 29, 34 ], [ 34, 35 ], [ 37, 38 ], [ 40, 41 ] ]
[ "n = int(input())\na = 0\nb = 0\nfor i in range(n):\n a += 1\n b += a\nprint(b)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "a = 0", "a", "0", "b = 0", "b", "0", "for i in range(n):\n a += 1\n b += a", "i", "range(n)", "range", "n", "a += 1", "a", "1", "b += a", "b", "a", "print(b)", "print", "b", "a = 0", "0", "a", "n = int(input())", "int(input())", "n", "b += a", "a", "b", "b = 0", "0", "b", "a += 1", "1", "a" ]
n = int(input()) a = 0 b = 0 for i in range(n): a += 1 b += a print(b)
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 17, 42, 2, 13, 17, 0, 13, 2, 13, 13, 0, 13, 2, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 43, 2 ], [ 34, 6 ], [ 44, 9 ], [ 31, 11 ], [ 35, 15 ], [ 44, 15 ], [ 41, 15 ], [ 37, 18 ], [ 32, 20 ], [ 38, 20 ], [ 35, 21 ], [ 44, 21 ], [ 41, 21 ], [ 40, 23 ], [ 35, 25 ], [ 44, 25 ], [ 41, 25 ], [ 38, 29 ], [ 32, 29 ], [ 31, 32 ], [ 34, 35 ], [ 37, 38 ], [ 40, 41 ], [ 43, 44 ] ]
[ "N = input()\nN = int(N)\npoint = 0\nwhile N > 0:\n point = point + N\n N = N - 1\nprint(point)", "N = input()", "N", "input()", "input", "N = int(N)", "N", "int(N)", "int", "N", "point = 0", "point", "0", "while N > 0:\n point = point + N\n N = N - 1", "N > 0", "N", "0", "point = point + N", "point", "point + N", "point", "N", "N = N - 1", "N", "N - 1", "N", "1", "print(point)", "print", "point", "point = 0", "0", "point", "N = int(N)", "int(N)", "N", "point = point + N", "point + N", "point", "N = N - 1", "N - 1", "N", "N = input()", "input()", "N" ]
N = input() N = int(N) point = 0 while N > 0: point = point + N N = N - 1 print(point)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 2, 2, 2, 13, 17, 13, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 22, 2 ], [ 25, 8 ], [ 23, 14 ], [ 23, 16 ], [ 26, 20 ], [ 22, 23 ], [ 25, 26 ] ]
[ "# N = 子供の数\n# answer = 飴の数\n\n\nN = int ( input () )\n\nanswer = int ((( N + 1) * N / 2 ))\n\nprint (answer)", "N = int ( input () )", "N", "int ( input () )", "int", "input ()", "input", "answer = int ((( N + 1) * N / 2 ))", "answer", "int ((( N + 1) * N / 2 ))", "int", "( N + 1) * N / 2", "( N + 1) * N", "N + 1", "N", "1", "N", "2", "print (answer)", "print", "answer", "N = int ( input () )", "int ( input () )", "N", "answer = int ((( N + 1) * N / 2 ))", "int ((( N + 1) * N / 2 ))", "answer" ]
# N = 子供の数 # answer = 飴の数 N = int ( input () ) answer = int ((( N + 1) * N / 2 )) print (answer)
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 2, 2, 2, 13, 17, 13, 17, 4, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 25, 2 ], [ 28, 6 ], [ 26, 9 ], [ 31, 11 ], [ 29, 15 ], [ 26, 15 ], [ 29, 17 ], [ 26, 17 ], [ 32, 23 ], [ 25, 26 ], [ 28, 29 ], [ 31, 32 ] ]
[ "n = input()\nn = int(n)\nsum = (n**2 + n) / 2\nprint(int(sum))", "n = input()", "n", "input()", "input", "n = int(n)", "n", "int(n)", "int", "n", "sum = (n**2 + n) / 2", "sum", "(n**2 + n) / 2", "n**2 + n", "n**2", "n", "2", "n", "2", "print(int(sum))", "print", "int(sum)", "int", "sum", "n = input()", "input()", "n", "n = int(n)", "int(n)", "n", "sum = (n**2 + n) / 2", "(n**2 + n) / 2", "sum" ]
n = input() n = int(n) sum = (n**2 + n) / 2 print(int(sum))
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 2, 2, 13, 13, 17, 4, 13, 13, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 11, 10 ], [ 14, 13 ], [ 4, 16 ], [ 19, 18 ], [ 10, 21 ], [ 18, 21 ], [ 13, 22 ], [ 18, 26 ], [ 10, 26 ], [ 31, 28 ] ]
[ "def main():\n N = int(input())\n ans = 0\n for i in range(N):\n ans = ans + i + 1\n print(ans)\nmain()", "def main():\n N = int(input())\n ans = 0\n for i in range(N):\n ans = ans + i + 1\n print(ans)", "main", "N = int(input())", "N", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "for i in range(N):\n ans = ans + i + 1\n ", "i", "range(N)", "range", "N", "ans = ans + i + 1", "ans", "ans + i + 1", "ans + i", "ans", "i", "1", "print(ans)", "print", "ans", "main()", "main", "def main():\n N = int(input())\n ans = 0\n for i in range(N):\n ans = ans + i + 1\n print(ans)", "def main():\n N = int(input())\n ans = 0\n for i in range(N):\n ans = ans + i + 1\n print(ans)", "main" ]
def main(): N = int(input()) ans = 0 for i in range(N): ans = ans + i + 1 print(ans) main()
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 22, 2 ], [ 25, 8 ], [ 23, 13 ], [ 23, 15 ], [ 26, 20 ], [ 22, 23 ], [ 25, 26 ] ]
[ "N = int(input())\n \nans = int(N*(N+1)/2)\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "ans = int(N*(N+1)/2)", "ans", "int(N*(N+1)/2)", "int", "N*(N+1)/2", "N*(N+1)", "N", "N+1", "N", "1", "2", "print(ans)", "print", "ans", "N = int(input())", "int(input())", "N", "ans = int(N*(N+1)/2)", "int(N*(N+1)/2)", "ans" ]
N = int(input()) ans = int(N*(N+1)/2) print(ans)
[ 7, 15, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 4, 13, 17, 12, 13, 4, 13, 2, 2, 13, 2, 13, 17, 17, 29, 23, 13, 12, 13, 12, 13, 28, 13, 18, 13, 13, 28, 13, 4, 18, 13, 13, 27, 13, 0, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 4, 13, 13, 14, 2, 13, 17, 4, 13, 10, 12, 13, 10, 4, 13, 10, 12, 13 ]
[ [ 70, 11 ], [ 28, 21 ], [ 28, 23 ], [ 28, 28 ], [ 35, 34 ], [ 40, 39 ], [ 34, 42 ], [ 39, 45 ], [ 48, 47 ], [ 32, 49 ], [ 52, 51 ], [ 47, 56 ], [ 74, 58 ], [ 51, 59 ], [ 68, 65 ], [ 70, 71 ] ]
[ "#!/usr/bin/env python3\nimport sys\nsys.setrecursionlimit(10**8)\nINF = float(\"inf\")\n\n\ndef solve(N: int):\n print(N*(N+1)//2)\n return\n\n\ndef main():\n\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n solve(N)\n\n\nif __name__ == '__main__':\n main()", "import sys", "sys", "sys.setrecursionlimit(10**8)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10**8", "10", "8", "INF = float(\"inf\")", "INF", "float(\"inf\")", "float", "\"inf\"", "def solve(N: int):\n print(N*(N+1)//2)\n return", "solve", "print(N*(N+1)//2)", "print", "N*(N+1)//2", "N*(N+1)", "N", "N+1", "N", "1", "2", "return", "N: int", "N", "def main():\n\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n solve(N)", "main", "def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n ", "iterate_tokens", "for line in sys.stdin:\n for word in line.split():\n yield word\n ", "line", "sys.stdin", "sys", "stdin", "for word in line.split():\n yield word\n ", "word", "line.split()", "line.split", "line", "split", "yield word", "word", "tokens = iterate_tokens()", "tokens", "iterate_tokens()", "iterate_tokens", "N = int(next(tokens))", "N", "int(next(tokens))", "int", "next(tokens)", "next", "tokens", "solve(N)", "solve", "N", "if __name__ == '__main__':\n main()", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "def main():\n\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n solve(N)", "def main():\n\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n solve(N)", "main", "INF = float(\"inf\")", "float(\"inf\")", "INF", "def solve(N: int):\n print(N*(N+1)//2)\n return", "def solve(N: int):\n print(N*(N+1)//2)\n return", "solve" ]
#!/usr/bin/env python3 import sys sys.setrecursionlimit(10**8) INF = float("inf") def solve(N: int): print(N*(N+1)//2) return def main(): def iterate_tokens(): for line in sys.stdin: for word in line.split(): yield word tokens = iterate_tokens() N = int(next(tokens)) # type: int solve(N) if __name__ == '__main__': main()
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 42, 40, 13, 13, 0, 13, 13, 0, 13, 17, 4, 13, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 13, 13 ]
[ [ 36, 2 ], [ 30, 8 ], [ 27, 11 ], [ 31, 15 ], [ 34, 15 ], [ 37, 16 ], [ 39, 18 ], [ 31, 19 ], [ 34, 19 ], [ 33, 21 ], [ 40, 25 ], [ 28, 25 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ], [ 36, 37 ], [ 31, 39 ], [ 34, 39 ], [ 39, 40 ] ]
[ "N = int(input())\n\ni = 1\nSUM = 0\n\nwhile i <= N:\n SUM += i\n i += 1\n\nprint(SUM)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "i = 1", "i", "1", "SUM = 0", "SUM", "0", "while i <= N:\n SUM += i\n i += 1", "i <= N", "i", "N", "SUM += i", "SUM", "i", "i += 1", "i", "1", "print(SUM)", "print", "SUM", "SUM = 0", "0", "SUM", "i = 1", "1", "i", "i += 1", "1", "i", "N = int(input())", "int(input())", "N", "SUM += i", "i", "SUM" ]
N = int(input()) i = 1 SUM = 0 while i <= N: SUM += i i += 1 print(SUM)
[ 7, 12, 13, 29, 2, 2, 2, 13, 17, 13, 17, 23, 13, 0, 13, 4, 13, 4, 13, 4, 13, 4, 13, 13, 10, 12, 13, 10, 4, 13 ]
[ [ 12, 7 ], [ 12, 9 ], [ 12, 12 ], [ 28, 14 ], [ 26, 22 ], [ 29, 23 ], [ 28, 29 ] ]
[ "def actual(N):\n return ((N + 1) * N) // 2\n\nN = int(input())\nprint(actual(N))", "def actual(N):\n return ((N + 1) * N) // 2", "actual", "return ((N + 1) * N) // 2", "((N + 1) * N) // 2", "(N + 1) * N", "N + 1", "N", "1", "N", "2", "N", "N", "N = int(input())", "N", "int(input())", "int", "input()", "input", "print(actual(N))", "print", "actual(N)", "actual", "N", "def actual(N):\n return ((N + 1) * N) // 2", "def actual(N):\n return ((N + 1) * N) // 2", "actual", "N = int(input())", "int(input())", "N" ]
def actual(N): return ((N + 1) * N) // 2 N = int(input()) print(actual(N))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 0, 13, 2, 13, 13, 4, 13, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 33, 2 ], [ 30, 8 ], [ 12, 11 ], [ 34, 16 ], [ 27, 19 ], [ 31, 21 ], [ 28, 21 ], [ 11, 22 ], [ 28, 25 ], [ 31, 25 ], [ 27, 28 ], [ 30, 31 ], [ 33, 34 ] ]
[ "n = int(input())\nans = 0\nfor i in range(1,n+1):\n ans = ans + i\nprint(ans)\n", "n = int(input())", "n", "int(input())", "int", "input()", "input", "ans = 0", "ans", "0", "for i in range(1,n+1):\n ans = ans + i", "i", "range(1,n+1)", "range", "1", "n+1", "n", "1", "ans = ans + i", "ans", "ans + i", "ans", "i", "print(ans)", "print", "ans", "ans = ans + i", "ans + i", "ans", "ans = 0", "0", "ans", "n = int(input())", "int(input())", "n" ]
n = int(input()) ans = 0 for i in range(1,n+1): ans = ans + i print(ans)
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 14, 2, 4, 13, 13, 17, 9, 4, 18, 13, 13, 17, 4, 18, 13, 13, 13, 28, 13, 13, 4, 13, 13, 0, 13, 17, 10, 4, 13, 10, 39, 13 ]
[ [ 42, 2 ], [ 45, 6 ], [ 10, 9 ], [ 43, 9 ], [ 9, 13 ], [ 46, 19 ], [ 46, 24 ], [ 46, 29 ], [ 9, 31 ], [ 34, 33 ], [ 46, 33 ], [ 33, 37 ], [ 40, 39 ], [ 42, 43 ], [ 45, 46 ] ]
[ "s = input()\n\nstack = []\n\nfor c in s:\n if c == \"B\":\n if len(stack) == 0:\n continue\n else:\n stack.pop(-1)\n else:\n stack.extend(c)\nfor c in stack:\n print(c, end=\"\")", "s = input()", "s", "input()", "input", "stack = []", "stack", "[]", "for c in s:\n if c == \"B\":\n if len(stack) == 0:\n continue\n else:\n stack.pop(-1)\n else:\n stack.extend(c)", "c", "s", "if c == \"B\":\n if len(stack) == 0:\n continue\n else:\n stack.pop(-1)\n else:\n stack.extend(c)", "c == \"B\"", "c", "\"B\"", "if len(stack) == 0:\n continue\n else:\n stack.pop(-1)\n ", "len(stack) == 0", "len(stack)", "len", "stack", "0", "continue", "stack.pop(-1)", "stack.pop", "stack", "pop", "-1", "stack.extend(c)", "stack.extend", "stack", "extend", "c", "for c in stack:\n print(c, end=\"\")", "c", "stack", "print(c, end=\"\")", "print", "c", "end=\"\"", "end", "\"\"", "s = input()", "input()", "s", "stack = []", "[]", "stack" ]
s = input() stack = [] for c in s: if c == "B": if len(stack) == 0: continue else: stack.pop(-1) else: stack.extend(c) for c in stack: print(c, end="")
[ 7, 15, 13, 0, 13, 4, 13, 0, 13, 4, 13, 4, 18, 13, 13, 17, 17, 13, 28, 13, 4, 13, 13, 0, 13, 4, 18, 13, 13, 17, 17, 13, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 40, 4 ], [ 43, 8 ], [ 41, 17 ], [ 20, 19 ], [ 44, 22 ], [ 37, 24 ], [ 41, 31 ], [ 38, 31 ], [ 38, 35 ], [ 41, 35 ], [ 37, 38 ], [ 40, 41 ], [ 43, 44 ] ]
[ "import re\ntext = input()\nb_length = len(re.sub('[^B]', '', text))\nfor _ in range(b_length):\n text = re.sub('(0|1)??B', '', text, 1)\nprint(text)", "import re", "re", "text = input()", "text", "input()", "input", "b_length = len(re.sub('[^B]', '', text))", "b_length", "len(re.sub('[^B]', '', text))", "len", "re.sub('[^B]', '', text)", "re.sub", "re", "sub", "'[^B]'", "''", "text", "for _ in range(b_length):\n text = re.sub('(0|1)??B', '', text, 1)", "_", "range(b_length)", "range", "b_length", "text = re.sub('(0|1)??B', '', text, 1)", "text", "re.sub('(0|1)??B', '', text, 1)", "re.sub", "re", "sub", "'(0|1)??B'", "''", "text", "1", "print(text)", "print", "text", "text = re.sub('(0|1)??B', '', text, 1)", "re.sub('(0|1)??B', '', text, 1)", "text", "text = input()", "input()", "text", "b_length = len(re.sub('[^B]', '', text))", "len(re.sub('[^B]', '', text))", "b_length" ]
import re text = input() b_length = len(re.sub('[^B]', '', text)) for _ in range(b_length): text = re.sub('(0|1)??B', '', text, 1) print(text)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 2, 13, 17, 40, 13, 39, 4, 18, 13, 13, 17, 4, 13, 4, 18, 17, 13, 13, 10, 4, 13, 10, 39, 13 ]
[ [ 52, 2 ], [ 55, 8 ], [ 12, 11 ], [ 53, 11 ], [ 11, 15 ], [ 56, 19 ], [ 11, 24 ], [ 56, 28 ], [ 11, 34 ], [ 56, 37 ], [ 56, 41 ], [ 56, 50 ], [ 52, 53 ], [ 55, 56 ] ]
[ "s = list(input())\n\nans = []\nfor t in s:\n if t == \"0\":\n ans.append(\"0\")\n elif t == \"1\":\n ans.append(\"1\")\n elif t == \"B\" and ans != []:\n ans.pop(-1)\nprint(\"\".join(ans))", "s = list(input())", "s", "list(input())", "list", "input()", "input", "ans = []", "ans", "[]", "for t in s:\n if t == \"0\":\n ans.append(\"0\")\n elif t == \"1\":\n ans.append(\"1\")\n elif t == \"B\" and ans != []:\n ans.pop(-1)", "t", "s", "if t == \"0\":\n ans.append(\"0\")\n elif t == \"1\":\n ans.append(\"1\")\n elif t == \"B\" and ans != []:\n ans.pop(-1)", "t == \"0\"", "t", "\"0\"", "ans.append(\"0\")", "ans.append", "ans", "append", "\"0\"", "elif t == \"1\":\n ans.append(\"1\")\n ", "t == \"1\"", "t", "\"1\"", "ans.append(\"1\")", "ans.append", "ans", "append", "\"1\"", "elif t == \"B\" and ans != []:\n ans.pop(-1)", "t == \"B\" and ans != []", "t == \"B\"", "t", "\"B\"", "ans != []", "ans", "[]", "ans.pop(-1)", "ans.pop", "ans", "pop", "-1", "print(\"\".join(ans))", "print", "\"\".join(ans)", "\"\".join", "\"\"", "join", "ans", "s = list(input())", "list(input())", "s", "ans = []", "[]", "ans" ]
s = list(input()) ans = [] for t in s: if t == "0": ans.append("0") elif t == "1": ans.append("1") elif t == "B" and ans != []: ans.pop(-1) print("".join(ans))
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 39, 28, 13, 4, 18, 4, 13, 13, 14, 40, 13, 17, 4, 18, 13, 13, 13, 14, 13, 4, 18, 13, 13, 4, 13, 4, 18, 17, 13, 13, 10, 18, 13, 10, 39, 13 ]
[ [ 50, 4 ], [ 53, 18 ], [ 22, 21 ], [ 51, 25 ], [ 21, 29 ], [ 54, 33 ], [ 21, 35 ], [ 54, 40 ], [ 54, 48 ], [ 50, 51 ], [ 53, 54 ] ]
[ "import sys\ninput = sys.stdin.readline\nsys.setrecursionlimit(10 ** 7)\n\ns = []\nfor v in input().strip():\n if v != 'B':\n s.append(v)\n else:\n if s:\n s.pop()\nprint(''.join(s))", "import sys", "sys", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "sys.setrecursionlimit(10 ** 7)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10 ** 7", "10", "7", "s = []", "s", "[]", "for v in input().strip():\n if v != 'B':\n s.append(v)\n else:\n if s:\n s.pop()", "v", "input().strip()", "().strip", "()", "input", "strip", "if v != 'B':\n s.append(v)\n else:\n if s:\n s.pop()", "v != 'B'", "v", "'B'", "s.append(v)", "s.append", "s", "append", "v", "if s:\n s.pop()", "s", "s.pop()", "s.pop", "s", "pop", "print(''.join(s))", "print", "''.join(s)", "''.join", "''", "join", "s", "input = sys.stdin.readline", "sys.stdin.readline", "input", "s = []", "[]", "s" ]
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 7) s = [] for v in input().strip(): if v != 'B': s.append(v) else: if s: s.pop() print(''.join(s))
[ 7, 0, 13, 4, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 13, 14, 2, 13, 17, 0, 13, 13, 14, 2, 13, 17, 0, 13, 18, 13, 39, 17, 4, 13, 13, 10, 18, 13, 10, 13, 13, 10, 17, 13, 10, 13, 13, 10, 4, 13 ]
[ [ 51, 2 ], [ 45, 6 ], [ 10, 9 ], [ 52, 9 ], [ 9, 13 ], [ 42, 16 ], [ 9, 17 ], [ 9, 20 ], [ 48, 23 ], [ 9, 24 ], [ 9, 27 ], [ 39, 30 ], [ 46, 32 ], [ 40, 32 ], [ 49, 32 ], [ 43, 32 ], [ 40, 37 ], [ 49, 37 ], [ 43, 37 ], [ 46, 37 ], [ 39, 40 ], [ 9, 42 ], [ 42, 43 ], [ 45, 46 ], [ 9, 48 ], [ 48, 49 ], [ 51, 52 ] ]
[ "n = input()\na = \"\"\nfor i in n:\n if i ==\"0\":\n a+=i\n elif i ==\"1\":\n a+=i\n elif i ==\"B\":\n a = a[:-1]\nprint(a)", "n = input()", "n", "input()", "input", "a = \"\"", "a", "\"\"", "for i in n:\n if i ==\"0\":\n a+=i\n elif i ==\"1\":\n a+=i\n elif i ==\"B\":\n a = a[:-1]", "i", "n", "if i ==\"0\":\n a+=i\n elif i ==\"1\":\n a+=i\n elif i ==\"B\":\n a = a[:-1]", "i ==\"0\"", "i", "\"0\"", "a+=i", "a", "i", "elif i ==\"1\":\n a+=i\n ", "i ==\"1\"", "i", "\"1\"", "a+=i", "a", "i", "elif i ==\"B\":\n a = a[:-1]", "i ==\"B\"", "i", "\"B\"", "a = a[:-1]", "a", "a[:-1]", "a", ":-1", "-1", "print(a)", "print", "a", "a = a[:-1]", "a[:-1]", "a", "a+=i", "i", "a", "a = \"\"", "\"\"", "a", "a+=i", "i", "a", "n = input()", "input()", "n" ]
n = input() a = "" for i in n: if i =="0": a+=i elif i =="1": a+=i elif i =="B": a = a[:-1] print(a)
[ 7, 0, 13, 4, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 0, 13, 18, 13, 39, 2, 4, 13, 13, 17, 4, 13, 13, 10, 18, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 51, 2 ], [ 42, 6 ], [ 10, 9 ], [ 52, 9 ], [ 9, 13 ], [ 45, 16 ], [ 9, 20 ], [ 48, 23 ], [ 39, 26 ], [ 43, 28 ], [ 40, 28 ], [ 49, 28 ], [ 46, 28 ], [ 43, 33 ], [ 40, 33 ], [ 49, 33 ], [ 46, 33 ], [ 40, 37 ], [ 49, 37 ], [ 46, 37 ], [ 43, 37 ], [ 39, 40 ], [ 42, 43 ], [ 45, 46 ], [ 48, 49 ], [ 51, 52 ] ]
[ "s=input()\nans=''\nfor c in s:\n if c=='0':\n ans+='0'\n elif c=='1':\n ans+='1'\n else:\n ans=ans[:len(ans)-1]\nprint(ans)", "s=input()", "s", "input()", "input", "ans=''", "ans", "''", "for c in s:\n if c=='0':\n ans+='0'\n elif c=='1':\n ans+='1'\n else:\n ans=ans[:len(ans)-1]", "c", "s", "if c=='0':\n ans+='0'\n elif c=='1':\n ans+='1'\n else:\n ans=ans[:len(ans)-1]", "c=='0'", "c", "'0'", "ans+='0'", "ans", "'0'", "elif c=='1':\n ans+='1'\n ", "c=='1'", "c", "'1'", "ans+='1'", "ans", "'1'", "ans=ans[:len(ans)-1]", "ans", "ans[:len(ans)-1]", "ans", ":len(ans)-1", "len(ans)-1", "len(ans)", "len", "ans", "1", "print(ans)", "print", "ans", "ans=ans[:len(ans)-1]", "ans[:len(ans)-1]", "ans", "ans=''", "''", "ans", "ans+='0'", "'0'", "ans", "ans+='1'", "'1'", "ans", "s=input()", "input()", "s" ]
s=input() ans='' for c in s: if c=='0': ans+='0' elif c=='1': ans+='1' else: ans=ans[:len(ans)-1] print(ans)
[ 7, 0, 13, 17, 0, 13, 4, 13, 28, 13, 13, 14, 2, 13, 17, 0, 13, 18, 13, 39, 17, 0, 13, 13, 4, 13, 13, 10, 17, 13, 10, 18, 13, 10, 4, 13, 10, 13, 13 ]
[ [ 28, 2 ], [ 34, 5 ], [ 10, 9 ], [ 35, 9 ], [ 9, 13 ], [ 31, 16 ], [ 29, 18 ], [ 38, 18 ], [ 32, 18 ], [ 37, 22 ], [ 9, 23 ], [ 38, 26 ], [ 32, 26 ], [ 29, 26 ], [ 28, 29 ], [ 31, 32 ], [ 34, 35 ], [ 9, 37 ], [ 37, 38 ] ]
[ "n = \"\"\ncommand = input()\nfor i in command:\n if i == \"B\":\n n=n[:-1]\n else:\n n+=i\nprint(n)", "n = \"\"", "n", "\"\"", "command = input()", "command", "input()", "input", "for i in command:\n if i == \"B\":\n n=n[:-1]\n else:\n n+=i", "i", "command", "if i == \"B\":\n n=n[:-1]\n else:\n n+=i", "i == \"B\"", "i", "\"B\"", "n=n[:-1]", "n", "n[:-1]", "n", ":-1", "-1", "n+=i", "n", "i", "print(n)", "print", "n", "n = \"\"", "\"\"", "n", "n=n[:-1]", "n[:-1]", "n", "command = input()", "input()", "command", "n+=i", "i", "n" ]
n = "" command = input() for i in command: if i == "B": n=n[:-1] else: n+=i print(n)
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 4, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 18, 13, 13, 17, 14, 2, 18, 13, 13, 17, 4, 18, 13, 13, 17, 14, 2, 4, 13, 13, 17, 9, 4, 18, 13, 13, 4, 13, 31, 13, 0, 13, 17, 10, 4, 13, 10, 39, 13 ]
[ [ 56, 2 ], [ 59, 6 ], [ 10, 9 ], [ 57, 14 ], [ 57, 18 ], [ 9, 19 ], [ 60, 23 ], [ 57, 29 ], [ 9, 30 ], [ 60, 34 ], [ 60, 41 ], [ 60, 46 ], [ 60, 51 ], [ 54, 53 ], [ 56, 57 ], [ 59, 60 ] ]
[ "s=input()\ndata=[]\nfor i in range(len(s)):\n if s[i]=='0':\n data.append('0')\n elif s[i]=='1':\n data.append('1')\n else:\n if len(data)==0:\n continue\n else:\n data.pop()\nprint(*data,sep='')", "s=input()", "s", "input()", "input", "data=[]", "data", "[]", "for i in range(len(s)):\n if s[i]=='0':\n data.append('0')\n elif s[i]=='1':\n data.append('1')\n else:\n if len(data)==0:\n continue\n else:\n data.pop()", "i", "range(len(s))", "range", "len(s)", "len", "s", "if s[i]=='0':\n data.append('0')\n elif s[i]=='1':\n data.append('1')\n else:\n if len(data)==0:\n continue\n else:\n data.pop()", "s[i]=='0'", "s[i]", "s", "i", "'0'", "data.append('0')", "data.append", "data", "append", "'0'", "elif s[i]=='1':\n data.append('1')\n ", "s[i]=='1'", "s[i]", "s", "i", "'1'", "data.append('1')", "data.append", "data", "append", "'1'", "if len(data)==0:\n continue\n else:\n data.pop()", "len(data)==0", "len(data)", "len", "data", "0", "continue", "data.pop()", "data.pop", "data", "pop", "print(*data,sep='')", "print", "*data", "data", "sep=''", "sep", "''", "s=input()", "input()", "s", "data=[]", "[]", "data" ]
s=input() data=[] for i in range(len(s)): if s[i]=='0': data.append('0') elif s[i]=='1': data.append('1') else: if len(data)==0: continue else: data.pop() print(*data,sep='')
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 13, 4, 18, 13, 13, 17, 4, 13, 4, 18, 17, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 45, 2 ], [ 48, 6 ], [ 11, 10 ], [ 46, 10 ], [ 10, 14 ], [ 49, 18 ], [ 10, 23 ], [ 49, 27 ], [ 49, 34 ], [ 49, 43 ], [ 45, 46 ], [ 48, 49 ] ]
[ "s = input()\nans = list()\nfor ss in s:\n if ss == '0':\n ans.append('0')\n elif ss == '1':\n ans.append('1')\n else:\n if ans:\n ans.pop(-1)\n\nprint(''.join(ans))", "s = input()", "s", "input()", "input", "ans = list()", "ans", "list()", "list", "for ss in s:\n if ss == '0':\n ans.append('0')\n elif ss == '1':\n ans.append('1')\n else:\n if ans:\n ans.pop(-1)", "ss", "s", "if ss == '0':\n ans.append('0')\n elif ss == '1':\n ans.append('1')\n else:\n if ans:\n ans.pop(-1)", "ss == '0'", "ss", "'0'", "ans.append('0')", "ans.append", "ans", "append", "'0'", "elif ss == '1':\n ans.append('1')\n ", "ss == '1'", "ss", "'1'", "ans.append('1')", "ans.append", "ans", "append", "'1'", "if ans:\n ans.pop(-1)", "ans", "ans.pop(-1)", "ans.pop", "ans", "pop", "-1", "print(''.join(ans))", "print", "''.join(ans)", "''.join", "''", "join", "ans", "s = input()", "input()", "s", "ans = list()", "list()", "ans" ]
s = input() ans = list() for ss in s: if ss == '0': ans.append('0') elif ss == '1': ans.append('1') else: if ans: ans.pop(-1) print(''.join(ans))
[ 7, 0, 13, 4, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 18, 13, 39, 17, 0, 13, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 13, 13, 10, 18, 13 ]
[ [ 31, 2 ], [ 28, 6 ], [ 10, 9 ], [ 32, 9 ], [ 9, 13 ], [ 37, 16 ], [ 29, 18 ], [ 35, 18 ], [ 38, 18 ], [ 34, 22 ], [ 9, 23 ], [ 35, 26 ], [ 38, 26 ], [ 29, 26 ], [ 28, 29 ], [ 31, 32 ], [ 9, 34 ], [ 34, 35 ], [ 37, 38 ] ]
[ "S = input()\nans = ''\nfor s in S:\n if s == 'B':\n ans = ans[:-1]\n else:\n ans += s\nprint(ans)", "S = input()", "S", "input()", "input", "ans = ''", "ans", "''", "for s in S:\n if s == 'B':\n ans = ans[:-1]\n else:\n ans += s", "s", "S", "if s == 'B':\n ans = ans[:-1]\n else:\n ans += s", "s == 'B'", "s", "'B'", "ans = ans[:-1]", "ans", "ans[:-1]", "ans", ":-1", "-1", "ans += s", "ans", "s", "print(ans)", "print", "ans", "ans = ''", "''", "ans", "S = input()", "input()", "S", "ans += s", "s", "ans", "ans = ans[:-1]", "ans[:-1]", "ans" ]
S = input() ans = '' for s in S: if s == 'B': ans = ans[:-1] else: ans += s print(ans)
[ 7, 0, 13, 4, 13, 0, 13, 17, 28, 13, 4, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 34, 2 ], [ 31, 6 ], [ 10, 9 ], [ 35, 14 ], [ 35, 18 ], [ 9, 19 ], [ 35, 24 ], [ 9, 25 ], [ 32, 29 ], [ 31, 32 ], [ 34, 35 ] ]
[ "#!/usr/bin/env python3\n\nS = input()\nret = ''\nfor i in range(len(S)):\n if S[i] == '0': ret += '0'\n elif S[i] == '1': ret += '1'\n else: ret = ret[:-1]\n\nprint(ret)", "S = input()", "S", "input()", "input", "ret = ''", "ret", "''", "for i in range(len(S)):\n if S[i] == '0': ret += '0'\n elif S[i] == '1': ret += '1'\n else: ret = ret[:-1]", "i", "range(len(S))", "range", "len(S)", "len", "S", "if S[i] == '0': ret += '0'\n elif S[i] == '1': ret += '1'\n else: ret = ret[:-1]", "S[i] == '0'", "S[i]", "S", "i", "'0'", "elif S[i] == '1': ret += '1'\n ", "S[i] == '1'", "S[i]", "S", "i", "'1'", "print(ret)", "print", "ret", "ret = ''", "''", "ret", "S = input()", "input()", "S" ]
#!/usr/bin/env python3 S = input() ret = '' for i in range(len(S)): if S[i] == '0': ret += '0' elif S[i] == '1': ret += '1' else: ret = ret[:-1] print(ret)
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 14, 40, 4, 13, 13, 17, 4, 18, 13, 13, 4, 18, 13, 13, 13, 4, 13, 4, 18, 17, 13, 13, 10, 39, 13, 10, 4, 13 ]
[ [ 41, 2 ], [ 38, 6 ], [ 10, 9 ], [ 42, 9 ], [ 9, 13 ], [ 39, 19 ], [ 39, 23 ], [ 39, 27 ], [ 9, 29 ], [ 39, 36 ], [ 38, 39 ], [ 41, 42 ] ]
[ "s = input()\n\nlis = []\nfor k in s:\n if k == \"B\":\n if len(lis) != 0:\n lis.pop()\n else:\n lis.append(k)\n\nprint(\"\".join(lis))", "s = input()", "s", "input()", "input", "lis = []", "lis", "[]", "for k in s:\n if k == \"B\":\n if len(lis) != 0:\n lis.pop()\n else:\n lis.append(k)", "k", "s", "if k == \"B\":\n if len(lis) != 0:\n lis.pop()\n else:\n lis.append(k)", "k == \"B\"", "k", "\"B\"", "if len(lis) != 0:\n lis.pop()\n ", "len(lis) != 0", "len(lis)", "len", "lis", "0", "lis.pop()", "lis.pop", "lis", "pop", "lis.append(k)", "lis.append", "lis", "append", "k", "print(\"\".join(lis))", "print", "\"\".join(lis)", "\"\".join", "\"\"", "join", "lis", "lis = []", "[]", "lis", "s = input()", "input()", "s" ]
s = input() lis = [] for k in s: if k == "B": if len(lis) != 0: lis.pop() else: lis.append(k) print("".join(lis))
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 40, 4, 13, 13, 17, 4, 18, 13, 13, 2, 4, 13, 13, 17, 9, 4, 13, 4, 18, 17, 13, 13, 10, 39, 13, 10, 4, 13 ]
[ [ 56, 2 ], [ 53, 6 ], [ 10, 9 ], [ 57, 9 ], [ 9, 13 ], [ 54, 17 ], [ 9, 22 ], [ 54, 26 ], [ 54, 33 ], [ 54, 37 ], [ 54, 42 ], [ 54, 51 ], [ 53, 54 ], [ 56, 57 ] ]
[ "s=input()\nans=[]\nfor i in s:\n if i==\"0\":\n ans.append(\"0\")\n elif i==\"1\":\n ans.append(\"1\")\n else:\n if len(ans)>=1:\n ans.pop(len(ans)-1)\n else:\n continue\nprint(\"\".join(ans))", "s=input()", "s", "input()", "input", "ans=[]", "ans", "[]", "for i in s:\n if i==\"0\":\n ans.append(\"0\")\n elif i==\"1\":\n ans.append(\"1\")\n else:\n if len(ans)>=1:\n ans.pop(len(ans)-1)\n else:\n continue", "i", "s", "if i==\"0\":\n ans.append(\"0\")\n elif i==\"1\":\n ans.append(\"1\")\n else:\n if len(ans)>=1:\n ans.pop(len(ans)-1)\n else:\n continue", "i==\"0\"", "i", "\"0\"", "ans.append(\"0\")", "ans.append", "ans", "append", "\"0\"", "elif i==\"1\":\n ans.append(\"1\")\n ", "i==\"1\"", "i", "\"1\"", "ans.append(\"1\")", "ans.append", "ans", "append", "\"1\"", "if len(ans)>=1:\n ans.pop(len(ans)-1)\n else:\n continue", "len(ans)>=1", "len(ans)", "len", "ans", "1", "ans.pop(len(ans)-1)", "ans.pop", "ans", "pop", "len(ans)-1", "len(ans)", "len", "ans", "1", "continue", "print(\"\".join(ans))", "print", "\"\".join(ans)", "\"\".join", "\"\"", "join", "ans", "ans=[]", "[]", "ans", "s=input()", "input()", "s" ]
s=input() ans=[] for i in s: if i=="0": ans.append("0") elif i=="1": ans.append("1") else: if len(ans)>=1: ans.pop(len(ans)-1) else: continue print("".join(ans))
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 13, 14, 2, 2, 13, 17, 40, 13, 39, 4, 18, 13, 13, 17, 9, 4, 13, 4, 18, 17, 13, 13, 10, 4, 13, 10, 39, 13 ]
[ [ 51, 2 ], [ 54, 6 ], [ 10, 9 ], [ 52, 9 ], [ 9, 13 ], [ 55, 17 ], [ 9, 19 ], [ 9, 22 ], [ 55, 26 ], [ 9, 28 ], [ 9, 32 ], [ 55, 35 ], [ 55, 39 ], [ 55, 49 ], [ 51, 52 ], [ 54, 55 ] ]
[ "s = input()\n\nlist = []\n\nfor i in s:\n if i == \"0\":\n list.append(i)\n elif i == \"1\":\n list.append(i)\n elif i == \"B\" and list != []:\n list.pop(-1)\n else:\n continue\n\nprint(\"\".join(list))", "s = input()", "s", "input()", "input", "list = []", "list", "[]", "for i in s:\n if i == \"0\":\n list.append(i)\n elif i == \"1\":\n list.append(i)\n elif i == \"B\" and list != []:\n list.pop(-1)\n else:\n continue", "i", "s", "if i == \"0\":\n list.append(i)\n elif i == \"1\":\n list.append(i)\n elif i == \"B\" and list != []:\n list.pop(-1)\n else:\n continue", "i == \"0\"", "i", "\"0\"", "list.append(i)", "list.append", "list", "append", "i", "elif i == \"1\":\n list.append(i)\n ", "i == \"1\"", "i", "\"1\"", "list.append(i)", "list.append", "list", "append", "i", "elif i == \"B\" and list != []:\n list.pop(-1)\n ", "i == \"B\" and list != []", "i == \"B\"", "i", "\"B\"", "list != []", "list", "[]", "list.pop(-1)", "list.pop", "list", "pop", "-1", "continue", "print(\"\".join(list))", "print", "\"\".join(list)", "\"\".join", "\"\"", "join", "list", "s = input()", "input()", "s", "list = []", "[]", "list" ]
s = input() list = [] for i in s: if i == "0": list.append(i) elif i == "1": list.append(i) elif i == "B" and list != []: list.pop(-1) else: continue print("".join(list))
[ 7, 0, 31, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 14, 4, 13, 13, 4, 18, 13, 13, 17, 4, 18, 13, 13, 13, 4, 13, 31, 13, 0, 13, 17, 10, 39, 13 ]
[ [ 4, 2 ], [ 38, 7 ], [ 11, 10 ], [ 10, 14 ], [ 39, 19 ], [ 39, 22 ], [ 39, 27 ], [ 10, 29 ], [ 39, 33 ], [ 36, 35 ], [ 38, 39 ] ]
[ "*S, = input()\n\nans = []\nfor s in S:\n if s == 'B':\n if len(ans):\n ans.pop(-1)\n else:\n ans.append(s)\n\nprint(*ans, sep='')", "*S, = input()", "*S", "S", "input()", "input", "ans = []", "ans", "[]", "for s in S:\n if s == 'B':\n if len(ans):\n ans.pop(-1)\n else:\n ans.append(s)", "s", "S", "if s == 'B':\n if len(ans):\n ans.pop(-1)\n else:\n ans.append(s)", "s == 'B'", "s", "'B'", "if len(ans):\n ans.pop(-1)\n ", "len(ans)", "len", "ans", "ans.pop(-1)", "ans.pop", "ans", "pop", "-1", "ans.append(s)", "ans.append", "ans", "append", "s", "print(*ans, sep='')", "print", "*ans", "ans", "sep=''", "sep", "''", "ans = []", "[]", "ans" ]
*S, = input() ans = [] for s in S: if s == 'B': if len(ans): ans.pop(-1) else: ans.append(s) print(*ans, sep='')
[ 7, 15, 13, 12, 13, 29, 4, 18, 4, 18, 18, 13, 13, 13, 13, 12, 13, 29, 4, 13, 4, 13, 12, 13, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 29, 13, 12, 13, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 40, 13, 17, 4, 18, 13, 13, 13, 14, 13, 4, 18, 13, 13, 4, 13, 4, 18, 17, 13, 13, 29, 14, 2, 13, 17, 4, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13 ]
[ [ 90, 21 ], [ 27, 26 ], [ 90, 30 ], [ 26, 35 ], [ 42, 41 ], [ 90, 43 ], [ 46, 45 ], [ 49, 48 ], [ 41, 48 ], [ 48, 52 ], [ 45, 56 ], [ 48, 58 ], [ 45, 63 ], [ 45, 71 ], [ 84, 78 ] ]
[ "# https://atcoder.jp/contests/abc043/tasks/abc043_b\n\nimport sys\n# sys.setrecursionlimit(100000)\n\n\ndef input():\n return sys.stdin.readline().strip()\n\n\ndef input_int():\n return int(input())\n\n\ndef input_int_list():\n return [int(i) for i in input().split()]\n\n\ndef main():\n S = input()\n ans = []\n for s in S:\n if s != \"B\":\n ans.append(s)\n else:\n if ans:\n ans.pop()\n print(\"\".join(ans))\n\n return\n\n\nif __name__ == \"__main__\":\n main()", "import sys", "sys", "def input():\n return sys.stdin.readline().strip()", "input", "return sys.stdin.readline().strip()", "sys.stdin.readline().strip()", "sys.stdin.readline().strip", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "strip", "def input_int():\n return int(input())", "input_int", "return int(input())", "int(input())", "int", "input()", "input", "def input_int_list():\n return [int(i) for i in input().split()]", "input_int_list", "int(i) for i in input().split()", "for i in input().split()", "i", "input().split()", "().split", "()", "input", "split", "for i in input().split()", "int(i)", "int", "i", "return [int(i) for i in input().split()]", "[int(i) for i in input().split()]", "def main():\n S = input()\n ans = []\n for s in S:\n if s != \"B\":\n ans.append(s)\n else:\n if ans:\n ans.pop()\n print(\"\".join(ans))\n\n return", "main", "S = input()", "S", "input()", "input", "ans = []", "ans", "[]", "for s in S:\n if s != \"B\":\n ans.append(s)\n else:\n if ans:\n ans.pop()\n ", "s", "S", "if s != \"B\":\n ans.append(s)\n else:\n if ans:\n ans.pop()\n ", "s != \"B\"", "s", "\"B\"", "ans.append(s)", "ans.append", "ans", "append", "s", "if ans:\n ans.pop()\n ", "ans", "ans.pop()", "ans.pop", "ans", "pop", "print(\"\".join(ans))", "print", "\"\".join(ans)", "\"\".join", "\"\"", "join", "ans", "return", "if __name__ == \"__main__\":\n main()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "def input_int():\n return int(input())", "def input_int():\n return int(input())", "input_int", "def main():\n S = input()\n ans = []\n for s in S:\n if s != \"B\":\n ans.append(s)\n else:\n if ans:\n ans.pop()\n print(\"\".join(ans))\n\n return", "def main():\n S = input()\n ans = []\n for s in S:\n if s != \"B\":\n ans.append(s)\n else:\n if ans:\n ans.pop()\n print(\"\".join(ans))\n\n return", "main", "def input_int_list():\n return [int(i) for i in input().split()]", "def input_int_list():\n return [int(i) for i in input().split()]", "input_int_list", "def input():\n return sys.stdin.readline().strip()", "def input():\n return sys.stdin.readline().strip()", "input" ]
# https://atcoder.jp/contests/abc043/tasks/abc043_b import sys # sys.setrecursionlimit(100000) def input(): return sys.stdin.readline().strip() def input_int(): return int(input()) def input_int_list(): return [int(i) for i in input().split()] def main(): S = input() ans = [] for s in S: if s != "B": ans.append(s) else: if ans: ans.pop() print("".join(ans)) return if __name__ == "__main__": main()
[ 7, 0, 13, 4, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 40, 4, 13, 13, 17, 0, 13, 18, 13, 39, 17, 2, 4, 13, 13, 17, 0, 13, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 18, 13, 10, 13, 13 ]
[ [ 42, 2 ], [ 39, 6 ], [ 10, 9 ], [ 43, 9 ], [ 9, 13 ], [ 40, 19 ], [ 49, 19 ], [ 46, 19 ], [ 45, 22 ], [ 40, 24 ], [ 49, 24 ], [ 46, 24 ], [ 40, 30 ], [ 49, 30 ], [ 46, 30 ], [ 48, 33 ], [ 9, 34 ], [ 49, 37 ], [ 46, 37 ], [ 40, 37 ], [ 39, 40 ], [ 42, 43 ], [ 45, 46 ], [ 9, 48 ], [ 48, 49 ] ]
[ "s = input()\n\nres = \"\"\n\nfor do in s:\n if do == \"B\":\n if len(res) != 0:\n res = res[0:len(res)-1]\n \n else:\n res += do\n\nprint(res)", "s = input()", "s", "input()", "input", "res = \"\"", "res", "\"\"", "for do in s:\n if do == \"B\":\n if len(res) != 0:\n res = res[0:len(res)-1]\n \n else:\n res += do", "do", "s", "if do == \"B\":\n if len(res) != 0:\n res = res[0:len(res)-1]\n \n else:\n res += do", "do == \"B\"", "do", "\"B\"", "if len(res) != 0:\n res = res[0:len(res)-1]\n \n ", "len(res) != 0", "len(res)", "len", "res", "0", "res = res[0:len(res)-1]", "res", "res[0:len(res)-1]", "res", "0:len(res)-1", "0", "len(res)-1", "len(res)", "len", "res", "1", "res += do", "res", "do", "print(res)", "print", "res", "res = \"\"", "\"\"", "res", "s = input()", "input()", "s", "res = res[0:len(res)-1]", "res[0:len(res)-1]", "res", "res += do", "do", "res" ]
s = input() res = "" for do in s: if do == "B": if len(res) != 0: res = res[0:len(res)-1] else: res += do print(res)
[ 7, 15, 13, 12, 13, 12, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 4, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 4, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 4, 13, 17, 14, 2, 13, 17, 14, 4, 13, 13, 4, 18, 13, 13, 4, 13, 4, 18, 17, 13, 13, 10, 12, 13, 10, 12, 13, 10, 39, 13, 10, 4, 13 ]
[ [ 77, 15 ], [ 69, 19 ], [ 74, 21 ], [ 25, 24 ], [ 78, 24 ], [ 24, 28 ], [ 75, 32 ], [ 24, 39 ], [ 75, 43 ], [ 24, 50 ], [ 75, 55 ], [ 75, 58 ], [ 75, 66 ], [ 74, 75 ], [ 77, 78 ] ]
[ "import sys\ndef input(): return sys.stdin.readline().strip()\ndef mapint(): return map(int, input().split())\nsys.setrecursionlimit(10**9)\n\nS = list(input())\nlis = []\nfor s in S:\n if s=='0':\n lis.append(str(0))\n if s=='1':\n lis.append(str(1))\n if s=='B':\n if len(lis):\n lis.pop()\n\nprint(''.join(lis))", "import sys", "sys", "def input(): return sys.stdin.readline().strip()", "input", "def mapint(): return map(int, input().split())", "mapint", "sys.setrecursionlimit(10**9)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10**9", "10", "9", "S = list(input())", "S", "list(input())", "list", "input()", "input", "lis = []", "lis", "[]", "for s in S:\n if s=='0':\n lis.append(str(0))\n if s=='1':\n lis.append(str(1))\n if s=='B':\n if len(lis):\n lis.pop()", "s", "S", "if s=='0':\n lis.append(str(0))\n ", "s=='0'", "s", "'0'", "lis.append(str(0))", "lis.append", "lis", "append", "str(0)", "str", "0", "if s=='1':\n lis.append(str(1))\n ", "s=='1'", "s", "'1'", "lis.append(str(1))", "lis.append", "lis", "append", "str(1)", "str", "1", "if s=='B':\n if len(lis):\n lis.pop()", "s=='B'", "s", "'B'", "if len(lis):\n lis.pop()", "len(lis)", "len", "lis", "lis.pop()", "lis.pop", "lis", "pop", "print(''.join(lis))", "print", "''.join(lis)", "''.join", "''", "join", "lis", "def input(): return sys.stdin.readline().strip()", "def input(): return sys.stdin.readline().strip()", "input", "def mapint(): return map(int, input().split())", "def mapint(): return map(int, input().split())", "mapint", "lis = []", "[]", "lis", "S = list(input())", "list(input())", "S" ]
import sys def input(): return sys.stdin.readline().strip() def mapint(): return map(int, input().split()) sys.setrecursionlimit(10**9) S = list(input()) lis = [] for s in S: if s=='0': lis.append(str(0)) if s=='1': lis.append(str(1)) if s=='B': if len(lis): lis.pop() print(''.join(lis))
[ 7, 15, 13, 15, 13, 15, 13, 15, 13, 15, 13, 15, 13, 12, 13, 0, 13, 4, 13, 0, 13, 4, 18, 13, 13, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 4, 13, 13, 17, 4, 18, 13, 13, 4, 13, 4, 18, 17, 13, 13, 29, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 17, 16 ], [ 21, 20 ], [ 27, 26 ], [ 16, 26 ], [ 26, 30 ], [ 20, 34 ], [ 26, 39 ], [ 20, 43 ], [ 20, 50 ], [ 20, 54 ], [ 20, 62 ], [ 73, 70 ] ]
[ "import math\nimport collections\nimport fractions\nimport itertools\nimport functools\nimport operator\n\ndef solve():\n s = input()\n edge = collections.deque()\n for i in s:\n if i == \"0\":\n edge.append(\"0\")\n elif i == \"1\":\n edge.append(\"1\")\n elif len(edge) > 0:\n edge.pop()\n print(\"\".join(edge))\n return 0\n\nif __name__ == \"__main__\":\n solve()", "import math", "math", "import collections", "collections", "import fractions", "fractions", "import itertools", "itertools", "import functools", "functools", "import operator", "operator", "def solve():\n s = input()\n edge = collections.deque()\n for i in s:\n if i == \"0\":\n edge.append(\"0\")\n elif i == \"1\":\n edge.append(\"1\")\n elif len(edge) > 0:\n edge.pop()\n print(\"\".join(edge))\n return 0", "solve", "s = input()", "s", "input()", "input", "edge = collections.deque()", "edge", "collections.deque()", "collections.deque", "collections", "deque", "for i in s:\n if i == \"0\":\n edge.append(\"0\")\n elif i == \"1\":\n edge.append(\"1\")\n elif len(edge) > 0:\n edge.pop()\n ", "i", "s", "if i == \"0\":\n edge.append(\"0\")\n elif i == \"1\":\n edge.append(\"1\")\n elif len(edge) > 0:\n edge.pop()\n ", "i == \"0\"", "i", "\"0\"", "edge.append(\"0\")", "edge.append", "edge", "append", "\"0\"", "elif i == \"1\":\n edge.append(\"1\")\n ", "i == \"1\"", "i", "\"1\"", "edge.append(\"1\")", "edge.append", "edge", "append", "\"1\"", "elif len(edge) > 0:\n edge.pop()\n ", "len(edge) > 0", "len(edge)", "len", "edge", "0", "edge.pop()", "edge.pop", "edge", "pop", "print(\"\".join(edge))", "print", "\"\".join(edge)", "\"\".join", "\"\"", "join", "edge", "return 0", "0", "if __name__ == \"__main__\":\n solve()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "solve()", "solve", "def solve():\n s = input()\n edge = collections.deque()\n for i in s:\n if i == \"0\":\n edge.append(\"0\")\n elif i == \"1\":\n edge.append(\"1\")\n elif len(edge) > 0:\n edge.pop()\n print(\"\".join(edge))\n return 0", "def solve():\n s = input()\n edge = collections.deque()\n for i in s:\n if i == \"0\":\n edge.append(\"0\")\n elif i == \"1\":\n edge.append(\"1\")\n elif len(edge) > 0:\n edge.pop()\n print(\"\".join(edge))\n return 0", "solve" ]
import math import collections import fractions import itertools import functools import operator def solve(): s = input() edge = collections.deque() for i in s: if i == "0": edge.append("0") elif i == "1": edge.append("1") elif len(edge) > 0: edge.pop() print("".join(edge)) return 0 if __name__ == "__main__": solve()
[ 7, 0, 13, 4, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 4, 13, 13, 17, 0, 13, 18, 13, 39, 17, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 18, 13 ]
[ [ 41, 2 ], [ 50, 6 ], [ 10, 9 ], [ 42, 9 ], [ 9, 13 ], [ 44, 16 ], [ 9, 20 ], [ 47, 23 ], [ 51, 29 ], [ 54, 29 ], [ 48, 29 ], [ 45, 29 ], [ 53, 32 ], [ 51, 34 ], [ 54, 34 ], [ 48, 34 ], [ 45, 34 ], [ 54, 39 ], [ 48, 39 ], [ 45, 39 ], [ 51, 39 ], [ 41, 42 ], [ 44, 45 ], [ 47, 48 ], [ 50, 51 ], [ 53, 54 ] ]
[ "S = input()\nT = \"\"\nfor s in S:\n if s == \"0\":\n T += \"0\"\n elif s == \"1\":\n T += \"1\"\n elif len(T)>0:\n T = T[:-1]\nprint(T)", "S = input()", "S", "input()", "input", "T = \"\"", "T", "\"\"", "for s in S:\n if s == \"0\":\n T += \"0\"\n elif s == \"1\":\n T += \"1\"\n elif len(T)>0:\n T = T[:-1]", "s", "S", "if s == \"0\":\n T += \"0\"\n elif s == \"1\":\n T += \"1\"\n elif len(T)>0:\n T = T[:-1]", "s == \"0\"", "s", "\"0\"", "T += \"0\"", "T", "\"0\"", "elif s == \"1\":\n T += \"1\"\n ", "s == \"1\"", "s", "\"1\"", "T += \"1\"", "T", "\"1\"", "elif len(T)>0:\n T = T[:-1]", "len(T)>0", "len(T)", "len", "T", "0", "T = T[:-1]", "T", "T[:-1]", "T", ":-1", "-1", "print(T)", "print", "T", "S = input()", "input()", "S", "T += \"0\"", "\"0\"", "T", "T += \"1\"", "\"1\"", "T", "T = \"\"", "\"\"", "T", "T = T[:-1]", "T[:-1]", "T" ]
S = input() T = "" for s in S: if s == "0": T += "0" elif s == "1": T += "1" elif len(T)>0: T = T[:-1] print(T)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 14, 13, 4, 18, 13, 13, 4, 18, 13, 13, 13, 4, 13, 4, 18, 17, 13, 13, 10, 4, 13, 10, 39, 13 ]
[ [ 36, 2 ], [ 39, 8 ], [ 12, 11 ], [ 37, 11 ], [ 11, 15 ], [ 40, 21 ], [ 40, 25 ], [ 11, 27 ], [ 40, 34 ], [ 36, 37 ], [ 39, 40 ] ]
[ "\nopperations = list(input())\ndisplay_stack = []\nfor opperation in opperations:\n if opperation == \"B\":\n if display_stack:\n display_stack.pop()\n else:\n display_stack.append(opperation)\nprint(''.join(display_stack))", "opperations = list(input())", "opperations", "list(input())", "list", "input()", "input", "display_stack = []", "display_stack", "[]", "for opperation in opperations:\n if opperation == \"B\":\n if display_stack:\n display_stack.pop()\n else:\n display_stack.append(opperation)", "opperation", "opperations", "if opperation == \"B\":\n if display_stack:\n display_stack.pop()\n else:\n display_stack.append(opperation)", "opperation == \"B\"", "opperation", "\"B\"", "if display_stack:\n display_stack.pop()\n ", "display_stack", "display_stack.pop()", "display_stack.pop", "display_stack", "pop", "display_stack.append(opperation)", "display_stack.append", "display_stack", "append", "opperation", "print(''.join(display_stack))", "print", "''.join(display_stack)", "''.join", "''", "join", "display_stack", "opperations = list(input())", "list(input())", "opperations", "display_stack = []", "[]", "display_stack" ]
opperations = list(input()) display_stack = [] for opperation in opperations: if opperation == "B": if display_stack: display_stack.pop() else: display_stack.append(opperation) print(''.join(display_stack))
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 14, 40, 4, 13, 13, 17, 4, 18, 13, 13, 4, 18, 13, 13, 4, 13, 13, 4, 13, 4, 18, 17, 13, 4, 13, 13, 13, 10, 39, 13, 10, 4, 13 ]
[ [ 46, 2 ], [ 43, 6 ], [ 10, 9 ], [ 47, 9 ], [ 9, 13 ], [ 44, 19 ], [ 44, 23 ], [ 44, 27 ], [ 9, 31 ], [ 44, 41 ], [ 43, 44 ], [ 46, 47 ] ]
[ "s = input()\nst = []\nfor e in s:\n if e == 'B':\n if len(st) != 0:\n st.pop()\n else:\n st.append(int(e))\nprint(''.join(map(str,st)))", "s = input()", "s", "input()", "input", "st = []", "st", "[]", "for e in s:\n if e == 'B':\n if len(st) != 0:\n st.pop()\n else:\n st.append(int(e))", "e", "s", "if e == 'B':\n if len(st) != 0:\n st.pop()\n else:\n st.append(int(e))", "e == 'B'", "e", "'B'", "if len(st) != 0:\n st.pop()\n ", "len(st) != 0", "len(st)", "len", "st", "0", "st.pop()", "st.pop", "st", "pop", "st.append(int(e))", "st.append", "st", "append", "int(e)", "int", "e", "print(''.join(map(str,st)))", "print", "''.join(map(str,st))", "''.join", "''", "join", "map(str,st)", "map", "str", "st", "st = []", "[]", "st", "s = input()", "input()", "s" ]
s = input() st = [] for e in s: if e == 'B': if len(st) != 0: st.pop() else: st.append(int(e)) print(''.join(map(str,st)))
[ 7, 0, 13, 4, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 4, 13, 13, 17, 4, 18, 13, 13, 17, 28, 13, 13, 4, 13, 13, 0, 13, 17, 10, 39, 13, 10, 4, 13 ]
[ [ 53, 2 ], [ 50, 6 ], [ 10, 9 ], [ 54, 9 ], [ 9, 13 ], [ 51, 17 ], [ 9, 22 ], [ 51, 26 ], [ 51, 33 ], [ 51, 37 ], [ 42, 41 ], [ 51, 41 ], [ 41, 45 ], [ 48, 47 ], [ 50, 51 ], [ 53, 54 ] ]
[ "NN = input()\nlist1 =[]\nfor i in NN:\n if i == '0':\n list1.append('0')\n elif i == '1' :\n list1.append('1')\n else:\n if len(list1) == 0:\n pass\n else:\n list1.pop(-1)\nfor i in list1:\n print(i,end ='')", "NN = input()", "NN", "input()", "input", "list1 =[]", "list1", "[]", "for i in NN:\n if i == '0':\n list1.append('0')\n elif i == '1' :\n list1.append('1')\n else:\n if len(list1) == 0:\n pass\n else:\n list1.pop(-1)", "i", "NN", "if i == '0':\n list1.append('0')\n elif i == '1' :\n list1.append('1')\n else:\n if len(list1) == 0:\n pass\n else:\n list1.pop(-1)", "i == '0'", "i", "'0'", "list1.append('0')", "list1.append", "list1", "append", "'0'", "elif i == '1' :\n list1.append('1')\n ", "i == '1'", "i", "'1'", "list1.append('1')", "list1.append", "list1", "append", "'1'", "if len(list1) == 0:\n pass\n else:\n list1.pop(-1)", "len(list1) == 0", "len(list1)", "len", "list1", "0", "list1.pop(-1)", "list1.pop", "list1", "pop", "-1", "for i in list1:\n print(i,end ='')", "i", "list1", "print(i,end ='')", "print", "i", "end =''", "end", "''", "list1 =[]", "[]", "list1", "NN = input()", "input()", "NN" ]
NN = input() list1 =[] for i in NN: if i == '0': list1.append('0') elif i == '1' : list1.append('1') else: if len(list1) == 0: pass else: list1.pop(-1) for i in list1: print(i,end ='')
[ 7, 15, 13, 0, 13, 4, 13, 28, 13, 4, 13, 17, 0, 13, 4, 18, 13, 13, 17, 17, 13, 4, 13, 4, 18, 13, 13, 17, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 33, 4 ], [ 9, 8 ], [ 30, 13 ], [ 34, 20 ], [ 31, 20 ], [ 31, 25 ], [ 34, 25 ], [ 30, 31 ], [ 33, 34 ] ]
[ "#!/usr/bin/env python3\nimport re\n\ns = input()\nfor i in range(5):\n s = re.sub(r\"\\dB\", \"\", s)\nprint(s.replace(\"B\", \"\"))", "import re", "re", "s = input()", "s", "input()", "input", "for i in range(5):\n s = re.sub(r\"\\dB\", \"\", s)", "i", "range(5)", "range", "5", "s = re.sub(r\"\\dB\", \"\", s)", "s", "re.sub(r\"\\dB\", \"\", s)", "re.sub", "re", "sub", "r\"\\dB\"", "\"\"", "s", "print(s.replace(\"B\", \"\"))", "print", "s.replace(\"B\", \"\")", "s.replace", "s", "replace", "\"B\"", "\"\"", "s = re.sub(r\"\\dB\", \"\", s)", "re.sub(r\"\\dB\", \"\", s)", "s", "s = input()", "input()", "s" ]
#!/usr/bin/env python3 import re s = input() for i in range(5): s = re.sub(r"\dB", "", s) print(s.replace("B", ""))
[ 7, 15, 13, 15, 0, 13, 18, 18, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 28, 13, 13, 14, 2, 2, 13, 17, 40, 4, 13, 13, 17, 4, 18, 13, 13, 14, 2, 2, 13, 17, 2, 4, 13, 13, 17, 9, 4, 18, 13, 13, 13, 4, 13, 4, 18, 17, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 18, 13 ]
[ [ 70, 5 ], [ 64, 12 ], [ 71, 16 ], [ 67, 18 ], [ 23, 22 ], [ 65, 22 ], [ 22, 27 ], [ 68, 32 ], [ 68, 36 ], [ 22, 41 ], [ 68, 46 ], [ 68, 51 ], [ 22, 53 ], [ 68, 62 ], [ 64, 65 ], [ 67, 68 ], [ 70, 71 ] ]
[ "# -*- coding:utf-8 -*-\nimport sys\nfrom collections import deque\ninput = sys.stdin.readline\ns = list(input())\nd = deque()\nfor i in s:\n if (i=='B')&(len(d)!=0):\n d.pop()\n elif (i=='B')&(len(d)==0):\n continue\n else:\n d.append(i)\nprint(''.join(list(d)))", "import sys", "sys", "from collections import deque", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "s = list(input())", "s", "list(input())", "list", "input()", "input", "d = deque()", "d", "deque()", "deque", "for i in s:\n if (i=='B')&(len(d)!=0):\n d.pop()\n elif (i=='B')&(len(d)==0):\n continue\n else:\n d.append(i)", "i", "s", "if (i=='B')&(len(d)!=0):\n d.pop()\n elif (i=='B')&(len(d)==0):\n continue\n else:\n d.append(i)", "(i=='B')&(len(d)!=0)", "i=='B'", "i", "'B'", "len(d)!=0", "len(d)", "len", "d", "0", "d.pop()", "d.pop", "d", "pop", "elif (i=='B')&(len(d)==0):\n continue\n ", "(i=='B')&(len(d)==0)", "i=='B'", "i", "'B'", "len(d)==0", "len(d)", "len", "d", "0", "continue", "d.append(i)", "d.append", "d", "append", "i", "print(''.join(list(d)))", "print", "''.join(list(d))", "''.join", "''", "join", "list(d)", "list", "d", "s = list(input())", "list(input())", "s", "d = deque()", "deque()", "d", "input = sys.stdin.readline", "sys.stdin.readline", "input" ]
# -*- coding:utf-8 -*- import sys from collections import deque input = sys.stdin.readline s = list(input()) d = deque() for i in s: if (i=='B')&(len(d)!=0): d.pop() elif (i=='B')&(len(d)==0): continue else: d.append(i) print(''.join(list(d)))
[ 7, 0, 13, 4, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 40, 4, 13, 13, 17, 0, 13, 18, 13, 39, 2, 4, 13, 13, 17, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 18, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 52, 2 ], [ 58, 6 ], [ 10, 9 ], [ 53, 9 ], [ 9, 13 ], [ 61, 16 ], [ 9, 20 ], [ 49, 23 ], [ 9, 28 ], [ 59, 33 ], [ 56, 33 ], [ 50, 33 ], [ 62, 33 ], [ 55, 36 ], [ 59, 38 ], [ 56, 38 ], [ 50, 38 ], [ 62, 38 ], [ 59, 43 ], [ 56, 43 ], [ 50, 43 ], [ 62, 43 ], [ 56, 47 ], [ 50, 47 ], [ 62, 47 ], [ 59, 47 ], [ 49, 50 ], [ 52, 53 ], [ 55, 56 ], [ 58, 59 ], [ 61, 62 ] ]
[ "s = input()\n\noutput = ''\nfor i in s:\n if i == '0':\n output += '0'\n elif i == '1':\n output += '1'\n elif i == 'B' and len(output) != 0:\n output = output[:len(output) - 1]\nprint(output)", "s = input()", "s", "input()", "input", "output = ''", "output", "''", "for i in s:\n if i == '0':\n output += '0'\n elif i == '1':\n output += '1'\n elif i == 'B' and len(output) != 0:\n output = output[:len(output) - 1]", "i", "s", "if i == '0':\n output += '0'\n elif i == '1':\n output += '1'\n elif i == 'B' and len(output) != 0:\n output = output[:len(output) - 1]", "i == '0'", "i", "'0'", "output += '0'", "output", "'0'", "elif i == '1':\n output += '1'\n ", "i == '1'", "i", "'1'", "output += '1'", "output", "'1'", "elif i == 'B' and len(output) != 0:\n output = output[:len(output) - 1]", "i == 'B' and len(output) != 0", "i == 'B'", "i", "'B'", "len(output) != 0", "len(output)", "len", "output", "0", "output = output[:len(output) - 1]", "output", "output[:len(output) - 1]", "output", ":len(output) - 1", "len(output) - 1", "len(output)", "len", "output", "1", "print(output)", "print", "output", "output += '1'", "'1'", "output", "s = input()", "input()", "s", "output = output[:len(output) - 1]", "output[:len(output) - 1]", "output", "output = ''", "''", "output", "output += '0'", "'0'", "output" ]
s = input() output = '' for i in s: if i == '0': output += '0' elif i == '1': output += '1' elif i == 'B' and len(output) != 0: output = output[:len(output) - 1] print(output)