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
u678505520
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']
['Wrong Answer', 'Accepted']
['s666289602', 's616664010']
[9060.0, 9048.0]
[23.0, 26.0]
[77, 78]
p02765
u683956577
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\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip() # ignore trailing spaces\n\nn, r = na()\n\nif n >= 10:\n print(r)\nelse:\n print(100*(10-n))', 'import sys\n\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip() # ignore trailing spaces\n\nn, r= na()\n\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))']
['Wrong Answer', 'Accepted']
['s799645659', 's918718685']
[9148.0, 9012.0]
[29.0, 27.0]
[235, 236]
p02765
u685684561
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=map(int,input().split())\np=1000000007\ndef prmd(n,i):\n P=1\n for j in range(i):\n P=(P*(n-j))%p\n return (P)\ndef bin(N):\n t=0\n while N>0:\n N=N//2\n t=t+1\n return (t)\ndef blis(m):\n lists=[]\n for i in range(bin(m)):\n lists.append(m%2)\n m=m//2\n if m==0:\n break\n return (lists)\ndef modu(a,m,q):\n t=a%q\n lista=[]\n for i in range(bin(m)):\n lista.append(t)\n t=(t**2)%q\n listb=[]\n for j in range(bin(m)):\n listb.append(lista[j]*blis(m)[j])\n s=1\n for k in range(bin(m)):\n if listb[k]>0:\n s=(s*listb[k])%q\n return (s)\ndef comd(A,B):\n B=min(B,A-B)\n X=prmd(A,B)\n Y=modu(prmd(B,B),p-2,p)\n return ((X*Y)%p)\nif n-2<a:\n print (comd(2*n-1,n-1))\nelse:\n listm=[]\n v=1\n for i in range(a+1):\n listm.append(v)\n v=(v*(n-i)*modu(i+1,p-2,p))%p\n w=0\n k=modu(n,p-2,p)\n for j in range(a+1):\n w=(w+listm[j]**2*(n-j)*k)%p\n print (w)', 'n,a=map(int,input().split())\np=1000000007\ndef prmd(n,i):\n P=1\n for j in range(i):\n P=(P*(n-j))%p\n return (P)\ndef bin(N):\n t=0\n while N>0:\n N=N//2\n t=t+1\n return (t)\ndef blis(m):\n lists=[]\n for i in range(bin(m)):\n lists.append(m%2)\n m=m//2\n if m==0:\n break\n return (lists)\ndef modu(a,m,q):\n t=a%q\n lista=[]\n for i in range(bin(m)):\n lista.append(t)\n t=(t**2)%q\n listb=[]\n for j in range(bin(m)):\n listb.append(lista[j]*blis(m)[j])\n s=1\n for k in range(bin(m)):\n if listb[k]>0:\n s=(s*listb[k])%q\n return (s)\nX=prmd(2*n-1,n-1)\nY=modu(prmd(n-1,n-1),p-2,p)\nif n-1<a:\n print ((X*Y)%p)\nelse:\n u=0\n for i in range(a+1):\n u=u+prmd(n,i)*prmd(n-1,n-1-i)*modu(prmd(i,i),p-2,p)*modu(prmd(n-1-i,n-1-i),p-2,p)\n u=u%p\n print (u)', 'N,R=map(int,input().split())\n\nprint (max(0,100*(10-N))+R)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s398838930', 's957803077', 's927031160']
[3188.0, 3064.0, 2940.0]
[18.0, 19.0, 17.0]
[1274, 1160, 57]
p02765
u686230543
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())\nk = max(n, 10)\nprint(r + 100 * (10 - k))', 'n, r = map(int, input().split())\nprint(r + 100 * (10 - min(n, 10)))']
['Wrong Answer', 'Accepted']
['s142246907', 's224059789']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 67]
p02765
u686713618
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']
['Wrong Answer', 'Accepted']
['s394969785', 's559117032']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 83]
p02765
u689835643
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 = gets.split(" ").map(&:to_i)\ndef rating_try(x, y)\n if x < 10\n y+(100*(10-x))\n else\n y\n end\nend\nputs rating_try(x, y)\n', 'x, y = gets.split.map(&:to_i)\ndef rating_try(x, y)\n if x < 10\n y+(100*(10-x))\n else\n y\n end\nend\nputs rating_try(x, y)\n', 'x, y = map(int, input().split())\nif x >= 10:\n print(y)\nelse:\n print(y+100*(10-x))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s280731627', 's503642742', 's451371100']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[134, 129, 88]
p02765
u690536347
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-K) if N<10 else R)', 'N, R = map(int, input().split())\nif N<10:\n print(R+100*(10-K))\nelse:\n print(R)', 'N, R = map(int, input().split())\nprint(R+100*(10-N) if N<10 else R)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s014918586', 's272852660', 's424334823']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[67, 80, 67]
p02765
u691018832
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\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n\nn, r = map(int, readline().split())\nif 10 < r:\n print(r)\nelse:\n print(100 * (10 - n) + r)\n', 'import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n\nn, r = map(int, readline().split())\nif 10 < n:\n print(r)\nelse:\n print(100 * (10 - n) + r)\n']
['Wrong Answer', 'Accepted']
['s281010646', 's924462516']
[2940.0, 2940.0]
[17.0, 18.0]
[244, 244]
p02765
u694402282
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.
['#ABC156-A #Beginner \nn,r = map(int, input().split())\nif n >= 10:\n k = 100*(10-n)\n s = k + r\nelse:\n s = r\nprint(s)', '#ABC156-A #Beginner \nn,r = map(int, input().split())\nif n > 10:\n k = 100*(10-n)\n s = k + r\nelse:\n s = r\nprint(s)', 'n,r = map(int, input().split())\nif n < 10:\n k = 100*(10-n)\n s = r + k\nelse:\n s = r\nprint(s)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s029976016', 's520679152', 's785802010']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[203, 202, 100]
p02765
u695811449
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 R-=100*(10-N)\n print(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']
['s015582932', 's938732898']
[3316.0, 2940.0]
[21.0, 17.0]
[89, 82]
p02765
u696684809
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*(n-10))\nelse:\n print(r)\n']
['Wrong Answer', 'Accepted']
['s744586782', 's528708450']
[9148.0, 9024.0]
[28.0, 26.0]
[81, 82]
p02765
u704102636
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())) \nif N >= 10:\n print("{}".format(100 - (10 - N)))\nelse:\n print(R)', 'N, R = list(map(int,input().split()))\nif N < 10:\n print("{}".format(R + (100 * (10 - N))))\nelse:\n print(R)']
['Wrong Answer', 'Accepted']
['s657582973', 's485308762']
[2940.0, 2940.0]
[17.0, 17.0]
[108, 112]
p02765
u704563784
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)\n\nelse:\n in_r = 100 * (10-n)\n print(in_r)\n\n', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\n\nelse:\n in_r = r + 100*(10-n)\n print(in_r)\n']
['Wrong Answer', 'Accepted']
['s487944446', 's909527619']
[2940.0, 2940.0]
[17.0, 18.0]
[107, 108]
p02765
u705007443
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 numpy as np\nn=int(input())\nx=np.fromstring(input(),int,sep=' ')\nprint(x)\np=0\nhoge=np.inf\nfor i in range(1,np.max(x)+1):\n sux=sum((x-i)**2)\n if sux<hoge:\n p=i\n hoge=sux\nprint(hoge)", "import numpy as np\nn=int(input())\nx=np.fromstring(input(),int,sep=' ')\np=0\nhoge=np.inf\nfor i in range(1,np.max(x)+1):\n sux=sum((x-i)**2)\n if sux<hoge:\n p=i\n hoge=sux\nprint(hoge)", 'n,r=map(int,input().split())\nrate=0\nif n<10:\n print(r+100*(10-n))\nelse:\n print(r)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s282156413', 's527958409', 's736464017']
[12488.0, 14296.0, 2940.0]
[147.0, 153.0, 17.0]
[206, 197, 87]
p02765
u705252278
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()\nN,R = int(N),int(R)\nL = R\nif N < 10:\n L = R - 100*(10-N)\nelse:\n L = R\n\nprint(L)\n', 'N,R = input().split()\nN,R = int(N),int(R)\nL = R\nif N < 10:\n L=100*(10-N)\nelse:\n L = R\n\nprint(L)\n', 'N,R = input().split()\nN,R = int(N),int(R)\nL = R\nif N < 10:\n L=R + 100*(10-N)\nelse:\n L = R\n\nprint(L)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s218926235', 's301052945', 's270294293']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[108, 102, 106]
p02765
u705418271
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())\nans=0\nwhile n>k:\n n/=n\n n=int(n)\n ans+=1\n\nprint(ans+1)', 'n,k=map(int,input().split())\nans=0\nwhile n>k:\n n//=k\n ans+=1\n\nprint(ans+1)', 'n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-n))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s278196148', 's717582415', 's622425004']
[9100.0, 9076.0, 9132.0]
[2205.0, 27.0, 30.0]
[86, 76, 77]
p02765
u706908631
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']
['Wrong Answer', 'Accepted']
['s870765835', 's001978606']
[2940.0, 2940.0]
[17.0, 18.0]
[90, 91]
p02765
u707659359
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 > 9:\n print(R)\nelse:\n print(R - 100 * (10 - N))\n", 'N, R = [int(x) for x in input()]\n\nif N > 9:\n print(R)\nelse:\n print(R - 100 * (10 - N))\n', 'N, R = [int(x) for x in input()]\n\nif N > 9:\n print(R)\nelse:\n print(R - 100 * (10 - K))', "N, R = [int(x) for x in input().split(' ')]\n\nif N > 9:\n print(R)\nelse:\n print(R - 100 * (10 - K))\n", "N, R = [int(x) for x in input().split(' ')]\n\nif N > 9:\n print(R)\nelse:\n print(R + 100 * (10 - N))\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s086153939', 's306339783', 's699373271', 's892481699', 's622346493']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[100, 89, 88, 100, 100]
p02765
u708890186
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']
['s066482180', 's799127289']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 80]
p02765
u718411265
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(100*(10-N))\nelse:\n print(R)', 'N,R=map(int,input().split())\nif N<10:\n print(N+(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', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s242951367', 's406241516', 's683611860', 's008379131']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[78, 74, 78, 78]
p02765
u718559100
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)\nelse:\n print(R + 100*(10-N))', 'n = input().split()\nif int(n[0]) >= 10:\n print(n[1])\nelse:\n print(int(n[1]) + 100*(10-int(n[0])))']
['Runtime Error', 'Accepted']
['s076577976', 's933837625']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 99]
p02765
u719193574
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']
['s147061982', 's155938466']
[2940.0, 2940.0]
[17.0, 18.0]
[82, 83]
p02765
u720124072
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']
['s511237843', 's137562734']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 83]
p02765
u723792785
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 naibu=r\nelse:\n naibu=r-100*(10-n)\nprint(naibu)', 'n,r=map(int,input().split())\nif n>=10:\n naibu=r\nelse:\n naibu=r+100*(10-n)\nprint(naibu)']
['Wrong Answer', 'Accepted']
['s129166674', 's488035311']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 88]
p02765
u725133562
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, nput().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))\n']
['Runtime Error', 'Accepted']
['s796733509', 's281871645']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 67]
p02765
u726154863
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-1000+100*n)', 'n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+1000-100*n)']
['Wrong Answer', 'Accepted']
['s607719010', 's226981493']
[2940.0, 2940.0]
[17.0, 18.0]
[81, 81]
p02765
u731362892
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())\nrate=r if n>=10 else 100*(10-r)\nprint(r)', 'n,r = map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+100*(100-n))', 'n,r=map(int,input().split())\nrate= r if n>=10 else r+100*(10-n)\nprint(rate)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s659230267', 's844538773', 's077394674']
[9048.0, 2940.0, 9104.0]
[27.0, 17.0, 27.0]
[69, 80, 75]
p02765
u732061897
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 print(R)\nelse:\n print(R-10*(10-N))', 'N,R= map(int,input().split())\nif N > 9:\n print(R)\nelse:\n print(R-100*(10-N))', 'N,R= map(int,input().split())\nif N > 9:\n print(R)\nelse:\n print(R+100*(10-N))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s020891757', 's661446684', 's676828733']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[81, 82, 82]
p02765
u732870425
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 ans = R\nelse:\n ans = R - 100 * (10 - K)\n\nprint(ans)', 'N, R = map(int, input().split())\n\nif N >= 10:\n ans = R\nelse:\n ans = R - 100 * (10 - N)\n\nprint(ans)', 'N, R = map(int, input().split())\n\nif N >= 10:\n ans = R\nelse:\n ans = R + 100 * (10 - N)\n\nprint(ans)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s759038551', 's961605912', 's043573407']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[104, 104, 104]
p02765
u733132703
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(N)\n\nelse:\n print(R-100*(10-N))', 'N,R = map(int,input().split())\n\nif N >= 10:\n print(R)\n\nelse:\n print(R-100*(10-N))', 'N,R = map(int,input().split())\n\nif N >= 10:\n print(R)\n\nelse:\n print(R+100*(10-N))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s097521870', 's239914862', 's952229731']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[83, 83, 83]
p02765
u735975757
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)\n', 'n,r = map(int,input().split())\n\nif n >= 10:\n\tprint(r)\nelse:\n\tr -= 100*(10-n)\n print(r)', 'n,r = map(int,input().split())\n\nif n >= 10:\n print(r)\nelse:\n r += 100*(10-n)\n print(r)\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s581983916', 's733578391', 's358675157']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[90, 89, 90]
p02765
u736189571
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 return k\nelse:\n return n + 100 * (10-k)', 'n, k = map(int, input().split())\nif n >= 10:\n print(k)\nelse:\n print(n + 100 * (10-k))', 'n, k = map(int, input().split())\nif n >= 10:\n print(k)\nelse:\n print(k + 100 * (10-n))\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s318536954', 's413750711', 's608279450']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[87, 87, 88]
p02765
u739843002
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.
['tmp = input().split(" ")\n\nN = int(tmp[0])\nR = int(tmp[1])\n\nif N >= 10:\n print(R)\nelse:\n ans = R + 100 * (100 - N)\n print(int(ans))', 'tmp = input().split(" ")\n \nN = int(tmp[0])\nR = int(tmp[1])\n \nif N >= 10:\n print(R)\nelse:\n ans = R + 100 * (10 - N)\n print(int(ans))']
['Wrong Answer', 'Accepted']
['s345811068', 's386045641']
[9008.0, 9148.0]
[28.0, 24.0]
[133, 134]
p02765
u740909619
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())\ndef Base_10_to_n(X, A):\n if (int(X/A)):\n return Base_10_to_n(int(X/A), A)+str(X%A)\n return str(X%A)\nans = Base_10_to_n(n,k)\nprint(len(ans))', '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', 'Wrong Answer', 'Accepted']
['s475482200', 's932054420', 's540218723']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[183, 93, 93]
p02765
u744695362
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']
['s326863495', 's213383755']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 88]
p02765
u744920373
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 mpow(x: int, k: int, MOD=1000000007) -> int:\n \n res = 1\n y = x\n while (k):\n if(k % 2 == 1):\n res = (res * y) % MOD\n y = (y ** 2) % MOD\n k = k // 2\n return res\n\nmod = 10**9+7 \n\nN, a, b = map(int,input().split())\n\nprint(mpow(2,10**9))\n\nnum = 1000000000 + 7\n\nMAX_NUM = N\nMOD = 10**9+7\n\nfac = [0 for _ in range(MAX_NUM)]\nfinv = [0 for _ in range(MAX_NUM)]\ninv = [0 for _ in range(MAX_NUM)]\n\nfac[0] = fac[1] = 1\nfinv[0] = finv[1] = 1\ninv[1] = 1\n\nfor i in range(2,MAX_NUM):\n fac[i] = fac[i-1] * i % MOD\n inv[i] = MOD - inv[MOD%i] * (MOD // i) % MOD\n finv[i] = finv[i-1] * inv[i] % MOD\n\ndef cmb(n,k):\n if n < k:\n return 0\n if n < 0 or k < 0:\n return 0\n return fac[n] * (finv[k] * finv[n-k] % MOD) % MOD\n\n#print(mpow(2,N))\n\nprint(mpow(2,N)- cmb(N, a) - cmb(N, b) -1)', 'N, K = map(int,input().split())\n\nif N < 10:\n print(K+100*(10-N))\nelse:\n print(K)']
['Runtime Error', 'Accepted']
['s735215521', 's417858962']
[3064.0, 3316.0]
[17.0, 21.0]
[1265, 86]
p02765
u745387661
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())\n\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))']
['Wrong Answer', 'Accepted']
['s941767844', 's227436219']
[2940.0, 2940.0]
[17.0, 17.0]
[81, 81]
p02765
u748311048
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 R+100*(10-N))', '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))\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s807185548', 's835258223', 's966527454']
[2940.0, 3316.0, 2940.0]
[17.0, 20.0, 17.0]
[60, 65, 66]
p02765
u749224760
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 f(n, r):\n if n < 9:\n return r\n else:\n return 100 * (10 - n)', 'def main():\n n, r = map(int,input().split())\n if n > 9:\n print(r)\n else:\n print(n + 100 * (10 - n))\n\nmain()', 'def main():\n n, r = map(int,input().split())\n if n < 10:\n return r\n else:\n return 100 * (10 - n)\n\nmain()', 'n, r = map(int, input().split())\nif n < 10:\n return r\nelse:\n return 100 * (10 - n)\n', 'def main():\n n, r = map(int,input().split())\n if n > 9:\n return r\n else:\n return 100 * (10 - n)\n\nmain()\n', 'def main():\n n, r = map(int,input().split())\n if n > 9:\n return r\n else:\n return n + 100 * (10 - n)\n\nmain()\n', 'def main():\n n, r = map(int,input().split())\n if n < 10:\n return r\n else:\n return 100 * (10 - n)\n', 'def f():\n n, r = map(int,input().split())\n if n > 9:\n return r\n else:\n return 100 * (10 - n)\n', 'n, r = input()\nif n < 10:\n return r\nelse:\n return 100 * (10 - n)\n', 'def f():\n n, r = map(int,input().split())\n if n < 10:\n return r\n else:\n return 100 * (10 - n)\n', 'n, r = map(int,input().split())\nif n < 10:\n return r\nelse:\n return 100 * (10 - n)\n', 'def main():\n n, r = map(int,input().split())\n if n > 9:\n print(r)\n else:\n print(r + 100 * (10 - n))\n\nmain()']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s063868302', 's139789386', 's157198841', 's278844084', 's328896882', 's438675228', 's562938024', 's719894838', 's791654297', 's934009105', 's944289698', 's520047282']
[2940.0, 2940.0, 2940.0, 3056.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[71, 116, 113, 85, 113, 117, 106, 102, 67, 103, 84, 116]
p02765
u749614185
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)\nelif N<10:\n I=R+100(10-N)\n print(I)', 'N,R = map(int,input().split())\nif N >= 10: print(R)\nelse: print(R + 100 * (10-N))\n']
['Runtime Error', 'Accepted']
['s223885162', 's140418022']
[9168.0, 9148.0]
[26.0, 28.0]
[94, 82]
p02765
u751539777
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 - N))', 'N, R = map(int, input().split())\n\nif N > 10:\n print(R)\nelse:\n print(R + 100 * (10 - N))']
['Wrong Answer', 'Accepted']
['s968421600', 's970384927']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 93]
p02765
u752522099
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\tin_rate = r + 100 * (10-n)\n\tprint(in_rate) ', 'count = 0 \nn,k = map(int,input().split()) \n\nwhile True: \n count = count +1\n n, amari = divmod(n,k)\n if n == 0:\n break\n\nprint(count)', 'in_rating = 0\nN = int(input())\nK = int(input())\n\nif n >= 10:\n in_rating = K\n print(K)\nelse:\n in_rating = K + 100(100-K)\n ', 'in_rating = 0\nN = int(input())\nR = int(input())\n\nif N >= 10:\n in_rating = R\n print(in_rating)\nelse:\n in_rating = R + 100(10-N)\n print(in_rating)', 'n,r = map(int,input().split())\n\nif n >== 10:\n print(r)\nelse:\n in_rating = r + 100 * (10-n)\n print(in_rating)\n', 'n,r = int(input()),int(input()) \n\nif n >= 10:\n print(r)\nelse:\n in_rate = r + 100 * (10 - n)\n print(in_rate)\n', 'in_rating = 0\nN = int(input())\nR = int(input())\n\nif N >= 10:\n in_rating = R\n print(in_rating)\nelse:\n in_rating = R + 100 * (100-N)\n print(in_rating)\n', 'n,r = int(input()),int(input()) \n\nif n >= 10:\n print(r)\nelse:\n in_rate = r + 100 * (10 - n)\n print(in_rate)\n', 'n,r = int(input()),int(input) \n\nif n >= 10:\n print(r)\nelse:\n in_rate = r + 100 * (10 - n)\n print(in_rate)', 'in_rating = 0\nN = int(input())\nR = int(input())\n\nif N >= 10:\n in_rating = R\n print(in_rating)\nelse:\n in_rating = R + 100 * (10-N)\n print(in_rating)\n', 'n,k = map(int,input())\nlis = []\ning_total = 1\n\nwhile n / k == 0:\n if n > k:\n lis.append(int(n % k))\n ing_total += 1\n else:\n if n >= 10:\n ing_total = 2\n else:\n ing_total = 1\n\nprint(ing_total)', 'in_rating = 0\nN = int(input())\nR = int(input())\n\nif N >= 10:\n in_rating = R\n print(in_rating)\nelse:\n in_rating = R + 100(100-N)\n print(in_rating)', 'n,r = map(int,input().split())\n\nif n >= 10:\n print(r)\nelse:\n in_rating = r + 100 * (10-n)\n print(in_rating)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s006549177', 's115419691', 's153913093', 's322091685', 's444876704', 's453053361', 's487485474', 's503482084', 's542069953', 's715656564', 's859389959', 's940405581', 's465197442']
[2940.0, 2940.0, 2940.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 22.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0]
[102, 315, 125, 148, 118, 169, 153, 169, 166, 152, 248, 149, 117]
p02765
u753635524
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.
["InputValue = input().split(' ')\n\nprint(InputValue[0])\n\nN = int(InputValue[0])\nR = int(InputValue[1])\n\nif 0<=R<=4111 and 1<=N<=100:\n if N>=10:\n IR = R\n print(IR,end='\\n')\n elif N<10:\n IR = R + 100*(10-N)\n print(IR,end='\\n')", "N = int(input())\nR = int(input())\n\nif 0<=R<=4111 and 1<=N<=100:\n if N>=10:\n IR = R\n print(IR,end='\\n')\n elif N<10:\n IR = R + 100*(10-N)\n print(IR,end='\\n')", "N = int(input())\nR = int(input())\n\nif 0<=R<=4111 and 1<=N<=100:\n if N>=10:\n IR = R\n print(IR,end='\\n')\n elif N<10:\n IR = R + 100*(10-N)\n print(IR,end='\\n')\n", "N = int(input())\nR = int(input())\n\nif 0<=R<=4111 and 1<=N<=100:\n if N>=10:\n IR = R\n print(IR,end='\\n')\n elif N<10:\n IR = R + 100*(10-N)\n print(IR,end='\\n')", "InputValue = input().split(' ')\n\nN = int(InputValue[0])\nR = int(InputValue[1])\n\nif 0<=R<=4111 and 1<=N<=100:\n if N>=10:\n IR = R\n print(IR,end='\\n')\n elif N<10:\n IR = R + 100*(10-N)\n print(IR,end='\\n')"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s094314886', 's380499209', 's577060183', 's929120884', 's028562297']
[3060.0, 2940.0, 2940.0, 3188.0, 3060.0]
[17.0, 19.0, 17.0, 18.0, 17.0]
[256, 189, 190, 189, 234]
p02765
u754511616
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=list(map(int,input().split()))\nif a<0:\n print(100*(10-a)+b)\nesle:\n print(b)', 'a,b=list(map(int,input().split()))\nif a<0:\n print(100*(10-a)+b)\nelse:\n print(b)\n', 'a,b=list(map(int,input().split()))\nif a<10:\n print(100*(10-a)+b)\nelse:\n print(b)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s017737505', 's847237800', 's897108158']
[8856.0, 9152.0, 9040.0]
[19.0, 29.0, 31.0]
[81, 82, 82]
p02765
u758583243
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.
['tmp = list(input())\n\nN = int(tmp[0])\nR = int(tmp[1])\n\nif N < 10:\n print(100 * (10 - N) + R)\nelse:\n print(R)', 'tmp = list(input().split(" "))\n\nN = int(tmp[0])\nR = int(tmp[1])\n\nif N < 10:\n print(100 * (10 - N) + R)\nelse:\n print(R)\n']
['Runtime Error', 'Accepted']
['s992102814', 's925176024']
[2940.0, 2940.0]
[18.0, 17.0]
[109, 121]
p02765
u759938562
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())\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))']
['Runtime Error', 'Accepted']
['s307330906', 's316252129']
[2940.0, 2940.0]
[17.0, 20.0]
[76, 88]
p02765
u760391419
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']
['s739726273', 's509813783']
[2940.0, 2940.0]
[18.0, 17.0]
[70, 74]
p02765
u763025768
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.
['l=[int(x) for x in input().split()]\nN=l[0]\nR=l[1]\nans = 0\n\nif N <= 10:\n ans = R\n print(ans)\nelse:\n ans = R + 100*(10-k)\n print(ans)\n', 'N = int(input())\nR = int(input())\nans = 0\n\nif N < 10:\n ans = R + 100*(10-N)\n print(ans)\nelse:\n ans = R\n print(R)\n', 'l=[int(x) for x in input().split()]\nN=l[0]\nR=l[1]\n\nif N >= 10:\n ans = R\n print(ans)\nelse:\n ans = R + 100*(10-k)\n print(ans)\n', 'N = input()\nR = input()\nans = 0\n\nif N < 10:\n ans = R + 100*(10-N)\n print(ans)\nelse:\n ans = R\n print(R)', 'l=[int(x) for x in input().split()]\nN=l[0]\nR=l[1]\nans = 0\n\nif N >= 10:\n ans = R\n print(ans)\nelse:\n ans = R + 100*(10-k)\n print(ans)\n', 'l=[int(x) for x in input().split()]\nN=l[0]\nR=l[1]\n\nif N >= 10:\n ans = R\n print(ans)\nelse:\n ans = R + 100*(10-N)\n print(ans)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s194428866', 's246209556', 's313490623', 's444158310', 's782939477', 's716475689']
[2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 21.0, 17.0, 17.0, 17.0, 17.0]
[137, 117, 128, 106, 137, 128]
p02765
u763628696
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 = map(int,input().split())\nif a >= 10:\n print(str(b))\nelse:\n print(str(100*(10-a)))', 'a,b = map(int,input().split())\nif a >= 10:\n print(str(b))\nelse:\n print(str(b-100*(10-a)))', 'a,b = map(int,input().split())\nif a >= 10:\n print(str(b))\nelse:\n print(str(b+100*(10-a)))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s010569361', 's173411385', 's326405567']
[9088.0, 9048.0, 9100.0]
[28.0, 31.0, 29.0]
[89, 91, 91]
p02765
u765865533
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-K))\n', '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))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s373441307', 's484364846', 's912310459', 's233385487']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[82, 83, 81, 82]
p02765
u766393261
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']
['s243428107', 's066075359']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 77]
p02765
u767664985
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']
['Wrong Answer', 'Accepted']
['s659105658', 's908999637']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 88]
p02765
u770077083
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((lambda x:int(x[0])-max(0,100*(10-int(x[1]))))(input().split()))', 'print((lambda x:int(x[1])-max(0,100*(10-int(x[0]))))(input().split()))', 'print((lambda x:int(x[1])+max(0,100*(10-int(x[0]))))(input().split()))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s472740712', 's604034121', 's324813872']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[70, 70, 70]
p02765
u771538568
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().split()\na=int(a)\nb=int(b)\nif a>=10:\n print(b)\nelse:\n c=b+100*a-1000\n print(c)\n', 'a=int(input())\nb=list(map(int,input().split()))\nc=0\nm=0\nfor i in b:\n c+=i\nd=c/len(b)\ne=str(d)[2]\ne=int(e)\nif e>=5:\n f=int(str(d)[0])+1\nelse:\n f=int(str(d)[0])\nfor g in b:\n m+=(abs(g-f))**2\nprint(m)\n\n', 'a,b=input().split()\na=int(a)\nb=int(b)\nif a>=10:\n print(b)\nelse:\n c=b-100*a+1000\n print(c)\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s423461632', 's981142025', 's253205198']
[2940.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[99, 211, 99]
p02765
u774197297
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)\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']
['s800851582', 's197100315']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 74]
p02765
u774827549
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()\nn = int(n)\nr = int(r)\n\nif n >= 10:\n i = r\nelse:\n i = r + 100 * (10 - n)', 'n,r = int(input().split())\nn = int(n)\nr = int(r)\n\nif n >= 10:\n i = r\nelse:\n i = r + 100 * (10 - n)\nprint(i)', 'n,r = input().split()\nn = int(n)\nr = int(r)\n\nif n >= 10:\n i = r\nelse:\n i = r + 100 * (10 - n)\nprint(i)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s108391020', 's689394400', 's086791702']
[9148.0, 8992.0, 9156.0]
[27.0, 22.0, 27.0]
[95, 109, 104]
p02765
u777028980
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=map(int,input().split())\nif(a<10):\n print(b-100*(10-a))\nelse:\n print(b)', 'a,b=map(int,input().split())\nif(a<10):\n print(b+100*(10-a))\nelse:\n print(b)']
['Wrong Answer', 'Accepted']
['s064738615', 's629340954']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 77]
p02765
u780147002
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,M = map(int,input().split())\nif N<10:\n print(a+(100*(10-N)))\n else:\n print(M)', 'N,M = map(int,input().split())\nif N<10:\n print(a+(100*(10-N)))\nelse:\n print(M)', 'N,M = map(int,input().split(" "))\nif N<10:\n print(a+(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', 'Runtime Error', 'Runtime Error', 'Accepted']
['s027580538', 's138751541', 's336809956', 's988874727']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 18.0]
[81, 81, 83, 83]
p02765
u781758937
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*min(10-N,0))', 'N,R=map(int, input().split())\nprint(R+100*max(10-N,0))']
['Wrong Answer', 'Accepted']
['s536056654', 's485709423']
[2940.0, 2940.0]
[20.0, 17.0]
[54, 54]
p02765
u786168796
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\nif N < 10:\n print(100 * (10 - N))\nelse:\n print(R)', 'N, R = list(map(int, input().split()))\n \nif N < 10:\n print(100 * (10 - N) + R)\nelse:\n print(R)']
['Wrong Answer', 'Accepted']
['s758714640', 's704033375']
[2940.0, 2940.0]
[18.0, 17.0]
[91, 96]
p02765
u786793781
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\n# -*- coding: utf-8 -*-\n\nfrom functools import reduce\ntable_size = 510000\n# table_size = 5100000\nmod = 10**9+7\n\n\n\n\n\n\n# return numerator * pow(denominator, mod-2, mod) % mod\n\nclass Combination:\n def __init__(self):\n self.fac = [None for _ in range(table_size)]\n self.finv = [None for _ in range(table_size)]\n self.inv = [None for _ in range(table_size)]\n\n self.fac[0] = self.fac[1] = 1\n self.finv[0] = self.finv[1] = 1\n self.inv[1] = 1\n\n for i in range(2, table_size):\n self.fac[i] = self.fac[i - 1] * i % mod\n self.inv[i] = mod - self.inv[mod % i] * (mod // i) % mod\n self.finv[i] = self.finv[i - 1] * self.inv[i] % mod\n\n def nCr(self, n, r):\n if n < r:\n return 0\n if n < 0 or r < 0:\n return 0\n\n return self.fac[n] * (self.finv[r] * self.finv[n - r] % mod) % mod\n\n\nn, k = map(int, input().split())\n\n\n\n\nc = Combination()\n\n\nif n < k:\n print(c.nCr(2 * n - 1, n))\nelse:\n total = 0\n for i in range(k + 1):\n total += c.nCr(n - 1, i) * c.nCr(n, i)\n total %= mod\n\n print(total)\n', '#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\nK, R = list(map(int, input().split()))\n\nif 10 <= K:\n print(R)\nelse:\n print(R + ((10 - K) * 100))\n']
['Wrong Answer', 'Accepted']
['s045752511', 's870389151']
[64200.0, 2940.0]
[750.0, 18.0]
[1532, 152]
p02765
u793666115
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())\n\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))\n']
['Wrong Answer', 'Accepted']
['s204410836', 's227566606']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 85]
p02765
u795928154
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.
["NandK = input()\nNandK = NandK.split(' ')\nN = int(NandK[0])\nK = int(NandK[1])\nif N >= 10:\n print(K)\nelse:\n print(100 * (10 - K))", "NandK = input()\nNandK = NandK.split(' ')\nN = int(NandK[0])\nK = int(NandK[1])\nif N >= 10:\n print(K)\nelse:\n print(K + 100 * (10 - N))"]
['Wrong Answer', 'Accepted']
['s021971517', 's936514890']
[2940.0, 2940.0]
[18.0, 17.0]
[133, 137]
p02765
u804048521
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)\nelse:\n print(R - 100 * (10 - N))\n', 'N, R =(int(x) for x in input().split())\nprint(R if N>= 10 else R + 100 * (10 - N))\n']
['Wrong Answer', 'Accepted']
['s257827395', 's541256024']
[2940.0, 2940.0]
[17.0, 18.0]
[97, 83]
p02765
u805552010
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())\nrate = r - 100 * (10-n)\nif 10 <= n:\n print(r)\nelse:\n print(int(r;+(100*(10-n))))\n', 'n,r = map(int, input().split())\nif n >= 10:\n\tprint(r)\nelse:\n\tprint(r + (100*(10-n)))']
['Runtime Error', 'Accepted']
['s161657441', 's262075195']
[2940.0, 2940.0]
[17.0, 18.0]
[116, 84]
p02765
u806084713
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 = input().split()\nprint(n)\n\nif int(n[0]) >= 10:\n print(n[1])\nelse:\n print(100 * (10 - int(n[0])) + int(n[1]))', 'n = input().split()\n\nif int(n[0]) >= 10:\n print(n[1])\nelse:\n print(100 * (10 - int(n[0])) + int(n[1]))']
['Wrong Answer', 'Accepted']
['s359841492', 's237676088']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 104]
p02765
u806392288
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 K >= 10:\n print(R)\nelse:\n print(R + 100*(10-K))', 'N,R = map(int,input().split())\n \nif N >= 10:\n print(R)\nelse:\n print(R + 100*(10-K))', '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']
['s001454663', 's705662561', 's161363573']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[84, 85, 85]
p02765
u809816772
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 - R))\nelse:print(R)\n', 'N, R = map(int,input().split())\n\nif N < 10:\n print(R + 100 * (10 - N))\nelse:print(R)\n']
['Wrong Answer', 'Accepted']
['s979811424', 's957792549']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 88]
p02765
u809819902
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())\nres = 0\na = 0\nwhile res == 0:\n if k**(a-1) < n and n <= k**a:\n ans = a\n res += 1\n break\n a += 1\nprint(ans)', 'n,r=map(int,input().split())\nif n>=10:\n res=r\nelse:\n res=r+(100*(10-n))\nprint(res)']
['Runtime Error', 'Accepted']
['s038013979', 's045337757']
[9172.0, 9084.0]
[29.0, 28.0]
[165, 88]
p02765
u810066979
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\tr = 100*(10-n)\nprint(r)\n', 'n,r = int(input().split())\nif n<10:\n\tr = 100*(10-n)\nprint(r)\n', 'n,r = map(int,input().split())\nif n<10:\n\tr = 100*(10-n)+r\nprint(r)\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s702096832', 's924292918', 's507559300']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[65, 61, 67]
p02765
u811967730
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\nans = R\n\nif N < 10:\n ans -= 100 * (10 - N)\n\nprint(ans)\n', 'N, R = map(int, input().split())\n\nans = R\n\nif N < 10:\n ans += 100 * (10 - N)\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s849659715', 's037442900']
[3316.0, 2940.0]
[21.0, 17.0]
[92, 92]
p02765
u813098295
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', 'n, r = map(int, input().split())\nprint(r-100*(10-n))', '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']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s528886631', 's537394440', 's842441069', 's721687245']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[72, 52, 72, 72]
p02765
u813125722
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().split()\nx = int(a[0])\ny = int(a[1])\nif x>=10:\n print(y)\nelse:\n print(y+1000-100x)', 'a = input().split()\nx = int(a[0])\ny = int(a[1])\nif x>=10:\n print(y)\nelse:\n print(y+1000-100*x)\n\n\n ']
['Runtime Error', 'Accepted']
['s374663048', 's522770975']
[2940.0, 2940.0]
[19.0, 17.0]
[99, 107]
p02765
u813993459
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,ans = str(input()).split()\nif int(n)<10:\n ans = int(ans) - (100*(10-int(n)))\nprint(int(ans))', 'n,ans = str(input()).split()\nif int(n)<10:\n ans = int(ans) - (100*(10-int(n)))\nif ans<0:\n ans=0\nprint(int(ans))', 'n,ans = str(input()).split()\nif int(n)<10:\n ans = int(ans) - (100*(10-int(n)))\nif int(ans)<0:\n ans = 0\nprint(int(ans))', 'n,ans = str(input()).split()\nif int(n)<10:\n ans = int(ans) + (100*(10-int(n)))\nprint(int(ans))']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s274064418', 's422010671', 's448612323', 's176091611']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[97, 117, 124, 97]
p02765
u815304751
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())\n\nprint(100 * (10 - n) + r)\n', 'n,r = map(int,input().split())\n\nif n < 10:\n print(100 * (10 - n) + r)\nelse:\n print(r)\n']
['Runtime Error', 'Accepted']
['s710232137', 's117338692']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 92]
p02765
u816171517
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())\ni=0\n\n\nwhile n>=k**i:\n\n i+=1\n\nelse:\n print(i)\n', 'n,r=map(int,input().split())\n\nif n>=10:\n\n print(r)\n\nelse:\n\n print(r+100*(10-n))\n']
['Wrong Answer', 'Accepted']
['s803043114', 's866997556']
[2940.0, 2940.0]
[2104.0, 17.0]
[80, 86]
p02765
u816631826
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 0 <= R <= 4111:\n if 1<= N < 10:\n K = 100 * (10 - N)\n M = R + K\n print(M)\n if 10 <= N <= 100:\n print(R)\n', 'def E(N,R):\n if int(N)==N and int(R)==R:\n if 1<= N <= 100 and 0<= R <= 4111:\n if N > 10:\n print(R)\n else:\n K = 100 * (10 - N)\n print(R+K)', 'N , K = input().split()\nif (int(N) <= 10) :\n print (100 * (10 - int(N)) + int(K))\nelse :\n print (K)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s250965819', 's268187827', 's351314014']
[9104.0, 8916.0, 2940.0]
[23.0, 23.0, 17.0]
[174, 214, 105]
p02765
u819593641
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*(100-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', 'Accepted']
['s334853950', 's668129706']
[2940.0, 2940.0]
[18.0, 17.0]
[83, 83]
p02765
u820284192
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 + ((10 - N) * 100))\nelse:\n print(R)', 'N,R = map(int, input().split())\n \nif (N < 10):\n print(R + ((10 - N) * 100))\nelse:\n print(R)']
['Runtime Error', 'Accepted']
['s215111620', 's318612550']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 97]
p02765
u821775079
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())\n\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))']
['Wrong Answer', 'Accepted']
['s084284240', 's414194277']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 86]
p02765
u827021590
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.
['# -*- coding: utf-8 -*-\nN,R = map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(int(R) - 100*(10-int(N)))', '# -*- coding: utf-8 -*-\nN,R = map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(int(R) + 100*(10-int(N)))']
['Wrong Answer', 'Accepted']
['s416630218', 's649139470']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 121]
p02765
u827261928
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']
['s424080947', 's206558103']
[9024.0, 8872.0]
[29.0, 25.0]
[83, 83]
p02765
u829778936
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().slpit())\nprint(k+(100*(10-k)) if n<10 else k)', 'n,r = map(int, input().split())\nprint((100*(10-n)+r) if n<10 else r)']
['Runtime Error', 'Accepted']
['s505606639', 's334922047']
[3060.0, 2940.0]
[18.0, 17.0]
[68, 68]
p02765
u829932632
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\tprint(R)\nelse:\n\tprint(R + 100 * (10 - N))", "N, R = [int(x) for x in input().split(' ')]\nif N >= 10:\n\tprint(R)\nelse:\n\tprint(R + 100 * (10 - N))"]
['Wrong Answer', 'Accepted']
['s954970102', 's483402590']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 98]
p02765
u830770242
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)\n \nelse:\n r = 100*(10 - N)\n R = R -n\n print(R)\n ', 'N ,R = map(int, input().split())\nif N >=10:\n print(R)\n \nelse:\n r = 100*(10 - N)\n R = R - r\n print(R)', 'N ,R = map(int, input().split())\nif N >=10:\n print(R)\n \nelse:\n r = 100*(10 - N)\n R = R + r\n print(R)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s087863602', 's872608911', 's237562895']
[2940.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[107, 105, 105]
p02765
u832871520
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 = map(int, input().split)\n\nprint(b + max(0, 10 -a))', 'a, b = map(int, input().split())\n \nprint(b + (max(0, 10 -a) * 100) )']
['Runtime Error', 'Accepted']
['s978612036', 's083946150']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 68]
p02765
u832934907
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()))\nif R >= 10:\n print(R)\nelse:\n print(R-(100*(10-N)))', 'N,R = list(map(int, input().split()))\nif R >= 10:\n print(R)\nelse:\n print(R - (100*(10-N)))', 'N,R = list(map(int, input().split()))\nif N >= 10:\n print(R)', 'N = input()\nX = list(map(int, input().split()))\nfor a in X:\n sum = sum + a\nC = sum/N\nfor b in X:\n ans = (b-C)**2\nprint(ans)', 'N,R = map(int, input().split())\nif N >= 10:\n print(N)\nelse:\n print(R-(100*(10-N)))', 'import math\n \nN = int(input())\nX = list(map(int, input().split()))\nsum = 0\nall = True\nfor a in X:\n sum = sum + a\nC = int(sum / N + 0.5)\nans = 0\nfor b in X:\n ans = ans + (b-C)**2\nprint(ans)', 'N,R = list(map(int, input().split()))\nS= 10-N\nif N >= 10:\n print(R)\nelse:\n print(R-(100*S))', 'N,R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(R-(100*(10-N)))', 'N,R = list(map(int, input().split()))\nif R >= 10\n print(R)\nelse:\n print(R - (100*(10-N)))', 'N,R = list(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', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s224077100', 's278389047', 's357900738', 's576455089', 's624989533', 's673895972', 's716914490', 's857658599', 's960476210', 's983977312', 's436244457']
[2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0]
[94, 96, 62, 129, 88, 194, 97, 88, 95, 94, 88]
p02765
u836737505
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,r = map(int,input().split())\nprint(r if n >= 10 else r+100*(10-n))']
['Wrong Answer', 'Accepted']
['s307590743', 's511933719']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 68]
p02765
u841599623
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 print(R)\nelse:\n R + (100 * (10 - N))', 'N,R = input().split()\nif N > 10:\n print(R)\nelse:\n print(R + (100 * (10 - N)))', 'N,K = map(int, input().split())\ncounter = 0\nK_ = 1\ni=True\nwhile i==True:\n K_ = K_ * K\n if N < K_:\n print(counter)\n i=False\n counter += 1', 'N,K = map(int, input().split())\ncounter = 0\nK_ = 1\ni=True\nwhile i==True:\n K_ = K_ * K\n if K < K_:\n print(counter)\n i=False\n counter += 1', 'N,R = map(int, input().split())\nif N > 10:\n print(R)\nelse:\n print(R + (100 * (10 - N)))']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s351506523', 's582870859', 's675326589', 's698812438', 's397634135']
[2940.0, 2940.0, 3060.0, 3060.0, 2940.0]
[17.0, 17.0, 2104.0, 2103.0, 17.0]
[72, 79, 145, 145, 89]
p02765
u842054747
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.
['count, outrate = input().split()\nif count >= 10:\n result = outrate\n print(result)\nelse:\n result = outrate + 100 * (10 - count)\n print(result)\n', 'number, base = map(int, input().split())\nresult_list = []\nwhile number / base > 0:\n mod = number % base\n result_list.append(str(mod))\n number = number // base\n\nresult_list.reverse()\nresult = "".join(result_list)\nprint(result)\n', 'count, outrate = input().split()\nif count >= 10:\n result = outrate\n print(inrate)\nelse:\n result = outrate + 100 * (10 - count)\n print(result)', 'number, base = map(int, input().split())\nresult_list = []\nwhile number / base > 0:\n mod = number % base\n result_list.append(str(mod))\n number = number // base\n\nresult_list.reverse()\nresult = "".join(result_list)\nprint(len(result))\n', 'count, outrate = map(int, input().split())\n\nif count >= 10:\n result = outrate\n print(result)\nelse:\n result = outrate + 100 * (10 - count)\n print(result)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s007467176', 's246062071', 's378866653', 's884428550', 's241768366']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[146, 229, 145, 234, 157]
p02765
u843135954
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\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnn = lambda: list(stdin.readline().split())\nns = lambda: stdin.readline().rstrip()\n\n\nn,r = na()\n\nprint(r-max(0,100*(10-n)))', 'import sys\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnn = lambda: list(stdin.readline().split())\nns = lambda: stdin.readline().rstrip()\n\n\nn,r = na()\n\nprint(r+max(0,100*(10-n)))']
['Wrong Answer', 'Accepted']
['s257898843', 's134796497']
[3060.0, 3060.0]
[17.0, 17.0]
[230, 230]
p02765
u844789719
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()]\nprint(r if n >= 10 else r - 100 * (10 - n))\n', 'n, r = [int(_) for _ in input().split()]\nprint(r if n >= 10 else r + 100 * (10 - n))\n']
['Wrong Answer', 'Accepted']
['s330522852', 's228019252']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 85]
p02765
u844813573
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 statistics\n\ndef cal_hp(p, num_list):\n total = 0\n for num in num_list:\n temp = (num - p) ** 2\n total = total + temp\n return total\n\nline1 = input()\nline2 = input()\n\nnum_list = line2.split(" ")\nnum_list = [int(n) for n in num_list]\nans_list = []\n\nfor i in range(0, max(num_list)+1):\n ans_list.append(cal_hp(i, num_list))\nprint(min(ans_list))\n', 'line = input()\nn, r = line.split(" ")\n\nif int(n) < 10:\n rate = int(r) + (100*(10-int(n)))\n print(rate)\nelse:\n print(int(r))']
['Runtime Error', 'Accepted']
['s484382906', 's162753535']
[5488.0, 2940.0]
[40.0, 17.0]
[372, 132]
p02765
u845847173
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']
['s951027709', 's507976922']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 93]
p02765
u853547292
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 = map(int,input().split())\nif a>=10:\n print(b)\nelse:\n print(100*(10-b))', 'a,b = map(int,input().split())\nif a>=10:\n print(b)\nelse:\n print(100*(10-a)+b)']
['Wrong Answer', 'Accepted']
['s987935038', 's235615099']
[3316.0, 2940.0]
[20.0, 17.0]
[81, 83]
p02765
u857330600
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.
["s=str(input())\nif s== 'AAA' or s=='BBB':\n print('No')\nelse:\n print('Yes')", 'k,n=map(int,input().split())\nif k>9:\n print(n)\nelse:\n print(n+100*(10-k))']
['Wrong Answer', 'Accepted']
['s877502205', 's785273263']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 75]
p02765
u857673087
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 - (10-N)*100)\nelse:\n print(R)', 'N,K = map(int,input())\n\nprint(100*(10-K) if N <=10 else K)', 'N,R = map(int,input().split())\n\nprint( R if N >= 10 else R - 100*(10-N))\n', 'N,R = map(int,input())\n\nprint( R if N >10 else R - 100*(10-N))', 'N,R = map(int,input().split())\n\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))\n']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s207078064', 's413937062', 's414112580', 's526596242', 's626652581', 's866466139']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[84, 58, 73, 62, 71, 73]
p02765
u860002137
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-N)) if n < 10 else print(R)', 'N, R = map(int, input().split())\nprint(R + 100*(10-N)) if N < 10 else print(R)']
['Runtime Error', 'Accepted']
['s651072933', 's252725099']
[2940.0, 2940.0]
[17.0, 18.0]
[78, 78]
p02765
u860966226
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.
['data = input().split()\nif int(data[0]) > 10:\n ans = data[1]\nelse:\n ans = int(data[1]) - 100 * (10 - int(data[0]))\n \nprint(ans)\n', 'data = input().split()\nif int(data[0]) > 10:\n ans = data[1]\nelse:\n ans = 100 * (10 - int(data[0]))\n \nprint(ans)\n', 'data = input().split()\nif int(data[0]) > 10:\n ans = data[1]\nelse:\n ans = 100 * (10 - data[0])\n\nprint(ans)\n', 'data = input().split()\nif int(data[0]) > 10:\n ans = data[1]\nelse:\n ans = data[1] - 100 * (10 - int(data[0]))\n \nprint(ans)\n', 'data = input().split()\n\nn = int(data[0])\nr = int(data[1])\n\nif n < 10:\n ans = r + 100 * (10 - n)\nelse:\n ans = r\n\nprint(ans)\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s258967050', 's289135897', 's403771225', 's730122185', 's470315836']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0]
[129, 114, 108, 124, 125]
p02765
u861109991
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())\n\nif n>=10:\n inner_rate = r\nelse:\n inner_rate = r + 100*(10-n)\n \nprint(str(inner_rate))', 'n, r = map(int, input().split())\n \nif n>=10:\n inner_rate = r\nelse:\n inner_rate = r + 100*(10-n)\n \nprint(str(inner_rate))']
['Runtime Error', 'Accepted']
['s644456434', 's172060382']
[2940.0, 2940.0]
[18.0, 17.0]
[117, 123]