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):
import statistics

def cal_hp(p, num_list):
    total = 0
    for num in num_list:
        temp = (num - p) ** 2
        total = total + temp
    return total

line1 = input()
line2 = input()

num_list = line2.split(" ")
num_list = [int(n) for n in num_list]
ans_list = []

for i in range(0, max(num_list)+1):
    ans_list.append(cal_hp(i, num_list))
print(min(ans_list))


line = input()
n, r = line.split(" ")

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

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

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):
s=str(input())
if s== 'AAA' or s=='BBB':
  print('No')
else:
  print('Yes')

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

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

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

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

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

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


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

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


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

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


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

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())
print(R + 100*(10-N)) if n < 10 else print(R)

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


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


data = input().split()
if int(data[0]) > 10:
  ans = data[1]
else:
  ans = 100 * (10 - data[0])

print(ans)


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


data = input().split()

n = int(data[0])
r = int(data[1])

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

print(ans)


Verdicts: Wrong Answer

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):
n, r = int(input().split())

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

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

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(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: 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 E(N,R):
    if 1<= N <= 100 and 0<= R <= 4111:
        K = 100*(10-N)
        if K < 0:
            M =R
            print(M)
        else:
            M = R +K
            print(M)
    else:
        print('please input right numbers')


def E(N,R):
    while int(N)==N and int(R)==R:
        if 1<= N <= 100 and 0<= R <= 4111:
            if N > 10:
                print(R)
            else:
                K = 100 * (10 - N)
                print(R+K)
        break

N = int(input())
R = int(input())
if 10 < N <= 100 and 0 <= R <= 4111:
    print(R)
if 1<= N < 10 and 0 <= R <= 4111:
    K = 100 * (10 - N)
    M = R + K
    print(M)

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

if 1 <= N <= 100 and 0 <= R <= 4111:
    if N > 10:
        print(R)
    else:
        K = 100 * (10 - N)
        M = R + K
        print(M)
else:
    False

class E():
    def ee(N,R):
        if int(N)==N and int(R)==R:
            if 1<= N <= 100 and 0<= R <= 4111:
                if N > 10:
                    M =R
                    print(M)
                else:
                    K = 100 * (10 - N)
                    M = R + K
                    print(M)
            else:
                print('please input right numbers')
        else:
            print('please input an integer')


def E(N,R):
    if 1<= N <= 100 and 0<= R <= 4111:
        if N > 10:
            M =R
            print(M)
        else:
            K = 100 * (10 - N)
            M = R + K
            print(M)
    else:
        print('please input right numbers')

m = input("")
list = m.split(" ")
if eval(list[0])<10:
    print(eval(list[1])+100*(10-eval(list[0])))
if eval(list[0])>=10:
    print(eval(list[1]))

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

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 = list(map(int, input()))

n1 = n[0]
n2 = n[1]

if n1 < 10:
  print(n2 - (100*(10-n1)))
else:
  print(n2)

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

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

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

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

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 resolve():
    n = int(input())
    x = list(map(int, input().split()))
    x.sort()
    xx = [0 for i in range(n)]
    for i,j in enumerate(x):
        xx[i] = j**2
    minp = 100
    p = 0
    for i in range(max(x)):
        k = i*(n*i - 2*sum(x))
        if k < minp:
            minp = k
            p = i
    print(sum(xx)-2*p*sum(x)+n*(p**2))

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

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

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


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


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

from math import factorial
ans = 0

if n % 2 == 1:
    for i in range(1, n // 2 + 1):
        ans += factorial(n) // factorial(i) // factorial(n - i)
    ans *= 2 + 1
else:
    for i in range(1, n // 2):
        ans += factorial(n) // factorial(i) // factorial(n - i)
    ans *= 2
    ans += factorial(n) // factorial(n // 2) // factorial(n - n // 2) + 1

ans -= factorial(n) // factorial(a) // factorial(n - a)
ans -= factorial(n) // factorial(b) // factorial(n - b)
print(ans)

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

n = list(map(int,input().split()))
if n[0]<10:
    print(100*(10-n[0])+n[1])
else:
    print(n[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):
import math
import copy
from copy import deepcopy
import sys
import fractions
import numpy as np
from functools import reduce
import statistics
import heapq

# input = sys.stdin.readline


# ===FUNCTION===

def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===

data = getInputListInt()
n = data[0]
r = data[1]

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

print(ans)

import math
import copy
from copy import deepcopy
import sys
import fractions
import numpy as np
from functools import reduce
import statistics
import heapq

# input = sys.stdin.readline


# ===FUNCTION===

def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===

data = getInputListInt()
n = data[0]
r = data[1]

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


a,b = map(int, input().split())
if a < 10:
  ans = b + 100*(10 - a)
else:
  ans = b
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):
i = list(map(int, input().split()))
N = i[0]
R = i[1]

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

print(insc)

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

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

print(insc)

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:
    t = 100*(10-n)
    print(r-t)

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

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

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

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

while n  >= k: 
    n = n // k
    t += 1
    
print(t+1)

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

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



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

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

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

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

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

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

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

N,R = list(map(int,input().split()))
print( int(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())
rating = R if N >= 10 else R - 100*(10-N)
print(rating if rating > 0 else 0)

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

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


n,r=map(int,input().split())
if n>=10:
    print(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 = int(input())
X = list(map(int, input().split()))

m = min(X)
M = max(X)

min_val = 100 * 100 * 100 * 100
for p in range(m, M+1):
    score = 0
    for x in X:
         score += (x-p)*(x-p)
    if score < min_val: min_val = score
print(min_val)


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

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 math
def main():
    N, K = map(int, input().split())
    if N % K == 0:
        print(math.ceil(math.log(N,K))+1)
    else:
        print(math.ceil(math.log(N,K)))


if __name__ == '__main__':
    main()

import math
def main():
    N, K = map(int, input().split())
    if K ==1:
        print(N+1)
    elif N % K == 0:
        print(math.ceil(math.log(N,K))+1)
    else:
        print(math.ceil(math.log(N,K)))


if __name__ == '__main__':
    main()

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

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

if __name__ =='__main__':
    main()    

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=int(N)
R=int(R)
if 1<=N<=9:
    R_exhibit=R-100*(10-N)
    print(R_exhibit)
elif N>=10:
    R_exibit=R
    print(R_exhibit)

N,R=input().split()
N=int(N)
R=int(R)
if (R>4111)or(R<0):
  None
if 1<=N<=9:
  R_internal=R+100*(10-N)
  print(R_internal)
elif N>=10:
  R_internal=R
  print(R_internal)
else:
  None

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(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,K=[int(s) for s in input().split()]
if N<10:
  print(K-(10-N)*100)
else:
  print(K)

N,K=[int(s) for s in input().split()]
if N<10:
  print(K+(10-N)*100)
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):
n, r = int(input())
k = 0
if(n<10):
    k=100*(10-n)
    print(k)
else:
    print(r)

n= int(input())
r = int(input())
k = 0
if(n<10):
    k=100*(10-n)+r
    print(k)
else:
    print(r)

def toStr(n,base):
    convertString = "0123456789ABCDEF"
    if n < base:
        return convertString[n]
    else:
        return toStr(n//base,base) + convertString[n%base]

a,b = map(int,input().split())
print(len(toStr(a,b)))

n= int(input())
r = int(input())
k = 0
if(n<10):
    k=100*(10-n)
    print(k)
else:
    print(r)

def toStr(n,base):
    convertString = "0123456789ABCDEF"
    if n < base:
        return convertString[n]
    else:
        return toStr(n//base,base) + convertString[n%base]

a,b = map(int,input().split())
print(len(toStr(a,b)))

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

Verdicts: Runtime Error

Runtime Error

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):
import sys
input = sys.stdin.readline

def main():
    def calc(n, mod):
        f = 1
        for m in range(1, n + 1):
            f *= m
            f %= mod
        fn = f
        inv = pow(f, mod - 2, mod)
        invs = [1] * (n + 1)
        invs[n] = inv
        for m in range(n, 1, -1):
            inv *= m
            inv %= mod
            invs[m - 1] = inv 
        return fn, invs

    mod = 10**9+7
    n,a,b=map(int,input().split())
    ans=0
    fn,invs=calc(n,mod)
    for i in range(1,n+1):
        if i==a or i==b:
            continue
        else:
            ans+=(invs[i]*invs[n-i])%mod
    print((fn*ans)%mod)

if __name__ == '__main__':
    main()

import sys
input = sys.stdin.readline

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


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):
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):
#coding:utf-8

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

if(n < 10):
  k = k + 100 * (10 - n)
  
print("{}".format(k))

#coding:utf-8

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

if(n < 10):
  k = k + 100 * (10 - n)
  
print("{}".format(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(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

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

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

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

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

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 = int(input())
r = int(input())
if n<10 and -1<n:
  	print(r+100*(10-n))
elif n>=10:
    print(r)

n = int(input())
r = int(input())
if n<10 and -1<n:
  	print(r+100(10-n))
elif n>=10:
    print(r)

n,m=map(int,input().split())
a=[]
for i in range(0,m):
    num=int(input())
    a.append(num)
    n-=a[i]
if n<=0:
    print(-1)
else:
    print(n)

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

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):
import os

def main():

    N,K = (int(x) for x in input().split())
    count = 0

    while(N > 0):
        N = N // K
 
        count += 1

    print(count)

if __name__ == "__main__":
    main()

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

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(10 - n, 0))

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

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

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

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

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

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

return calc(n,r)

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

def calc(n, k):
  i = 1
  tmp = n
  while (tmp > k):
    tmp = tmp - k**i
    i += 1
    return i

print(str(calc(n,k)))

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

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

print(str(calc(n, r)))


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

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

print(calc(n, r))


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

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

N = int(input())
R = int(input())
if N >= 10:
    print(R)
elif N <= 10:
    print(100*(10-N) + R)

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted