Problem:


Score : 100 points

Problem Statement

Takahashi is a member of a programming competition site, ButCoder.

Each member of ButCoder is assigned two values: Inner Rating and Displayed Rating.

The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.

Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

Constraints

All values in input are integers.

1 \leq N \leq 100

0 \leq R \leq 4111

Input

Input is given from Standard Input in the following format:

N R

Output

Print his Inner Rating.

Sample Input 1

2 2919

Sample Output 1

3719

Takahashi has participated in 2 contests, which is less than 10, so his Displayed Rating is his Inner Rating minus 100 \times (10 - 2) = 800.

Thus, Takahashi's Inner Rating is 2919 + 800 = 3719.

Sample Input 2

22 3051

Sample Output 2

3051



Sample input:
2 2919


Sample output:
3719

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(N: int, R: int):
    return R + 100 * (10 - min(10, N))


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    R = int(next(tokens))  # type: int
    print(solve(N, R)) 

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = tuple(int(x) for x in input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

print(r + max(10 - n, 0) * 100)

Submission status: Accepted

Solution code:
n,k = map(int,input().split())
print(k+100*(max(10-n,0)))

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, m = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=[int(x) for x in input().split()]
N=l[0]
R=l[1]

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

Submission status: Accepted

Solution code:
l=[int(x) for x in input().split()]
k=l[0]
r=l[1]
if k>10:
  print(r)
else:
  x=r+(100*(10-k))
  print(x)

Submission status: Accepted

Solution code:
[n, r] = map(int, input().rstrip().split(' '))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N,R = (int(x) for x in input().split())

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

Submission status: Accepted

Solution code:
N, R = map(int, input().split())

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

print("{}".format(ret))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input().split(" ")
n = int(str[0])
r = int(str[1])
if n < 10:
  print(r + 100 * (10 - n))
else:
  print(r)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

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

if n < 10:
    print(100 * (10 - n) + r)

else:
    print(r)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = [int(x) for x in input().split()]

if (a>=10):
    print(b)
else:
    print(b+100*(10-a))

Submission status: Accepted

Solution code:
n,m=map(int,input().split())
print(m+max(0,100*(10-n)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
N, R = s.split()

N, R = int(N), int(R)

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

Submission status: Accepted

Solution code:
#AtCodr ABC156-A

N, R = input().rstrip().split(' ')
N = int(N)
R = int(R)

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

Submission status: Accepted

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

rate = 0
if (10 <= N):
    rate = R
else:
    rate = R + 100 * (10 - N)

print(rate)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y = map(int,input().split())	

if x<11:
  r=y+100*(10-x)
else:
  r=y
  
print(r)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,r = (int(x) for x in input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def check_trial(n):
  num = n.split()
  if int(num[0]) > 10:
    return True
  else:
    return False
def in_rating(n, result):
  if result:
    num = n.split()
    return int(num[1])
  else:
    num = n.split()
    out_rating = int(num[1]) + 100*(10-int(num[0]))
    return out_rating
def main():
  n=input()
  result = check_trial(n)
  print(in_rating(n, result))
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numbers =input().rstrip().split()
#print(numbers)
N =int(numbers[0])
R =int(numbers[1])
if N>=10:
    rate=R
else:
    rate=R+100*(10-N)
print(rate)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
NandK = input()
NandK = NandK.split(' ')
N = int(NandK[0])
K = int(NandK[1])
if N >= 10:
    print(K)
else:
    print(K + 100 * (10 - N))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
n,r = map(int,input().split())
print(r+100*max(0,10-n))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
N, R = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    import sys
    input = sys.stdin.readline

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n,r = map(int,input().split())

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

	print(ans)

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

Solution code:
n, r = [int(elem) for elem in input().split()]
 
if n < 10:
  print(r + 100 *(10-n))
else:
  print(r)

Submission status: Accepted

Solution code:
N, R = map(int, input().split())

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

print(R)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int,input().split())

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

Submission status: Accepted

Solution code:
N,R = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
raw = input().split()
li = list(map(int, raw))
n = li[0]
r = li[1]

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

Submission status: Accepted

Solution code:
N,R=map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
src = list(map(int, input().split()))

print(src[1]) if src[0] >= 10 else print(src[1]+100*(10-src[0]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

# 参加回数が10以上とそうでない時に分離
if n >= 10:
    rate = r
else:
    temp_rate = 100 * (10 - n)
    rate = r + temp_rate

print(rate)

Submission status: Accepted

Solution code:
# cook your dish here
a,b=map(int,input().split())
if(a>=10):
    print(b)
else:
    print((10-a)*100+b)

Submission status: Accepted

Solution code:
n,r = map(int, input().split())

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

Submission status: Accepted

Solution code:
N, R = map(int,input().split())

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

Submission status: Accepted

Solution code:
n, r = map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

i = list(map(int, input().split()))
N = i[0]
R = i[1]

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

Submission status: Accepted

Solution code:
N,R = map(int,input().split())

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
if 1 <= i[0] and i[0] <= 100:
    N = i[0]
else:
    print('N is invalid value.')
if 0 <= i[1] and i[1] <= 4111:
    R = i[1]
else:
    print('R is invalid value.')

if N < 10:
    rate = R + (100 * (10 - N))
else:
    rate = R

print(rate)

Submission status: Accepted

Solution code:
N, R = map(int,input().split())
# print(n,r)

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

Submission status: Accepted

Solution code:
import sys

def main():

    # sys.stdin = open('input156a.txt')

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

    ans = r if n >= 10 else r + (100 * (10 - n))
   
    print(ans)
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input = [int(x) for x in input().split()]

numContests = input[0]
ratingDisplayed = input[1]
innerRating = 0
#displayed rating = innerrating -100*(10-N)
#innerRat

if (numContests>10):
    innerRating = ratingDisplayed
else:
    innerRating = ratingDisplayed+100*(10-numContests)

print(innerRating)

Submission status: Accepted

Solution code:
from collections import deque, Counter
from itertools import chain, combinations
import json
import numpy as np
import bisect


def main():
    # N = int(input())
    N, R = [int(a) for a in input().split()]
    if N > 10:
        print(R)
    else:
        print(R + 100 * (10 - N))
    # A = [int(a) for a in input().split()]
    #
    # A = sorted(A)
    # A = np.array(A)
    #


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def solve(n, r):
    if n <= 10:
        return r + 100 * (10 - n)
    else:
        return r


def main():
    n, r = map(int, input().split())
    res = solve(n, r)
    print(res)


def test():
    assert solve(2, 2919) == 3719
    assert solve(22, 3051) == 3051


if __name__ == "__main__":
    test()
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 7)
read = sys.stdin.buffer.read 
input = sys.stdin.buffer.readline
def inputS(): return input().rstrip().decode()
readlines = sys.stdin.buffer.readlines 

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

ans = 0
if N < 10:
  ans = (100*(10-N) + R)
else:
  ans = R
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r=map(int, input().split()) 

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

Submission status: Accepted

Solution code:
n,r=map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    K, R = map(int, input().split())

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

if __name__ =='__main__':
    main()

Submission status: Accepted

Solution code:
import unittest


class TestA(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think(2, 2919), 3719)

    def test_2(self):
        self.assertEqual(think(22, 3051), 3051)


def solve():
    n, r = read()
    result = think(n, r)
    write(result)


def read():
    return read_int(2)


def read_int(n):
    return read_type(int, n, sep=' ')


def read_float(n):
    return read_type(float, n, sep=' ')


def read_type(t, n, sep):
    return list(map(lambda x: t(x), read_line().split(sep)))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(n, r):
    return r if n >= 10 else r + 100 * (10 - n)


def write(result):
    print(result)


if __name__ == '__main__':
    # unittest.main()
    solve()

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(b+100*max(0,10-a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N, R = map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N,R = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
def resolve():
    N, R = map(int, input().split())  

    if N >= 10:
        print(R)
    else:
        R = R + 100 * (10 - N)
        print(R)
 
if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N, R = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,r = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
count, rating = list(map(int,input().split()))
if count < 10:
    print(rating + (100*(10-count)))
else:
    print(rating)

Submission status: Accepted

Solution code:
#s = input().split()
N,R = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def batcoder(n , r):

    return r if n > 10 else r + 100 * (10 - n)

def main():
    n , r = map(int , input().split())
    print(batcoder(n , r))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int,input().split())

print(r + 100 * max(10-n,0))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
sum = 0
ans = 0

if a < 10:
  sum = 100*(10-a)
  ans = b + sum
  print(ans)
else:
  print(b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,k = (int(_) for _ in input().split())


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N, R = list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

Solution code:
N,R = map(int,input().split())

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

Submission status: Accepted

Solution code:
N,R = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
def solve():
  n,r = (int(i) for i in input().split())
  if n >= 10:
    print(r)
  else:
    print(r+100*(10-n))
solve()

Submission status: Accepted

Solution code:
import sys

l = sys.stdin.readline().strip()
k, r = map(int, l.split())
print(max(100*(10-k),0) + r)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

Solution code:
K,R = list(map(int,input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
L = list(S.split())
N = int(L[0])
R = int(L[1])

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

print(A)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,r = map(int,input().split())
#
ans = 0
if n < 10:
    ans = r + 100 * (10 - n)
elif n >= 10:
    ans = r
#
print(ans)

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
N,R = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
	n,m = map(int,input().split())
	# a = list(map(int,input().split()))
	# l = [str(input()) for i in range(n)]
	
	if n < 10:
		print(100*(10-n) + m)
	else:
		print(m)
	

		
		
	
	
 
if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
n, a = input().split()
n = int(n)
a = int(a)

if n < 10:
	print(a + (100 * (10 - n)))
else:
	print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())
ans = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, r = map(int,input().split())

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

Submission status: Accepted

Solution code:
n, r = map(int, input().split())

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

Submission status: Accepted

Solution code:
K = list(map(int, input().split()))

if K[0] < 10:
  print(K[1] + 100*(10-K[0]))
else:
  print(K[1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = input().split()
N = int(a) #コンテスト参加回数
R = int(b) #表示レーティング

if N < 10:
  X = R + 100 * (10-N) #内部レーティング
  print(X)
else:
  print(R)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,k=(int(z) for z in input().split())
if n>=10:
  print(k)
else:
  print(k + 100 * (10 - n))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
N, R = [int(_) for _ in stdin.readline().rstrip().split()]
ans = max(10-N, 0) * 100
print(R + ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_line = list(map(int, input().split()))

if input_line[0] < 10:
  print(input_line[1] + (100 * (10 - input_line[0])))
else:
  print(input_line[1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import itertools
input = sys.stdin.readline
sys.setrecursionlimit(100000)


def read_values():
    return map(int, input().split())


def read_index():
    return map(lambda x: x - 1, map(int, input().split()))


def read_list():
    return list(read_values())


def read_lists(N):
    return [read_list() for n in range(N)]


def main():
    N, R = read_values()
    print(R if N >= 10 else R + 100 * (10 - N))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n,r = map(int, input().split())

if n < 10:
    rec = 100*(10-n)
    re = r + rec
    print(re)
    
else:
    print(r)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N, R = map(int, input().split())

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

Submission status: Accepted

Solution code:
n,r = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N,R = map(int,input().split())
if N >= 10:
    print(R)
else:
    print(int(R) + 100*(10-int(N)))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
N,R=map(int,input().split())

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

Submission status: Accepted

Solution code:
n, r = input().split()
n = int(n)
r = int(r)


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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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


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

Submission status: Accepted

Solution code:
import os

def main():
    a=[int(x) for x in input().split()]
    if a[0] >= 10:
        print(a[1])
    else:
        num = 100*(10-a[0])
        print(num + a[1])

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n,r=map(int,input().split())

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

Submission status: Accepted

Solution code:
[N, R] = list(map(int, input().split()))
if 10 <= N:
  ans = R
else:
  ans = R + 100 * (10 - N)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
N, R = map(int, input().split())

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

Submission status: Accepted

Solution code:
# int
# A = list(map(int, input().split()))
# string
# S = input().split()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numbers = [int(i) for i in input().split()]
N,Ro = numbers[0],numbers[1]

if N < 10:
    Ri = Ro + (100*(10-N))
else:
    Ri = Ro

print(Ri)

Submission status: Accepted

Solution code:
a,b = input().split()
a = int(a)
b = int(b)

if 1<=a<10:
  c = b + 100*(10-a)
  print(c)
elif 10<=a<=100:
  print(b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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