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=input().split()
n=int(n)
r=int(r)
if n>=10:
  print(r)
else:
  print(r-100*(10-n))

N,R=input().split()
n=int(N)
r=int(R)
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 = input().split(" ")
if n<10:
    print((100*(10-n))+r)
else:
    print(r)

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

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 = (int(x) for x in input().split())
if N>=10:
  print(R)
else:
  print(R-100*(10-N))

N,R = (int(x) for x in 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 = list(map(int, input().split(' ')))
if N >= 10:
    print(R)
else:
    print(R + (100 - (10 - N)))

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

N, R = list(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):
def framod(n, mod, a=1):
    for i in range(1,n+1):
        a=a * i % mod
    return a

def power(n, r, mod):
    if r == 0: return 1
    if r%2 == 0:
        return power(n*n % mod, r//2, mod) % mod
    if r%2 == 1:
        return n * power(n, r-1, mod) % mod

def comb(n, k, mod):
    a=framod(n, mod)
    b=framod(k, mod)
    c=framod(n-k, mod)
    return (a * power(b, mod-2, mod) * power(c, mod-2, mod)) % mod
n,a,b=map(int,input().split())
modd = 10**9+7
print(2**n-comb(n,a,modd)-comb(n,b,modd)-1)

n,k = map(int,input().split())
if n >= 10:
    print(k)
else:
    print(100*(10-n)+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())
print(n, r) 

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

print(ans)

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

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

print(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,a,b=map(int,input().split());k=10**9+7;c=(1<<n)%k-1;X=Y=1
for i in range(b):X=X*(n-i)%k;Y=Y*(i+1)%k;c-=X*pow(Y,k-2,k)if i+1in(a,b)else 0
print(c%k)

n,*a=map(int,open(0).read().split());k=10**9+7
c=(1<<n)%k-1
for l in a:
	X=Y=j=Z=1;d=k-2
	for i in range(l):X=X*(n-i)%k
	while j<=l:Y=Y*j%k;j+=1
	while d>0:Z=Z*Y%k if d&1==1 else Z;Y=Y*Y%k;d>>=1
	c-=X*Z%k
print(c%k)

N,*X=map(int,open(0).read().split());print(sum(map(lambda x:(round(sum(X)/N)-x)**2,X)))

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

Verdicts: Runtime Error

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())
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: 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 + 1000 - 100 * n

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

n,r=map(int,input().split())
if n >= 10:
    ans = r
else:
    ans = r + 1000 - 100 * 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):
def main():
    B = list(map(int, input().split()))
    # # [1,2,3]
    N = B[0]
    R = B[1]

    if N < 10:
        print(R)
    A = 100 * (10 - N)
    
    print(R + A)
    
main()

def main():
    B = list(map(int, input().split()))
    # # [1,2,3]
    N = B[0]
    R = B[1]

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

      print(R + A)

main()

def main():
    B = list(map(int, input().split()))
    # # [1,2,3]
    N = B[0]
    R = B[1]

    if N < 10:
        A = 100 * (10 - N)
    
        print(R + A)
    else:
        print(R)
   
    
main()

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:
    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(lambda x: int(x), input().split())
if n < 10:
  print(100*(10-n)+r)
  return
print(r)

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


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 = [int(i) for i in input().split()]

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

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

if N < 10:
    print(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):
a,b=map(int,input().split())
print(b+100*max(10-a,0)

a,b=map(int,input().split())
print(b+100*max(10-a,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 = list(map(int, input().split()))

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


N, R = list(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):
m,n = map(int,input().split())
if m>=10:
    print(n)
else:
    print(n+(100-m))

m,n = map(int,input().split())
if m>9:
    print(n)
else:
    print(n+(100-m))

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

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

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

Verdicts: Wrong Answer

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):
def a(N,R):
     if N >= 10:
             print(R)
     else:
             print(R+(100*(10-K)))
     return

  
a(N,R)

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

N, R = map(int, input().split())
def a(N,R):
     if N >= 10:
             print(R)
     else:
             print(R+(100*(10-N)))
     return
  
a(N,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 = 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(100*(10-N))

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

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


Verdicts: Wrong Answer

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(int(r))
else:
    a = 100*(10-n)
    print(int(r+a))

inputStr = input()
inputList = inputStr.split(' ')
n = int(inputList[0])
r = int(inputList[1])

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

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,M = map(int, input().split())

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

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

if N <= 9:
  print(M + 100*(10 -N))
else:
  print(M)


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):
l = list(map(int, input().split()))
 
if l[0] > 10:
  print(l[1])
else:
  print(100*(10-l[])))

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

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

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(input().split())
if n<10:
  r=r+100*(10-n)
print(r)

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

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+100n)

n, r  = map(int, input().split())
if n >=10:
	print(r)
else:
	print(r+1000-100*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 r<10:
  print(r + 100*(10-n))
else:
  print(r)

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

if r<10:
  print(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

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):
#!python3.4
# -*- coding: utf-8 -*-
# abc156/abc156_a
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    N, R = i2nn()
    if N < 10:
        print(R - 100 * (10 - N))
    else:
        print(R)
    return

main()


#!python3.4
# -*- coding: utf-8 -*-
# abc156/abc156_a
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    N, R = i2nn()
    if N < 10:
        r = R - 100 * (10 - N)
        print(r if r > 0 else 0)
    else:
        print(R)
    return

main()


#!python3.4
# -*- coding: utf-8 -*-
# abc156/abc156_a
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    N, R = i2nn()
    if N < 10:
        print(R + 100 * (10 - N))
    else:
        print(R)
    return

main()


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):
a = [int(i) for i in a.split()]

N = a[0]
R = a[1]


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

i = input()
print(i)

a = [int(i) for i in input().split()]

N = a[0]
R = a[1]


#R = X - 100 * (10 - N)
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):
import sys

def main(lines):
  n, r = lines[0].split()
    if n >= 10:
      print(r)
    else:
      print(r + 100*(10-n))
    return
    
if __name__ == '__main__':
    lines = []
    for l in sys.stdin:
        lines.append(l.rstrip('\r\n'))
    main(lines)


import sys

def main(lines):
	n, r = lines[0].split()
    if n >= 10:
      print(r)
    else:
      print(n + 100*(10-n))
    return
    
if __name__ == '__main__':
    lines = []
    for l in sys.stdin:
        lines.append(l.rstrip('\r\n'))
    main(lines)


import sys

def main(lines):
	n, r = lines[0].split()
    if n >= 10:
      print(r)
    else:
      print(r + 100*(10-n))
    return
    
if __name__ == '__main__':
    lines = []
    for l in sys.stdin:
        lines.append(l.rstrip('\r\n'))
    main(lines)


import sys

def main(lines):
  n, r = map(int,lines[0].split())

  if n >= 10:
    print(r)
  else:
    print(r + 100*(10-n))
  return
    
if __name__ == '__main__':
    lines = []
    for l in sys.stdin:
        lines.append(l.rstrip('\r\n'))
    main(lines)


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 - N*100)
else:
  	print(R)

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

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

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

if N < 10:
    print(R + (10-N)*100)
else:
    print(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):
a,b=map(int, input().split())
print a>10?b:b+800

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

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):
s = input().split()

K = int(s[0])
N = int(s[1])

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

input_line = int(input())
for i in range(input_line):
  s = input().rstrip().split(' ')
  print("hello = "+s[0]+" , world = "+s[1])

s = input().split()

K = int(s[0])
N = int(s[1])

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

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):
a,b=map(int,input().split())
c=0
if a >=10:
  print(b)
else:
  c = 100 * (10-a)
  print(c)

a,b=map(int,input().split())
c=0
res = 0
if a >=10:
  print(b)
else:
  c = 100 * (10-a)
  res = b-c
  print(res)

a,b=map(int,input().split())
c=0
res = 0
if a >=10:
  print(b)
else:
  c = 100 * (10-a)
  res = b+c
  print(res)

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())
P = 10**9+7

ans = 1
nCl = 1
n1Cl = 1
for l in range(1,min(k+1,n)):
    nCl = nCl*(n+1-l)*pow(l,P-2,P)%P
    n1Cl = n1Cl*(n-l)*pow(l,P-2,P)%P
    ans = (ans+nCl*n1Cl)%P

print(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))

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

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



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):
a,b=map(int,input().split())
c=0
if a>b:
while a//b>=b:  
  a=a//b
  c+=1
print(c+2)
else:
    print(len(a))


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


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


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:
    k = R
    print(k)
else:
    k = 100*(10-N)+R
    orint(k)

N,R = map(int, input().split())
if N >= 10:
    k = R
    print(k)
else:
    k = 100*(10-N)+R
    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 > 9:
  print(R)
else:
  print(R + 100*(N-1))

N,R = map(int,input().split())
if N > 9:
  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:
  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):
print((lambda x:(int(x[1])+(100*(10 - (10 if x[0]>=10 else x[0])))))(input().split()))

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

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

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

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

Verdicts: Runtime Error

Runtime Error

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):
a,b=map(int,input().split())
print(b if a>=10 else b+100*(10-b))

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

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):
int(num),int(val) = input().split(" ")

if num < 10:
	print val + 100*(10-num)
else:
	print val


def main():
	num,val = input().split(" ")
	num = int(num)
	val = int(val)

	if num < 10:
		print(val + 100*(10-num))
	else:
		print(val)

if __name__ == "__main__":
    main()

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):
sum,rate=map(int,input().split())
if sum>=10:
    print(rate)
else:
     ans=rate-(100*(10-sum))
     print(ans)   

sum,rate=map(int,input().split())
if sum>=10:
    print(rate)
else:
     ans=rate-100*(10-sum)
     print(ans)   

sum,rate=map(int,input().split())
if sum>=10:
    print(rate)
else:
     ans=rate+100*(10-sum)
     print(ans)   

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())
if n < 10:
    print(k - (100 * (10 - n)))
else:
    print(k)

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

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):
#156D
p=7+10**9
def comb(n,r):
  bunshi = 1
  for i in range(n-r+1, n+1):
    bunshi =bunshi * i % p
  bunbo = 1
  for i in range(1, r+1):
    bunbo = bunbo * i % p
  return bunshi * pow(bunbo, p-2, p)
n,a,b=map(int,input().split())
s=-1+pow(2,n,p)-comb(n,a)-comb(n,b)
print(s%p)


n,m=map(int,input().split())
print(m+max(0,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 = input(int,split())
if N <= 9:
  R -= 100*(10-R)
print(R)

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

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

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):
n,r=map(int,input().split())
s=r-100*(10-n)
if n>=10:
  print(r)
else:
  print(s)

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

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 math

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

ans = math.ceil(math.log(n)/math.log(k))

print(ans)


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

if n >=10:
    print(r)
else:
    print(r+1000-100*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(10-R/100)

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,k = int(input().split())
if n >= 10:
    print(k)
else :
    print(k+100*(10-n))    

n,k = map(int,input().split())
if n >= 10:
    print(k)
else :
    print(k+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, m = map(int, input().split())
if n <= 10:
  minus = (10 - n) * 100
print(m - minus)

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(100*(10-n))

n,r = map(int,input().split())
if n>=10:
  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):
N, R = map(int, input().split())
if N >= 10:
    print(R)
else:
    print(R*(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)
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:
    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