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
|
u604412462
| 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 = sorted(input().split())\nans = 0\nfor i in s:\n if i == '+':\n ans+=1\n else:\n ans -=1\nprint(ans)", "s = sorted(input().split())\nans = 0\nfor i in s:\n if s[i] == '+':\n ans+=1\n else:\n ans -=1\nprint(ans)", "s = sorted(input().split())\nans = 0\nfor i in s:\n if s[i] == '+':\n ans+=1\n else:\n ans -=1\nprint('ans')", "s = sorted(input())\nans = 0\nfor i in s:\n if s[i] == '+':\n ans+=1\n else:\n ans -=1\nprint('ans')", "s = sorted(input())\nans = 0\nfor i in s:\n if i == '+':\n ans+=1\n else:\n ans -=1\nprint(ans)"]
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s390718655', 's675988047', 's695431412', 's697311201', 's648544485']
|
[3064.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 18.0, 16.0]
|
[116, 119, 121, 113, 108]
|
p03315
|
u606033239
| 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 =="++++":\n print(4)\nelif S =="----":\n print(-4)\nelif S=="+++-" or S=="++-+" or S=="+-++" or S=="-+++":\n print(1)\nelif S=="---+" or S=="-+--" or S=="--+-" or S=="+---":\n print(-1)\nelse:\n print(0)', 'S = input()\nprint(S.count("+")-S.count("-"))']
|
['Wrong Answer', 'Accepted']
|
['s012872464', 's547007723']
|
[3060.0, 2940.0]
|
[17.0, 18.0]
|
[226, 44]
|
p03315
|
u615710615
| 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.
|
['#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n\nN,K = map(int,input().split(" "))\nA = list(map(int, input().split(" ")))\n\nF=0\nfor i in A:\n if i==1:\n X=F \n Y=N-(F+1)\n break;\n F=F+1\n\nP=(X+Y)/(K-1)\nif (X+Y)%(K-1)>0:\n print(P+1)\nelse:\n print(P)', '#!/usr/bin/env python\n# -*- coding:utf-8 -*-\ndef digit(i):\n if i>0:\n return digit(i//10)+[i%10]\n else:\n return []\ndef Sooo(N):\n return float(N/sum(digit(N)))\nbase=1\nA=[]\nfor i in range(0,16):\n for j in range(1,151):\n re=base*(j+1)-1\n A.append(int(re))\n base = base*10\nA = list(set(A))\nA.sort()\n\nfor i in range(0,len(A)):\n for j in range(i+1,len(A)):\n N=Sooo(A[i])\n M=Sooo(A[j])\n if N>M:\n A[i]=0\nA = list(set(A))\nA.sort() \nK=int(input())\nfor i in range(K):\n print(A[i+1])', '#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n\nK = int(input())\n\ndef digit(i):\n if i>0:\n return digit(i//10)+[i%10]\n else:\n return []\n\ndef Sooo(N):\n return float(N/sum(digit(N)))\nbase=1\nA=[]\nfor i in range(0,16):\n for j in range(1,151):\n re=base*(j+1)-1\n A.append(int(re))\n base = base*10\nA = list(set(A))\nA.sort()\nl=len(A)\nfor i in range(0,len(A)):\n for j in range(i+1,len(A)):\n N=Sooo(A[i])\n M=Sooo(A[j])\n if N>M:\n A[i]=0\n break;\n\nA = list(set(A))\nA.sort()\nfor i in range(K):\n print(A[i+1])', '#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n\nK = int(input())\n\ndef digit(i):\n if i>0:\n return digit(i//10)+[i%10]\n else:\n return []\n\ndef Sooo(N):\n return float(N/sum(digit(N)))\nbase=1\nA=[]\nfor i in range(0,16):\n for j in range(1,151):\n re=base*(j+1)-1\n A.append(int(re))\n base = base*10\nA = list(set(A))\nA.sort()\nfor i in range(0,len(A)):\n for j in range(i+1,len(A)):\n N=Sooo(A[i])\n M=Sooo(A[j])\n if N>M:\n A[i]=0\n\nA = list(set(A))\nA.sort()\nfor i in range(K):\n print(A[i+1])', '#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n\n\ndef digit(i):\n if i>0:\n return digit(i//10)+[i%10]\n else:\n return []\n\ndef Sooo(N):\n return float(N/sum(digit(N)))\nbase=1\nA=[] \nfor i in range(0,20):\n for j in range(1,136):\n re=base*(j+1)-1\n A.append(int(re))\n base = base*10\nA = list(set(A))\nA.sort()\n\nfor i in range(0,len(A)):\n for j in range(i+1,len(A)):\n N=Sooo(A[i])\n M=Sooo(A[j])\n if N>M:\n A[i]=1\n\nA = list(set(A))\nA.sort()\n\nK=int(input())\nfor i in range(K):\n print(A[i])', '#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n\nK = int(input())\n\ndef digit(i):\n if i>0:\n return digit(i//10)+[i%10]\n else:\n return []\n\ndef Sooo(N):\n return float(N/sum(digit(N)))\nbase=1\nA=[]\nfor i in range(0,16):\n for j in range(1,150):\n re=base*(j+1)-1\n A.append(int(re))\n base = base*10\nA = list(set(A))\nA.sort()\nl=len(A)\nfor i in range(0,len(A)):\n for j in range(i+1,len(A)):\n N=Sooo(A[i])\n M=Sooo(A[j])\n if N>M:\n A[i]=0\n break;\n\nA = list(set(A))\nA.sort()\nfor i in range(K):\n print(A[i+1])', '#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n\nK = int(input())\n\ndef digit(i):\n if i>0:\n return digit(i//10)+[i%10]\n else:\n return []\nF=0\nN=0\nd=0\n\ndef func(F,d,N):\n for i in range(1,10):\n print(N+i*(10**d))\n F=F+1\n if F==K:\n exit()\n\n N=N+9*(10**d)\n d=d+1\n return F,d,N \n\n\nwhile True:\n F,d,N=func(F,d,N)', '#!/usr/bin/env python\n# -*- coding:utf-8 -*- \nS = list(input())\nAns=0\nfor i in S:\n if i=="+":\n Ans = Ans+1\n else:\n Ans = Ans-1\nprint(Ans)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Time Limit Exceeded', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s029477554', 's063580845', 's094445446', 's614455396', 's701526760', 's808511654', 's927561748', 's977934677']
|
[3060.0, 3188.0, 3064.0, 3064.0, 3188.0, 3064.0, 3064.0, 2940.0]
|
[17.0, 103.0, 18.0, 17.0, 2104.0, 17.0, 17.0, 17.0]
|
[299, 551, 583, 555, 562, 583, 368, 157]
|
p03315
|
u617225232
| 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()\no=0\nfor i in range(len(a)):\n o+=1 if a[i]=='+' else o-=1\nprint(o)", "a=list(input())\no=0\nfor i in range(4):\n o+=1 if a[i]=='+' else o-=1\nprint(o)", "# -*- coding: utf-8 -*-\n# input\na = input()\no = 0\nfor i in range(len(a)):\n if a[i] == '+':\n o += 1\n else:\n o -= 1\nprint(o)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s009900107', 's340885396', 's847598476']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[76, 77, 142]
|
p03315
|
u618373524
| 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().replace("Left","<").replace("Right",">").replace("AtCoder","A"))', 'print(input().replace("Left","<").replace("Right",">").replace("Atcoder","A"))', 'print(input().replace("Left","<").replace("Right",">").replace("AtCoder","A"))', 's=input()\nprint(s.count("+")-s.count("-"))']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s253592825', 's321423555', 's445745267', 's950425076']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0, 17.0]
|
[78, 78, 78, 42]
|
p03315
|
u618512227
| 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()\nans=0\nfor s in S:\n if s == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "S=list(input())\nans=0\nfor s in S:\n if s == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)"]
|
['Wrong Answer', 'Accepted']
|
['s379220071', 's340461294']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[107, 105]
|
p03315
|
u619458041
| 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\n\ndef main():\n input = sys.stdin.readline\n S = str(input().strip())\n ans = 0\n for c in S:\n if c == +:\n ans += 1\n else:\n ans -= 1\n print(ans)\n\n\nif __name__ == '__main__':\n main()", "import sys\n\ndef main():\n input = sys.stdin.readline\n S = str(input().strip())\n ans = 0\n for c in S:\n if c == '+':\n ans += 1\n else:\n ans -= 1\n print(ans)\n\n\nif __name__ == '__main__':\n main()\n"]
|
['Runtime Error', 'Accepted']
|
['s478768072', 's138419366']
|
[3188.0, 3064.0]
|
[19.0, 18.0]
|
[209, 212]
|
p03315
|
u623687794
| 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 i=="+":\n ans+=1\n else:\n ans-=1\nprint(ans)', 's=input()\nans=0\nfor i in s:\n if i=="+":\n ans+=1\n else:\n ans-=1\nprint(ans)\n']
|
['Wrong Answer', 'Accepted']
|
['s610268585', 's943505788']
|
[2940.0, 2940.0]
|
[18.0, 20.0]
|
[88, 82]
|
p03315
|
u631115160
| 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()\nNB = list(N)\nNN = int(N)\n\nSN = 0\nfor i in N:\n SN += int(i)\n\nif NB%SN == 0:\n print("Yes")\nelse:\n print("No")\n\n', 'S = list(input())\n\nans =0\nfor i in S:\n if i == "+" : ans += 1\n else: ans -= 1\n\nprint(ans)']
|
['Runtime Error', 'Accepted']
|
['s637867069', 's454400409']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[130, 95]
|
p03315
|
u631579948
| 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\nif S[0]=='+':\n ans+=1\n else :\n ans-=1\nif S[1]=='+':\n ans+=1\n else :\n ans-=1\nif S[2]=='+':\n ans+=1\n else :\n ans-=1\nif S[3]=='+':\n ans+=1\n else :\n ans-=1 \nprint(ans) \n", "S=list(input())\nans=0\nif S[0]=='+':\n ans+=1\nelse :\n ans-=1\nif S[1]=='+':\n ans+=1\nelse :\n ans-=1\nif S[2]=='+':\n ans+=1\nelse :\n ans-=1\nif S[3]=='+':\n ans+=1\nelse :\n ans-=1 \nprint(ans) \n \n\n"]
|
['Runtime Error', 'Accepted']
|
['s119874525', 's468192546']
|
[2940.0, 3060.0]
|
[18.0, 17.0]
|
[221, 219]
|
p03315
|
u641804918
| 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.
|
["h = input()\nh = list(h)\nhoge = 0\nfor i in h:\n if h == '+':\n hoge += 1\n else:\n hoge -= 1\n\nprint(hoge)", "h = input()\nh = list()\nhoge = 0\nfor i in h:\n if h == '+':\n hoge += 1\n else:\n hoge -= 1\n\nprint(hoge)", "h = input()\nh = list(h)\nhoge = 0\nfor i in h:\n if i == '+':\n hoge += 1\n else:\n hoge -= 1\n\nprint(hoge)\n"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s005584296', 's714825531', 's121769923']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 18.0]
|
[120, 119, 121]
|
p03315
|
u642418876
| 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())\ncount==0\nfor i in range(4):\n if S[i]=='+':\n count+=1\n else:\n count-=1\n i+=1\nprint(count)\n", "S=str(input())\ncount=0\ni=0\nfor i in range(4):\n if S[i]=='+':\n count+=1\n else:\n count-=1\n i+=1\nprint(count)\n"]
|
['Runtime Error', 'Accepted']
|
['s065003857', 's407420788']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[113, 116]
|
p03315
|
u652057333
| 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.
|
['# C\nn,k=map(int,input().split())\nprint((n+k-3)//(k-1))', "# A\ns = str(input())\nresult = 0\nfor c in list(s):\n if c == '+':\n result += 1\n else:\n result -= 1\nprint(result)"]
|
['Runtime Error', 'Accepted']
|
['s654606300', 's534975328']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[54, 130]
|
p03315
|
u656487313
| 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.
|
["# http://interaction.hatenadiary.jp/entry/2018/03/25/124153\nN = input()\n\nsumN = sum(list(map(int,list(N))))\n\n# print(N)\n# print(sumN)\nif int(N) % sumN == 0:\n print('Yes')\nelse:\n print('No')\n", "num = 0\nS = input()\nS_list = list(S)\nfor i, S_list in enumerate(list(S)):\n if S_list == '+':\n num = num + 1\n else:\n num = num - 1\nprint(num)\n"]
|
['Runtime Error', 'Accepted']
|
['s522994149', 's147640699']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[196, 161]
|
p03315
|
u657818166
| 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(sum([1 if x=="+" else 01 for x in input()]))\n', 'print(sum([1 if x=="+" else 0 for x in input()]))', 'S=[1 if x=="+" else -1 for x in input()]\n\nprint(sum(S))']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s324470435', 's582800558', 's036773828']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0]
|
[51, 49, 55]
|
p03315
|
u659640418
| 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(int, input().split())\nprint(a+b+c+d)', "a=input()\nb=[]\n\nfor i in range(len(a)):\n if a[i]=='+':\n b.append(1)\n else:\n b.append(-1)\n\n \nprint(sum(b))"]
|
['Runtime Error', 'Accepted']
|
['s824401585', 's286990547']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[48, 132]
|
p03315
|
u668503853
| 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(count("+") - count("-"))', 's=input()\nprint(s.count("+") - s.count("-"))']
|
['Runtime Error', 'Accepted']
|
['s267549206', 's670978104']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[40, 44]
|
p03315
|
u669173971
| 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())\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)\n"]
|
['Runtime Error', 'Accepted']
|
['s320565704', 's571888370']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[96, 92]
|
p03315
|
u678594774
| 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\nn = 0\nfor symbol in s:\n if symbol == '+':\n n += 1\n else\n n -= 1\nprint(n)", "s = input().split()\n\nn = 0\nfor symbol in s:\n if symbol == '+':\n n += 1\n else:\n n -= 1\nprint(n)", "s = input()\n\nn = 0\nfor symbol in s:\n if symbol == '+':\n n += 1\n else:\n n -= 1\nprint(n)"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s703755225', 's863149940', 's954309587']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[113, 114, 106]
|
p03315
|
u681323954
| 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 = input()\nprint (s.count("+") - s.count("-"))\n']
|
['Runtime Error', 'Accepted']
|
['s753539512', 's265374837']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[52, 48]
|
p03315
|
u685244071
| 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 = a.count('+')\nb = a.count('-')\n\nx = a - b\n\nprint(x)", "s = input()\n\na = s.count('+')\nb = s.count('-')\n\nx = a - b\n\nprint(x)\n"]
|
['Runtime Error', 'Accepted']
|
['s286799540', 's650728931']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[67, 68]
|
p03315
|
u689701565
| 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\ninputN, inputK = map(int, input().split())\ninputA = list(map(int, input().split()))\nminNumber = inputN\nminPos = 0\n\nif inputN == inputK:\n print (1)\nelif inputN <= (inputK-1)*2 + 1:\n print (2)\nelif inputN <= (inputK-1)*3 + 1:\n print (3)\nelif inputN <= (inputK-1)*4 + 1:\n print (4)\nelif inputN <= (inputK-1)*5 + 1:\n print (5)\nelse:\n for i in range(len(inputA)):\n if inputA[i] < minNumber:\n minNumber = inputA[i]\n minPos = i\n\n splitNumber = (inputN + 1) / (inputK - 1)\n print (int(splitNumber))\n\n', '#coding: utf-8\n\ninputN, inputK = map(int, input().split())\ninputA = list(map(int, input().split()))\nminNumber = inputN\nminPos = 0\n\nif inputN == inputK:\n print (1)\nelif inputN <= (inputK-1)*100000 + 1:\n for i in range(2, 100001):\n if inputN <= (inputK-1)*i + 1:\n print (i)\n break\nelse:\n\n for i in range(len(inputA)):\n if inputA[i] < minNumber:\n minNumber = inputA[i]\n minPos = i\n\n splitNumber = (inputN + 1) / (inputK - 1)\n print (int(splitNumber))\n', '#coding: utf-8\n\ncounter = 0\ninputStr = input()\n\nstrA = "+"\nstrB = "-"\n\nfor i in range(1, 5):\n if inputStr[i-1:i] == strA:\n counter += 1\n else:\n counter -= 1\n\nprint (counter)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s561209031', 's636456045', 's232649421']
|
[3064.0, 3064.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[561, 521, 193]
|
p03315
|
u693953100
| 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.count('+')-s.count('-'))", 'def solve():\n s = input()\n print(s.count(\'+\')-s.count(\'-\'))\nif __name__ == "__main__":\n solve()']
|
['Runtime Error', 'Accepted']
|
['s609217442', 's250412315']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[46, 104]
|
p03315
|
u698416089
| 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.
|
['from sys import stdin\nN = stdin.readline().rstrip()\ni = 0\nwa = 0\nwhile i < len(str(N)):\n wa = wa + int(str(N)[i:i+1])\n i += 1\nif N % wa == 0:\n print("Yes")\nelif N % wa != 0:\n print("No")', 'i = 0\ntakahasi = 0\nwhile i < 4:\n if S[i:i+1] == "+":\n takahasi += 1\n elif S[i:i+1] == "-":\n takahasi -= 1\n i += 1\nprint(takahasi)', 'i = 0\ntakahasi = 0\nwhile i < 4:\n if S[i:i+1] == "+":\n takahasi += 1\n else:\n takahasi -= 1\n i += 1\nprint(takahasi)', 'i = 0\ntakahasi = 0\nwhile i < 4:\n if S[i:i+1] == "+":\n takahasi += 1\n else:\n takahasi -= 1\n i += 1\nprint(takahasi)', 'from sys import stdin\nN = str(stdin.readline().rstrip())\ni = 0\ntakahasi = 0\nwhile i < 4:\n if S[i:i+1] == "+":\n takahasi += 1\n elif S[i:i+1] == "-":\n takahasi -= 1\n i += 1\nprint(takahasi)', 'from sys import stdin\nS = "---+"\ni = 0\ntakahasi = 0\nwhile i < 4:\n if S[i:i+1] == "+":\n takahasi += 1\n elif S[i:i+1] == "-":\n takahasi -= 1\n i += 1\nprint(takahasi)', 'from sys import stdin\nS = str(stdin.readline().rstrip())\ni = 0\ntakahasi = 0\nwhile i < 4:\n if S[i:i+1] == "+":\n takahasi += 1\n elif S[i:i+1] == "-":\n takahasi -= 1\n i += 1\nprint(takahasi)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s000646615', 's588615510', 's627712737', 's774074921', 's835751597', 's954324122', 's772043489']
|
[2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 18.0]
|
[198, 138, 136, 122, 195, 171, 195]
|
p03315
|
u702018889
| 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())\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']
|
['s072643051', 's249728283']
|
[9164.0, 8864.0]
|
[29.0, 27.0]
|
[96, 91]
|
p03315
|
u703890795
| 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()\nc = 0\nfor i in range(len(S)):\n if S[0] == "+":\n c += 1\n else:\n c -= 1\nprint(c)', 'S = input()\nc = 0\nfor i in range(4):\n if S[i]=="+":\n c += 1\n else:\n c -= 1\nprint(c)']
|
['Wrong Answer', 'Accepted']
|
['s348551284', 's265920014']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[98, 91]
|
p03315
|
u708255304
| 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())\nans = 0\nfor i in range(len(S)):\n if S[i] == "+":\n ans += 1\n else:\n ans -= 1\n\nprint(ans)', 'S = input()\nans = 0\nfor i in range(4):\n if S[i] == "+":\n ans += 1\n else:\n ans -= 1\n\nprint(ans)', 'S = input()\nprint(ans)\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)\n']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s265170135', 's266991238', 's968865714', 's828707586']
|
[2940.0, 3060.0, 2940.0, 2940.0]
|
[17.0, 19.0, 17.0, 17.0]
|
[113, 103, 104, 102]
|
p03315
|
u711238850
| 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']
|
['s944947933', 's261107912']
|
[2940.0, 3060.0]
|
[17.0, 19.0]
|
[41, 42]
|
p03315
|
u712868001
| 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())\nA=S.count('+')\nB=S.count('-')*(-1)\nprint(A+B)", "S= int(input())\nA=S.count('+')\nB=S.count('-')\nprint(A-B)", "S= input()\nA=S.count('+')\nB=S.count('-')\nprint(A-B)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s323749981', 's565613938', 's947091271']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0]
|
[61, 56, 51]
|
p03315
|
u724563664
| 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\nK = int(input())\nten = K // 10\nsur = K % 10\nfor i in range(ten+1):\n K += 1\n ten = K // 10\n sur = K % 10\n if i == ten:\n for j in range(1, sur+1):\n moji = "{}".format(j) + "9" * i\n print(moji)\n else:\n for j in range(1,10):\n moji = "{}".format(j) + "9" * i\n print(moji)\n', '#coding:utf-8\n\ns = input()\nnum = 0\nfor i in s:\n if i == "+":\n num += 1\n else:\n num -= 1\nprint(num)\n']
|
['Runtime Error', 'Accepted']
|
['s155676079', 's517427027']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[354, 119]
|
p03315
|
u724742135
| 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.
|
["from collections import Counter\nfrom sys import stdin\ns=Counter(list(stdin.readline().rstrip()))\nprint(s['+']+s['-'])", "from collections import Counter\nfrom sys import stdin\ns=Counter(list(stdin.readline().rstrip()))\nprint(s['+']*1+s['-']*-1)"]
|
['Wrong Answer', 'Accepted']
|
['s657096769', 's058473113']
|
[3316.0, 3316.0]
|
[24.0, 22.0]
|
[117, 122]
|
p03315
|
u725897151
| 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.
|
['def digitsums(N):\n digsum = 0\n for i in range(len(str(N))):\n digsum = digsum + int(N % 10)\n N = N / 10\n return digsum\nK = int(input())\npcount=0\nfor n in range(1,10**15):\n for m in range(n+1,10**15):\n if(n/digitsums(n)<=m/digitsums(m)):\n pcount = pcount+1\n print(n)\n break\n if(pcount>=K):\n break\n', "def main(S):\n charlist = list(S)\n out = 0\n for c in charlist:\n if(c=='+'): \n out = out + 1\n else: \n out = out - 1\n print(out)\nS = raw_input()\nmain(S)\n", "def main(S):\n charlist = list(S)\n out = 0\n for c in charlist:\n if(c=='+'): \n out = out + 1\n else: \n out = out - 1\n print(out)\nS = input()\nmain(S)\n"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s218511618', 's380579605', 's310487192']
|
[3060.0, 3068.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[371, 199, 195]
|
p03315
|
u727787724
| 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=map(int,input().split())\na=list(map(int,input().split()))\nif n==k:\n print(1)\nelse:\n ans=0\n cnt=k\n for i in range(2,n):\n cnt+=(k-1)\n if cnt>=n:\n ans=i\n break\n print(ans)', "s=list(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']
|
['s943601626', 's043423118']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[223, 109]
|
p03315
|
u731665172
| 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']
|
['s745416482', 's664431408']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[43, 42]
|
p03315
|
u732061897
| 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())\nans = 0\nfor s in S:\n if s == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)\n\n", "S = input()\nans = 0\nfor s in S:\n if s == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)\n\n"]
|
['Runtime Error', 'Accepted']
|
['s137984247', 's744874652']
|
[9072.0, 8924.0]
|
[23.0, 29.0]
|
[110, 105]
|
p03315
|
u733608212
| 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.
|
['input(s)\nans = 0\nfor i in s:\n if i == "+":\n ans += 1\n else:\n ans-=1\nprint(ans)', 's = input()\nans = 0\nfor i in s:\n if i == "+":\n ans += 1\n else:\n ans-=1\nprint(ans)']
|
['Runtime Error', 'Accepted']
|
['s485670032', 's418263985']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[98, 101]
|
p03315
|
u733774002
| 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()\narray = list(map(int, N))\nS_n = sum(array)\nif(int(N) % S_n == 0):\n print("Yes")\nelse:\n print("No")\n', 'S = list(input())\nprint(S.count("+") - S.count("-"))\n']
|
['Runtime Error', 'Accepted']
|
['s432574335', 's982384111']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[117, 53]
|
p03315
|
u735008991
| 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 + S.count("+") - S.count("-"))\n', 'S = input()\nprint(S.count("+") - S.count("-"))\n']
|
['Wrong Answer', 'Accepted']
|
['s320727687', 's973524968']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[51, 47]
|
p03315
|
u736729525
| 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(sum({'+':1,'-':-1} for c in input()))", 'print(sum(44-ord(c) for c in input()))']
|
['Runtime Error', 'Accepted']
|
['s748036004', 's023925299']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[43, 38]
|
p03315
|
u740767776
| 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 = list(input())\nprint(a)\nn = 0\nfor i in a:\n if i == "+":\n n +=1\n else:\n n -=1\nprint(n)', 'a = list(input())\nn = 0\nfor i in a:\n if i == "+":\n n +=1\n else:\n n -=1\nprint(n)']
|
['Wrong Answer', 'Accepted']
|
['s335804687', 's348726773']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[96, 87]
|
p03315
|
u746300610
| 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=list(a)\nc=0\nfor i in b:\n if b=='+':\n c+=1\n else:\n c+=-1\nprint(c)", "a=input()\nb=list(a)\nc=0\nfor i in b:\n if b=='+':\n c+=1\n else:\n c+=(-1)\nprint(c)", "a=input()\nb=list(a)\nc=0\nfor i in b:\n if i=='+':\n c+=1\n else:\n c+=(-1)\nprint(c)"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s035606383', 's083278219', 's607525229']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[84, 86, 86]
|
p03315
|
u746627216
| 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 = map(int,input().split())\n\nA = list(map(int,input().split()))\n\n\nflag = N - 1\ncount = 0\nif N == k:\n flag = -1\n count = 1\nwhile flag >= 0:\n flag -= k-1\n count += 1\n \nprint(count)', "S = list(input())\n\nplus = S.count('+')\nminas = S.count('-')\n\nans = plus - minas\nprint(ans)"]
|
['Runtime Error', 'Accepted']
|
['s553676748', 's975785017']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[196, 90]
|
p03315
|
u746793065
| 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(1))\na = s.count(+)\nb = s.count(-)\nprint(a - b)', 's = list(map(str, input()))\na = s.count(+)\nb = s.count(-)\nprint(a - b)\n', 's = list(input())\na = s.count("+")\nb = s.count("-")\nprint(a - b)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s254739083', 's335312998', 's134125741']
|
[9004.0, 8872.0, 8952.0]
|
[23.0, 28.0, 25.0]
|
[73, 71, 65]
|
p03315
|
u752522099
| 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()\nplus = n.count('+')\nminus = n.count('-')\nprint(plus_minus)", "n = input()\nplus = n.count('+')\nminus = n.count('-')\nprint(plus-minus)"]
|
['Runtime Error', 'Accepted']
|
['s619239740', 's354565153']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[70, 70]
|
p03315
|
u754511616
| 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=list(input())\ncount=1\nfor i in a:\n if i=='-':\n count-=1\n else:\n count+=1\nprint(count)", 'a=list(input())\ncount=1\nfor i in a:\n if i==-:\n count-=1\n else:\n count+=1\nprint(count)', "a=list(input())\ncount=0\nfor i in a:\n if i=='-':\n count-=1\n else:\n count+=1\nprint(count)"]
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s533945795', 's905177311', 's785728961']
|
[8956.0, 8792.0, 8896.0]
|
[32.0, 26.0, 24.0]
|
[95, 93, 95]
|
p03315
|
u756693875
| 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 = map(int,input().split())\n\nprint(-(-(n-1) // (k-1)))', "s = list(input())\nans = 0\nfor i in s:\n if i == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)"]
|
['Runtime Error', 'Accepted']
|
['s324765031', 's308420178']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[57, 109]
|
p03315
|
u757274384
| 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())\nfor i in s:\n if s[i] == "+":\n s[i] = 1\n else:\n s[i] = -1\n\nprint(sum(s))', 's = list(input())\nfor i in range(len(s)):\n if s[i] == "+":\n s[i] = 1\n else:\n s[i] = -1\n\nprint(sum(s))\n']
|
['Runtime Error', 'Accepted']
|
['s404515718', 's405984840']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[97, 110]
|
p03315
|
u759848345
| 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.
|
['if __name__ == "__main__":\n s = str(input())\n \n ans= 0\n \n for c in s:\n if c == \'-\':\n ans = ans - 1\n if c == \'+\'\n ans == ans + 1\n \n print(ans)', 'if __name__ == "__main__":\n s = str(input())', 'if __name__ == "__main__":\n s = str(input())\n\n ans= 0\n\n for c in s:\n if c == \'-\':\n ans = ans - 1\n if c == \'+\':\n ans = ans + 1\n\n print(ans)']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s704867336', 's863168771', 's357927648']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[206, 47, 186]
|
p03315
|
u766407523
| 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\nfor i in input():\n if i == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "ans = 0\nfor i in input():\n if i == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)"]
|
['Wrong Answer', 'Accepted']
|
['s940170870', 's322167746']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[97, 97]
|
p03315
|
u767664985
| 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\tif S[i] == "+":\n ans += 1\n else:\n \tans -= 1\nprint(ans)\n', 'S = input()\nans = 0\nfor i in range(len(S)):\n\tif S[i] == "+":\n\t\tans += 1\n\telse:\n\t\tans -= 1\nprint(ans)\n']
|
['Runtime Error', 'Accepted']
|
['s486325273', 's886360007']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[115, 101]
|
p03315
|
u768559443
| 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()\nams=0\n\nfor i in s:\n if s[i]==+:\n ans+=1\n else:\n ans-=1\n \nprint(ans)', 's=input()\nprint(s.count("+")-s.count("-"))']
|
['Runtime Error', 'Accepted']
|
['s900253579', 's786585362']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[88, 42]
|
p03315
|
u769411997
| 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 elif s[i] == '-':\n ans -= 1", "s = input()\nans = 0\nfor i in range(4):\n if s[i] == '+':\n ans += 1\n elif s[i] == '-':\n ans -= 1\n\nprint(ans)"]
|
['Wrong Answer', 'Accepted']
|
['s266805080', 's506897006']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[114, 126]
|
p03315
|
u769698512
| 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\ndef digits(n):\n if n < 10:\n return n\n else:\n return n%10 + digits(int(n/10))\n\nsn = digits(n)\nif n % sn == 0:\n print('Yes')\nelse:\n print('No')\n", "n = int(input())\n\ndef digits(n):\n if n < 10:\n return n\n else:\n return n%10 + digits(int(n/10))\n\nsn = digits(n)\nif n % sn == 0:\n print('Yes')\nelse:\n print('No')\n", "s = input()\noutput = 0\nfor o in s:\n if o == '+':\n output += 1\n else if o == '-':\n output -= 1\n else:\n pass\nprint(output)", "s = input()\noutput = 0\nfor o in s:\n if o == '+':\n output += 1\n elif o == '-':\n output -= 1\n else:\n pass\nprint(output)\n"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s238665381', 's548365872', 's550926997', 's491081857']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[181, 186, 150, 148]
|
p03315
|
u771406607
| 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 = row_input()\nprint(s.count('+') - s.count('-'))", "s = input()\nprint(s.count('+') - s.count('-'))"]
|
['Runtime Error', 'Accepted']
|
['s710782935', 's694869410']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[50, 46]
|
p03315
|
u771532493
| 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 i in S:\n if i==='+':\n a+=1\n else:\n a-=1\nprint(a)\n ", "S=input()\na=0\nfor i in range(4):\n if i==='+':\n a+=1\n else:\n a-=1\nprint(a)\n ", "S=list(input())\na=0\nfor i in S:\n if i==='+':\n a+=1\n else:\n a-=1\nprint(a)", "S=input()\na=0\nfor i in S:\n if i=='+':\n a+=1\n else:\n a-=1\nprint(a)"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s013785184', 's583898444', 's908412984', 's935552212']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 18.0, 16.0]
|
[79, 86, 80, 73]
|
p03315
|
u776338097
| 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 - 2 * S.count("c"))', 'print(4 - 2 * input().count("c"))', 'print(4 - 2 * input().count("-"))']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s043651959', 's196229881', 's658342890']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[27, 33, 33]
|
p03315
|
u776871252
| 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 = list(map(input().split('')))\n\noutput = 0\n\nfor i in range(len(a)):\n if a[i] == '+':\n output += 1\n elif a[i] == '-':\n output -= 1\n}\n\nprint(output)\n", "a = list(input())\n\noutput = 0\n\nfor i in a:\n if i == '+':\n output += 1\n elif i == '-':\n output -= 1\n\nprint(output)\n"]
|
['Runtime Error', 'Accepted']
|
['s314770875', 's718909936']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[169, 134]
|
p03315
|
u777394984
| 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()\nz=0\nfor i in range(4):\n z-=1 if a[i]=='-'else z+=1", 'n = 0\ns = input()\nfor ss in s:\n if ss="+":\n n = n+1\n else:\n n = n-1\nprint(n)', 'n = {"++++":4,"+++-":2,"++--":0,"+---":-2,"----":-4}\ns = "".join(sorted(input()))\nprint(n[s])']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s220336569', 's320997751', 's029895015']
|
[3064.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[62, 84, 93]
|
p03315
|
u778814286
| 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(4):\n a += 1 if s[i:i+1] == "+" else a -= 1\nprint(a)\n', "s = input()\n\na = 0\nfor i in range(4):\n a += 1 if s[i:i+1] == '+' else a -= 1\nprint(a)", "s = input()\na = 0\nfor i in range(4):\n a = a + 1 if s[i:i+1] == '+' else a - 1\n\nprint(a)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s769771439', 's802688415', 's944478064']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0]
|
[87, 86, 88]
|
p03315
|
u781262926
| 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 c in S:\n if c == '+':\n \tans += 1\n else c == '-':\n ans -= 1\nprint(ans)", "S = input()\nans = 0\nfor c in S:\n if c == '+':\n \tans += 1\n elif c == '-':\n ans -= 1\nprint(ans)"]
|
['Runtime Error', 'Accepted']
|
['s967053753', 's632296447']
|
[2940.0, 2940.0]
|
[17.0, 20.0]
|
[99, 99]
|
p03315
|
u782685137
| 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()\nprint("No"if int(n)%sum(int(i)for i in n) else"Yes")', 's=input()\nprint(s.count("+")-s.count("-"))']
|
['Runtime Error', 'Accepted']
|
['s242800259', 's220691052']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[62, 42]
|
p03315
|
u788137651
| 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())\nprint(S.count("+")-S.count("-")\n', 'S = list(input())\nprint(S.count("+")-S.count("-"))\n']
|
['Runtime Error', 'Accepted']
|
['s733729958', 's696894238']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[50, 51]
|
p03315
|
u790877102
| 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(input().split())\n\nif a='+' b='+' c='+' d='+':\n\tprint('4')\nelif a='+' b='+' c='+' d='-':\n\tprint('2')\nelif a='+' b='+' c='-' d='+':\n\tprint('2')\nelif a='+' b='+' c='-' d='-':\n\tprint('0')\nelif a='+' b='-' c='+' d='+':\n\tprint('2')\nelif a='+' b='-' c='+' d='-':\n\tprint('0')\nelif a='+' b='-' c='-' d='+':\n\tprint('0')\nelif a='+' b='-' c='-' d='-':\n\tprint('-2')\nelif a='-' b='+' c='+' d='+':\n\tprint('2')\nelif a='-' b='+' c='+' d='-':\n\tprint('0')\nelif a='-' b='+' c='-' d='+':\n\tprint('0')\t\nelif a='-' b='+' c='-' d='-':\n\tprint('-2')\nelif a='-' b='-' c='-' d='+':\n\tprint('-2')\nelif a='-' b='-' c='+' d='-'\n\tprint('-2')\nelif a='-' b='-' c='-' d='+'\n\tprint('-2')\nelse a='-' b='-' c='-' d='-'\n\tprint('-4')\n\n\n", 's = input()\n\nans =0\n\nfor i in range(leg(s)):\n if s[i] =="+":\n ans += 1\n else:\n ans -=1\nprint(ans)\n\n', "a,b,c,d = map(input().split())\n\nif a='+' b='+' c='+' d='+':\n\tprint('4')\nelif a='+' b='+' c='+' d='-':\n\tprint('2')\nelif a='+' b='+' c='-' d='+':\n\tprint('2')\nelif a='+' b='+' c='-' d='-':\n\tprint('0')\nelif a='+' b='-' c='+' d='+':\n\tprint('2')\nelif a='+' b='-' c='+' d='-':\n\tprint('0')\nelif a='+' b='-' c='-' d='+':\n\tprint('0')\nelif a='+' b='-' c='-' d='-':\n\tprint('-2')\nelif a='-' b='+' c='+' d='+':\n\tprint('2')\nelif a='-' b='+' c='+' d='-':\n\tprint('0')\nelif a='-' b='+' c='-' d='+':\n\tprint('0')\t\nelif a='-' b='+' c='-' d='-':\n\tprint('-2')\nelif a='-' b='-' c='-' d='+':\n\tprint('-2')\nelif a='-' b='-' c='+' d='-':\n\tprint('-2')\nelif a='-' b='-' c='-' d='+':\n\tprint('-2')\nelse a='-' b='-' c='-' d='-':\n\tprint('-4')\n\n\n", "a,b,c,d = map(input().split())\n\nif a='+' b='+' c='+' d='+':\n\tprint('4')\nelif a='+' b='+' c='+' d='-':\n\tprint('2')\nelif a='+' b='+' c='-' d='+':\n\tprint('2')\nelif a='+' b='+' c='-' d='-':\n\tprint('0')\nelif a='+' b='-' c='+' d='+':\n\tprint('2')\nelif a='+' b='-' c='+' d='-':\n\tprint('0')\nelif a='+' b='-' c='-' d='+':\n\tprint('0')\nelif a='+' b='-' c='-' d='-':\n\tprint('-2')\nelif a='-' b='+' c='+' d='+':\n\tprint('2')\nelif a='-' b='+' c='+' d='-':\n\tprint('0')\nelif a='-' b='+' c='-' d='+':\n\tprint('0')\t\nelif a='-' b='+' c='-' d='-':\n\tprint('-2')\nelif a='-' b='-' c='-' d='+':\n\tprint('-2')\nelif a='-' b='-' c='+' d='-':\n\tprint('-2')\nelif a='-' b='-' c='-' d='+':\n\tprint('-2')\nelse a='-' b='-' c='-' d='-':\n\tprint('-4')\n\n\n", 'S =input()\n\nans = 0\nfor i in range(len(S)):\n\tif S[i]=="+":\n\t\tans += 1\n\telse:\n\t\tans -= 1\n\nprint(ans)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s779195171', 's793730319', 's913114016', 's931594559', 's688651146']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[16.0, 17.0, 17.0, 17.0, 17.0]
|
[708, 102, 711, 711, 99]
|
p03315
|
u794173881
| 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())\ncount =0\nfor i in range(len(s)):\n if s[i]="+":\n count +=1\n else:\n count -=1\nprint(count)', 's=list(input())\ncount =0\nfor i in range(len(s)):\n if s[i]=="+":\n count +=1\n else:\n count -=1\nprint(count)']
|
['Runtime Error', 'Accepted']
|
['s408514339', 's466910625']
|
[2940.0, 3064.0]
|
[17.0, 18.0]
|
[112, 113]
|
p03315
|
u796044734
| 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 = 1\nfor i in range(4):\n if S[i]=='+':\n count+=1\n\nprint(2*count-4)", "S = list(input())\n\ncount = 0\nfor i in range(4):\n if S[i]=='+':\n count+=1\n\nprint(2*count-4)\n"]
|
['Wrong Answer', 'Accepted']
|
['s937938194', 's242929903']
|
[2940.0, 3064.0]
|
[17.0, 18.0]
|
[94, 95]
|
p03315
|
u802977614
| 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']
|
['s928484599', 's360836304']
|
[2940.0, 3060.0]
|
[18.0, 19.0]
|
[44, 42]
|
p03315
|
u804880764
| 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.
|
["#/usr/bin/env python3\n\nimport math\n\nif __name__ == '__main__':\n N, K = map(int, input().split())\n A = list(map(int, input().split()))\n\n print(max(1, math.ceil((len(A) - K) / (K-1)) + 1))\n", "if __name__ == '__main__':\n S = list(input())\n n = 0\n for i in S:\n if i == '+':\n n = n + 1\n else:\n n = n - 1\n\n print(n)\n"]
|
['Runtime Error', 'Accepted']
|
['s104592652', 's097653163']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[196, 168]
|
p03315
|
u809108154
| 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())\ncount=0\nfor i in range(s):\n if s[i]=='+':\n count+=1;\n else:\n count-=1\nprint(count)\n", "s=str(input())\ncount=0\nfor i in range(4):\n if s[i]=='+':\n count+=1;\n else:\n count-=1\nprint(count)"]
|
['Runtime Error', 'Accepted']
|
['s741530708', 's159139686']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[106, 105]
|
p03315
|
u814663076
| 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\nfrom sys import stdin\ninput = stdin.readline\n\nS = input()\nn = 0\n\nfor i in S:\n if i == '+':\n n += 1\n else:\n n -= 1\n\nprint(n)", "import bisect\nimport heapq\nimport math\nimport random\nimport sys\nfrom collections import Counter, defaultdict, deque\nfrom decimal import Decimal\nfrom functools import lru_cache, reduce\nfrom itertools import combinations, combinations_with_replacement, product, permutations\nfrom operator import add, mul, sub, itemgetter\nimport numpy as np\n\nsys.setrecursionlimit(10000)\n\ndef read_int():\n\treturn int(sys.stdin.readline().strip())\n\ndef read_int_n():\n\treturn [int(x) for x in sys.stdin.readline().strip().split()]\n\ndef read_float():\n\treturn float(sys.stdin.readline().strip())\n\ndef read_float_n():\n\treturn [float(x) for x in sys.stdin.readline().strip().split()]\n\ndef read_str():\n\treturn sys.stdin.readline().strip()\n\ndef read_str_n():\n\treturn [str(x) for x in sys.stdin.readline().strip().split()]\n\ndef error_print(*args):\n\tprint(*args, file=sys.stderr)\n\ndef mt(f):\n\timport time\n\tdef wrap(*args, **kwargs):\n\t\ts = time.time()\n\t\tret = f(*args, **kwargs)\n\t\te = time.time()\n\t\terror_print(e - s, 'sec')\n\t\treturn ret\n\treturn wrap\n\n@mt\ndef slv(S):\n\tc = Counter(S)\n\tans = c['+'] - c['-']\n\treturn ans\n\ndef main():\n\tS = read_str()\n\tprint(slv(S))\n\nif __name__ == '__main__':\n\tmain()"]
|
['Wrong Answer', 'Accepted']
|
['s049429317', 's329383597']
|
[2940.0, 14144.0]
|
[18.0, 172.0]
|
[205, 1168]
|
p03315
|
u818283165
| 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 range(len(s)):\n a = s[i:i+1]\n print(a)\n if a == "+":\n result += 1\n else:\n result -= 1\nprint(result)', 's = "----"\nresult = 0\nfor i in range(len(s)):\n a = s[i:i+1]\n print(a)\n if a == "+":\n result += 1\n else:\n result -= 1\nprint(result)', 's = input()\nans = 0\nfor i in range(4):\n if s[i:i+1] == "+":\n ans += 1\n else:\n ans -= 1\nprint(ans)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s016750879', 's194217299', 's251288135']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[157, 156, 117]
|
p03315
|
u823885866
| 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 math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\ns = rr()\nans = 0\nfor i in s:\n ans += 1 if i == '+' else ans -= 1\nprint(ans)\n\n\n\n\n\n\n\n\n\n\n\n\n\n", "import sys\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\ns = rr()\nans = 0\nfor i in s:\n if i == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)\n\n\n\n\n\n\n\n\n\n\n\n\n\n"]
|
['Runtime Error', 'Accepted']
|
['s424595760', 's319110866']
|
[8924.0, 26928.0]
|
[25.0, 116.0]
|
[462, 474]
|
p03315
|
u828139046
| 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\nfor i in s:\n list = []\n list.append(i)\n\nplus = s.count('-')\nminus = s.count('+')\n\nprint(plus - minus)", "s = input()\n\nplus = s.count('-')\nminus = s.count('+')\n\nprint(plus - minus)", "s = input()\n\nplus = s.count('+')\nminus = s.count('-')\n\nprint(plus - minus)"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s284624914', 's615917110', 's552324041']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[124, 74, 74]
|
p03315
|
u840958781
| 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\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)']
|
['Wrong Answer', 'Accepted']
|
['s996446018', 's794302187']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[78, 103]
|
p03315
|
u842028864
| 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()\ncount = 0\nfor i in range(4):\n if s[i] == +:\n count += 1\n else:\n count -=1\nprint(count)', 's = input()\ncount = 0\nfor i in range(4):\n if s[i] == "+":\n count += 1\n else:\n count -=1\nprint(count)']
|
['Runtime Error', 'Accepted']
|
['s102257252', 's683502795']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[106, 108]
|
p03315
|
u842388336
| 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(map(int,input().split()))\np_cnt = S.count("+")\nm_cnt = S.count("-")\nprint(int(p_cnt - m_cnt))', 'S = list(input())\np_cnt = S.count("+")\nm_cnt = S.count("-")\nprint(int(p_cnt - m_cnt))\n']
|
['Runtime Error', 'Accepted']
|
['s887997749', 's551151158']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[102, 86]
|
p03315
|
u843318346
| 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())\nans = 0\nfor i in s:\n if i == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)", "s = input()\nans = 0\nfor i in s:\n if i == '+':\n ans += 1\n else:\n ans -= 1\nprint(ans)\n"]
|
['Runtime Error', 'Accepted']
|
['s407021636', 's375378734']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[96, 92]
|
p03315
|
u845427284
| 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.
|
["char = input()\n\nanswer = 0\nfor i in range(len(char)):\n if(char[i] == '+'):\n answer += 0\n elif(char[i] == '-'):\n answer -= 0\nprint(answer)", "char = input()\n\nanswer = 0\nfor i in range(len(char) - 1):\n if(char[i] == '+'):\n answer += 0\n elif(char[i] == '-'):\n answer -= 0\nprint(answer)", "char = input()\n\nanswer = 0\nfor i in range(len(char)):\n if(char[i] == '+'):\n answer += 1\n elif(char[i] == '-'):\n answer -= 1\nprint(answer)"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s053139690', 's061927826', 's601457833']
|
[2940.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[145, 149, 145]
|
p03315
|
u847033024
| 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\nprint(a.count('+') - a.count('-'))", "a = input()\nprint(a.count('+') - a.count('-'))\n"]
|
['Runtime Error', 'Accepted']
|
['s133822434', 's490183707']
|
[8992.0, 8984.0]
|
[21.0, 26.0]
|
[44, 47]
|
p03315
|
u853900545
| 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()\nprint('No' if int(a) % sum(map(int,a)) else 'Yes')", "a = input()\nif int(a) % sum(map(int,a)):\n print('No')\nelse:\n print('Yes')\nprint('No' if int(a) % sum(map(int,a)) else 'Yes')", "S = input()\nprint(S.count('+') - S.count('-'))"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s584657542', 's645750578', 's904168097']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[62, 130, 46]
|
p03315
|
u855985627
| 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()\nfor i in S.len():\n S[:2*i+1]+"1"+S[2*i+1:]\nprint(eval(S))', 'S=input()\nfor i in range(len(S)):\n S=S[:2*i+1]+"1"+S[2*i+1:]\nprint(eval("0"+S))']
|
['Runtime Error', 'Accepted']
|
['s911066495', 's465999285']
|
[2940.0, 2940.0]
|
[17.0, 16.0]
|
[68, 80]
|
p03315
|
u863044225
| 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.sount('-'))", "s=input()\nprint(s.count('+')-s.count('-'))"]
|
['Runtime Error', 'Accepted']
|
['s020950721', 's545591157']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[42, 42]
|
p03315
|
u863397945
| 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 = list(map(str,input().split()))\n \nnum = 0\n \nfor i in range (len(a) -1):\n if a[i] == "+":\n num +=1\n else:\n num -=1\n \nprint(num) ', 'a = list(map(str,input().split()))\n \nnum = 0\n \nfor i in range (len(a) -1):\n if a[i] == "+":\n num +=1\n else:\n num -=1\n \nprint(num) ', 'a = list(map(str,input().split()))\n\nnum = 0\n\nfor i in range len a:\n if a[i] = "+":\n num +=1\n else:\n num -=1\n\nprint(num)', 'a = list(map(str,input().split()))\n \nnum = 0\n \nfor i in range [0,1,2,3]:\n if a[i] == "+":\n num +=1\n else:\n num -=1\n \nprint(num) \n', 'S = input()\n\nc = 0\n\nfor i in range(4):\n if S[i] == "+":\n c += 1\n else:\n c -= 1\n\nprint(c)']
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s338122522', 's460626861', 's609725946', 's822435936', 's511750281']
|
[2940.0, 2940.0, 2940.0, 2940.0, 9044.0]
|
[17.0, 17.0, 17.0, 17.0, 28.0]
|
[139, 141, 127, 140, 108]
|
p03315
|
u864900001
| 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\nn, k = map(int, input().split())\na = list(map(int, input().split()))\n\nans = math.ceil((n-1)/(k-1))\nprint(ans)', 'n, k = map(int, input().split())\na = list(map(int, input().split()))\n\nans = int((n-k)/(k-1)+2)\nprint(ans)', 'n, k = map(int, input().split())\na = list(map(int, input().split()))\n\nans = int((n-k)/(k-1)+2)', 'inp = input()\nplus = int(inp.count("+"))\nminus = int(inp.count("-"))\nprint(plus-minus)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s166896645', 's271556065', 's297518619', 's604756022']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[121, 105, 94, 86]
|
p03315
|
u873769197
| 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 = map(int, input().split())\na = list(map(int, input().split()))\n \nind = a.index(1)\n \nleft = ind\nright = n-1-ind\nimport math\nif left<k-1 or right<k-1:\n\tprint (n//(k-1))\nelse:\n\tif k>=n:\n\t\tprint (1)\n\telse:\n\t\tprint(int(math.ceil(left/(k-1))+math.ceil(right/(k-1))))\n', "s = list(input())\nprint (s.count('+')-s.count('-'))"]
|
['Runtime Error', 'Accepted']
|
['s742847340', 's856966780']
|
[3060.0, 2940.0]
|
[20.0, 17.0]
|
[266, 51]
|
p03315
|
u884531978
| 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.
|
['input_list = input().split()\n\nprint(input_list.count("+")-input_list.cout("-"))', 'input_list = list(input())\n\nprint(input_list.count("+")-input_list.count("-"))']
|
['Runtime Error', 'Accepted']
|
['s731430632', 's937716100']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[79, 78]
|
p03315
|
u886902015
| 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.cout("+")-S.count("-"))\n', 'S=input()\nprint(S.count("+")-S.count("-"))']
|
['Runtime Error', 'Accepted']
|
['s442332798', 's288128627']
|
[9068.0, 8996.0]
|
[25.0, 27.0]
|
[42, 42]
|
p03315
|
u887207211
| 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#include <string>\n\nusing namespace std;\n\n\n\nint main(){\n string s;\n cin >> s;\n int ans = 0;\n rep(i, 4){\n if (s[i] == '+') ++ans;\n else --ans;\n }\n cout << ans << endl;\n}", 'S = input()\nprint(S.count("+")-S.count("-"))']
|
['Runtime Error', 'Accepted']
|
['s780017852', 's546415917']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[245, 44]
|
p03315
|
u905582793
| 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 = map(int, input().split())\nA = list(map(int, input().split()))\nprint((N-1+K-1-1)//(K-1))', 'S=input()\nprint(S.count("+")-S.count("-"))']
|
['Runtime Error', 'Accepted']
|
['s626752160', 's119993630']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[93, 42]
|
p03315
|
u908448907
| 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\nn = 0\n\nfor i in S:\n if S[i] == '+':\n n += 1\n else:\n n -= 1\n\nprint(n)", "S = input()\n\nn = 0\n\ni = 0\n\nwhile i < 4:\n if S[i] == '+':\n n += 1\n else:\n n -= 1\n i += 1\n\nprint(n)"]
|
['Runtime Error', 'Accepted']
|
['s746706116', 's107074913']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[101, 120]
|
p03315
|
u910341281
| 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 \n\na=0\n \nsum=0\nfor i in S[0]:\n\t\n\tsum=sum+int(i)\n \n \n \nanser=int(S[0])%sum\n \n \n \n \n \n \nif anser == 0:\n\tprint("Yes")\n \nelse : print("No")', 'S= map(str, input().split()) \nb=list(S)\n\na=0\n\n\nfor i in range(len(b[0])):\n\t\n\n\tif b[0][i] is "+":\n\t\ta+=1\n\n\tif b[0][i] is "-":\n\t\ta-=1\n\n\n\n\nprint(a)']
|
['Runtime Error', 'Accepted']
|
['s188519847', 's603701391']
|
[3060.0, 2940.0]
|
[18.0, 18.0]
|
[155, 144]
|
p03315
|
u911438260
| 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()\nplus = count('+')\nminus = count('-')\nprint( plus - minus )", "S = input()\nplus = S.count('+')\nminus = S.count('-')\nprint( plus - minus )"]
|
['Runtime Error', 'Accepted']
|
['s440808502', 's406100810']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[70, 74]
|
p03315
|
u911575040
| 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\nn,k=map(int,input().split())\na=list(map(int,input().split()))\nprint(math.ceil((n-k)/(k-1)+1))\n', "k=[]\nk=list(map(str,input()))\nn=0\nfor i in range(4):\n if k[i]=='+':\n n+=1\n else:\n n-=1\nprint(n)\n"]
|
['Runtime Error', 'Accepted']
|
['s673167709', 's652839099']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[106, 116]
|
p03315
|
u921773161
| 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())\na = list.count('+')\nb = list.count('-')\nprint(int(a) - int(b))\n", "S = list(input())\na = S.count('+')\nb = S.count('-')\nprint(int(a) - int(b))\n"]
|
['Runtime Error', 'Accepted']
|
['s303460914', 's618064534']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[81, 75]
|
p03315
|
u921826483
| 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 in a:\n b += int(i)\nif int(a)%b == 0:\n print("Yes")\nelse:\n print("No")', 's = input()\nk = 0\nfor i in s:\n if i == "+":\n k += 1\n else:\n k -= 1\nprint(k)']
|
['Runtime Error', 'Accepted']
|
['s419430524', 's454292010']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[105, 95]
|
p03315
|
u928784113
| 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 -*-\nA,B,C,D=map(str,input().split())\n+ = "1"\n- = "-1"\nL = [+,-]\nS = map(int,L.split())\nprint("{}".format(A+B+C+D))', '# -*- coding: utf-8 -*-\nA,B,C,D=map(int,input().split())\n+ = 1\n- = -1\nprint("{}".format(A+B+C+D))', '# -*- coding: utf-8 -*-\nS = str(input())\nP = S.count("+")\nQ = S.count("-")\nprint("{}".format(P-Q))']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s613350446', 's729897709', 's279268649']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 19.0]
|
[134, 97, 98]
|
p03315
|
u930862022
| 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 = map(int, input().split())\na = list(map(int, input().split()))\n\npole = 0\nfor i in range(n):\n if a[i] == 1:\n pole = i\n\nl = pole\nr = n - 1 - pole\n\nfor i in range(k - 1):\n if l % (k - 1) == i:\n if k - i - 1 >= r:\n if l == 0:\n print(0)\n else:\n print(1 + int(l / (k - 1)))\n else:\n if l == 0:\n print(1 + int((r - k + i + 1) / (k - 1)))\n else:\n print(1 + int(l / (k - 1)) + 1 + int((r - k + i + 1) / (k - 1)))', "s = input()\nl = len(s)\n\np = 0\nm = 0\n\nfor i in range(l):\n if s[i] == '+':\n p = p + 1\n else:\n m = m + 1\n\nprint(p - m)"]
|
['Runtime Error', 'Accepted']
|
['s636968822', 's356507087']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[539, 135]
|
p03315
|
u935845450
| 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\nusing namespace std;\nchar a[15];\nint main(){\n scanf("%s", a);\n int lsum = 0, sum = 0;\n for(int i = 0; i < strlen(a); i++){\n lsum += a[i] - \'0\';\n sum = sum * 10 + a[i] - \'0\';\n }\n if(sum % lsum == 0) printf("Yes\\n");\n else printf("No\\n");\n}\n', "print(4 - 2 * input().count('-'))"]
|
['Runtime Error', 'Accepted']
|
['s174844105', 's404388752']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[298, 33]
|
p03315
|
u940279019
| 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 s:\n if i == '+':\n ans+= 1\n else:\n ans-= 1", "s = list(input())\nans = 0\nfor i in s:\n if i == '+':\n ans+= 1\n else:\n ans-= 1\nprint(ans)"]
|
['Wrong Answer', 'Accepted']
|
['s695155953', 's331936509']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[84, 95]
|
p03315
|
u951601135
| 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())\nprint(s)\np=s.count('+')\nm=s.count('-')\nn=p-m\nif(p>=m):\n print(n)\nelse:print(-n)", "s=list(input())\np=s.count('+')\nm=s.count('-')\nn=p-m\nprint(n)"]
|
['Wrong Answer', 'Accepted']
|
['s812100569', 's820984589']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[96, 60]
|
p03315
|
u956547804
| 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()\ncount=0\nfor i in s:\n if i='+':\n count+=1\n else:\n count-=1\nprint(count)", "s=input()\ncount=0\nfor i in s:\n if i='+':\n count+=1\n else:\n count-=1", "s=input()\ncount=0\nfor i in s:\n if i=='+':\n count+=1\n else:\n count-=1\nprint(count)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s005324927', 's249924337', 's344122562']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0]
|
[100, 87, 101]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.