TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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.

Submission attempts (in order):
N,R=map(int,input().split())
if N>=10:
  print(R)
else:
  print(100*(10-N))

N,R=map(int,input().split())

if N>=10:
  print(R)
else:
  print(R+100*(10-N))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n, r = int(input().split())
if n >= 10:
  print(r)
else:
  print(r + 100 * (10 - n))

n, r = map(int, input().split())
if n >= 10:
  print(r)
else:
  print(r + 100 * (10 - n))

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N, R = map(int, input().split())

if N > 10:
    print(R)
else:
    print(R-100*(10-K))

, R = map(int, input().split())

if N > 10:
    print(R)
else:
    print(R+100*(10-N))

n, a, b = map(int, input().split())
MOD = 10**9+7

def comb(n, r):
    x = 1; y = 1
    for i in range(r):
        x *= n-i
        y *= r-i
    return x*pow(y, MOD-2, MOD)

print(pow(2, n, MOD)-1 -comb(n, a) -comb(n, b))

N, R = map(int, input().split())

if N >= 10:
    print(R)
else:
    print(R+100*(10-N))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N,R=map(int,input().split())
if N>=10:
    print(R)
else:
    print(R-100*(10-N))

N,R=map(int,input().split())
if N>=10:
    print(R)
else:
    print(R+100*(10-N))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):

n,m = map(int.input().split())
if n < 10:
    print(m+(100*(10-n)))
else:
   print(m)

n,m = map(int,input().split())
if n < 10:
    print(m+(100*(10-n)))
else:
   print(m)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n,r=map(int,input().split())
print(r-100*max(0,10-n))

n,r=map(int,input().split())
print(r+100*max(0,10-n))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N, R = map(int, input().split(' '))
if N < 9:
    L =  R+100*(10-N)
    print('{}, {}'.format(N, L))

else:
    print('{}, {}'.format(N, R))


N, K = map(int, input().split(' '))

l = []
while N >= K:
    a = N % K
    N = N // K
    l.append(a)


print(len(l) + 1)

N, R = map(int, input().split(' '))
if N < 9:
    L =  R+100*(10-N)
    print('{}'format(L))

else:
    print('{}'.format(R))


N, R = map(int, input().split(' '))
if N < 10:
    L =  R+100*(10-N)
    print('{}'.format(L))

else:
    print('{}'.format(R))


Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
#!/usr/bin/env python3
import collections
import itertools as it
import math
#import numpy as np
 
#  = input()
#  = int(input())
#  = map(int, input().split())
#  = list(map(int, input().split()))

#
# c = collections.Counter()


#!/usr/bin/env python3
import collections
import itertools as it
import math
import numpy as np

# A = input()
# A = int(input())
# A = map(int, input().split())
# A = list(map(int, input().split()))

#
# c = collections.Counter()

N, R = map(int, input().split())

if N >= 10:
    print(R)
else:
    print(R + 100*(10-N))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n, r = map(int, input().split())

if n >= 10 :
  print(r)
else:
  print(r - 100 * (10 - n))


n, r = map(int, input().split())

if n >= 10 :
  pint(r)
else:
  print(r - 100 * (10 - n))

n, r = map(int, input().split())

if n >= 10 :
  print(r)
else:
  print(r + 100 * (10 - n))


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
k = list(map(int, input().split()))
if k[0] >= 10:
  print(k[1])
else:
  print(100*(10-k[0]))

k = list(map(int, input().split()))
if k[0] >= 10:
  print(k[1])
else:
  print(100*(10-k[0]) + k[1])

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
attend, rate = input().split(' ')
 
if int(attend) >= 10:
  print(rate)
else:
  print(int(rate) - 100 * (10 - int(attend)))

attend, rate = input()

if int(attend) >= 10:
  print(rate)
else:
  print(int(rate) - 100 * (10 - int(attend)))


attend, rate = input().split(' ')
 
if int(attend) >= 10:
  print(rate)
else:
  print(int(rate) + 100 * (10 - int(attend)))


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int,input(),split())
print(y+100*(10-x))

import math
x,y = map(int,input().split())
print(math.ceil(x/y))

x,y = map(int,input().split())
if x => 10:
	print(y)  
else:
	print(y+(100*(10-x)))

x,y = map(int,input().split())
if x >= 10:
	print(y)  
else:
	print(y+(100*(10-x)))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n,a,b = [int(i) for i in input().split()]
mod = 10**9+7

def mpow(a,n):
  if n == 1:
    return a
  x = mpow(a,n//2)
  ans = x*x%mod
  if n%2==1:
    ans *= a
  return ans

def comb(n,a,b):
  if a < b:
    s, l = a, b
  else:
    s, l = b, a
  rs = 1
  for i in range(s):
    rs = rs*(n-i)%mod
  rl = rs
  for i in range(s,l):
    rl = rl*(n-i)%mod
  for i in range(1,s+1):
    rs = rs*mpow(i,mod-2)%mod
  rl = rl
  for i in range(s+1,l+1):
    rl = rl*mpow(i,mod-2)%mod
  if a < b:
    nCa, nCb = rs, rl
  else:
    nCa, nCb = rl, rs
  return nCa, nCb
nCa,nCb = comb(n,a,b)
print((mpow(2,n)-1-nCa-nCb)%mod)
# print(nCa,nCb)

inp = [int(i) for i in input().split()]
N = inp[0]
R = inp[1]
if N >= 10:
	print(R)
else:
  	print(R+100*(10-N))

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

n, r = na()

if n >= 10:
  print(r)
else:
  print(100*(10-n))

import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

n, r= na()

if n >= 10:
  print(r)
else:
  print(r+100*(10-n))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,a=map(int,input().split())
p=1000000007
def prmd(n,i):
    P=1
    for j in range(i):
        P=(P*(n-j))%p
    return (P)
def bin(N):
    t=0
    while N>0:
        N=N//2
        t=t+1
    return (t)
def blis(m):
    lists=[]
    for i in range(bin(m)):
        lists.append(m%2)
        m=m//2
        if m==0:
            break
    return (lists)
def modu(a,m,q):
    t=a%q
    lista=[]
    for i in range(bin(m)):
        lista.append(t)
        t=(t**2)%q
    listb=[]
    for j in range(bin(m)):
        listb.append(lista[j]*blis(m)[j])
    s=1
    for k in range(bin(m)):
        if listb[k]>0:
            s=(s*listb[k])%q
    return (s)
def comd(A,B):
    B=min(B,A-B)
    X=prmd(A,B)
    Y=modu(prmd(B,B),p-2,p)
    return ((X*Y)%p)
if n-2<a:
    print (comd(2*n-1,n-1))
else:
    listm=[]
    v=1
    for i in range(a+1):
        listm.append(v)
        v=(v*(n-i)*modu(i+1,p-2,p))%p
    w=0
    k=modu(n,p-2,p)
    for j in range(a+1):
        w=(w+listm[j]**2*(n-j)*k)%p
    print (w)

n,a=map(int,input().split())
p=1000000007
def prmd(n,i):
    P=1
    for j in range(i):
        P=(P*(n-j))%p
    return (P)
def bin(N):
    t=0
    while N>0:
        N=N//2
        t=t+1
    return (t)
def blis(m):
    lists=[]
    for i in range(bin(m)):
        lists.append(m%2)
        m=m//2
        if m==0:
            break
    return (lists)
def modu(a,m,q):
    t=a%q
    lista=[]
    for i in range(bin(m)):
        lista.append(t)
        t=(t**2)%q
    listb=[]
    for j in range(bin(m)):
        listb.append(lista[j]*blis(m)[j])
    s=1
    for k in range(bin(m)):
        if listb[k]>0:
            s=(s*listb[k])%q
    return (s)
X=prmd(2*n-1,n-1)
Y=modu(prmd(n-1,n-1),p-2,p)
if n-1<a:
    print ((X*Y)%p)
else:
    u=0
    for i in range(a+1):
        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)
        u=u%p
    print (u)

N,R=map(int,input().split())

print (max(0,100*(10-N))+R)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n, r = map(int, input().split())
k = max(n, 10)
print(r + 100 * (10 - k))

n, r = map(int, input().split())
print(r + 100 * (10 - min(n, 10)))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N, R = map(int, input().split())
if N > 10:
  print(R)
else:
  print(R-100*(10-N))

N, R = map(int, input().split())
if N > 10:
  print(R)
else:
  print(R+100*(10-N))


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x, y = gets.split(" ").map(&:to_i)
def rating_try(x, y)
  if x < 10
     y+(100*(10-x))
  else
     y
  end
end
puts rating_try(x, y)


x, y = gets.split.map(&:to_i)
def rating_try(x, y)
  if x < 10
     y+(100*(10-x))
  else
     y
  end
end
puts rating_try(x, y)


x, y = map(int, input().split())
if x >= 10:
    print(y)
else:
    print(y+100*(10-x))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N, R = map(int, input().split())
print(R+100*(10-K) if N<10 else R)

N, R = map(int, input().split())
if N<10:
  print(R+100*(10-K))
else:
  print(R)

N, R = map(int, input().split())
print(R+100*(10-N) if N<10 else R)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

n, r = map(int, readline().split())
if 10 < r:
    print(r)
else:
    print(100 * (10 - n) + r)


import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

n, r = map(int, readline().split())
if 10 < n:
    print(r)
else:
    print(100 * (10 - n) + r)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
#ABC156-A #Beginner                                                                                  
n,r = map(int, input().split())
if n >= 10:
    k = 100*(10-n)
    s = k + r
else:
    s = r
print(s)

#ABC156-A #Beginner                                                                                  
n,r = map(int, input().split())
if n > 10:
    k = 100*(10-n)
    s = k + r
else:
    s = r
print(s)

n,r = map(int, input().split())
if n < 10:
    k = 100*(10-n)
    s = r + k
else:
    s = r
print(s)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N,R=map(int,input().split())
if N>=10:
    print(R)
else:
    R-=100*(10-N)
    print(R)


N,R=map(int,input().split())
if N>=10:
    print(R)
else:
    print(R+100*(10-N))


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,r = map(int,input().split())
if(n <=10):
  print(r-100*(10-n))
else:
  print(r)

n,r = map(int,input().split())
if(n <=10):
  print(r-100*(n-10))
else:
  print(r)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N,R = list(map(int,input().split()))  
if N >= 10:
    print("{}".format(100 - (10 - N)))
else:
    print(R)

N, R = list(map(int,input().split()))
if N < 10:
    print("{}".format(R + (100 * (10 - N))))
else:
    print(R)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n, r = map(int, input().split())

if n >= 10:
    print(r)

else:
    in_r = 100 * (10-n)
    print(in_r)



n, r = map(int, input().split())

if n >= 10:
    print(r)

else:
    in_r = r + 100*(10-n)
    print(in_r)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import numpy as np
n=int(input())
x=np.fromstring(input(),int,sep=' ')
print(x)
p=0
hoge=np.inf
for i in range(1,np.max(x)+1):
    sux=sum((x-i)**2)
    if sux<hoge:
        p=i
        hoge=sux
print(hoge)

import numpy as np
n=int(input())
x=np.fromstring(input(),int,sep=' ')
p=0
hoge=np.inf
for i in range(1,np.max(x)+1):
    sux=sum((x-i)**2)
    if sux<hoge:
        p=i
        hoge=sux
print(hoge)

n,r=map(int,input().split())
rate=0
if n<10:
    print(r+100*(10-n))
else:
    print(r)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N,R = input().split()
N,R = int(N),int(R)
L = R
if N < 10:
    L = R - 100*(10-N)
else:
    L = R

print(L)


N,R = input().split()
N,R = int(N),int(R)
L = R
if N < 10:
    L=100*(10-N)
else:
    L = R

print(L)


N,R = input().split()
N,R = int(N),int(R)
L = R
if N < 10:
    L=R + 100*(10-N)
else:
    L = R

print(L)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,k=map(int,input().split())
ans=0
while n>k:
  n/=n
  n=int(n)
  ans+=1

print(ans+1)

n,k=map(int,input().split())
ans=0
while n>k:
  n//=k
  ans+=1

print(ans+1)

n,r=map(int,input().split())
if n>=10:
  print(r)
else:
  print(r+100*(10-n))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N,R = map(int,input().split(" "))
if N >= 10:
    print(R)
else:
    print(R-(100*(10-N)))

N,R = map(int,input().split(" "))
if N >= 10:
    print(R)
else:
    print(R+(100*(10-N)))


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N, R = [int(x) for x in input().split(' ')]

if N > 9:
  print(R)
else:
  print(R - 100 * (10 - N))


N, R = [int(x) for x in input()]

if N > 9:
  print(R)
else:
  print(R - 100 * (10 - N))


N, R = [int(x) for x in input()]

if N > 9:
  print(R)
else:
  print(R - 100 * (10 - K))

N, R = [int(x) for x in input().split(' ')]

if N > 9:
  print(R)
else:
  print(R - 100 * (10 - K))


N, R = [int(x) for x in input().split(' ')]

if N > 9:
  print(R)
else:
  print(R + 100 * (10 - N))


Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N,R =map(int,input().split())
if N>=10:
  print(R)
else:
  print(R-(100*(10-N)))

N,R =map(int,input().split())
if N>=10:
  print(R)
else:
  print(R+(100*(10-N)))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N,R=map(int,input().split())
if N<10:
  print(R-(100*(10-N)))
else:
  print(R)

N,R=map(int,input().split())
if N<10:
  print(100*(10-N))
else:
  print(R)

N,R=map(int,input().split())
if N<10:
  print(N+(100*(10-N)))
else:
  print(R)

N,R=map(int,input().split())
if N<10:
  print(R+(100*(10-N)))
else:
  print(R)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
R = int(input())
if N >= 10:
  print(R)
else:
  print(R + 100*(10-N))

n = input().split()
if int(n[0]) >= 10:
  print(n[1])
else:
  print(int(n[1]) + 100*(10-int(n[0])))

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N,R=map(int,input().split())
if (N>=10):
  print (R)
else :
  print (R+100*(10-K))

N, R=map(int,input().split())
if (N>=10):
  print (R)
else :
  print (R+100*(10-N))

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n, R = map(int, input().split())
if n >= 10:
  print(R)
else:
  print(R-100*(10-n))

n, R = map(int, input().split())
if n >= 10:
  print(R)
else:
  print(R+100*(10-n))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,r=map(int,input().split())
if n>=10:
  naibu=r
else:
  naibu=r-100*(10-n)
print(naibu)

n,r=map(int,input().split())
if n>=10:
  naibu=r
else:
  naibu=r+100*(10-n)
print(naibu)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,r = map(int, nput().split())
print(r if n>10 else r+100*(10-n))

n,r = map(int, input().split())
print(r if n>10 else r+100*(10-n))


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n,r=map(int,input().split())
if n>=10:
    print(r)
else:
    print(r-1000+100*n)

n,r=map(int,input().split())
if n>=10:
    print(r)
else:
    print(r+1000-100*n)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,r=map(int,input().split())
rate=r if n>=10 else 100*(10-r)
print(r)

n,r = map(int,input().split())
if n>=10:
  print(r)
else:
  print(r+100*(100-n))

n,r=map(int,input().split())
rate= r if n>=10 else r+100*(10-n)
print(rate)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N,R= map(int,input().split())
if N > 9:
    print(R)
else:
    print(R-10*(10-N))

N,R= map(int,input().split())
if N > 9:
    print(R)
else:
    print(R-100*(10-N))

N,R= map(int,input().split())
if N > 9:
    print(R)
else:
    print(R+100*(10-N))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N, R = map(int, input().split())

if N >= 10:
    ans = R
else:
    ans = R - 100 * (10 - K)

print(ans)

N, R = map(int, input().split())

if N >= 10:
    ans = R
else:
    ans = R - 100 * (10 - N)

print(ans)

N, R = map(int, input().split())

if N >= 10:
    ans = R
else:
    ans = R + 100 * (10 - N)

print(ans)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N,R = map(int,input().split())

if N >= 10:
  print(N)

else:
  print(R-100*(10-N))

N,R = map(int,input().split())

if N >= 10:
  print(R)

else:
  print(R-100*(10-N))

N,R = map(int,input().split())

if N >= 10:
  print(R)

else:
  print(R+100*(10-N))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,r = map(int,input().split())

if n >= 10:
  print(r)
else:
  r -= 100*(10-n)
  print(r)


n,r = map(int,input().split())

if n >= 10:
	print(r)
else:
	r -= 100*(10-n)
    print(r)

n,r = map(int,input().split())

if n >= 10:
  print(r)
else:
  r += 100*(10-n)
  print(r)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n, k = map(int, input().split())
if n >= 10:
  return k
else:
  return n + 100 * (10-k)

n, k = map(int, input().split())
if n >= 10:
  print(k)
else:
  print(n + 100 * (10-k))

n, k = map(int, input().split())
if n >= 10:
  print(k)
else:
  print(k + 100 * (10-n))


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
tmp = input().split(" ")

N = int(tmp[0])
R = int(tmp[1])

if N >= 10:
  print(R)
else:
  ans = R + 100 * (100 - N)
  print(int(ans))

tmp = input().split(" ")
 
N = int(tmp[0])
R = int(tmp[1])
 
if N >= 10:
  print(R)
else:
  ans = R + 100 * (10 - N)
  print(int(ans))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,k = map(int,input().split())
def Base_10_to_n(X, A):
    if (int(X/A)):
        return Base_10_to_n(int(X/A), A)+str(X%A)
    return str(X%A)
ans = Base_10_to_n(n,k)
print(len(ans))

n,r = map(int,input().split())
if n >= 10:
    print(r)
else:
    print(r - (100 * (10 - n)))

n,r = map(int,input().split())
if n >= 10:
    print(r)
else:
    print(r + (100 * (10 - n)))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n,r = map(int,input().split()) 
if n>=10 :
    print(r)
else :
    print(r-100*(10-n)) 

n,r = map(int,input().split()) 
if n>=10 :
    print(r)
else :
    print(r+100*(10-n))  

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
def mpow(x: int, k: int, MOD=1000000007) -> int:
    
    res = 1
    y = x
    while (k):
        if(k % 2 == 1):
            res = (res * y) % MOD
        y = (y ** 2) % MOD
        k = k // 2
    return res

mod = 10**9+7 

N, a, b = map(int,input().split())

print(mpow(2,10**9))

num = 1000000000 + 7

MAX_NUM = N
MOD = 10**9+7

fac  = [0 for _ in range(MAX_NUM)]
finv = [0 for _ in range(MAX_NUM)]
inv  = [0 for _ in range(MAX_NUM)]

fac[0]  = fac[1] = 1
finv[0] = finv[1] = 1
inv[1] = 1

for i in range(2,MAX_NUM):
    fac[i] = fac[i-1] * i % MOD
    inv[i] = MOD - inv[MOD%i] * (MOD // i) % MOD
    finv[i] = finv[i-1] * inv[i] % MOD

def cmb(n,k):
    if n < k:
        return 0
    if n < 0 or k < 0:
        return 0
    return fac[n] * (finv[k] * finv[n-k] % MOD) % MOD

#print(mpow(2,N))

print(mpow(2,N)- cmb(N, a) - cmb(N, b) -1)

N, K = map(int,input().split())

if N < 10:
    print(K+100*(10-N))
else:
    print(K)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N,R=map(int, input().split())

if N >= 10:
  print(R)
else:
  print(R-100*(10-N))

N,R=map(int, input().split())

if N >= 10:
  print(R)
else:
  print(R+100*(10-N))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N,R=map(int, input().split())
print(R if N>=10 R+100*(10-N))

N,R=map(int, input().split())
print(R if N>=10 else R-100*(10-N))

N,R=map(int, input().split())
print(R if N>=10 else R+100*(10-N))


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
def f(n, r):
  if n < 9:
    return r
  else:
    return 100 * (10 - n)

def main():
  n, r = map(int,input().split())
  if n > 9:
    print(r)
  else:
    print(n + 100 * (10 - n))

main()

def main():
  n, r = map(int,input().split())
  if n < 10:
    return r
  else:
    return 100 * (10 - n)

main()

n, r = map(int, input().split())
if n < 10:
  return r
else:
  return 100 * (10 - n)


def main():
  n, r = map(int,input().split())
  if n > 9:
    return r
  else:
    return 100 * (10 - n)

main()


def main():
  n, r = map(int,input().split())
  if n > 9:
    return r
  else:
    return n + 100 * (10 - n)

main()


def main():
  n, r = map(int,input().split())
  if n < 10:
    return r
  else:
    return 100 * (10 - n)


def f():
  n, r = map(int,input().split())
  if n > 9:
    return r
  else:
    return 100 * (10 - n)


n, r = input()
if n < 10:
  return r
else:
  return 100 * (10 - n)


def f():
  n, r = map(int,input().split())
  if n < 10:
    return r
  else:
    return 100 * (10 - n)


n, r = map(int,input().split())
if n < 10:
  return r
else:
  return 100 * (10 - n)


def main():
  n, r = map(int,input().split())
  if n > 9:
    print(r)
  else:
    print(r + 100 * (10 - n))

main()

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N=int(input())
R=int(input())
if N>=10:
    print(R)
elif N<10:
    I=R+100(10-N)
    print(I)

N,R = map(int,input().split())
if N >= 10: print(R)
else: print(R + 100 * (10-N))


Verdicts: Runtime Error

Accepted