problem_id
stringlengths 6
6
| user_id
stringlengths 10
10
| time_limit
float64 1k
8k
| memory_limit
float64 262k
1.05M
| problem_description
stringlengths 48
1.55k
| codes
stringlengths 35
98.9k
| status
stringlengths 28
1.7k
| submission_ids
stringlengths 28
1.41k
| memories
stringlengths 13
808
| cpu_times
stringlengths 11
610
| code_sizes
stringlengths 7
505
|
---|---|---|---|---|---|---|---|---|---|---|
p03315 | u223904637 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s=list(input())\nans=0\nfor i in range(4):\n if s[i]=='+':\n ans+=1\n else:\n ans-=1", "s=list(input())\nans=0\nfor i in range(4):\n if s[i]=='+':\n ans+=1\n else:\n ans-=1\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s623661150', 's414768835'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 109] |
p03315 | u226191225 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = list(str(input()))\nprint(s.count("+")-s.count("-")-1)', '#!/usr/bin/env python3\ns = list(str(input()))\nprint(s.count("+")-s.count("-"))'] | ['Wrong Answer', 'Accepted'] | ['s862653409', 's722357519'] | [2940.0, 2940.0] | [17.0, 17.0] | [57, 78] |
p03315 | u226779434 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = map(str,input().split())\ns =1\nfor i in S:\n\tif i in "+":\n\t\ts +=1 \n\telse:\n \ts -=1\nprint(s)\n', 'a =input()\ns = 0\nfor i in a:\n if i in "+":\n s +=1\n else:\n s -=1\nprint(s)\n'] | ['Runtime Error', 'Accepted'] | ['s682270092', 's413213785'] | [8968.0, 9092.0] | [22.0, 28.0] | [97, 81] |
p03315 | u227082700 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['print(4-input().count()*2)', 'print(4-input().count("-")*2)'] | ['Runtime Error', 'Accepted'] | ['s401842142', 's820129990'] | [2940.0, 2940.0] | [17.0, 18.0] | [26, 29] |
p03315 | u238084414 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = input()\nn = 0\n\nfor s in S:\n if s == "+"\n n += 1\n else:\n n -= 1\n\nprint(n)', 'S = input()\nn = 0\n\nfor s in S:\n if S == "+"\n n += 1\n else:\n n -= 1\n\nprint(n)', 'S = input()\nn = 0\n\nfor s in S:\n if s == "+":\n n += 1\n else:\n n -= 1\n\nprint(n)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s252004415', 's888293826', 's642101111'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [84, 84, 85] |
p03315 | u238704641 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = int(input())\nX = 0\nfor i in range(len(S)):\n if S[i] == "+":\n X += 1\n else:\n X -= 1\n\nprint(X)', 'S = input()\nX = 0\nfor i in range(len(S)):\n if S[i] == "+":\n X += 1\n else:\n X -= 1\n\nprint(X)'] | ['Runtime Error', 'Accepted'] | ['s261637765', 's747552014'] | [2940.0, 2940.0] | [17.0, 19.0] | [116, 111] |
p03315 | u243159170 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = input()\nnum = 0\nfor _ in range(len(s)):\n\n if s == '+':\n num += 1\n else:\n", "s = input()\nnum = 0\n\nfor pm in range(len(s)):\n num = num + 1 if pm == '+' else num - 1\nprint(num)", "def prob(n):\n n = str(n)\n sn = 0\n for i in n:\n sn += int(i)\n n = int(n)\n print('Yes') if not n % sn else ('No')\n\nn = input()\nprob(n)", "s = input()\nnum = 0\n\nfor i in range(len(s)):\n num = num + 1 if s[i] == '+' else num - 1\n\nprint(num)"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s557030567', 's679874796', 's777709246', 's791920378'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [89, 100, 154, 103] |
p03315 | u246572032 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = input()\nprint(+1 if + else -1 if -)', "s = input()\nprint(s.count('+')*1+s.count('-')*-1)"] | ['Runtime Error', 'Accepted'] | ['s967851732', 's986936855'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 49] |
p03315 | u248967559 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['in = input()\nplus = in.count("+")\nprint(plus*2-4)\n', 'i = input()\np = i.count("+")\nprint(2*p-4)\n'] | ['Runtime Error', 'Accepted'] | ['s138358204', 's262800080'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 42] |
p03315 | u249727132 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = raw_input()\nprint(S.count("+") - S.count("-"))', 'S = input()\nprint(S.count("+") - S.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s464886420', 's426356808'] | [2940.0, 2940.0] | [17.0, 18.0] | [50, 46] |
p03315 | u249987458 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = str(input())\nlist = lisr(S)\nnum = list.count('+')\nprint('num - (4-num)')", "S = str(input())\nlist = lisr(S)\nnum = int(list.count('+'))\nprint('num - (4-num)')", "S = map(str, input().split())\nlist = list(S)\na = int(list.count('+'))\nb = ist(list.count('-'))\nprint('a-b')", "S = map(str, input())\nlist = list(S)\na = int(list.count('+'))\nb = ist(list.count('-'))\nprint('a-b')", "S = str(input())\nlist = lisr(S)\nnum = list.count('+')\nprint(num - (4-num))", "S = str(input())\nlist = lisr(S)\nnum = list.count('+')\nprint(num - (4-num))", "S = str(input())\nlist = lisr(S)\nnum = int(list.count('+'))\nprint('num - (4-num'))", "s = str(input())\nprint(s.count('+')-s.count('-'))"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s037493927', 's178437354', 's209859559', 's320177960', 's588503814', 's603535120', 's812153367', 's332812531'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 8908.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 27.0] | [76, 81, 107, 99, 74, 74, 81, 49] |
p03315 | u250662864 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['op = input()\ncount = 0\nfor i in op:\n if(i == "-"):\n count-=1\n elif(i == "+"):\n count +=1', 'op = input()\nop = list(op)\ncount = 0\nfor i in op:\n if(i == "-"):\n count-=1\n elif(i == "+"):\n count +=1', 'op = input()\ncount = 0\nfor i in op:\n if(i == "-"):\n count-=1\n elif(i == "+"):\n count +=1\nprint(count)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s088474689', 's444227281', 's438885881'] | [8800.0, 9056.0, 8832.0] | [25.0, 30.0, 29.0] | [96, 110, 109] |
p03315 | u251017754 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = input()\np = S.count('+')\nm = s.count('-')\nprint(p-m)", "s = input()\np = s.count('+')\nm = s.count('-')\nprint(p-m)"] | ['Runtime Error', 'Accepted'] | ['s041873809', 's972807651'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 56] |
p03315 | u251123951 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s=input()\nresult=0\nfor i in s:\n result+=1 if i=="+" else result-=1\nprint(result)', 's=input()\nresult=0\nfor i in s:\n if i=="+" : result+=1\n else : result-=1\nprint(result)'] | ['Runtime Error', 'Accepted'] | ['s081065566', 's114357211'] | [2940.0, 2940.0] | [18.0, 18.0] | [81, 91] |
p03315 | u252964975 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S=str(input())\nk = 0\nfor i in Range(S):\n if S[i] == '+':\n k = k + 1\n else:\n k = k - 1\nprint(k)", "S=str(input())\nk = 0\nfor i in range(4):\n if S[i] == '+':\n k = k + 1\n else:\n k = k - 1\nprint(k)\n"] | ['Runtime Error', 'Accepted'] | ['s918786204', 's272237692'] | [2940.0, 2940.0] | [17.0, 18.0] | [102, 103] |
p03315 | u255555420 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S=input()\n\nA=0\nfor i in range(N):\n if S[i]=="+":\n A=A+1\n elif S[i]=="-":\n A=A-1\n else:\n pass\n\nprint(A)', 'S=list(input())\n\nA=0\nfor i in range(N):\n if S[i]=="+":\n A=A+1\n elif S[i]=="-":\n A=A-1\n else:\n pass\n\nprint(A)', 'S=list(input())\n\nA=0\nfor i in range(N):\n if S[i]=="+":\n A=A+1\n else:\n A=A-1\n\nprint(A)', 'S=list(input())\n\nA=0\nfor i in range(4):\n if S[i]=="+":\n A=A+1\n elif S[i]=="-":\n A=A-1\n \nprint(A)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s010461921', 's668189488', 's790644507', 's263977047'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [132, 138, 105, 119] |
p03315 | u256464928 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = input()\nprint(0+count.s("+")-count.s("-"))', 's = input()\nprint(0+s.count("+")-s.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s286837271', 's787255730'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 46] |
p03315 | u264265458 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['print(input().count("+")-input().count("-"))', 'a=input()\nprint(a.count("+")-a.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s216517624', 's225134366'] | [2940.0, 2940.0] | [18.0, 19.0] | [44, 42] |
p03315 | u265281278 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S=list(input())\ncounter = 0\nfor i in range(len(S):\n if S[i] == '+':\n counter += 1\n else:\n counter -= 1\n\nprint(counter)", "S=input()\ncounter = 0\nfor i in len(S):\n if S[i] == '+':\n counter += 1\n else:\n counter -= 1\n\nprint(counter)", "S=list(input())\ncounter = 0\nfor i in len(S):\n if S[i] == '+':\n counter += 1\n else:\n counter -= 1\n\nprint(counter)", "S=input()\ncounter\nfor i in len(S):\n if S[i] == '+':\n counter += 1\n else:\n counter -= 1\n\nprint(counter)", "S=list(input())\ncounter = 0\nfor i in range(len(S)):\n if S[i] == '+':\n counter += 1\n elif S[i] == '-':\n counter -= 1\n\nprint(counter)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s144238838', 's342239206', 's639336894', 's765177634', 's833135816'] | [2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [138, 126, 132, 122, 151] |
p03315 | u266874640 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['K = int(input())\n\nif K < 9:\n for i in range(1,K+1):\n print(i)\nelse:\n for i in range(1,9):\n print(i)\n for i in range(K-8):\n print((i+1) * 10 -1)\n', 'S = input()\nresult = 0\nfor i in S:\n if i == "+":\n result += 1\n else:\n result -= 1\nprint(result)\n'] | ['Runtime Error', 'Accepted'] | ['s210239053', 's371681286'] | [2940.0, 2940.0] | [17.0, 18.0] | [174, 116] |
p03315 | u276115223 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['----', "# ABC 101: A – Eating Symbols Easy\ns = input()\nprint(s.count('+') - s.count('-'))"] | ['Runtime Error', 'Accepted'] | ['s585642519', 's428747152'] | [2940.0, 2940.0] | [17.0, 17.0] | [4, 83] |
p03315 | u277802731 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["n = input()\n\ns = sum((int(i) for i in n))\n\nif int(n)%s==0:\n print('Yes')\nelse:\n print('No')\n\n\n\n", "n = input()\n\ns = sum((int(i) for i in n))\n\nif int(n)%s==0:\n print('Yes')\nelse:\n print('No')\n\n\n\n", "n = input()\n\ns = sum([int(i) for i in n])\n\nif int(n)%s==0:\n print('Yes')\nelse:\n print('No')\n", "#101a\ns=input()\nprint(s.count('+')-s.count('-'))"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s100435535', 's425551871', 's497523016', 's981765046'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 17.0] | [101, 101, 98, 48] |
p03315 | u280016524 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['N=int(input())\nla=[]\nbuff=0\nfor i in range(1,10):\n la.append(int(N/10**i))\nla.append(N%10)\nbuff=sum(la)\nif(N%buff==0):\n print("Yes")\nelse:\n print("No")', "s=input()\nn=0\nfor i in range(4):\n if(s[i]=='+'):\n n=n+1\n if(s[i]=='-'):\n n=n-1\nprint(n)"] | ['Runtime Error', 'Accepted'] | ['s653001085', 's535384111'] | [2940.0, 2940.0] | [18.0, 17.0] | [160, 107] |
p03315 | u283751459 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = list(input())\n\ncount = int(s.count("+")) - int(s.count("-"))\n\nprint(1 + count)', 's = list(input())\n\ncount = int(s.count("+")) - int(s.count("-"))\n\nprint(count)\n'] | ['Wrong Answer', 'Accepted'] | ['s718158914', 's916432195'] | [8880.0, 8988.0] | [30.0, 27.0] | [82, 79] |
p03315 | u283907492 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = input().split()\nnum = 0\nfor i in s:\n\tif i == '+':\n\t\tnum += 1\n\telse:\n\t\tnum -= 1\nprint(num)", "s = input().split()\nnum = 0\nfor i in s:\n if i == '+':\n num += 1\n else:\n num -= 1\n \nprint(num)", "s = list(input())\nnum = 0\nfor i in s:\n\tif i == '+':\n\t\tnum += 1\n\telse:\n\t\tnum -= 1\nprint(num)"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s317562261', 's960326575', 's256876937'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [93, 104, 91] |
p03315 | u287431190 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["a,b,c,d = map(str, input().split())\ns = 0\nif a == '+':\n s = s + 1\nelse:\n s = s - 1\n\nif b == '+':\n s = s + 1\nelse:\n s = s - 1\n\nif c == '+':\n s = s + 1\nelse:\n s = s - 1\n\nif d == '+':\n s = s + 1\nelse:\n s = s - 1\n\nprint(s)", "s = input()\npu = s.count('+')\nmi = s.count('-')\nprint(pu-mi)"] | ['Runtime Error', 'Accepted'] | ['s003497198', 's351071502'] | [3060.0, 2940.0] | [17.0, 17.0] | [226, 60] |
p03315 | u290187182 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['import sys\nimport copy\nimport math\nimport bisect\nimport pprint\nimport bisect\nfrom functools import reduce\nfrom copy import deepcopy\nfrom collections import deque\n\ndef lcm(x, y):\n return (x * y) // math.gcd(x, y)\n\nif __name__ == \'__main__\':\n a = [str(i) for i in input().split()]\n count = 0\n\n for i in range(4):\n if a[i] == "+":\n count +=1\n else:\n count -=1\n print(count)', 'import sys\nimport copy\nimport math\nimport bisect\nimport pprint\nimport bisect\nfrom functools import reduce\nfrom copy import deepcopy\nfrom collections import deque\n\ndef lcm(x, y):\n return (x * y) // math.gcd(x, y)\n\nif __name__ == \'__main__\':\n a = [str(i) for i in input().split()]\n count = 0\n \n for i in a:\n if i == "+":\n count +=1\n else:\n count -=1\n print(count)', 'import sys\nimport copy\nimport math\nimport bisect\nimport pprint\nimport bisect\nfrom functools import reduce\nfrom copy import deepcopy\nfrom collections import deque\n\ndef lcm(x, y):\n return (x * y) // math.gcd(x, y)\n\nif __name__ == \'__main__\':\n a = [str(i) for i in input().split()]\n count = 0\n\n for i in range(4):\n if a[0][i] == "+":\n count +=1\n else:\n count -=1\n print(count)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s199973420', 's514592984', 's726890895'] | [3828.0, 3956.0, 3828.0] | [26.0, 25.0, 25.0] | [421, 415, 424] |
p03315 | u295457032 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S=input()\nif S.count('+') = 0:\n print(-4)\nelif S.count('+') = 1:\n print(-2)\nelif S.count('+') = 2:\n print(0)\nelif S.count('+') = 3:\n print(2)\nelse:\n print(4)", "S=input()\nif S.count('+') == 0:\n print(-4)\nelif S.count('+') == 1:\n print(-2)\nelif S.count('+') == 2:\n print(0)\nelif S.count('+') == 3:\n print(2)\nelse:\n print(4)"] | ['Runtime Error', 'Accepted'] | ['s825428608', 's098301589'] | [2940.0, 2940.0] | [17.0, 18.0] | [157, 161] |
p03315 | u297801580 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["cs =list(input())\nlp = len([c for c in cs if c=='+'])\nlm = len([c for c in cs if c=='+'])\nprint(lp-lm)", "cs =list(input())\nlp = len([c for c in cs if c=='+'])\nlm = len([c for c in cs if c=='-'])\nprint(lp-lm)"] | ['Wrong Answer', 'Accepted'] | ['s119077868', 's422682236'] | [2940.0, 2940.0] | [17.0, 18.0] | [102, 102] |
p03315 | u302292660 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = input()\nprint(s.count("+")-s.count("+"))', 's = input()\nprint(s.count("+")-s.count("-"))'] | ['Wrong Answer', 'Accepted'] | ['s640033259', 's126666188'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 44] |
p03315 | u303721530 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['N = input()\ncount = 0\nfor i in range(len(N)):\n if N[i] == "+":\n count = count +1\n if N[i] == "-":\n count = count - 1', 'N = input()\ncount = 0\nfor i in range(len(N)):\n if N[i] == "+":\n count = count +1\n if N[i] == "-":\n count = count - 1\nprint(count)'] | ['Wrong Answer', 'Accepted'] | ['s713412852', 's908394705'] | [2940.0, 2940.0] | [17.0, 17.0] | [148, 161] |
p03315 | u306142032 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = input()\na = 0\nfor x in s:\n if x == '+'\n a += 1\n else:\n a -= 1\n\nprint(a) \n", "s = input()\na = 0\nfor x in s:\n if x == '+':\n a += 1\n else:\n a -= 1\n\nprint(a)\n"] | ['Runtime Error', 'Accepted'] | ['s539368798', 's405907025'] | [2940.0, 2940.0] | [22.0, 17.0] | [108, 97] |
p03315 | u310549140 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['K = int(input())\nans = [1,2,3,4,5,6,7,8]\nnum = 9\nwhile(len(ans)<K):\n if str(num)[-1]=="9":\n if str(num)[1:].count("9")==len(str(num)[1:]):\n ans.append(num)\n num += 1\n\nfor i in range(K):\n print(ans[i])', 'S = input()\nans = 0\nfor char in S:\n if char == "+":\n ans += 1\n else:\n ans -= 1\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s816558343', 's837203904'] | [3060.0, 2940.0] | [17.0, 17.0] | [227, 110] |
p03315 | u317711717 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['import math\n\na=input()\nprint(a.count("+")+a.count("-"))\n', 'import math\n\na=input()\nprint(a.count("+")-a.count("-"))\n'] | ['Wrong Answer', 'Accepted'] | ['s002804718', 's915250077'] | [2940.0, 3060.0] | [17.0, 18.0] | [56, 56] |
p03315 | u325191277 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = input()\n#print(S)\n#i = 0\nfor e in S:\n if e=="+":\n i=+1\n else:\n i-=1\nprint(i)\n', '\nS = input()\n#print(S)\ni = 0\nfor e in S:\n if e=="+":\n i=i+1\n if e=="-":\n i=i-1\nprint(i)\n'] | ['Runtime Error', 'Accepted'] | ['s525764185', 's902817352'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 108] |
p03315 | u328755070 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = list(input())\nans = 0\nfor i in range(4):\n if S[0] == '+':\n ans += 1\n else:\n ans -= 1\n\nprint(ans)\n", "S = list(input())\nans = 0\nfor i in range(4):\n if S[i] == '+':\n ans += 1\n else:\n ans -= 1\n\nprint(ans)\n"] | ['Wrong Answer', 'Accepted'] | ['s792931682', 's936833118'] | [2940.0, 2940.0] | [17.0, 17.0] | [121, 121] |
p03315 | u331381193 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s=input()\n\ncnt=0\n\nfor i in range(4):\n\tif s[i]=='+':\n\tcnt+=1\n\nres=2*i-4\n\nprint(res)", "s=input()\n \ncnt=0\n \nfor i in range(4):\n\tif s[i]=='+':\n\t\tcnt+=1\n\nres=cnt*2-4\n \nprint(res)"] | ['Runtime Error', 'Accepted'] | ['s807691157', 's961039671'] | [2940.0, 2940.0] | [18.0, 17.0] | [82, 88] |
p03315 | u333731247 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S=input().split()\n\nplus=0\n\nfor i in S:\n if S[i]=="+":\n plus+=1\n else :\n plus-=1\n\nprint(plus)', 's=input()\n\nprint (s.count("+") - s.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s090387697', 's661357580'] | [2940.0, 2940.0] | [18.0, 19.0] | [112, 46] |
p03315 | u333945892 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["li = list(input())\n\nans = 0\n\nprint (li)\n\nfor i in range(4) :\n\tif li[i] == '+' : \n\t\tans += 1\n\telse:\n\t\tans -= 1\n\nprint(ans)", 'import math\n\nN,K = map(int,input().split())\n\nN -= K\n\nans = math.ceil(N / (K-1)) + 1\n\nprint (ans)', "li = list(input())\n\nans = 0\n\nfor i in range(4) :\n\tif li[i] == '+' : \n\t\tans += 1\n\telse:\n\t\tans -= 1\n\nprint(ans)"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s685770715', 's779898737', 's744606258'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [121, 96, 109] |
p03315 | u339523379 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['n=input()\nN=int(n)\ntmp=list(n)\n\nc=0\nfor i in tmp:\n c+=int(i)\n\nif N%c==0:\n print("Yes")\nelse:\n print("No")', 'l=list(input())\nc=4\nfor i in l:\n if i=="-":\n c-=2\n\nprint(c)\n'] | ['Runtime Error', 'Accepted'] | ['s832476797', 's079464357'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 70] |
p03315 | u339922532 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = input()\n\nprint(s.count("+") + s.count("-"))', 's = input()\n\nprint(s.count("+") - s.count("-"))'] | ['Wrong Answer', 'Accepted'] | ['s270481077', 's498064278'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 47] |
p03315 | u340515675 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["N = input()\nnumN = int(N)\nS =0\nfor i in range(len(N)):\n S += int(N[i])\n\nif nunN % S == 0:\n print('Yes')\nelse:\n print('No')\n", 'S = input()\nres = 0\nfor i in range(4):\n if S[i] == ‘+’:\n res += 1\n else:\n res -= 1\nprint(res)\n', "S = input()\nres = 0\nfor i in range(4):\n if S[i] == '+':\n res += 1\n else:\n res -= 1\nprint(res)"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s306333555', 's975366783', 's060151190'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [132, 118, 113] |
p03315 | u345076485 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s=input()\na = 1\n\nfor i in range(0..3):\n if s[i] == +:\n a = a + 1\n else:\n a = a - 1\n', "s=input()\na = 0\n\nfor i in range(0,4):\n if s[i] == '+':\n a = a + 1\n else:\n a = a - 1\nprint(a)\n"] | ['Runtime Error', 'Accepted'] | ['s576608640', 's584097200'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 113] |
p03315 | u345483150 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s=input().split()\na=s.count('+')\nprint(2*a-4)", "s=input()\na=s.count('+')\nprint(2*a-4)"] | ['Wrong Answer', 'Accepted'] | ['s251645492', 's611113358'] | [2940.0, 2940.0] | [17.0, 17.0] | [45, 37] |
p03315 | u350248178 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['a=[input().split()]\n\nprint(a.count("+")-a.count("-"))', 'l=input()\n\na=list(l)\n\nprint(a.count("+")-a.count("-"))\n'] | ['Wrong Answer', 'Accepted'] | ['s743278369', 's268702851'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 55] |
p03315 | u351399674 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = map(int,input().split)\na = 0\nwhile a >= 4:\n if S = "+":\n a += 1\n else:\n a -= 1 \nprint(a) ', 'S = map(int,input().split())\na = 0\nwhile a >= 4:\n if S = "+":\n a += 1\n else:\n a -= 1 \nprint(a) ', 'S = input()\nprint(S.count("+")-S.count("-"))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s686715340', 's871821845', 's801256314'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [123, 125, 44] |
p03315 | u366886346 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s=input()\nans=0\nfor i in range(4):\n if s[i]=="+":\n ans+=1\n else:\n ans-=1\n', 's=input()\nans=0\nfor i in range(4):\n if s[i]=="+":\n ans+=1\n else:\n ans-=1\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s690145753', 's669797380'] | [2940.0, 2940.0] | [18.0, 17.0] | [93, 104] |
p03315 | u371530330 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = input()\ncnt = 0\n \nfor i in s:\n if i = '+':\n cnt = cnt +1\n elif i = '-':\n cnt = cnt-1\n \nprint(cnt)", 's = list(int(input()))\ncnt = 0\n \nfor i in s:\n if i = +:\n cnt = cnt +1\n elif i = -:\n cnt = cnt-1\n \nprint(cnt)', "s = list(input())\ncnt = 0\n\nfor i in s:\n if i = '+':\n cnt = cnt +1\n if i = '-':\n cnt = cnt-1\n\nprint(cnt)", "s = input()\ncnt = 0\n \nfor i in s:\n if i == '+':\n cnt = cnt +1\n elif i == '-':\n cnt = cnt-1\n \nprint(cnt)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s282528773', 's578256663', 's745823325', 's913954250'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [109, 116, 111, 111] |
p03315 | u373529207 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = input()\nprint(S.count('1')-S.count('0'))\n", "S = input()\nprint(S.count('+')-S.count('-'))\n"] | ['Wrong Answer', 'Accepted'] | ['s694199064', 's916797456'] | [2940.0, 2940.0] | [18.0, 17.0] | [45, 45] |
p03315 | u374802266 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['a=input()\nb=0\nfor i while(4)\n if a[i]=="+":\n b+=1\n else:\n b-=1\nprint(b)', 'a=input()\nb=0\nfor i in range(4)\n if a[i]=="+":\n b+=1\n else:\n b-=1\nprint(b)\n', "s=input()\nprint(s.count('+')-s.count('-'))"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s402858510', 's678025826', 's385532057'] | [2940.0, 2940.0, 8772.0] | [17.0, 17.0, 26.0] | [91, 95, 42] |
p03315 | u374829922 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["# coding:utf-8\ndef main():\n l = list(map(str, input().split()))\n count = 0\n for i in l:\n if i=='+':\n count = count + 1\n else:\n count = count - 1\n\n print(count)\n\n\nif __name__ == '__main__' :\n main()", "# coding:utf-8\ndef main():\n l = list(input())\n count = 0\n for i in l:\n if i=='+':\n count = count + 1\n else:\n count = count - 1\n\n print(count)\n\nif __name__ == '__main__' :\n main()"] | ['Wrong Answer', 'Accepted'] | ['s225244615', 's867463829'] | [2940.0, 2940.0] | [18.0, 17.0] | [248, 229] |
p03315 | u375695365 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['a=str(input())\nprint(a.cpunt("+")-a.count("-"))', 'a=str(input())\nprint(a.count("+")-a.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s463378147', 's586500430'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 47] |
p03315 | u378235715 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['\na = 0\ns = input()\nn = len(S)\n\nfor i in range(0,n):\n if s[i] == "+":\n a = a+1\n if s[i] == "-":\n a = a-1\n \nprint(a)', 'a = 0\ns = input()\n\nfor i in range(0,4):\n if s[i] == "+":\n a = a+1\n if s[i] == "-":\n a = a-1\n \nprint(int(a))'] | ['Runtime Error', 'Accepted'] | ['s183361851', 's487123667'] | [2940.0, 2940.0] | [17.0, 18.0] | [141, 134] |
p03315 | u379136995 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["a=0\ns=input()\nfor i in s:\n if s[i]=='-':\n a-=1\n else:\n a+=1\nprint(a)", 'a=0\ns=input()\nfor i in range(4):\n if s[i]=="-":\n a-=1\n else:\n a+=1\nprint(a)'] | ['Runtime Error', 'Accepted'] | ['s289489905', 's517056559'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 95] |
p03315 | u391066416 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['stri = input()\nstri = stri.replace("+", "1 ").replace("-", "-1 ")\nnumList = [int(s) for s in stri.split()]\n\nprint(sum(intList))', 'stri = input()\nstri = stri.replace("+", "1 ").replace("-", "-1 ")\nnumList = [int(s) for s in stri.split()]\n\nprint(sum(numList))'] | ['Runtime Error', 'Accepted'] | ['s386388918', 's121304856'] | [2940.0, 2940.0] | [17.0, 17.0] | [127, 127] |
p03315 | u393881437 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = list(input().split())\nresult = 0\nfor i in s:\n if i == '+':\n result += 1\n else:\n result -= 1\nprint(result)", "s = list(input())\nresult = 0\nfor i in s:\n if i == '+':\n result += 1\n else:\n result -= 1\nprint(result)"] | ['Wrong Answer', 'Accepted'] | ['s443097715', 's127121901'] | [2940.0, 2940.0] | [17.0, 17.0] | [129, 121] |
p03315 | u402467563 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = str(input())\np = S.count('+') \nm = S.sount('-')\nprint(p-m)", '----', "S = str(input())\np = S.count('+') \nm = S.count('-')\nprint(p-m)"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s234823564', 's748381484', 's285087130'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [62, 4, 62] |
p03315 | u404629709 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s=input()\nnum=0\nfor i in s:\n if i=="-":\n num-=1\n else\n num+=1\nprint(num)', 's=input()\nnum=0\nfor i in s:\n if i=="-":\n num-=1\n else:\n num+=1\nprint(num)'] | ['Runtime Error', 'Accepted'] | ['s105848320', 's850414764'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 81] |
p03315 | u406767170 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s=input()\np=0; m=0\nfor i in range(0,len(s))\n if s[i]=='+':\n p += 1\n else:\n m += 1\nprint(p-m)", "s=input()\np=0; m=0\nfor i in range(0,4)\n if s[i]=='+':\n p += 1\n else:\n m += 1\nprint(p-m)", "s=input()\np=0; m=0\nfor i in range(0,len(s))\n if s[i]='+':\n p += 1\n else:\n m += 1\nprint(p-m)", "s=input()\np=0; m=0\nfor i in range(0,4):\n if s[i]=='+':\n p += 1\n else:\n m += 1\nprint(p-m)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s696534619', 's779108082', 's781248371', 's440460103'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [100, 95, 99, 96] |
p03315 | u408325839 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["result = 0\nfor c in input().split():\n if c == '+':\n result += 1\n else:\n result -= 1\n\nprint(result)\n", "result = 0\nfor c in input():\n if c == '-':\n result -= 1\n else:\n result += 1\nprint(result)\n"] | ['Wrong Answer', 'Accepted'] | ['s692045599', 's332202483'] | [8880.0, 8980.0] | [23.0, 27.0] | [107, 98] |
p03315 | u411544692 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["print((S = input().count('+')-2)*2)", "print((input().count('+')-2)*2)"] | ['Runtime Error', 'Accepted'] | ['s489574799', 's907095500'] | [2940.0, 2940.0] | [18.0, 18.0] | [35, 31] |
p03315 | u413318755 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = input().rstrip()\n\nnum = 0\n\nfor c in s:\n if c == '+':\n num += 1\n if c == '+':\n num -= 1\n\nprint(num)\n", "s = input().rstrip()\n\nnum = 0\n\nfor c in s:\n if c == '+':\n num += 1\n if c == '-':\n num -= 1\n\nprint(num)\n"] | ['Wrong Answer', 'Accepted'] | ['s029511679', 's961221333'] | [2940.0, 2940.0] | [18.0, 17.0] | [123, 123] |
p03315 | u417658545 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = list[input()]\nans = 0\nfor c in s:\n if c == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "s = list(input())\nans = 0\nfor c in s:\n if c == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)\n"] | ['Runtime Error', 'Accepted'] | ['s615200325', 's759953101'] | [2940.0, 2940.0] | [18.0, 17.0] | [97, 98] |
p03315 | u419963262 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S=input()\nans=0\nfor i in range(len(S)):\n if S[i]=="-":\n ans-=1:\n else:\n ans+=1\nprint(ans)', 'S=input()\nans=0\nfor i in range(len(S)):\n if S[i]=="-":\n ans-=1\n else:\n ans+=1\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s881022911', 's777669142'] | [2940.0, 2940.0] | [17.0, 16.0] | [97, 96] |
p03315 | u427984570 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['a = input()\ns = list(a)\nn = 0\n\nfor i in s:\n n += int(i)\n\nprint("Yes" if int(a)%n == 0 else "No")\n', 's = input()\nprint(s.count("+") - s.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s521861340', 's789968432'] | [2940.0, 2940.0] | [19.0, 17.0] | [98, 46] |
p03315 | u428199834 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s=input()\ncon=[0]*2\nfor i in range(4):\n if s[i]=='+':\n c[0]+=1\n else:\n c[1]+=1\nprint(c[0]-c[1]) ", "s=input()\ncon=[0]*2\nfor i in raange(4):\n if s[i]=='+':\n c[0]+=1\n else:\n c[1]+=1\nprint(c[0]-c[1]) ", "s=input()\ncon=[0]*2\nfor i in range(4):\n if s[i]=='+':\n c[0]+=1\n else:\n c[1]+=1\nprint(c[0]-c[1]) ", "s=input()\ncon=[0]*2\nfor i in range(4):\n if s[i]=='+':\n con[0]+=1\n else:\n con[1]+=1\nprint(con[0]-con[1]) "] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s280946705', 's662781367', 's736670970', 's170685463'] | [9008.0, 8852.0, 8904.0, 8864.0] | [29.0, 26.0, 27.0, 28.0] | [126, 129, 128, 134] |
p03315 | u432805419 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['a = input().split()\nprint(a.count("+") - a.count("-"))', 'a = list(input())\nprint(a.count("+") - a.count("-"))'] | ['Wrong Answer', 'Accepted'] | ['s660943938', 's123970386'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 52] |
p03315 | u448826520 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = input().split()\n\nif S[0] == '+':\n print('1')\nelif S[0] == '-':\n print('-1')\n", 'ALL = input().split()\nN = int(ALL[0])\nK = int(ALL[1])\n\nif (N - K) % (K - 1) == 0:\n answer = (N - K) // (K - 1) + 1\nelse:\n answer = (N - K) // (K - 1) + 2\n\nprint(answer)', "S = input()\nS = list(S)\n\nA = 0\n\nfor i in range(4):\n if S[i] == '+':\n A = A + 1\n elif S[i] == '-':\n A = A - 1\n\nprint(A)"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s323323933', 's806093489', 's848910921'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [86, 174, 138] |
p03315 | u453683890 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['j = {\n "-":-1,\n "+":1\n }\nl =input().split(" ")\ns = 0\nfor i in range(len(l)):\n s += j[l[i]]\nprint(s)', 'j = {\n "-":-1,\n "+":1\n }\nl =input()\nn = input()\ns = 0\nfor i in range(len(l)):\n s += j[l[i]]\nprint(s)\n', 'j = {\n "-":-1,\n "+":1\n }\nl =input()\ns = 0\nfor i in range(len(l)):\n s += j[l[i]]\nprint(s)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s796080705', 's916912987', 's154273691'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [109, 111, 99] |
p03315 | u456896733 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['import sys\nINPUT = sys.stdin.readline\n\ndef SINGLE_INT(): return int(INPUT())\ndef MULTIPLE_INT_LIST(): return list(map(int, INPUT().split()))\ndef MULTIPLE_INT_MAP(): return map(int, INPUT().split())\ndef SINGLE_STRING(): return INPUT()\ndef MULTIPLE_STRING(): return INPUT().split()\n\nN = SINGLE_INT()\n\ndef is_integer_num(n):\n if isinstance(n, int):\n return True\n if isinstance(n, float):\n return n.is_integer()\n return False\n\nif is_integer_num(N/2):\n print(N)\nelse:\n print(N*2)\n ', "S = input()\nS = list(S)\n\n\nS = [int(1) if '+' else int(-1) for x in S]\n\nprint(sum(S))", 'import sys\nINPUT = sys.stdin.readline\n\ndef SINGLE_INT(): return int(INPUT())\ndef MULTIPLE_INT_LIST(): return list(map(int, INPUT().split()))\ndef MULTIPLE_INT_MAP(): return map(int, INPUT().split())\ndef SINGLE_STRING(): return INPUT()\ndef MULTIPLE_STRING(): return INPUT().split()\n\nN = SINGLE_INT()\n\ndef is_integer_num(n):\n if isinstance(n, int):\n return True\n if isinstance(n, float):\n return n.is_integer()\n return False\n\nif is_integer_num(N/2):\n print(N)\nelse:\n print(N*2)', "S = input()\nS = list(S)\n\n\nS = [int(1) if x == '+' else int(-1) for x in S]\n\nprint(sum(S))"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s272932192', 's520173341', 's963035530', 's602798448'] | [3060.0, 2940.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [508, 84, 503, 89] |
p03315 | u457957084 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['n = str(input())\n\nx = 0\n\nfor i in range(3):\n if n[i] == "+":\n x = x + 1\n else:\n x = x - 1\n \nprint(x)\n\n', 'n = str(input())\n\na = n.count("+")\n\nb = n.count("-")\n\n\nprint(a-b)\n'] | ['Wrong Answer', 'Accepted'] | ['s254124561', 's891071194'] | [2940.0, 2940.0] | [17.0, 17.0] | [113, 66] |
p03315 | u466335531 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S=input()\nans=0\nfor i in S:\n if i='+':ans+=1\n else: i-=1", "S=input()\nans=0\nfor i in S:\n if i=='+':ans+=1\n else: ans-=1\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s504806064', 's104642673'] | [2940.0, 2940.0] | [17.0, 18.0] | [62, 76] |
p03315 | u468313559 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['n, k = input().split()\n\nq, mod = divmod(int(n) - 1, int(k) - 1)\n\nif mod == 0:\n print(q)\nelse:\n print(q + 1)', 'inp = input()\nprint(list(inp).count("+") - list(inp).count("-"))'] | ['Runtime Error', 'Accepted'] | ['s242484800', 's256913938'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 64] |
p03315 | u473092610 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['n=input().split()\nprint(n.count("+")-n.count("-"))', 'n=input()\nprint(n.count("+")-n.count("-"))'] | ['Wrong Answer', 'Accepted'] | ['s134230934', 's747676856'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 42] |
p03315 | u473633103 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['# coding: utf-8\n# Your code here!\nk = int(input())\n\ncount = 0\nans = []\nminN = 10**15\n\nfor i in reversed(range(10)):\n for j in reversed(range(1,10**5)):\n num = str(j)+"9"*i\n n = sum([int(k) for k in num])\n n = int(num)/n\n if(minN > n or n==1):\n minN = n\n ans.append(num)\n\nprint(len(ans[0]),len(ans))\nfor i in list(reversed(ans))[:k]:\n print(i)', '# coding: utf-8\n# Your code here!\n\nx = input()\n\nans = 0\nfor i in x:\n if(i=="+"):\n ans+=1\n elif(i=="-"):\n ans-=1\n \n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s121263921', 's889659867'] | [3064.0, 2940.0] | [17.0, 19.0] | [398, 152] |
p03315 | u481026841 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = input()\nn == 0\nfor i in 4:\n if s[i-1] == '+':\n n += 1\n else:\n n -= 1\nprint(n) ", "s = input()\nn = s.count('+')\nprint(2*n - 4) "] | ['Runtime Error', 'Accepted'] | ['s373955995', 's682885677'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 44] |
p03315 | u482157295 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = input()\nout = 0\nfor i in range(4):\n if i == "+":\n out = out + 1\n else:\n out = out - 1\nprint(out)', 'S = input()\nout = 0\nfor i in S:\n if i == "+":\n out = out + 1\n else:\n out = out - 1\nprint(out)'] | ['Wrong Answer', 'Accepted'] | ['s327730615', 's031665723'] | [2940.0, 2940.0] | [17.0, 19.0] | [108, 101] |
p03315 | u492532572 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['N = input()\ns = 0\nfor n in N:\n s += int(n)\nres = int(N) % s\nif res == 0:\n print("Yes")\nelse:\n print("No")', 'N = input()\nsum = 0\nfor n in N:\n sum += int(n)\nres = int(N) % sum\nif res == 0:\n print("Yes")\nelse:\n print("No")', "num = 0\ns = input()\nfor op in s:\n if op == '+':\n num += 1\n else:\n num -= 1\nprint(num)"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s342501945', 's367267016', 's297411355'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [108, 114, 93] |
p03315 | u503111914 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['a = input().split()\nprint(a.count("+") - a.count("-"))\n', 'a = [i for i in input()]\nprint(a.count("+") - a.count("-"))'] | ['Wrong Answer', 'Accepted'] | ['s642538528', 's638520365'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 59] |
p03315 | u506086925 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['import numpy as np\nn, k = map(int,input().split())\na = list(map(int,input().split()))\nstart = [i for i,x in enumerate(a) if x == min(a)]\nm = 10000000\nfor i in start:\n if np.ceil(i/(k-1))+np.ceil(((n-1)-i)/(k-1)) < m:\n m = np.ceil(i/(k-1))+np.ceil(((n-1)-i)/(k-1))\nprint(m)', 's = input()\nprint(s.count("+")-s.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s868168142', 's113677562'] | [21412.0, 2940.0] | [787.0, 17.0] | [282, 44] |
p03315 | u509674552 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["import sys\ns = sys.stdin.readline()\nans = 0\nfor i in range(len(s)):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "import sys\ns = sys.stdin.readline()\nans = 0\nfor i in range(len(s)):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nassert ans != 0\nprint(ans)", "import sys\ns = sys.stdin.readline()\nans = 0\nfor i in range(len(s)):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "import sys\ns = sys.stdin.readline()\nans = 0\nfor i in range(len(s)):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nassert ans != 2\nprint(ans)", "import sys\ns = sys.stdin.readline()\nassert len(s) <= 4\nans = 0\nfor i in range(len(s)):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "import sys\ns = sys.stdin.readline()\nl = len(s)\nans = 0\nfor i in range(l):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "import sys\ns = sys.stdin.readline()\nans = 0\nassert len(s) != 0\nfor i in range(len(s)):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "import sys\ns = sys.stdin.readline()\nassert len(s) == 5\nans = 0\nfor i in range(4):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s050636385', 's113396038', 's321093946', 's359811833', 's745308086', 's784915206', 's831893379', 's021057675'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [142, 158, 142, 158, 161, 148, 161, 156] |
p03315 | u516170499 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S=print()\nprint(-S.count('-'+S.count('+'))", "S=print()\nprint(-S.count('-')+S.count('+'))", "S=input()\nprint(-S.count('-')+S.count('+'))"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s481460352', 's664160046', 's384924975'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [42, 43, 43] |
p03315 | u517447467 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = input()\nprint(s.count("+")-s.count("-"))', 'S = input()\nprint(S.count("+")-S.count("-"))'] | ['Runtime Error', 'Accepted'] | ['s142167647', 's107046211'] | [2940.0, 2940.0] | [18.0, 16.0] | [44, 44] |
p03315 | u519721530 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['n = 0\nlist = input().split()\nfor i in list:\n if list[i] == +:\n n += 1\n else:\n n -= 1\nprint(n)', 'n = 0\na,b,c,d = input()\nfor i in [a,b,c,d]:\n if i == "+":\n n += 1\n else:\n n -= 1\nprint(n)'] | ['Runtime Error', 'Accepted'] | ['s966965428', 's626363780'] | [2940.0, 2940.0] | [17.0, 17.0] | [113, 109] |
p03315 | u526130500 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = input()\nx=0\nfor i in range(len(S)):\n if S[i] == '+':\n x +=1\n else:\n x -=0\nprint(x)", "S = input()\nx=0\nfor i in range(len(S)):\n if S[i] == '+':\n x +=1\n else:\n x -=1\nprint(x)"] | ['Wrong Answer', 'Accepted'] | ['s182625852', 's129088655'] | [2940.0, 2940.0] | [17.0, 17.0] | [106, 106] |
p03315 | u533039576 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = input()\n\nans = 0\nfor i in range(len(s)):\n if s[i] == "+":\n ans += 1ac\n else:\n ans -= 1\n\nprint(ans)\n', 's = input()\n\nans = 0\nfor i in range(len(s)):\n if s[i] == "+":\n ans += 1\n else:\n ans -= 1\n\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s226199552', 's339755781'] | [2940.0, 2940.0] | [17.0, 17.0] | [123, 121] |
p03315 | u536377809 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s=input()\nprint(2*len([x for x in s if x=="+"]-len(s)\n )\n )', 's=input()\nprint(2*len([x for x in s if x=="+"])-len(s))'] | ['Runtime Error', 'Accepted'] | ['s428679295', 's978534535'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 55] |
p03315 | u551351897 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s=input()\nans=0\nfor i in range(4):\n if s[i]='+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "s=input()\nans=0\nfor i in range(4):\n if s[i]=='+':\n ans += 1\n else:\n ans -= 1\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s204209093', 's894086363'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 95] |
p03315 | u553070631 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["a=input()\n\nb=(a.count('+'))\nprint (b)\n\nn=-4+b*2\n\nprint (n)", "a=input()\n\nb=(a.count('+'))\n\nn=-4+b*2\n\nprint (n)"] | ['Wrong Answer', 'Accepted'] | ['s882371449', 's336303120'] | [2940.0, 2940.0] | [18.0, 17.0] | [58, 48] |
p03315 | u556225812 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = list(input())\ncnt = 0\nfor i in S:\n if i == '+':\n cnt += 1\n else:\n cnt -= 1\n@rint(cnt)", "S = list(input())\ncnt = 0\nfor i in S:\n if i == '+':\n cnt += 1\n else:\n cnt -= 1\nprint(cnt)"] | ['Runtime Error', 'Accepted'] | ['s432999099', 's190161935'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 109] |
p03315 | u556589653 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = str(input())\n\nm = S.count("+")\nn = S.conut("-")\n\nprint(m-n)', 'S = input()\nnow = 0\nfor i in range(len(S)):\n if S[i] == "+":\n now += 1\n else:\n now -= 1\nprint(now)'] | ['Runtime Error', 'Accepted'] | ['s017458905', 's830752361'] | [2940.0, 2940.0] | [17.0, 17.0] | [63, 106] |
p03315 | u561262546 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['K = input()\n\n\ndef Sn(N1):\n Sn = 0\n N = str(N1)\n for i in range(len(N)):\n Sn = Sn + int(N[i])\n\n return Sn\n\nR = []\nfor i in range(1,3000):\n X = 0\n for j in range(i,1000):\n if(i/Sn(i) <= j/Sn(j)):\n X = X + 1\n\n if (X == 1000 - i ):\n R.append(i)\n\n\nfor i in range(0,int(K)):\n print(R[i])', "S = input()\nR = 0\nfor i in range (4):\n if(S[i] == '+'):\n R = R + 1\n if(S[i] == '-'):\n R = R -1\nprint(R)"] | ['Runtime Error', 'Accepted'] | ['s482658938', 's840430990'] | [3064.0, 2940.0] | [1449.0, 17.0] | [346, 123] |
p03315 | u564906058 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['s = raw_input()\nprint (s.count("+") - s.count("-"))\n', 's = list(input())\nn = 0\nfor i in range(4):\n if s[i] == "+":\n n += 1\n else:\n n -= 1\nprint(n) '] | ['Runtime Error', 'Accepted'] | ['s855249077', 's628760773'] | [2940.0, 2940.0] | [17.0, 18.0] | [52, 104] |
p03315 | u576320075 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["#include <bits/stdc++.h>\n\n\n#define REP(i, n) FOR(i, 0, n)\n#define RREP(i, n) RFOR(i, n, 0)\n#define ALL(v) v.begin(), v.end()\n\n#define print(ele) cout << (ele) << endl\n#define print10(ele) cout << fixed << setprecision(10) << (ele) << endl\n\nusing namespace std;\ntypedef long long ll;\ntypedef vector<int> ivec;\ntypedef vector<string> svec;\ntypedef vector<ll> lvec;\n\nconst int mod = 1e9 + 7;\nconst ll INF = 1000000000000000000LL;\n\nint main() {\n string s;\n cin >> s;\n int ans = 0;\n REP(i, 4) {\n if (s[i] == '+')\n ans++;\n else\n ans--;\n }\n print(ans);\n return 0;\n}", "s = input()\n\nans = 0\n\nfor i in range(4):\n if s[i] == '+':\n ans += 1\n else:\n ans -= 1\n\nprint(ans)\n"] | ['Runtime Error', 'Accepted'] | ['s538573370', 's501852318'] | [2940.0, 2940.0] | [18.0, 17.0] | [723, 117] |
p03315 | u576844664 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["val = 0\nfor s in list(input()):\n if(s == '+'):\n val++\n else:\n val--\nprint(val)", "val = 0\nfor s in input():\n if(s == '+'):\n val++\n else:\n val--\nprint(val)", 'val = 0\nfor s in list(input()):\n if(s == "+"):\n val+=1\n else:\n val-=1\nprint(val)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s230261098', 's613286635', 's773659550'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [86, 80, 89] |
p03315 | u580107740 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['# -*- coding: utf-8 -*-\nimport math \n\nk = int(input())\n\nfor n in range(1,k+1):\n if (n % 9) == 0:\n print ("9" * math.floor(n/9))\n else:\n print(str((n % 9)) + "9" * math.floor(n/9))\n', '# -*- coding: utf-8 -*-\n\ns = input()\n\nres = 0\nfor i in s:\n if("+" == i):\n res += 1\n else:\n res -= 1\n\n\nprint("{}".format(res))\n'] | ['Runtime Error', 'Accepted'] | ['s045233226', 's795804839'] | [2940.0, 2940.0] | [18.0, 17.0] | [217, 171] |
p03315 | u587248350 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["s = input()\nans = 0\nfor x in s:\n if x == '+':\n ans++\n else:\n ans--\nprint(ans)", "s = input()\nans = 0\nfor x in s:\n if x == '+':\n ans+=1\n else:\n ans-=1\nprint(ans)\n"] | ['Runtime Error', 'Accepted'] | ['s019680980', 's284274395'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 88] |
p03315 | u595375942 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["ans = 1\nS = list(input())\nfor s in S:\n if s == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "ans = 0\nS = list(input())\nfor s in S:\n if s == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s505842816', 's001487108'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 97] |
p03315 | u597017430 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ["S = [c for c in int()]\nprint(2 * S.count('+') -4)", "S = [c for c in input()]\nprint(2 * S.count('+') -4)\n"] | ['Runtime Error', 'Accepted'] | ['s854379920', 's738334754'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 52] |
p03315 | u601522790 | 2,000 | 1,048,576 | There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols. | ['S = input()\nA = 0\nfor s in S\n\tif s == "-":\n\t\tA--\n\tif s == "+":\n\t\tA++\nprint(A);', 'S = input()\nA = 0\nfor s in S:\n\tif s == "-":\n\t\tA--\n\tif s == "+":\n\t\tA++\nprint(A);', 'S = input()\nA = 0\nfor s in S:\n\tif s == "-":\n\t\tA -= 1\n\tif s == "+":\n\t\tA += 1\nprint(A);'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s090011331', 's409189699', 's842034971'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [78, 79, 85] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.