TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: You are given a string S of length N consisting of lowercase English letters.  Process Q queries of the following two types:    * Type 1: change the i_q-th character of S to c_q. (Do nothing if the i_q-th character is already c_q.)   * Type 2: answer the number of different characters occurring in the substring of S between the l_q-th and r_q-th characters (inclusive).

Submission attempts (in order):
#!/usr/bin/env python3
import bisect

# 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():
    N = int(input())
    S = list(input())
    Q = int(input())

    L = [[] for x in range(26)] 

    for idx, s in enumerate(S):
        L[ord(s)-ord("a")].append(idx)

    for _ in range(Q):
        row = input().split()
        if row[0] == '1':
            y, z = int(row[1])-1, row[2]
            idx_target = ord(S[y]) - ord("a")
            idx_del = bisect.bisect_left(L[idx_target], y)
            if idx_del < len(L[idx_target]):
                L[idx_target].pop(idx_del)
            bisect.insort(L[ord(z) - ord("a")], y)
            S[y] = z

        elif row[0] == '2':
            y, z = int(row[1]) - 1, int(row[2]) - 1
            answer = 0
            for idx_alphabet in range(ord("a"), ord("z")+1):
                left = bisect.bisect_left(L[idx_alphabet], y)
                if left < len(L[idx_alphabet]) and y <= L[idx_alphabet][left] <= z:
                    answer += 1
            print(answer)

    # Failed to predict input format
    pass

if __name__ == '__main__':
    main()


#!/usr/bin/env python3
import bisect

# 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():
    N = int(input())
    S = list(input())
    Q = int(input())

    L = [[] for x in range(26)] 

    for idx, s in enumerate(S):
        L[ord(s)-ord("a")].append(idx)

    for _ in range(Q):
        row = input().split()
        if row[0] == '1':
            y, z = int(row[1])-1, row[2]
            if S[y] != z:
                idx_target = ord(S[y]) - ord("a")
                idx_del = bisect.bisect_left(L[idx_target], y)
                if idx_del < len(L[idx_target]):
                    L[idx_target].pop(idx_del)
                bisect.insort(L[ord(z) - ord("a")], y)
                S[y] = z

        elif row[0] == '2':
            y, z = int(row[1]) - 1, int(row[2]) - 1
            answer = 0
            for idx_alphabet in range(26):
                left = bisect.bisect_left(L[idx_alphabet], y)
                if left < len(L[idx_alphabet]) and y <= L[idx_alphabet][left] <= z:
                    answer += 1
            print(answer)

    # Failed to predict input format
    pass

if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of lowercase English letters.  Process Q queries of the following two types:    * Type 1: change the i_q-th character of S to c_q. (Do nothing if the i_q-th character is already c_q.)   * Type 2: answer the number of different characters occurring in the substring of S between the l_q-th and r_q-th characters (inclusive).

Submission attempts (in order):
import bisect  
from collections import defaultdict

N = int(input())
S = [*input()]
Q = int(input())
d = defaultdict(list)


for i, c in enumerate(S):
    d[c] += [i]


print(d)

for _ in range(Q):
    q, y, z = input().split()

    if q == '1':
        i = int(y) - 1  

        if S[i] == z: continue  

        
        b = bisect.bisect(d[S[i]], i)  
        d[S[i]].pop(b - 1)  

        
        S[i] = z
        bisect.insort(d[z], i) 

    else:
        left = int(y) - 1
        right = int(z) - 1

        print(sum(bisect.bisect(v, right) - bisect.bisect_left(v, left - 1) > 0 for v in d.values()))


import bisect  
from collections import defaultdict

N = int(input())
S = [*input()]
Q = int(input())
d = defaultdict(list)


for i, c in enumerate(S):
    d[c] += [i]


# print(d)

for _ in range(Q):
    q, y, z = input().split()

    if q == '1':
        i = int(y) - 1  

        if S[i] == z: continue  

        
        b = bisect.bisect(d[S[i]], i)  
        d[S[i]].pop(b - 1)  

        
        S[i] = z
        bisect.insort(d[z], i) 

    else:
        left = int(y) - 1
        right = int(z) - 1

        count = 0
        for v in d.values():
            count += 1 if bisect.bisect(v, right) - bisect.bisect_left(v, left) > 0 else 0

        print(count)

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of lowercase English letters.  Process Q queries of the following two types:    * Type 1: change the i_q-th character of S to c_q. (Do nothing if the i_q-th character is already c_q.)   * Type 2: answer the number of different characters occurring in the substring of S between the l_q-th and r_q-th characters (inclusive).

Submission attempts (in order):
import bisect

N = int(input())
S = list(str(input()))

def ordN(x):
  return ord(x) - ord('a')

li = [[] for _ in range(26)]
for i,s in enumerate(S):
  li[ordN(s)].append(i)

for i in range(int(input())):
  Q1, Q2, Q3 = input().split()
  if Q1 == "1":
    Q2 = int(Q2) - 1
    if S[Q2] != Q3:
      I = bisect.bisect(li[ordN(S[Q2])])
      li[ordN(S[Q2])].pop(I)
      bisect.insort(li[ordN(Q3)], Q2)
      S[Q2] = Q3
  else:
    Q2, Q3 = int(Q2)-1, int(Q3)-1
    count = 0
    for j in range(26):
      I = bisect.bisect_left(li[j], Q2)
      if I < len(li[j]) and li[j][I] <= Q3:
        count += 1
    print(count)

import bisect

N = int(input())
S = list(str(input()))

def ordN(x):
  return ord(x) - ord('a')

li = [[] for _ in range(26)]
for i,s in enumerate(S):
  li[ordN(s)].append(i)

for i in range(int(input())):
  Q1, Q2, Q3 = input().split()
  if Q1 == "1":
    Q2 = int(Q2) - 1
    if S[Q2] != Q3:
      I = bisect.bisect_left(li[ordN(S[Q2])], Q2)
      li[ordN(S[Q2])].pop(I)
      bisect.insort(li[ordN(Q3)], Q2)
      S[Q2] = Q3
  else:
    Q2, Q3 = int(Q2)-1, int(Q3)-1
    count = 0
    for j in range(26):
      I = bisect.bisect_left(li[j], Q2)
      if I < len(li[j]) and li[j][I] <= Q3:
        count += 1
    print(count)

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of lowercase English letters.  Process Q queries of the following two types:    * Type 1: change the i_q-th character of S to c_q. (Do nothing if the i_q-th character is already c_q.)   * Type 2: answer the number of different characters occurring in the substring of S between the l_q-th and r_q-th characters (inclusive).

Submission attempts (in order):
def main():
    n = int(input())
    S = input()
    q = int(input())
    for _ in range(q):
        t, i, c = input().split()
        if t == '1':
            S[int(i)-1] = c
        else:
            print(len(set(S[int(i)-1:int(c)])))
        
if __name__ == "__main__":
    main()   

from bisect import bisect_left, bisect, insort
def main():
    n = int(input())
    s = list(input())
    q = int(input())
    _is = {chr(i):[] for i in range(ord("a"), ord("a")+27)}
    for i, si in enumerate(s):
        _is[si].append(i)
    for _ in range(q):
        t, i, c = input().split()
        i = int(i)-1
        if t == "1":
            if s[i] != c:
                index = bisect_left(_is[s[i]], i)
                del _is[s[i]][index]
                insort(_is[c], i)
                s[i] = c
        else:
            c = int(c) - 1
            cnt = 0
            for _isi in _is.values():
                if _isi:
                    is_in = bisect(_isi, c)-bisect_left(_isi, i)
                    if is_in:
                        cnt += 1
            print(cnt)


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of lowercase English letters.  Process Q queries of the following two types:    * Type 1: change the i_q-th character of S to c_q. (Do nothing if the i_q-th character is already c_q.)   * Type 2: answer the number of different characters occurring in the substring of S between the l_q-th and r_q-th characters (inclusive).

Submission attempts (in order):
7
abcdbbd
6
2 3 6
1 5 z
2 1 1
1 4 a
1 7 d
2 1 7


import sys
input=sys.stdin.readline
n=int(input())
#print(n,end=' n')
data=[0]*(2*n)
def upd(i,x):
  i+=n
  data[i]=x
  while i>1:
    data[i>>1]=data[i]|data[i^1]
    i>>=1
def qry(l,r):
  l+=n
  r+=n
  res=0
  while l<r:
    if l&1:
      res|=data[l]
      l+=1
    if r&1:
      r-=1
      res|=data[r]
    l>>=1
    r>>=1
  return bin(res).count('1')

for i,c in enumerate(input()[:-1],n):
  data[i]=1<<(ord(c)-ord('a'))
for i in range(n-1,0,-1):
  data[i]=data[i<<1]|data[i<<1|1]
ans=[]
for _ in range(int(input())):
  q,a,b=input().split()
  if int(q)==1:
    upd(int(a)-1,1<<(ord(b)-ord('a')))
  else:
    ans.append(qry(int(a)-1,int(b)))
print('\n'.join(map(str,ans)))





Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of lowercase English letters.  Process Q queries of the following two types:    * Type 1: change the i_q-th character of S to c_q. (Do nothing if the i_q-th character is already c_q.)   * Type 2: answer the number of different characters occurring in the substring of S between the l_q-th and r_q-th characters (inclusive).

Submission attempts (in order):
import bisect
n = int(input().strip())
S = input().strip()
L=[[] for _ in range(26)]
for i,s in enumerate(S):
    L[ord(s)-ord("a")].append(i)

q = int(input().strip())
for _ in range(q):
    query=input().strip().split()
    if query[0]=="1":
        i=int(query[1])
        i-=1
        c=query[2]
        if S[i]!=c:
            delInd=bisect.bisect_left(L[ord(S[i])-ord("a")],i)
            del L[ord(S[i])-ord("a")][delInd]
            bisect.insort(L[ord(c)-ord("a")], i)
            S[i]=c
    else:
        l,r=map(int,[query[1],query[2]])
        l-=1; r-=1
        ans=0
        for j in range(26):
            ind=bisect.bisect_left(L[j],l)
            if ind<len(L[j]) and L[j][ind]<=r:
                ans+=1
        print(ans)

import bisect
n = int(input().strip())
S = list(input().strip())
L=[[] for _ in range(26)]
for i,s in enumerate(S):
    L[ord(s)-ord("a")].append(i)

q = int(input().strip())
for _ in range(q):
    query=input().strip().split()
    if query[0]=="1":
        i=int(query[1])
        i-=1
        c=query[2]
        if S[i]!=c:
            delInd=bisect.bisect_left(L[ord(S[i])-ord("a")],i)
            del L[ord(S[i])-ord("a")][delInd]
            bisect.insort(L[ord(c)-ord("a")], i)
            S[i]=c
    else:
        l,r=map(int,[query[1],query[2]])
        l-=1; r-=1
        ans=0
        for j in range(26):
            ind=bisect.bisect_left(L[j],l)
            if ind<len(L[j]) and L[j][ind]<=r:
                ans+=1
        print(ans)

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

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

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

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

n,r = map(int,input().split())
if 0 <= 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):
import sys
import os
f = open('input.txt', 'r')
sys.stdin = f

s = list(map(int, input().split()))
ans = 0

if s[0]<=10:
    ans = s[1]+100*(10-s[0])
else:
    ans = s[1]

print(ans)


s = list(map(int, input().split()))
ans = 0

if s[0]<=10:
    ans = s[1]+100*(10-s[0])
else:
    ans = s[1]

print(ans)


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


n,r = map(int,input().split())
if 10<=n :
  print(r)
elif 1<= 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):
import math

N,K = map(int,input().rstrip().split(" "))
if N > 0:
  print(math.ceil(math.log(N+1,K)))
else:
  print(1)

N = int(input())
X = list(map(int,input().rstrip().split(" ")))
ans = 0
ansb = 0
for i in range(100):
  ansb = 0
  for i2 in range(N):
    ansb += (X[i2] - i)**2
  if i == 0 or ans > ansb:
    ans = ansb
print(ans)


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

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


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 = int(input())
x = input().split(' ')

p = 0
ans = []
while p <= int(x[n-1]):
  e = 0
  for i in range(n):
    e += (int(x[i])-p)**2
  ans.append(e)
  p+=1
print(min(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 = int(input())
R = int(input())
if 0 <= R <= 4111:
    if 10 <= N <= 100:
        print(R)
    else:
        K = 100 * (10 - N)
        M = R + K
        print(M)

def E(N,R):
    if 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)
        else:
            print('please input right numbers')
    else:
        print('please input an integer')

N = int(input('N:'))
R = int(input('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

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:
                    print(R)
                else:
                    K = 100 * (10 - N)
                    print(R+K)
            else:
                print('please input right numbers')
        else:
            print('please input an integer')

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

Verdicts: 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):
import numpy as np

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

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

import numpy as np

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

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

import numpy as np

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

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

# -*- coding: utf-8 -*-
N,R = map(int, input().split())
if N < 10:
  R = R - 100×(10−N)

print(R)

# -*- coding: utf-8 -*-
N,R = map(int, input().split())
if N < 10:
	R = R - 100 * (10 - N )
     
print(R)

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

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

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

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

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

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

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

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

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

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

def base10to(n, k):
    if (int(n/k)):
        return base10to(int(n/k), k) + str(n%k)
    return str(n%k)

a = base10to(n, k)
print(len(a))


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

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

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

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

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


Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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


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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

n,r = 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: Wrong Answer

Runtime Error

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

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

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,K = map(int,input().split())
N += 1
ans = 1
for i in range(1000000): 
	if K**(ans) < N:
		ans += 1
	else:
		print(ans)
		break

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

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

n, r = [int(elem) for elem 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):
N, R = map(int, input().split())
print(R+100*(10-min(10,K)))

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

i = 0
while n > 0:
    n = n - k**i
    if n < 0:
        break
    i += 1

print(i)

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

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

print(r)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

Submission attempts (in order):
N  , R = map(int,input().split())
if N >= 10:
    print(R)
else:
    print(N + 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):
import os
import sys
import numpy 

if _name_=='__main__':
  _input = input()
  _input = _input.split()
  N = _input[0]
  R = _input[1]
  if N<10:
    R -= 100 * (10-N)
  print(R)

_input = input()
number = _input.split()
N = number[0]
R = number[1]
if N<10:
  R += 100 * (10-N)
print(R)
            

_input = input()
number = _input.split()
N = int(number[0])
R = int(number[1])
if N<10:
  R += 100 * (10-N)
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,k = map(int,input().split())
for i in range(1,30):
    if n >= k**(i-1) and n < k**i:
        print(i)

n,k = map(int,input().split())
for i in range(30):
    if n >= k**(i-1) and n < k**i:
        print(i)

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

Submission attempts (in order):
n, r = [int(i) for i in input().split()]
print(r if n > 10 else r * (10 - n))

n, r = [int(i) for i in input().split()]
print(r if n >= 10 else r * (10 - n))

n, r = [int(i) for i in input().split()]
print(r if n >= 10 else r + 100 * (10 - n))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

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

print(answer)


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

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

print(answer)

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

inp=list(map(int,input().strip().split()))[:2]
n,r=inp[0],inp[1]
if(n <= 9):
  print(100*(10-n)+r)
else:
  print(r)


Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a member of a programming competition site, _ButCoder_.  Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**.  The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.  Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

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

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

print(ans)
  

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

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

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

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

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


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

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):
N = int(input())
a = [input() for i in range(N)]
P=round(sum(A)/N)
B=0
for i in range(N):
	B=B+(A[i]-P)**2
print(B)

N = int(input())
A = list(map(int, input().split())) 
P=round(sum(A)/N)
B=0
for i in range(N):
	B=B+(A[i]-P)**2
print(B)

from math import factorial
N, a, b = map(int, input().split())
m=0
for i in range(N):
    if i==a, or i==b
        k=0
        m=m+k
    if not i== a-1 or i==b-1:
        k= factorial(N) // ((factorial(N - (i+1)) * factorial(i+1)))
        m=m+k
    print(m)


from math import factorial
N, a, b = map(int, input().split())
m=0
for i in range(N):
    if not i== a-1 or i==b-1:
        k=factorial(N) // (factorial(N - (i+1)) * factorial(i+1))
        m=m+k
    print(m)


N = int(input())
a = [input() for i in range(N)]
P=round(sum(A)/N)
B=0
for i in range(N):
  B=B+(A[i]-P)**2
print(B)


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

n = int(stdin.readline().rstrip())
data = int[stdin.readline().rstrip().split() for _ in range(n)]
P=round(sum(A)/N)
B=0
for i in range(N):
  B=B+(A[i]-P)**2
print(B)


N = int(input())
A = list(map(int, input().split()))
P=round(sum(A)/N)
B=0
for i in range(N):
  B=B+(A[i]-P)**2
print(B)


N = int(stdin.readline().rstrip())
A = int[stdin.readline().rstrip().split() for _ in range(n)]
P=round(sum(A)/N)
B=0
for i in range(N):
    B=B+(A[i]-P)**2
print(B)



N = input()
for i in range(N):
	A = [int(i) for i in input().split()]
P=round(sum(A)/N)
B=0
for i in range(N):
	B=B+(A[i]-P)**2
print(B)


N,K=map(int, input().split()) 
for i in range(9000):
    if K**i<=N<K**(i+1):
        print(i+1)

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

N = int(input())
A = [input() for i in range(N)]
P=round(sum(A)/N)
B=0
for i in range(N):
  B=B+(A[i]-P)**2
print(B)


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

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

N,R = map(int,input().split())
 
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):
from sys import stdin
n,k=list(map(int,input().split()))
c=0
while n > 0:
    c += 1
    n//=k
print(c)


from sys import stdin
n,k=map(int,input().split())
c=0
while n > 0:
    c += 1
    n//=k
print(c)


from sys import stdin

n = int(input())
r = int(input())

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

print(n)


from sys import stdin
n,k=list(map(int,input().split()))
c=1
while True:
    n//=k
    if n == 0
        break
    else:
        c+=1

print(c)


from sys import stdin

n = int(input())
r = int(input())

if n < 11:
    a = r - 100 * (10-n)
else:
    a = r

print(n)


from sys import stdin

n = int(input())
r = int(input())

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

print(a)


from sys import stdin

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

num = n
sum_k = k

while sum_k <= n:
    sum_k= sum_k * k

print(len(str(sum_k)))


from sys import stdin

n = input()
r = input()

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


from sys import stdin

n = int(input())
r = int(input())

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


from sys import stdin

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

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted