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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02765 | u500297289 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(100 * (10 - K))', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R - (100 * (10 - N)))', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(100 * (10 - N))', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R + (100 * (10 - N)))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s218854773', 's298255665', 's324429687', 's373452605'] | [2940.0, 3316.0, 2940.0, 2940.0] | [17.0, 21.0, 17.0, 17.0] | [89, 95, 89, 95] |
p02765 | u501451051 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['スコード \n\nCopy\nCopy\nN, R = map(int, input().split())\n \nif N > 10:\n print(R)\nelse:\n ans = R - (100*(10-R))\n print(ans)', 'N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n ans = R - (100*(10-R))\n print(ans)', 'N, R = map(int, input().split())\n \nif N > 10:\n print(R)\nelse:\n ans = R + (100*(10-N))\n print(ans)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s756989478', 's971949915', 's923786600'] | [3064.0, 2940.0, 2940.0] | [19.0, 17.0, 17.0] | [125, 100, 100] |
p02765 | u501952592 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, K = map(int, input().split())\n\nfor i in range(1, N):\n if N/(K**i) < 1:\n print(i)\n break', 'N, R = map(int, input().split())\n\nans = R\nif N < 10:\n ans += 100*(10-N)\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s251557831', 's975459896'] | [2940.0, 2940.0] | [18.0, 17.0] | [97, 83] |
p02765 | u504194367 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['i = input().split()\nN = int(i[0])\nR = int(i[1])\n\nif N > 10:\n result = R\nelse:\n result = 100 * (10 - N)\n\nprint(result)', 'i = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n\nif N > 10:\n result = R\nelse:\n result = 100 * (10 - N)\n\nprint(result)', 'import math\n \ni = input().split()\nN = int(i[0])\nK = int(i[1])\nresult = 0\n \nresult = math.log(N, K)\nresult = 1 + int(result)\n\n \nprint(result)', 'i = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n \nresult = R if N >= 10 : else 100 * (10 - R)\n \nprint(result)', 'import math\n\ni = input().split()\nN = int(i[0])\nK = int(i[1])\nresult = 0\n\nresult = math.log(N, K)\nif int(result) != result:\n result = 1 + int(result)\nelse:\n result = int(result)\n\nprint(result)', 'i = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n \nresult = R if N >= 10 else 100 * (10 - N)\n \nprint(result)', 'i = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n \nresult = R if N >= 10 else R - 100 * (10 - N)\n \nprint(result)', 'import math\n\ni = input().split()\nN = int(i[0])\nK = int(i[1])\nresult = 0\n\nresult = math.log(N, K)\nif int(result) != result:\n result = 1 + int(result)\nelse:\n result = int(result)\n\nprint(result)', 'i = input().split()\nN = int(i[0])\nR = int(i[1])\n\nif N >= 10:\n result = R\nelse:\n result = 100 * (10 - N)\n\nprint(result)', 'i = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n \nresult = R if N >= 10 else R + 100 * (10 - N)\n \nprint(result)'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s071925640', 's103954267', 's115008155', 's224693459', 's373587473', 's448916857', 's589703402', 's678993176', 's875488491', 's117217397'] | [2940.0, 2940.0, 3060.0, 2940.0, 3064.0, 2940.0, 2940.0, 3064.0, 2940.0, 3064.0] | [18.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [119, 125, 140, 115, 193, 113, 117, 193, 120, 117] |
p02765 | u504562455 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = [int(_) for _ in input().split()]\nif N >= 10:\n print(R)\nelse:\n print(100 * (10 - N))', 'N, R = [int(_) for _ in input().split()]\nif N >= 10:\n print(R)\nelse:\n print(R + 100 * (10 - N))'] | ['Wrong Answer', 'Accepted'] | ['s504889252', 's305664632'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 101] |
p02765 | u508934152 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nprint(100*(10-R) + R)', 'N, R = map(int, input().split())\n\nif N < 10:\n print(100*(10-N) + R)\nelse:\n print(R)\n '] | ['Wrong Answer', 'Accepted'] | ['s827795112', 's799991359'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 88] |
p02765 | u509516894 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = input().split()\nif N>=10 :\n x = R\nelse:\n x = R - 100*(10-N)\nprint(x)\n', 'N, R = input().split()\nN = int(N)\nR = int(R)\nif N>=10 :\n x = R\nelse:\n x = R - 100*(10-N)\nprint(x)', 'N, R = input().split()\nN = int(N)\nR = int(R)\nif N>=10 :\n x = R\nelse:\n x = R + 100*(10-N)\nprint(x)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s114715734', 's481020620', 's547394601'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [78, 99, 99] |
p02765 | u509739538 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import math\nimport queue\nfrom collections import defaultdict\n \ndef readInt():\n\treturn int(input())\ndef readInts():\n\treturn list(map(int, input().split()))\ndef readChar():\n\treturn input()\ndef readChars():\n\treturn input().split()\ndef factorization(n):\n\tres = []\n\tif n%2==0:\n\t\tres.append(2)\n\tfor i in range(3,math.floor(n//2)+1,2):\n\t\tif n%i==0:\n\t\t\tc = 0\n\t\t\tfor j in res:\n\t\t\t\tif i%j==0:\n\t\t\t\t\tc=1\n\t\t\tif c==0:\n\t\t\t\tres.append(i)\n\treturn res\ndef fact2(n):\n\tp = factorization(n)\n\tres = []\n\tfor i in p:\n\t\tc=0\n\t\tz=n\n\t\twhile 1:\n\t\t\tif z%i==0:\n\t\t\t\tc+=1\n\t\t\t\tz/=i\n\t\t\telse:\n\t\t\t\tbreak\n\t\tres.append([i,c])\n\treturn res\ndef fact(n):\n\tans = 1\n\tm=n\n\tfor _i in range(n-1):\n\t\tans*=m\n\t\tm-=1\n\treturn ans\ndef comb(n,r):\n\tif n<r:\n\t\treturn 0\n\tl = min(r,n-r)\n\tm=n\n\tu=1\n\tfor _i in range(l):\n\t\tu*=m\n\t\tm-=1\n\treturn u//fact(l)\ndef printQueue(q):\n\tr=qb\n\tans=[0]*r.qsize()\n\tfor i in range(r.qsize()-1,-1,-1):\n\t\tans[i] = r.get()\n\tprint(ans)\ndef dq():\n\treturn queue.deque()\nclass UnionFind():\n\tdef __init__(self, n):\n\t\tself.n = n\n\t\tself.parents = [-1]*n\n\n\tdef find(self, x): # root\n\t\tif self.parents[x]<0:\n\t\t\treturn x\n\t\telse:\n\t\t\tself.parents[x] = self.find(self.parents[x])\n\t\t\treturn self.parents[x]\n\n\tdef union(self,x,y):\n\t\tx = self.find(x)\n\t\ty = self.find(y)\n\n\t\tif x==y:\n\t\t\treturn\n\n\t\tif self.parents[x]>self.parents[y]:\n\t\t\tx,y = y,x\n\n\t\tself.parents[x]+=self.parents[y]\n\t\tself.parents[y]=x\n\n\tdef size(self,x):\n\t\treturn -1*self.parents[self.find(x)]\n\n\tdef same(self,x,y):\n\t\treturn self.find(x)==self.find(y)\n\n\tdef members(self,x): # much time\n\t\troot = self.find(x)\n\t\treturn [i for i in range(self.n) if self.find(i)==root]\n\n\tdef roots(self):\n\t\treturn [i for i,x in enumerate(self.parents) if x<0]\n\n\tdef group_count(self):\n\t\treturn len(self.roots())\n\n\tdef all_group_members(self):\n\t\treturn {r: self.members(r) for r in self.roots()} # 1~n\ndef bitArr(n):\n\tx = 1\n\tzero = "0"*n\n\tans = []\n\tans.append([0]*n)\n\tfor i in range(2**n-1):\n\t\tans.append(list(map(lambda x:int(x),list((zero+bin(x)[2:])[-1*n:]))))\n\t\tx+=1\n\treturn ans;\ndef arrsSum(a1,a2):\n\tfor i in range(len(a1)):\n\t\ta1[i]+=a2[i]\n\treturn a1\n\nn,r = readInts()\n\nif n>=10:\n\tprint(k)\nelse:\n\tprint(k-(100*(10-k)))', 'import math\nimport queue\nfrom collections import defaultdict\n \ndef readInt():\n\treturn int(input())\ndef readInts():\n\treturn list(map(int, input().split()))\ndef readChar():\n\treturn input()\ndef readChars():\n\treturn input().split()\ndef factorization(n):\n\tres = []\n\tif n%2==0:\n\t\tres.append(2)\n\tfor i in range(3,math.floor(n//2)+1,2):\n\t\tif n%i==0:\n\t\t\tc = 0\n\t\t\tfor j in res:\n\t\t\t\tif i%j==0:\n\t\t\t\t\tc=1\n\t\t\tif c==0:\n\t\t\t\tres.append(i)\n\treturn res\ndef fact2(n):\n\tp = factorization(n)\n\tres = []\n\tfor i in p:\n\t\tc=0\n\t\tz=n\n\t\twhile 1:\n\t\t\tif z%i==0:\n\t\t\t\tc+=1\n\t\t\t\tz/=i\n\t\t\telse:\n\t\t\t\tbreak\n\t\tres.append([i,c])\n\treturn res\ndef fact(n):\n\tans = 1\n\tm=n\n\tfor _i in range(n-1):\n\t\tans*=m\n\t\tm-=1\n\treturn ans\ndef comb(n,r):\n\tif n<r:\n\t\treturn 0\n\tl = min(r,n-r)\n\tm=n\n\tu=1\n\tfor _i in range(l):\n\t\tu*=m\n\t\tm-=1\n\treturn u//fact(l)\ndef printQueue(q):\n\tr=qb\n\tans=[0]*r.qsize()\n\tfor i in range(r.qsize()-1,-1,-1):\n\t\tans[i] = r.get()\n\tprint(ans)\ndef dq():\n\treturn queue.deque()\nclass UnionFind():\n\tdef __init__(self, n):\n\t\tself.n = n\n\t\tself.parents = [-1]*n\n\n\tdef find(self, x): # root\n\t\tif self.parents[x]<0:\n\t\t\treturn x\n\t\telse:\n\t\t\tself.parents[x] = self.find(self.parents[x])\n\t\t\treturn self.parents[x]\n\n\tdef union(self,x,y):\n\t\tx = self.find(x)\n\t\ty = self.find(y)\n\n\t\tif x==y:\n\t\t\treturn\n\n\t\tif self.parents[x]>self.parents[y]:\n\t\t\tx,y = y,x\n\n\t\tself.parents[x]+=self.parents[y]\n\t\tself.parents[y]=x\n\n\tdef size(self,x):\n\t\treturn -1*self.parents[self.find(x)]\n\n\tdef same(self,x,y):\n\t\treturn self.find(x)==self.find(y)\n\n\tdef members(self,x): # much time\n\t\troot = self.find(x)\n\t\treturn [i for i in range(self.n) if self.find(i)==root]\n\n\tdef roots(self):\n\t\treturn [i for i,x in enumerate(self.parents) if x<0]\n\n\tdef group_count(self):\n\t\treturn len(self.roots())\n\n\tdef all_group_members(self):\n\t\treturn {r: self.members(r) for r in self.roots()} # 1~n\ndef bitArr(n):\n\tx = 1\n\tzero = "0"*n\n\tans = []\n\tans.append([0]*n)\n\tfor i in range(2**n-1):\n\t\tans.append(list(map(lambda x:int(x),list((zero+bin(x)[2:])[-1*n:]))))\n\t\tx+=1\n\treturn ans;\ndef arrsSum(a1,a2):\n\tfor i in range(len(a1)):\n\t\ta1[i]+=a2[i]\n\treturn a1\n\nn,r = readInts()\nk=n\n\nif n>=10:\n\tprint(r)\nelse:\n\tprint(r+100*(10-k))'] | ['Runtime Error', 'Accepted'] | ['s346482385', 's412408432'] | [3952.0, 3952.0] | [28.0, 26.0] | [2171, 2173] |
p02765 | u511870776 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r - (100 * (10-r)))', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + (100 * (10-r)))\n', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + (100 * (10-n)))\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s385442960', 's647352468', 's885873066'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [89, 90, 90] |
p02765 | u514118270 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["A = input()\nb,c = (A.split(' '))\nd = int(b)\ne = int(c)\nf = e - 100d + 1000\n\nif 0 < d < 11:\n print(f)\nelse:\n print(e)", "A = imput()\na,b = (A.split' ')\nif 0 < a < 11:\n print('b')\nelse:\n print('b+1000-100a')", "A = input()\na,b = (A.split' ')\nc = int(a)\nd = int(b)\nif 0 < c < 11:\n print('d')\nelse:\n print('d+1000-100c')", "A = input()\na,b = (A.split' ')\nif 0 < a < 11:\n print('b')\nelse:\n print('b+1000-100a')", "A = imput()\na,b = int(A.split' ')\nif 0 < a < 11:\n print('b')\nelse:\n print('b+1000-100a')", "A = input()\na,b = int(A.split' ')\nif 0 < a < 11:\n print('b')\nelse:\n print('b+1000-100a')", "A = input()\na,b = int((A.split' '))\nif 0 < a < 11:\n print('b')\nelse:\n print('b+1000-100a')", "A = input()\na,b = int(A.split' ')\nif 0 < a < 11:\n print(b)\nelse:\n print(b - 100a + 1000)\n", "A = input()\nb,c = (A.split(' '))\nd = int(b)\ne = int(c)\nf = e - d * 100 + 1000\n\nif 0 < d < 11:\n print(f)\nelse:\n print(e)\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s043737524', 's170862086', 's365678906', 's594377961', 's778305896', 's925103033', 's952984464', 's985122944', 's779012569'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [122, 89, 111, 89, 92, 92, 94, 94, 126] |
p02765 | u516242950 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = int(input().split())\nif n < 10:\n print(100 * (10 - n) + r)\nelse:\n print(r)', 'hako = list(map(int, input().split()))\nif hako[0] < 10:\n print(100 * (10 - hako[0]) + hako[1])\nelse:\n print(hako[1])\n'] | ['Runtime Error', 'Accepted'] | ['s474045514', 's451265498'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 119] |
p02765 | u516554284 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\n\nif n<10:\n print(r+100*(10-k))\n \nelse:\n print(r)', 'n,r=map(int,input().split())\n\nif n<10:\n print(r+100*(10-n))\n \nelse:\n print(r)\n'] | ['Runtime Error', 'Accepted'] | ['s084635608', 's253467359'] | [9080.0, 9096.0] | [29.0, 27.0] | [80, 81] |
p02765 | u517930510 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int,input().split())\nif N >= 10:\n rat = R\nelse:\n rat = R - 100*(10-N)\nprint(int(rat))', 'N,R = map(int,input().split())\nif N >= 10:\n rat = R\nelse:\n rat = R + 100*(10-N)\nprint(int(rat))'] | ['Wrong Answer', 'Accepted'] | ['s016592725', 's049021007'] | [2940.0, 2940.0] | [18.0, 18.0] | [97, 97] |
p02765 | u517935948 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, a, b = map(int, input().split())\nmod = pow(10, 9) + 7\n\ndef comb(N, x):\n numerator = 1\n for i in range(N-x+1, N+1):\n numerator = numerator * i % mod\n denominator = 1\n for j in range(1, x+1):\n denominator = denominator * j % mod\n d = pow(denominator, mod-2, mod)\n return numerator * d\n\na = comb(n, a)\nb = comb(n, b)\n\nprint((pow(2, n, mod) -1 -a -b) % mod)', 'n, r = map(int, input().split())\nif n<10:\n print(100*(10-n)+r)\nelse:\n print(r)'] | ['Runtime Error', 'Accepted'] | ['s989374406', 's286986189'] | [3064.0, 2940.0] | [17.0, 17.0] | [388, 84] |
p02765 | u519339498 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=map(int,input().split())\nif N<10:\n print(100*(10-N))\nelse:\n print(R)', 'N,R=map(int,input().split())\nif N<10:\n print(R-100*(10-N))\nelse:\n print(R)\n', 'N,R=map(int,input().split())\nif N<10:\n print(R+100*(10-N))\nelse:\n print(R)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s355524604', 's667187326', 's318924534'] | [9020.0, 9056.0, 8956.0] | [26.0, 26.0, 27.0] | [74, 77, 77] |
p02765 | u521266908 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['a,b = input()\n\nif a>=10:\n print(b)\nelse:\n print(b+100*(10-a))\n', 'a,b = input()\na = int(a)\nb = int(b)\n\nif a>=10:\n print(b)\nelse:\n print(b+100*(10-a))\n', 'a,b=map(int,input().split())\n\nif a>=10:\n print(b)\nelse:\n print(b+100*(10-a))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s736831409', 's816542273', 's058350356'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [68, 90, 82] |
p02765 | u521271655 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,K = map(int,input().split())\nfor i in range(1,10**10):\n if K**i <= N < K**(i+1):\n print(i+1)\n break', 'N,K = map(int,input().split())\nfor i in range(1,10):\n if K**i <= N < K**(i+1):\n print(i+1)\n break', 'N,R = map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(R + 100*(10 - N))'] | ['Time Limit Exceeded', 'Wrong Answer', 'Accepted'] | ['s112681537', 's920192133', 's735123285'] | [3060.0, 2940.0, 2940.0] | [2104.0, 17.0, 18.0] | [118, 114, 89] |
p02765 | u523957440 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R+100(10-N))', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Runtime Error', 'Accepted'] | ['s331530758', 's174432653'] | [3188.0, 2940.0] | [18.0, 18.0] | [82, 83] |
p02765 | u524489226 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\n \nif n < 10:\n\tprint(r + 100*(10-k))\nelse:\n print(r)', 'n, r = map(int, input().split())\n\nif n < 10:\n\tprint(r)\nelse:\n print(r + 800)', 'n, r = map(int, input().split())\n \nif n < 10:\n\tprint(r + 100*(10-n))\nelse:\n print(r)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s264003396', 's592401541', 's924307369'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [87, 77, 87] |
p02765 | u525842287 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['int = input().split()\n\nN = int[0]\nR = int[1]\n\nif N >=10 :\n print(R)\nelse:\n print(100*(10-N))\n \n ', 'input_data = input().split()\n \nN = int(input_data[0])\nR = int(input_data[1])\n \nif N >= 10 :\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Runtime Error', 'Accepted'] | ['s029365474', 's539261052'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 130] |
p02765 | u529393736 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['from sys import stdin\nfrom math import factorial\n\n\ndef comb(n, x):\n return factorial(n) // (factorial(x) * factorial(n - x))\n\n\ndef main():\n N, A, B = [int(x) for x in stdin.readline().rstrip().split()]\n result = sum([comb(N, i) for i in range(1, N + 1) if i != A and i != B])\n print(int(result % (1e9+7)))\n\n\nif __name__ == "__main__":\n main()\n', 'from sys import stdin\n\nN, R = [int(x) for x in stdin.read().rstrip().split()]\n\ndef main(N, R):\n innerRate = 0\n if N >= 10:\n innerRate = R\n else:\n innerRate = R + 100 * (10 - N)\n return innerRate\n\nprint(main(N, R))'] | ['Runtime Error', 'Accepted'] | ['s008106384', 's752905146'] | [3060.0, 2940.0] | [17.0, 17.0] | [358, 223] |
p02765 | u531456543 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(100(10-r))\n', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(100*(10-n))\n', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(100*(10-r))\n', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r-100*(10-n))', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r-100*(10-r))\n', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(100-10*r)', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s066661667', 's077227342', 's199115941', 's455989901', 's670681482', 's861879572', 's760894694'] | [9104.0, 9088.0, 9092.0, 9148.0, 9076.0, 9004.0, 9096.0] | [26.0, 27.0, 26.0, 25.0, 27.0, 24.0, 26.0] | [81, 82, 82, 84, 84, 79, 85] |
p02765 | u535423069 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import sys\n \nstdin = sys.stdin\ninf = 2 << 60\nmod = 1000000008\n \nni = lambda: int(ns())\nnin = lambda y: [ni() for _ in range(y)]\nna = lambda: list(map(int, stdin.readline().split()))\nnan = lambda y: [na() for _ in range(y)]\nns = lambda: stdin.readline().rstrip()\nnsn = lambda y: [ns() for _ in range(y)]\nncl = lambda y: [list(ns()) for _ in range(y)]\nnas = lambda: stdin.readline().split()\n\nn, r = na()\n\nif n >= 11:\n print(r)\nelse:\n print(r + 101 * (10 - n))', 'import sys\n \nstdin = sys.stdin\ninf = 1 << 60\nmod = 1000000007\n \nni = lambda: int(ns())\nnin = lambda y: [ni() for _ in range(y)]\nna = lambda: list(map(int, stdin.readline().split()))\nnan = lambda y: [na() for _ in range(y)]\nns = lambda: stdin.readline().rstrip()\nnsn = lambda y: [ns() for _ in range(y)]\nncl = lambda y: [list(ns()) for _ in range(y)]\nnas = lambda: stdin.readline().split()\n\nn, r = na()\n\nif n < 10:\n print(r + (100 * (10 - n)))\nelse:\n print(r)'] | ['Wrong Answer', 'Accepted'] | ['s824121094', 's615489124'] | [3064.0, 3064.0] | [17.0, 17.0] | [463, 464] |
p02765 | u539367121 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nprint(R if N>=10 else R-100*(10-K))', 'N, R = map(int, input().split())\nprint(R if N>=10 else R-100*(10-N))\n', 'N, R = map(int, input().split())\nprint(R if N>=10 else R+100*(10-N))\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s067403095', 's730541562', 's901694271'] | [9060.0, 9092.0, 9004.0] | [30.0, 27.0, 27.0] | [68, 69, 69] |
p02765 | u540698208 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nprint(R if 10 <= N else (R - (100 * (10 - N))))', 'N, R = map(int, input().split())\n\nprint(R if 10 <= N else (100 * (10 - N)))', 'N, R = map(int, input().split())\n\nprint(R if 10 <= N else (R + (100 * (10 - N))))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s854134896', 's981778856', 's111980803'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [81, 75, 81] |
p02765 | u546165262 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['inp = input().split(" ")\nN = int(inp[0])\nR = int(inp[1])\nif N >= 10:\n iner_r = R\nelse:\n iner_r = R + 100*(10-N)\nreturn iner_r', 'n,r= map(int,input().split())\nif n >= 10:\n print(r)\nelse:\n r = r + 100*(10-n)\n print(r)\n'] | ['Runtime Error', 'Accepted'] | ['s602302231', 's929844588'] | [2940.0, 2940.0] | [17.0, 17.0] | [132, 98] |
p02765 | u548069143 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['ink= input().split()\nink=[int(i) for i in ink]\nin1=ink[0]\nin2=ink[1]\nin3=ink[2]\n\ndef nibun(a,e,h):\n \n b=2\n c=[]\n d=0\n while d==0:\n for i in range(999):\n if b**i<=a and a<b**(i+1):\n c.append(1)\n d=i\n\n a=a-b**d\n for x in range(d-1,-1,-1):\n if b**(x)<=a:\n a=a-(b**x)\n c.append(1)\n else:\n c.append(0)\n d=d-1\n #print(c)\n\n \n f=1\n g=0\n #h=int(input("mod?"))#mod\n j=1\n for i in range(len(c)-1,-1,-1):\n j=e\n if c[i]==1:\n for x in range(g):\n j=j*j%h\n f=f*j%h\n g=g+1\n return f\nf=nibun(in1,2,10**9+7)\n\ndef extgcd(a,b):\n r = [1,0,a]\n w = [0,1,b]\n while w[2]!=1:\n q = r[2]//w[2]\n r2 = w\n w2 = [r[0]-q*w[0],r[1]-q*w[1],r[2]-q*w[2]]\n r = r2\n w = w2\n #[x,y]\n return [w[0],w[1]]\n\n\ndef mod_inv(a,m):\n x = extgcd(a,m)[0]\n return (m+x%m)%m\n\ndef extgcd(a,b):\n r = [1,0,a]\n w = [0,1,b]\n while w[2]!=1:\n q = r[2]//w[2]\n r2 = w\n w2 = [r[0]-q*w[0],r[1]-q*w[1],r[2]-q*w[2]]\n r = r2\n w = w2\n #[x,y]\n return [w[0],w[1]]\n\n\ndef mod_inv(a,m):\n x = extgcd(a,m)[0]\n return (m+x%m)%m\n\n######################################################\np=10**6\n\n\n\n\nfact = [1]\nk = 1\nfor i in range(1,p):\n k = k*i%p\n fact.append(k)\n\n\n\ndef mod_e(n,p):\n res = 0\n while n >= p:\n res += n//p\n n = n//p\n return res\n\n\ndef mod_fact(n,p):\n if n==0:\n return 1\n\n\n res = mod_fact(n//p,p)\n\n if n//p %2 != 0:\n return res*(p-fact[n%p])%p\n return res*fact[n%p]%p\n\n######################################################\n\n\ndef mod_comb(n,k,p):\n if n < 0 or k < 0 or n<k:\n return 0\n e1 = mod_e(n,p)\n e2 = mod_e(k,p)\n e3 = mod_e(n-k,p)\n \n if e1 > e2 + e3:\n return 0\n\n \n a1 = mod_fact(n,p)\n a2 = mod_fact(k,p)\n a3 = mod_fact(n-k,p)\n return a1 * mod_inv(a2*a3%p,p) %p\n\np =10**9+7\n\n\n\nfact = [1]\nk = 1\nfor i in range(1,10**5+1):\n k = k*i%p\n fact.append(k)\n\n#10000C4000 mod 10**9+7\n\nj=mod_comb(in1,in2,p)\nk=mod_comb(in1,in3,p)\nx=(f-1-j-k)\nprint(x)\n', 'a = input().split()\na=[int(i) for i in a]\nn,r=a[0],a[1]\nif n>=10:\n b=r\nelse:\n b=r+1000-100*n\nprint(b)\n'] | ['Runtime Error', 'Accepted'] | ['s363523574', 's141596071'] | [3320.0, 2940.0] | [18.0, 17.0] | [2785, 108] |
p02765 | u549278479 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split()) \nif(N >= 10):\n return R\nelse:\n return 100*(10-N) + R', 'N, R = map(int, input().split()) \nans = 0\nif(N >= 10):\n ans = R\nelse:\n ans = 100*(10-N) + R\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s435893345', 's499627786'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 104] |
p02765 | u549383771 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N = int(input())\nR = int(input())\nif N < 10:\n print(R + 100*(10 - N))\nelse:\n print(R)', 'N,R = map(int,input().split())\nif N < 10:\n print(R + 100*(10 - N))\nelse:\n print(R)'] | ['Runtime Error', 'Accepted'] | ['s410092707', 's664472596'] | [3316.0, 3316.0] | [19.0, 20.0] | [91, 88] |
p02765 | u553070631 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import math\nn,a,b=map(int,input().split())\nc=0\nfor i in range(1,n+1):\n c+=(math.factorial(n)//(math.factorial(n - i) * math.factorial(i)))%(pow(10,9)+7)\n\nc=c-(math.factorial(n)//(math.factorial(n - a) * math.factorial(a)))%(pow(10,9)+7)\nc=c-(math.factorial(n)//(math.factorial(n - b) * math.factorial(b)))%(pow(10,9)+7)\nprint(c)\n#TLE', 'n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-n))'] | ['Runtime Error', 'Accepted'] | ['s087918831', 's467773479'] | [3064.0, 2940.0] | [20.0, 17.0] | [336, 81] |
p02765 | u555356625 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\n\nprint(r) if n>=10 else print(r-100*(10-n))', 'n,r=map(int,input().split())\n\nprint(r) if n>=10 else print(r+100*(10-n))\n'] | ['Wrong Answer', 'Accepted'] | ['s236530508', 's517408154'] | [9092.0, 9116.0] | [24.0, 26.0] | [72, 73] |
p02765 | u556610039 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r= map(int, input().split())\nans = 0\nif n < 10: ans = 100 * (10 - n)\nelse: ans = r\nprint(ans)', 'n, r= map(int, input().split())\nans = 0\nif n < 10: ans = 100 * (10 - n) + r\nelse: ans = r\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s950762736', 's810987064'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 100] |
p02765 | u557762314 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n = int(input())\nx = list(map(int, input().split()))\n\nmin_energy = None\n\nfor p in range(x[-1]):\n energy = 0\n for x_i in x:\n energy += (x_i - p) ** 2\n if min_energy is None:\n min_energy = energy\n else:\n min_energy = min(energy, min_energy)\n\nprint(min_energy)\n\n', 'n = int(input())\nx = list(map(int, input().split()))\n\nmin_energy = None\n\nfor p in range(x[-1]):\n energy = 0\n for x_i in x:\n energy += (x_i - p) ** 2\n if min_energy is None:\n min_energy = energy\n else:\n min_energy = min(energy, min_energy)\n\nprint(min_energy)\n', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s198888529', 's802863876', 's109122102'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [292, 291, 88] |
p02765 | u558146042 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["N , R = tuple(input().split(' '))\nif N >= 10:\n print(R)\nelse:\n print(10 - (R / 100))\n", "N , R = tuple(list(map(int, input().split(' '))))\nif N >= 10:\n print(R)\nelse:\n print(R + 100 * (10 - N))\n"] | ['Runtime Error', 'Accepted'] | ['s710747882', 's646984037'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 111] |
p02765 | u559196406 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-K))', 'N,R=map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Runtime Error', 'Accepted'] | ['s404307100', 's889387530'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p02765 | u571395477 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['def main():\n K = 0\n N, R = [int(_) for _ in input().split()]\n if N >= 10:\n K = R\n else:\n K = R + 100(10 - N) \n print(K)\nmain()', 'def main():\n K = 0\n N, R = [int(_) for _ in input().split()]\n if N >= 10:\n K = R\n else:\n K = R + 100 * (10 - N) \n print(K)\nmain()'] | ['Runtime Error', 'Accepted'] | ['s832586378', 's868563187'] | [2940.0, 2940.0] | [19.0, 18.0] | [155, 158] |
p02765 | u571832343 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = (int(x) for x in input().split())\nif n < 10:\n print(r-100*(10-n))\nelse:\n print(r)', 'n,r = (int(x) for x in input().split())\nif n < 10:\n print(r+100*(10-n))\nelse:\n print(r)\n'] | ['Wrong Answer', 'Accepted'] | ['s006632357', 's286255248'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 90] |
p02765 | u573144253 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int, input().split())\n\nif N < 10:\n print(R)\nelse:\n print(100*(10-K))', 'N,R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print((100*(10-N))+R)'] | ['Runtime Error', 'Accepted'] | ['s323460674', 's108411996'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 89] |
p02765 | u573332356 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['def keta(n,k):\n cnt=0\n while(n!=0):\n \tn//=k\n \tcnt+=1\n \treturn cnt\n \nN,K=map(int,input().split())\nprint(keta(N,K))', 'N, R = map(int, input().split())\n\nif(N >= 10):\n print(R)\nelse:\n K = N\n print(R+100*(10-K))\n'] | ['Runtime Error', 'Accepted'] | ['s250010107', 's556060361'] | [2940.0, 2940.0] | [17.0, 17.0] | [123, 100] |
p02765 | u578462133 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nif N < 10:\n print(R - 100 * (10 - N))\nelse:\n print(R)', 'N, R = map(int, input().split())\n\nif N < 10:\n print(R + 100 * (10 - N))\nelse:\n print(R)'] | ['Wrong Answer', 'Accepted'] | ['s891219326', 's020731399'] | [3316.0, 2940.0] | [21.0, 17.0] | [93, 93] |
p02765 | u579754454 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=int(input())\nans=0\nif n<10:\n ans=r+r*(10-n)\nelse:\n ans=r\nptinr(ans)', 'n,r=map(int,input().split())\n\nans=0\nif n<10:\n ans=r+100*(10-n)\nelse:\n ans=r\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s778540896', 's758484993'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 89] |
p02765 | u580372796 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n < 10:\n r = r - 100 * (10 - n)\nprint(r)', 'n, r = map(int, input().split())\nif n < 10:\n r = r + 100 * (10 - n)\nprint(r)'] | ['Wrong Answer', 'Accepted'] | ['s889035427', 's462280216'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 77] |
p02765 | u583455650 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nprint(R if N >= 10 else 100 * (10 - N))\n', 'N, R = map(int, input().split())\nprint(R + 100 * (10 - N) if N < 10 else R)'] | ['Wrong Answer', 'Accepted'] | ['s112221112', 's479802748'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 75] |
p02765 | u589432040 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nif N < 10:\n print(R - 100*(10-N))\nelse:\n print(R)\n', 'N, R = map(int, input().split())\nif N <= 10:\n print(R - 100*(10-N))\nelse:\n print(R)', 'N, R = map(int, input().split())\nif N < 10:\n print(R + 100*(10-N))\nelse:\n print(R)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s028194433', 's147257875', 's847974802'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [85, 85, 85] |
p02765 | u594803920 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N = int(input())\nR = int(input())\n\nif N > 9:\n print(R)\nelse:\n R += 100*(10-N)\n print(R)', 'N,R = map(int,input().split())\n\nif N > 9:\n print(R)\nelse:\n R += 100*(10-N)\n print(R)\n'] | ['Runtime Error', 'Accepted'] | ['s929129651', 's443160253'] | [2940.0, 2940.0] | [17.0, 18.0] | [90, 88] |
p02765 | u594862874 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = input().split()\n\nif N<10:\n print(R+(100*(10-N)))', 'N, R = input().split()\n\nif N<10:\n print(R+100*(10-N))\nelse:\n print(N)', 'N, R = input().split()\n\nif N<10:\n K = 100*(10-N)\n print(R+K)\nelse:\n print(N)', 'N, R = int(input()).split()\n\nif N<10:\n K = 100*(10-N)\n print(R+K)', 'N, R = map(int, input().split())\n\nans = 100*(10-N)+R\nif N>=10:\n print(R)\nelse:\n print(ans)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s139379380', 's227584568', 's668319956', 's994180812', 's076979519'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0] | [56, 71, 79, 67, 92] |
p02765 | u597455618 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100(10-n))', 'n, r = map(int, input().split())\nif n >= n:\n print(r)\nelse:\n print(r + 100(10-n))', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100*(10-n))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s601676292', 's835318294', 's245549392'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 87, 89] |
p02765 | u598696606 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,K=map(int,input().split())\n\nif N<10:\n print(100*(10−K))\nelse:\n print(K)\n', 'N,K=map(int,input().split())\n \nif N<10:\n print(K+100*(10-N))\nelse:\n print(K)'] | ['Runtime Error', 'Accepted'] | ['s969172502', 's215916222'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 78] |
p02765 | u599547273 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = list(map(int, input().split()))\n\nprint(R if N >= 10 else R - (100 * (10 - N)))', 'N, R = list(map(int, input().split()))\n\nprint(R if N >= 10 else R + (100 * (10 - N)))'] | ['Wrong Answer', 'Accepted'] | ['s700049539', 's495367486'] | [2940.0, 2940.0] | [17.0, 19.0] | [85, 85] |
p02765 | u600261652 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = input().split()\nprint(R if 10>=N else R+100*(10-N))', 'N, R = map(int, input().split())\nprint(R if 10>=N else R + 100*(10-N))', 'N, R = map(int, input().split())\nprint(R if 10>=N else R+1000-N*100)', 'N, R = map(int, input().split())\nprint(R if 10>=N else R+100*(10-N))', 'N, R = map(int, input().split())\nprint(R if 10>=N else "R+1000-N*100")', 'N, R = map(int, input().split())\nprint(R if 10>=N else R-100*(10-N))', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R + 100*(10-N))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s033479068', 's041727213', 's502396265', 's793621699', 's821907715', 's856650741', 's517140554'] | [3060.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 18.0] | [58, 70, 68, 68, 70, 68, 89] |
p02765 | u601575292 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nif N < 10:\n print(R - (100*(10-N)))\nelse:\n print(R)', 'N, R = map(int, input().split())\n\nif N < 10:\n print(R + (100*(10-N)))\nelse:\n print(R)\n'] | ['Wrong Answer', 'Accepted'] | ['s549342532', 's990864420'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 92] |
p02765 | u602740328 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int, input().split())\nprint(R - 100 * (10 - max(10,N)))', 'N,R = map(int, input().split())\nprint(R + 100 * (10 - min(10,N)))'] | ['Wrong Answer', 'Accepted'] | ['s360701712', 's736671817'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 65] |
p02765 | u603324902 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int,input().split())\n\nif n >= 10:\n print(r)\nelse:\n r += 100*(10-n)\n print(r)2', 'n, r = map(int,input().split())\n\nif n >= 10:\n print(r)\nelse:\n r += 100*(10-n)\n print(r)'] | ['Runtime Error', 'Accepted'] | ['s944630840', 's281831333'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 96] |
p02765 | u606878291 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["N, R = map(int, input().split(' '))\n\nif N >= 10:\n print(R)\nelse:\n print(R - 100 * (10 - N))\n", "N, R = map(int, input().split(' '))\n\nif N >= 10:\n print(R)\nelse:\n print(R + 100 * (10 - N))\n"] | ['Wrong Answer', 'Accepted'] | ['s879468383', 's649042758'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 98] |
p02765 | u607729897 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int,input().split())\nprint(R if N >= 10 else R+N*100)\n', 'N,R = map(int,input().split())\nprint(R if N <= 10 else R+N*100)', 'N,R = map(int,input().split())\nprint(R if N >= 10 else R+(10-N)*100)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s325013679', 's390747987', 's593166957'] | [2940.0, 3316.0, 2940.0] | [17.0, 21.0, 17.0] | [64, 63, 69] |
p02765 | u609258687 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int, input().split()) \n\nif N>=10:\n print(R)\nelse:\n print(R - 100 * (10-N))', 'N,R = map(int, input().split()) \nif N>=10:\n print(R)\nelse:\n print(R + 100 * (10-N))'] | ['Wrong Answer', 'Accepted'] | ['s042337633', 's541542176'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 89] |
p02765 | u609814378 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N = 2\nX = [1,4]\n\nans = []\ncount = 0\n\nfor i in range(1,N+1):\n number = 0\n count = 0\n for j in X:\n number = number + ((j-i)**2)\n count = count + 1\n if N == count:\n ans.append(number)\n\nprint(min(ans))', 'N,R = map(int,input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(100*(10-N))', 'N,R = map(int,input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R + 100*(10-N))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s318245646', 's839184282', 's397230258'] | [3060.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [238, 84, 88] |
p02765 | u611239490 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=map(int,input().split())\nprint(R if N>=10 else R+(100*(10-K)))', 'N,R=map(int,input().split())\nprint(R if N>=10 else R+(100*(10-N)))'] | ['Runtime Error', 'Accepted'] | ['s874967067', 's270849613'] | [9056.0, 9060.0] | [23.0, 27.0] | [66, 66] |
p02765 | u612635771 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nprint(R if N>=10 else R-100*(10-N))', 'N, R = map(int, input().split())\nprint(R if N>=10 else R+100*(10-N))'] | ['Wrong Answer', 'Accepted'] | ['s618383082', 's405007496'] | [9076.0, 8984.0] | [28.0, 24.0] | [68, 68] |
p02765 | u613144488 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["i = input().split()\n\nN = int(i[0])\nK = int(i[1])\n\nresult = ''\ntmp = N\nwhile tmp >= K:\n idx = str(tmp % K)\n result = idx + result\n tmp = int(tmp / K)\nidx = str(tmp % K)\nresult = idx + result\n\nprint(result)", 'i = input().split()\n\nN = int(i[0])\nR = int(i[1])\n\nIR = 0\n\nif N >= 10 :\n IR = R\nelse :\n IR = R + 100 * (10 - N)\n\nprint(IR)\n'] | ['Runtime Error', 'Accepted'] | ['s859320174', 's732484477'] | [3064.0, 2940.0] | [17.0, 17.0] | [213, 128] |
p02765 | u615323709 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['int(input(a,b))\nif a >= 10:\n x = b\nelse:\n x = b+100*(10-a)\nprint(x)', 'a,b=map(int, input().split())\nif a >= 10:\n x = b\nelse:\n x = b+100*(10-a)\nprint(x)'] | ['Runtime Error', 'Accepted'] | ['s688913719', 's595970227'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 83] |
p02765 | u616382321 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R-100*(10-N))\n\n\n', 'N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))\n'] | ['Wrong Answer', 'Accepted'] | ['s277454234', 's417128994'] | [9056.0, 8976.0] | [29.0, 28.0] | [91, 89] |
p02765 | u617659131 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - r))', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))'] | ['Wrong Answer', 'Accepted'] | ['s283532622', 's046518063'] | [2940.0, 2940.0] | [17.0, 18.0] | [89, 89] |
p02765 | u624075921 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = map(int,input().split())\nif n >= 10:\n print(r)\nelse:\n ans = r+ (100*(10-k))\n print(ans)', 'n,r = map(int,input().split())\nif n == 0:\n print(0)\nelif n >= 10:\n print(r)\nelse:\n ans = r+ (100*(10-k))\n print(ans)\n', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r + ((10 - n) * 100))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s401463163', 's629299896', 's217219102'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [96, 121, 97] |
p02765 | u625864724 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int,input()split())\nif (n >= 10):\n print(r)\nelse:\n sa = 100*(10 - n)\n print(r + sa)', 'n, r = map(int,input().split())\nif (n >= 10):\n print(r)\nelse:\n sa = 100*(10 - n)\n print(r + sa)\n'] | ['Runtime Error', 'Accepted'] | ['s215211856', 's892763258'] | [8940.0, 9092.0] | [26.0, 27.0] | [97, 99] |
p02765 | u626228246 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int,input().split())\nprint(R if N >= 10 else R+100*(10-K))', 'N,R = map(int,input().split())\nprint(R if N >= 10 else R+{100*(10-K)})\n', 'N,R = map(int,input().split())\nprint(R if N >= 10 else R+{100*(10-N)})\n', 'N,R = map(int,input().split())\n\nprint(R if N >= 10 else R + 100*(10-N)) '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s496949277', 's650311972', 's900935447', 's723485040'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [68, 71, 71, 72] |
p02765 | u626881915 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import math\nI() = input()\nII() = int(input())\nMII() = map(int, input().split())\nLMII() = list(map(int, input().split()))\n\nn, r = MII()\nprint(r+100*max((10-k), 0))', 'import math\ndef I():\n return input()\ndef II():\n return int(input())\ndef MII():\n return map(int, input().split())\ndef LMII():\n return list(map(int, input().split()))\n\nn, r = MII()\nprint(r+100*max((10-n), 0))\n'] | ['Runtime Error', 'Accepted'] | ['s804280875', 's756556086'] | [3056.0, 2940.0] | [17.0, 17.0] | [162, 211] |
p02765 | u630211216 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=map(int,input().split())\nif N>=10:\n print(R)\nelse:\n print(R+100*(10-R))\n', 'N,R=map(int,input().split())\nif N>=10:\n print(R)\nelse:\n print(R+100*(10-N))\n'] | ['Wrong Answer', 'Accepted'] | ['s284493084', 's046706508'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p02765 | u632997108 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split(" "))\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10*n))\n', 'n,r=map(int,input().split(" "))\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10*n))\n', 'n,r=map(int,input().split(" "))\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s062209894', 's829887604', 's554228995'] | [9000.0, 9120.0, 9032.0] | [24.0, 29.0, 23.0] | [87, 87, 87] |
p02765 | u634046173 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nprint(n + 100 * (10-r)) \n', 'n,r = map(int, input.split())\n \nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10-n)) ', 'import math\nN = int(input())\nX = list(map(int,input().split()))\nmed = int(sum(X)/N + 0.5)\nc = 0\nfor i in range(N):\n c += (X[i] - med)**2\nprint(c)\n', 'n,k = map(int, input().split())\n \nfor i in range(1,10):\n if n <= k ** i - 1:\n print(i)\n break', 'n,r = map(int, input.split())\n\nif n >= 10:\n print(r)\nelse:\n print(n + 100 * (10-r)) \n', 'n,k = map(int, input().split())\n \nfor i in range(1,100):\n if n <= k ** i - 1:\n print(i)\n break', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse\n print(n + 100 * (10-r)) ', 'n,k = map(int, input().split())\n \nfor i in range(1,10):\n if n < k ** i:\n print(i - 1)\n break', 'n,r = map(int, input().split())\n \nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10-n))'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s228126903', 's418153784', 's552583254', 's686734766', 's711784009', 's890234711', 's896575543', 's909045878', 's959898337'] | [2940.0, 2940.0, 9088.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 24.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [58, 87, 147, 100, 87, 101, 87, 99, 88] |
p02765 | u637138924 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['def nCrModpDP(n, r, p): \n C = [0] * (n + 1); \n C[0] = 1; \n for i in range(1, (n + 1)): \n j = min(i, r); \n while(j > 0): \n C[j] = (C[j] + C[j - 1]) % p; \n j -= 1; \n return C[r]; \ndef nCrModpLucas(n, r, p): \n if (r == 0): \n return 1; \n ni = int(n % p); \n ri = int(r % p); \n return (nCrModpLucas(int(n / p), int(r / p), p) * \n nCrModpDP(ni, ri, p)) % p; \np = int(10**9+7)\nn,a,b= map(int,input().split())\nif a>n/2:\n a=n-a\nif b>n/2:\n b=n-b\nnca = nCrModpLucas(n,a,p)\nncb = nCrModpLucas(n,b,p)\nprint(int(2**n - 1 - nca - ncb)%(10**9+7))', 'n,r = map(int,input().split())\nif n < 10:\n print(int(r + 100*(10-n)))\nelse:\n print(r)'] | ['Runtime Error', 'Accepted'] | ['s266328875', 's398393123'] | [3064.0, 2940.0] | [18.0, 17.0] | [634, 91] |
p02765 | u637488034 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=(int,input().split())\nprint(r if n>=10 else r+(100*(10-n)))', 'n,r=map(int,input().split())\nif(n>=10):\n print(r)\nelse:\n print(r+(100*(10-n)))'] | ['Runtime Error', 'Accepted'] | ['s815622942', 's544954041'] | [2940.0, 2940.0] | [17.0, 17.0] | [63, 80] |
p02765 | u638282348 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['from math import log, ceil\nprint(ceil(int(log(*map(int, input().split())) - 0.001) + 0.001))', 'N, R = map(int, input().split())\nprint(R + max(0, 100 * (10 - N)))\n'] | ['Runtime Error', 'Accepted'] | ['s302959521', 's683041556'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 67] |
p02765 | u644546699 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['def resolve():\n N = int(input())\n x_list = list(map(int, input().split()))\n\n x_min = min(x_list)\n x_max = max(x_list)\n hp_min = None\n\n for i in range(x_min, x_max+1):\n tmp_hp = 0\n for j in x_list:\n tmp_hp += (j - i)**2\n if (hp_min is None) or (tmp_hp < hp_min):\n hp_min = tmp_hp\n\n print(hp_min)\n\nif __name__ == "__main__":\n resolve()', 'def resolve():\n N, R = map(int, input().split()) \n\n if N >= 10:\n print(R)\n else:\n R = R - 100 * (10 - K)\n print(R)\n \nif __name__ == "__main__":\n resolve()', 'def resolve():\n N, R = map(int, input().split()) \n\n if N < 10:\n print(R)\n else:\n R = R + 100 * (10 - N)\n print(R)\n \nif __name__ == "__main__":\n resolve()', 'def resolve():\n N, R = map(int, input().split()) \n\n if N < 10:\n print(R)\n else:\n R = R + 100 * (10 - N)\n print(R)\n \nif __name__ == "__main__":\n resolve()', 'def resolve():\n N, R = map(int, input().split()) \n\n if N < 10:\n print(R)\n else:\n R = R - 100 * (10 - N)\n print(R)\n \nif __name__ == "__main__":\n resolve()', 'def resolve():\n N, R = map(int, input().split()) \n\n if N >= 10:\n print(R)\n else:\n R = R - 100 * (10 - N)\n print(R)\n \nif __name__ == "__main__":\n resolve()', 'def resolve():\n N, R = map(int, input().split()) \n\n if N >= 10:\n print(R)\n else:\n R = R + 100 * (10 - N)\n print(R)\n \nif __name__ == "__main__":\n resolve()'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s431510121', 's491409698', 's600981866', 's666443774', 's715635846', 's730540141', 's978397800'] | [3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [400, 188, 187, 187, 187, 188, 188] |
p02765 | u646818123 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['def solve():\n n, r = list(map(int, input().split()))\n if n > 10:\n print(r - 100 * (10 - n))\n return\n \n print(r)\n return\n\nif __name__ == "__main__":\n solve()', 'def solve():\n n, r = list(map(int, input().split()))\n if n > 10:\n print(r + 100 * (10 - n))\n return\n \n print(r)\n return\n \nif __name__ == "__main__":\n solve()', 'def solve():\n n, r = list(map(int, input().split()))\n if n < 10:\n print(r + 100 * (10 - n))\n return\n \n print(r)\n return\n \nif __name__ == "__main__":\n solve()'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s520414389', 's527198530', 's332240562'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [168, 169, 169] |
p02765 | u646892595 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["#AtCodr ABC156-A\n\nN, R = input().rstrip().split(' ')\nN = int(N)\nR = int(R)\n\nif N <= 9:\n rate = R+22 3051(10-N)*100\n print(rate)\nelse:\n print(R)", "#AtCodr ABC156-A\n\nN, R = input().rstrip().split(' ')\nN = int(N)\nR = int(R)\n\nif N <= 9:\n rate = R+(10-N)*100\n print(rate)\nelse:\n print(R)"] | ['Runtime Error', 'Accepted'] | ['s413508009', 's311391929'] | [2940.0, 2940.0] | [18.0, 17.0] | [152, 145] |
p02765 | u651822741 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = input()\n\nN = int(N)\nR = int(R)\n\nif N >= 10:\n print(R)\nelse:\n print(100*(10-N))', 'N,R = input().split()\n\nN = int(N)\nR = int(R)\n\nif N >= 10:\n print(R)\nelse:\n print(100*(10-N))', 'N,R = input().split()\n\nN = int(N)\nR = int(R)\n\nif N >= 10:\n print(R)\nelse:\n print(R + 100*(10-N))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s198506105', 's379020598', 's165501567'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [90, 98, 102] |
p02765 | u652656291 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n = int(input())\nr = int(input())\n\nif n > 10:\n print(r)\nelif n = 10:\n print(r)\nelse:\n print(r+100*(10-n))', 'n = int(input())\nr = int(input())\n\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))', 'n,r = map(int,input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s039759674', 's829166494', 's181821208'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [108, 85, 83] |
p02765 | u653175574 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nif N < 10:\n print(R - 100 * (10 - N))\nelse:\n print(R)', 'N, R = map(int, input().split())\nif N < 10:\n print(R + 100 * (10 - N))\nelse:\n print(R)'] | ['Wrong Answer', 'Accepted'] | ['s849549498', 's007468729'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 88] |
p02765 | u653837719 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - 2n))\n', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))\n'] | ['Runtime Error', 'Accepted'] | ['s245595807', 's707755957'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 95] |
p02765 | u657357805 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = [int(x) for x in input().split()]\n\nif n < 10:\n print(r - 100*(10-n))\nelse:\n print(r)', 'n,r = [int(x) for x in input().split()]\n\nif n < 10:\n print(r + 100*(10-n))\nelse:\n print(r)'] | ['Wrong Answer', 'Accepted'] | ['s219642525', 's627749478'] | [2940.0, 2940.0] | [17.0, 18.0] | [96, 96] |
p02765 | u657994700 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["# print('input >>')\nN, R = map(int,(input().split()))\n\nif N < 10:\n ans = R - 100 * (10-N)\nelse:\n ans = R\n\n# print('-----output-----')\nprint(ans)", "# print('input >>')\nN, R = map(int,(input().split()))\n\nif N <= 10:\n ans = R + 100 * (10-N)\nelse:\n ans = R\n\n# print('-----output-----')\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s333959422', 's275865110'] | [2940.0, 2940.0] | [17.0, 17.0] | [150, 151] |
p02765 | u659302753 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["from sys import stdin\n\n\ndef get_result(data):\n print(data)\n N, R = data\n return int(N + 100 * (10 - R))\n\nif __name__ == '__main__':\n data = list(map(int, stdin.readline().split(' ')))\n result = get_result(data)\n print(result)\n", "from sys import stdin\n\n\ndef get_result(data):\n N, R = data\n return R if N >= 10 else R + 100 * (10 - N)\n\nif __name__ == '__main__':\n data = list(map(int, stdin.readline().split(' ')))\n result = get_result(data)\n print(result)\n"] | ['Wrong Answer', 'Accepted'] | ['s711427681', 's440474649'] | [2940.0, 2940.0] | [17.0, 17.0] | [244, 241] |
p02765 | u665452497 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-k))', 'n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-k))', 'n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-n))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s457656952', 's884219153', 's928313666'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [77, 77, 77] |
p02765 | u666964944 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nprint(r if n >= 10 else r-(100*(10-n)))', 'n, r = map(int, input().split())\nprint(r if n >= 10 else r+(100*(10-n)))'] | ['Wrong Answer', 'Accepted'] | ['s020992073', 's350697734'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 72] |
p02765 | u667024514 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,k = map(int,input().split())\nif n >= 10:\n print(k)\nelse:\n print(k-100 * (10-n))', 'n,k = map(int,input().split())\nif n >= 10:\n print(k)\nelse:\n print(k+100 * (10-n))\n'] | ['Wrong Answer', 'Accepted'] | ['s087733426', 's381316262'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 84] |
p02765 | u667084803 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R - 100 * (10 - N)) ', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R - 100 * (10−N)) ', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R + 100 * (10 - N)) '] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s285057430', 's939611126', 's792494790'] | [2940.0, 3188.0, 2940.0] | [17.0, 18.0, 19.0] | [90, 90, 90] |
p02765 | u667694979 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=map(int,input().split())\nif N>=10:\n print(R)\nelse:\n print(100*(10-N))', 'N,R=map(int,input().split())\n\nif N>=10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Wrong Answer', 'Accepted'] | ['s347986281', 's356504839'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 78] |
p02765 | u668705838 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = int(input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))'] | ['Runtime Error', 'Accepted'] | ['s975788422', 's492477888'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 89] |
p02765 | u669729085 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nif N > 10:\n print(R)\nelse:\n print(R-100*(10-K))', ', R = map(int, input().split())\n\nif N > 10:\n print(R)\nelse:\n print(R+100*(10-N))', 'n, a, b = map(int, input().split())\nMOD = 10**9+7\n\ndef comb(n, r):\n x = 1; y = 1\n for i in range(r):\n x *= n-i\n y *= r-i\n return x*pow(y, MOD-2, MOD)\n\nprint(pow(2, n, MOD)-1 -comb(n, a) -comb(n, b))', 'N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s034497147', 's267977347', 's537268045', 's709196559'] | [2940.0, 2940.0, 3060.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [87, 86, 221, 88] |
p02765 | u669742612 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=map(int,input().split())\nif N>=10:\n print(R)\nelse:\n print(R-100*(10-N))', 'N,R=map(int,input().split())\nif N>=10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Wrong Answer', 'Accepted'] | ['s586597659', 's497920676'] | [9080.0, 9076.0] | [28.0, 27.0] | [81, 81] |
p02765 | u669770320 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['\nn,m = map(int.input().split())\nif n < 10:\n print(m+(100*(10-n)))\nelse:\n print(m)', 'n,m = map(int,input().split())\nif n < 10:\n print(m+(100*(10-n)))\nelse:\n print(m)'] | ['Runtime Error', 'Accepted'] | ['s254271736', 's772285691'] | [2940.0, 3064.0] | [17.0, 17.0] | [86, 85] |
p02765 | u670180528 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\nprint(r-100*max(0,10-n))', 'n,r=map(int,input().split())\nprint(r+100*max(0,10-n))'] | ['Wrong Answer', 'Accepted'] | ['s318216423', 's236192900'] | [3316.0, 2940.0] | [22.0, 17.0] | [53, 53] |
p02765 | u670606123 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["N, R = map(int, input().split(' '))\nif N < 9:\n L = R+100*(10-N)\n print('{}, {}'.format(N, L))\n\nelse:\n print('{}, {}'.format(N, R))\n", "N, K = map(int, input().split(' '))\n\nl = []\nwhile N >= K:\n a = N % K\n N = N // K\n l.append(a)\n\n\nprint(len(l) + 1)", "N, R = map(int, input().split(' '))\nif N < 9:\n L = R+100*(10-N)\n print('{}'format(L))\n\nelse:\n print('{}'.format(R))\n", "N, R = map(int, input().split(' '))\nif N < 10:\n L = R+100*(10-N)\n print('{}'.format(L))\n\nelse:\n print('{}'.format(R))\n"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s053402070', 's565520314', 's900396537', 's138716121'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [141, 142, 126, 128] |
p02765 | u671446913 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['#!/usr/bin/env python3\nimport collections\nimport itertools as it\nimport math\n#import numpy as np\n \n# = input()\n# = int(input())\n# = map(int, input().split())\n# = list(map(int, input().split()))\n\n#\n# c = collections.Counter()\n', '#!/usr/bin/env python3\nimport collections\nimport itertools as it\nimport math\nimport numpy as np\n\n# A = input()\n# A = int(input())\n# A = map(int, input().split())\n# A = list(map(int, input().split()))\n\n#\n# c = collections.Counter()\n\nN, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R + 100*(10-N))'] | ['Wrong Answer', 'Accepted'] | ['s878141175', 's130471784'] | [3316.0, 12388.0] | [20.0, 149.0] | [266, 360] |
p02765 | u671889550 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\n\nif n >= 10 :\n print(r)\nelse:\n print(r - 100 * (10 - n))\n', 'n, r = map(int, input().split())\n\nif n >= 10 :\n pint(r)\nelse:\n print(r - 100 * (10 - n))', 'n, r = map(int, input().split())\n\nif n >= 10 :\n print(r)\nelse:\n print(r + 100 * (10 - n))\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s123093282', 's889888708', 's148047232'] | [8972.0, 9000.0, 8924.0] | [29.0, 25.0, 24.0] | [92, 90, 92] |
p02765 | u672370694 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['k = list(map(int, input().split()))\nif k[0] >= 10:\n print(k[1])\nelse:\n print(100*(10-k[0]))', 'k = list(map(int, input().split()))\nif k[0] >= 10:\n print(k[1])\nelse:\n print(100*(10-k[0]) + k[1])'] | ['Wrong Answer', 'Accepted'] | ['s685023708', 's282768357'] | [2940.0, 2940.0] | [18.0, 17.0] | [93, 100] |
p02765 | u674347990 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["attend, rate = input().split(' ')\n \nif int(attend) >= 10:\n print(rate)\nelse:\n print(int(rate) - 100 * (10 - int(attend)))", 'attend, rate = input()\n\nif int(attend) >= 10:\n print(rate)\nelse:\n print(int(rate) - 100 * (10 - int(attend)))\n', "attend, rate = input().split(' ')\n \nif int(attend) >= 10:\n print(rate)\nelse:\n print(int(rate) + 100 * (10 - int(attend)))\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s113918915', 's468262435', 's943278687'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [123, 112, 124] |
p02765 | u675155417 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['x,y = map(int,input(),split())\nprint(y+100*(10-x))', 'import math\nx,y = map(int,input().split())\nprint(math.ceil(x/y))', 'x,y = map(int,input().split())\nif x => 10:\n\tprint(y) \nelse:\n\tprint(y+(100*(10-x)))', 'x,y = map(int,input().split())\nif x >= 10:\n\tprint(y) \nelse:\n\tprint(y+(100*(10-x)))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s052441220', 's158701987', 's590293580', 's072119812'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [50, 64, 83, 83] |
p02765 | u678167152 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,a,b = [int(i) for i in input().split()]\nmod = 10**9+7\n\ndef mpow(a,n):\n if n == 1:\n return a\n x = mpow(a,n//2)\n ans = x*x%mod\n if n%2==1:\n ans *= a\n return ans\n\ndef comb(n,a,b):\n if a < b:\n s, l = a, b\n else:\n s, l = b, a\n rs = 1\n for i in range(s):\n rs = rs*(n-i)%mod\n rl = rs\n for i in range(s,l):\n rl = rl*(n-i)%mod\n for i in range(1,s+1):\n rs = rs*mpow(i,mod-2)%mod\n rl = rl\n for i in range(s+1,l+1):\n rl = rl*mpow(i,mod-2)%mod\n if a < b:\n nCa, nCb = rs, rl\n else:\n nCa, nCb = rl, rs\n return nCa, nCb\nnCa,nCb = comb(n,a,b)\nprint((mpow(2,n)-1-nCa-nCb)%mod)\n# print(nCa,nCb)', 'inp = [int(i) for i in input().split()]\nN = inp[0]\nR = inp[1]\nif N >= 10:\n\tprint(R)\nelse:\n \tprint(R+100*(10-N))'] | ['Runtime Error', 'Accepted'] | ['s124333036', 's635572760'] | [3064.0, 2940.0] | [17.0, 17.0] | [624, 112] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.