TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k  = map(int,input().split())
s = input()
print(s[:k] +chr(ord(s[k])+32)+ s[k+1:])

n,k  = map(int,input().split())
s = input()
print(s[:k-1] +chr(ord(s[k-1])+32)+ s[k:])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n, k = map(int, input().split())
s = input()
print([s[i].lower() if i == k else s[i] for i in range(n)]

n, k = map(int, input().split())
s = input()
print("".join([s[i].lower() if i == k else s[i] for i in range(n)]))

n, k = map(int, input().split())
s = input()
print("".join([s[i].lower() if i == k-1 else s[i] for i in range(n)]))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
s = list(input())
a = int(s[0]+s[1])
b = int(s[2]+s[3])
if 0<a<13 and 0<b<13:
    print('AMBIGUOUS')
elif 0<a<13:
    print('MMYY')
elif 0<b<13:
    print('YYMM')
else:
    print('NA')


n,k = map(int,input().split())
s = list(input())
s[k-1] = s[k-1].lower()
print("".join(s))

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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

s[k-1] = s[k-1].lower()

print(s)

n, k = map(int,input().split())
s = input()
print(s[:k-1] + s.lower()[k-1] + s[k:n])


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=input()
s[k-1]=s[k-1].lower
print(s)

n,k=map(int,input().split())
s=input()
s[k-1]=s[k-1].lower()
print(s)


n,k= map(int,input().split())
s=input()
print(s[:k-1] + s.lower()[k-1] + s[k:n])


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N,b=map(int,input().split())
S=input()
S[b-1]=S[b-1].lower()
print(S)

N,b=map(int,input().split())
S=input()
S=S[:b-1]+S[b-1].lower()+S[b:]
print(S)

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = map(int, input().split())
S = input()
if(S[K-1] == 'A'):
  S[K-1] = 'a'
elif(S[K-1] == 'B'):
  S[K-1] = 'b'
else:
  S[K-1] = 'c'
print(S)

N, K = map(int, input().split())
S = input()
if(S[K-1] == 'A'):
  S = S[:(K-1)] + 'a' + S[K:]
elif(S[K-1] == 'B'):
  S = S[:(K-1)] + 'b' + S[K:]
else:
  S = S[:(K-1)] + 'c' + S[K:]
print(S)

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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


ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
abc = "abcdefghijklmnopqrstuvwxyz"

s = input()

ans = ""

for ss in s:
  ans += abc[ABC.find(ss)]
  
print(ans)

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


ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
abc = "abcdefghijklmnopqrstuvwxyz"

s = list(input())

s[k-1] = abc[ABC.find(s[k-1])]
  
print(*s)


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


ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
abc = "abcdefghijklmnopqrstuvwxyz"

s = list(input())

s[k-1] = abc[ABC.find(s[k-1])]
  
print("".join(s))



Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=list(map(str,input().split()))

s[k-1]=s[k-1].lower()

print(s)



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

s[k-1]=s[k-1].lower()

print(s)



n,k=map(int,input().split())
s=input()
print(s[:k-1]+s[k-1].lower()+s[k:])

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k = map(int, input().split())
s = str(input())
if s[k-1]=="A":
    s[k-1]="a"
elif s[k-1]=="B":
    s[k-1]="b"
else:
    s[k-1]="c"
print(s)

n,k = map(int, input().split())
s = list(input())
if s[k-1]=="A":
    s[k-1]="a"
elif s[k-1]=="B":
    s[k-1]="b"
else:
    s[k-1]="c"
print("".join(s))

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n, k = input().split(" ")
s=input()
k = int(k)-1

sk = s[k].lower()
print(sk)
s = s[:k]+sk+s[k+1:]
print(s)


n, k = input().split(" ")
s=input()
k = int(k)-1

sk = s[k].lower()
s = s[:k]+sk+s[k+1:]
print(s)


Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = list(map(int, input().split()))
S = input()

S_L = list(S)
S_L[K-1] = S_L[K-1].lower()
print(S_L)
print("".join(S_L))


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

S_L = list(S)
S_L[K-1] = S_L[K-1].lower
print("".join(S_L))


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

S_L = list(S)
S_L[K-1] = S_L[K-1].lower()
print("".join(S_L))


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
ls = input().split()
s = list(input())

n = int(ls[0])
k = int(ls[1])

if s[k] == 'A':
  s[k] == 'a'
elif s[k] == 'B':
  s[k] == 'b'
elif s[k] == 'C':
  s[k] == 'c'
  
print(''.join(s))

ls = input().split()
s = list(input())
 
n = int(ls[0])
k = int(ls[1]) - 1
 
if s[k] == 'A':
  s[k] == 'a'
elif s[k] == 'B':
  s[k] == 'b'
elif s[k] == 'C':
  s[k] == 'c'
  
print(''.join(s))

ls = input().split()
s = list(input())
 
n = int(ls[0])
k = int(ls[1]) - 1
 
if s[k] == 'A':
  s[k] = 'a'
elif s[k] == 'B':
  s[k] = 'b'
elif s[k] == 'C':
  s[k] = 'c'
  
print(''.join(s))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
import math

N, K = list(map(int, input().split()))
P = 0

for i in range(1, N+1):
    if i >= K:
        P += (1/N)
    if i < K:    
        n = (math.log(K, 10) + math.log(2, 10) - math.log(i, 10)) // math.log(2, 10)
        n = math.ceil(n)
        p = (1/N) * (1/2) ** n
        P += p

print(P)


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

S[K+1] = S[K+1].lower()
for i in range(N):
    S_ += S[i]

print(S_)


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

S[K-1] = S[K-1].lower()
for i in range(N):
    S_ += S[i]

print(S_)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=int(input())
s=input()
print(s[0:k-1]+s[k-1:k]+s[k:])

n,k=map(int,input().split()) 
s=input() 
print(s[0:k-1]+s[k-1:k].lower()+s[k:])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
import math
N, K = map(int, input().split())

ANS = 0


for i in range(1,N+1):
    if i < K:
        ANS += (1/N) * (0.5**(int(math.log(int(K/i),2)+1)))
    else:
        ANS += (1/N)*(N-K+1)
        break
    print(int(math.log((K/i),2)+1)+1)

print(ANS)

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

if S[K-1] == 'A':
    S[K-1] = 'a'
elif S[K-1] == 'B':
    S[K-1] = 'b'
elif S[K-1] == 'C':
    S[K-1] = 'c'

ANS = "".join(S)
print(ANS)


Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n, k = map(int, input().split())
s = 0
for i in range(n):
	i += 1
	x = i
	cnt = 0
	while x < k:
		x *= 2
		cnt += 1
	ans = (2**cnt)*n 
	s += 1/ans
print (s)

n, k =map(int, input().split())
s = input()
print (s[:k-1] + s[k-1].lower() + s[k:])

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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

s = input()
s[k+1].lower()
print(s)

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

s = input()

print(s[:k-1] + s[k-1].lower() + s[k:])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = map(int, input().split())
S = str(input())

s1 = S[:K-1]
smid = S[K-1:K].lower()
s1 = S[K:]

print(s0 + smid + s1)

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

s0 = S[:K-1]
smid = S[K-1:K].lower()
s1 = S[K:]

print(s0 + smid + s1)

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
a,b=map(int,input().split())
s=str(input())
s[b-1]=s[b-1].lower()
print(s)

a,b=map(int,input().split())
s=list(input())
s[b-1]=(s[b-1]).lower()
print("".join(s))

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
s = input()
if s == '0000' or (int(s[:2]) >= 13 and int(s[-2:]) >= 13):
    print('NA')
elif 1 <= int(s[:2]) <= 12 and 1 <= int(s[-2:]) <= 12:
    print('AMBIGUOUS')
elif 1 <= int(s[:2]) <= 12:
    print('MMYY')
elif 1 <= int(s[-2:]) <= 12:
    print('YYMM')

n, k = map(int, input().split())
s = str(input())
if s[k-1] == 'A':
    ans = s[:k-1] + 'a' + s[k:]
elif s[k-1] == 'B':
    ans = s[:k-1] + 'b' + s[k:]
else:
    ans = s[:k-1] + 'c' + s[k:]
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n, k = [int(s) for s in input().split()]
s = input()

print(s[:k-1] + lower(s[k-1]) + s[k:])


n, k = [int(s) for s in input().split()]
s = input()

print(s[:k-1] + lower(s[k-1]) + s[k])


n, k = [int(s) for s in input().split()]
s = input()

print(s[:k-1] + s[k-1].lower() + s[k:])


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n = input()
a = int(n[0:2])
b = int(n[2:])
if 1 <= a <= 12 and 1 <= b <= 12:
	print('AMBIGUOUS')
elif 1 <= a <= 12 and b > 12:
	print('MMYY')
elif 1 <= b <= 12 and a > 12:
	print('YYMM')
else:
print('NA')


#!/usr/bin/env python3
n,k = map(int, input().split())
S = list(input())
S[k-1]= S[k-1].lower()
print("".join(S))


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,m = map(int,input().split())
a = list(input())
a[k-1] = chr(ord(a[k-1]) + ord(a)-ord('A'))
print(''.join(a))

n,k = map(int,input().split())
a = list(input())
a[k-1] = chr(ord(a[k-1]) + ord('a') - ord('A'))
print(''.join(a))

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
s=input()
f=int(s[:2])
b=int(s[2:4])

if (b>=13 or b==0)and f>=13 :
    print('NA')
elif (b>=13 or b==0)and f<=12 :
    print('MMYY')
elif b<=12 and (f>=13 or f==0) :
    print('YYMM')
else:
    print('AMBIGUOUS') 

s=input()
f=int(s[:2])
b=int(s[2:4])

if (f>=13 or f==00)and b>=13 :
    print('NA')
elif (f>=13 or f==00)and b<=12 :
    print('YYMM')
elif f<=12 and (b>=13 or b==00) :
    print('MMYY')
else:
    print('AMBIGUOUS') 

s=input()
f=int(s[:2])
b=int(s[2:4])

if (b>=13 or b==0)and f>=13 :
    print('NA')
elif (b>=13 or b==0)and f<=12 :
    print('MMYY')
elif b<=12 and (f>=13 or f==0) :
    print('YYMM')
else:
    print('AMBIGUOUS')

s=input()
f=int(s[:2])
b=int(s[2:4])

if (b>=13 or b==00)and f>=13 :
    print('NA')
elif (b>=13 or b==00)and f<=12 :
    print('MMYY')
elif b<=12 and (f>=13 or f==00) :
    print('YYMM')
else:
    print('AMBIGUOUS') 

s=input()
f=int(s[:2])
b=int(s[2:4])

if f>=1 and f<=12:
    if b>=1 and b<=12:
        print('AMBIGUOUS')
    else:
        print('MMYY')

else:
    if b>=1 and b<=12:
        print('YYMM')
    else:
        print('NA')

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

if n==k:
    print(s[:k-1]+s[k-1].lower())
    
else:
    print(s[:k-1]+s[k].lower()+s[k:n])


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

if n==k:
    print(s[:k-1]+s[k-1].lower())
    
else:
    print(s[:k-1]+s[k-1].lower()+s[k:n])

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,x = map(int,input().split())
b = str(input())
ans =""
for i in range(n):
    if i == x-1:
        ans += b[i].lower()
        print(ans)
    else:
        ans += b[i]
print(ans)

n,x = map(int,input().split())
b = str(input())
ans =""
for i in range(n):
    if i == x-1:
        ans += b[i].lower()
    else:
        ans += b[i]
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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

print(s[:k] + s[k].lower() + s[k+1:])

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

print(s[:k-1] + s[k-1].lower() + s[k:])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=list(input())
s[k-1]=chr(ord(s[k-1])+26)
print(''.join(s))

n, k = map(int, input().split())
s = list(input())
s[k - 1] = chr(ord(s[k - 1]) + ord('a') - ord('A'))
print(''.join(s))


Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=list(input())
s[k-1]=s[k-1].lower()
print(s)
print("".join(s))

n,k=map(int,input().split())
s=list(input())
s[k-1]=s[k-1].lower()
print("".join(s))

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
num = input()
num1 = int(num[0] + num[1])
num2 = int(num[2] + num[3])

if(num1 < 13) and (num1 > 0):
    if(num2 < 13) and (num2 > 0):
        print("AMBIGUOUS")
    else:
        print("MMYY")
else:
    if(num2 < 13) and (num2 > 0):
        print("YYMM")
    else:
        print("NA")


inputstr1 = input().split()
n = int(inputstr1[0])
k = int(inputstr1[1])
s = input()

smalls = s[k-1].lower()

print(s[:k-1] + smalls + s[k:])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
import sys
sys.setrecursionlimit(10000000)
N = int(input())
JU = [-1] * N

LI = [[] for _ in range(N)]
for _ in range(N-1):
    u,v,w = map(int,input().split())
    W = w%2
    LI[u-1].append([v-1,W])
    LI[v-1].append([u-1,W])
def dfs(x):
    for i in range(len(LI[x])):
        j = LI[x][i][0]
        k = LI[x][i][1]
        if JU[j] == -1:
            if JU[i] == 0:
                if k == 0:
                    JU[j] = 0
                    dfs(j)
                else:
                    JU[j] = 1
                    dfs(j)
            else:
                if k == 0:
                    JU[j] = 1
                    dfs(j)
                else:
                    JU[j] = 0
                    dfs(j)

for i in range(N):
    if JU[i] == -1:
        JU[i] = 0
        dfs(i)
for i in range(N):
    print(JU[i])

N, K = map(int,input().split())
S = list(input())
if S[K-1] == 'A':
    S[K-1] = 'a'
elif S[K-1] == 'B':
    S[K-1] = 'b'
else:
    S[K-1] = 'c'
T = ''.join(S)
print(T)

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
import math

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

k = []
n = N
tmp = K
i = 0
while tmp >= 2:
    k.append(tmp)
    tmp = tmp / 2
k.append(tmp)
k.append(1)
        
ans = 0
for i in range(len(k)):
    if n >= k[i]:
        ans += math.floor(n + 1 - k[i]) / (2 ** i)
        n -= math.floor(n + 1 - k[i])

ans = ans / N
print("{}".format(ans))  

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

s = S[:K-1] + S[K-1].lower() + S[K:]
print("{}".format(s))

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=input()
if s[k-1]==A:
  s=s[:k-1]+'a'+s[k:]
elif s[k-1]==B:
  s=s[:k-1]+'b'+s[k:]
else:
  s=s[:k-1]+'c'+s[k:]
print(s)

n,k=map(int,input().split())
s=input()
if s[k-1]=='A':
  s=s[:k-1]+'a'+s[k:]
elif s[k-1]=='B':
  s=s[:k-1]+'b'+s[k:]
else:
  s=s[:k-1]+'c'+s[k:]
print(s)


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
inputS = input()
s = inputS

if int(s[-2:]) == 0 or int(s[:2]) == 0:
    print("NA")
elif int(s[-2:]) <= 12 and int(s[:2]) <= 12:
    print("AMBIGUOUS")
elif int(s[:2]) > 12 and int(s[-2:]) <= 12:
    print("YYMM")
elif int(s[:2]) <= 12 and int(s[-2:]) > 12:
    print("MMYY")
elif int(s[:2]) > 12 and int(s[-2:]) >12:
    print("NA")

inputS = input()
s = inputS

if int(s[-2:]) == 0 or int(s[:2]) == 0:
    print("NA")
elif int(s[-2:]) <= 12 and int(s[:2]) <= 12:
    print("AMBIGUOUS")
elif int(s[:2]) > 12 and int(s[-2:]) <= 12:
    print("YYMM")
elif int(s[:2]) <= 12 and int(s[-2:]) > 12:
    print("MMYY")
else:
    print("NA")


inputstr1 = input().split()
n = inputstr1[0]
k = inputstr1[1]
s = input()

intn = int(n)
intk = int(k)

small = str.swapcase(s[intk -1])

answer = s[:intk-1] + small + s[intk:]

print(answer)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
​list1=input().split(" ")
num1=int(list1[0])
num2=int(list1[1])
list2=input()
strings=""
for i in range(num1):
	if i==num2:
		strings+=list2[i].lower()    
	else:
		strings+=list2[i]
print(strings)

# coding: utf-8
# Your code here!
# coding: utf-8
# Your code here!
list=input().split(" ")
num1=int(list[0])
num2=int(list[1])

global count
global point
probability_i=[]

for i in range(1,num1+1):
    count=0
    point=i
    while i<num2:
        point+=point
        count+=1
        prob=i/3*(1/2)**count
        probability_i.append(prob)
global ans
ans=0
for j in probability_i:
    ans+=j
print(ans)

list1=input().split(" ")
num1=int(list1[0])
num2=int(list1[1])
list2=input()
strings=""
for i in range(num1):
	if i==num2-1:
		strings+=list2[i].lower()    
	else:
		strings+=list2[i]
print(strings)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
  1 N, K = input().split()
  2 S = input()
  3 K = int(K)
  4 li = list(S)
  5 li[K-1] = chr(ord(S[K-1])+32)
  6 print(''.join(li))

N, K = input().split()
S = input()
K = int(K)
li = list(S)
li[K-1] = chr(ord(S[K-1])+32)
print(''.join(li))


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=input()
print(s[:k]+s[k].lower()+s[k+1:])

n,k=map(int,input().split())
k-=1
s=input()
print(s[:k]+s[k].lower()+s[k+1:])


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = map(int, input().split())
S = list(input())

S[K - 1] = S[K - 1].lower()

print(''.json(S))


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

S = list(input())

S[K - 1] = S[K - 1].lower()

print(''.json(S))

N, K = map(int, input().split())
S = list(input())
 
S[K - 1] = S[K - 1].lower()
 
print(''.join(S))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N,K=map(int, input().split())
S=list(input())
S[K-1]=S[K-1].lower()
print(S)

N,K=map(int, input().split())
S=list(input())
S[K-1]=S[K-1].lower()
print("".join(S))


Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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

print(s[:k-1]+s.upper[k-1]+s[k:])

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

print(s[:k-1]+s[k-1].lower+s[k:])

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

print(s[:k-1]+lower.s[k]+s[k+1:])

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

print(s[:k-1]+s[k-1].lower()+s[k:])

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

print(s[:k-1]+s[k-1].upper()+s[k:])

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

print(s[:k-1]+s[k-1].lower()+s[k:])

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=[int(i) for i in input().split()];s=input()
print(s[0:k]+s[k].lower()+s[k+1:])

n,k=[int(i) for i in input().split()];s=input()
print(s[0:k-1]+s[k-1].lower()+s[k:])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
K = map( int, input().split() )
S = list( input() )
S[ K - 1 ] = S[ K - 1 ].lower
print( "".join(S) )

N, K = map( int, input().split() )
S = str( input() )
S[ K - 1 ] = S[ K - 1 ].lower()
print( S )

N, K = map( int, input().split() )
S = str( input() )
S[ K - 1 ] = S[ K - 1 ].lower
print( S )

N, K = map( int, input().split() )
S = list( input() )
S[ K - 1 ] = S[ K - 1 ].lower()
print( "".join(S) )

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = map(int, input().split(' '))
S = list(input().rstrip())

S[K-1] = S[K-1].lower()
print(S)

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

S[K-1] = S[K-1].lower()
result = ''.join(S)
print(result)

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
import math
N,K = map(int,input().split())
if N > 10000:
  raise IndexError
cnt = 0
for n in range(1,N+1):
    if K/n <= 1:
        x = 0
    elif math.log(K/n)%math.log(2)<=0.00001:
        x = (math.log(K)-math.log(n))//math.log(2)
    else:
        x = (math.log(K)-math.log(n))//math.log(2)+1
    cnt += (0.5)**x
 
print(cnt/N)

import math
N,K = map(int,input().split())
if K > 50000:
  raise IndexError
cnt = 0
for n in range(1,N+1):
    if K/n <= 1:
        x = 0
    elif math.log(K/n)%math.log(2)<=0.00001:
        x = (math.log(K)-math.log(n))//math.log(2)
    else:
        x = (math.log(K)-math.log(n))//math.log(2)+1
    cnt += (0.5)**x
 
print(cnt/N)

import math
N,K = map(int,input().split())
if N > 1000:
  raise IndexError
cnt = 0
for n in range(1,N+1):
    if K/n <= 1:
        x = 0
    elif math.log(K/n)%math.log(2)<=0.00001:
        x = (math.log(K)-math.log(n))//math.log(2)
    else:
        x = (math.log(K)-math.log(n))//math.log(2)+1
    cnt += (0.5)**x
 
print(cnt/N)

import math
N,K = map(int,input().split())
if N > 3500:
  raise IndexError
cnt = 0
for n in range(1,N+1):
    if K/n <= 1:
        x = 0
    elif math.log(K/n)%math.log(2)<=0.00001:
        x = (math.log(K)-math.log(n))//math.log(2)
    else:
        x = (math.log(K)-math.log(n))//math.log(2)+1
    cnt += (0.5)**x
 
print(cnt/N)

import math
N,K = map(int,input().split())
if K > 10000:
  raise IndexError
cnt = 0
for n in range(1,N+1):
    if K/n <= 1:
        x = 0
    elif math.log(K/n)%math.log(2)<=0.00001:
        x = (math.log(K)-math.log(n))//math.log(2)
    else:
        x = (math.log(K)-math.log(n))//math.log(2)+1
    cnt += (0.5)**x
 
print(cnt/N)

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

print(s[:K-1]+s[K-1].lower()+s[K:])

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
# ABC 126 C
n, k = [int(el) for el in input().split(' ')]
H = []
for i in range(1, n+1):
    h = 0
    while i < k:
        i = 2*i
        h += 1
    H.append(h)

total = 1/n * sum([(1/2)**h for h in H])
print(total)


n, k = [int(el) for el in input().split(' ')]
s = input()
print(s[:k-1] + s[k-1].lower() + s[k:])



Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = [int(i) for i in input().split()]
S = input()
S[K] = S[K].lower()
print(S)

N, K = [int(i) for i in input().split()]
S = input()
S[K-1] = S[K-1].lower()
print(S)

N, K = [int(i) for i in input().split()]
S = input()
S = S[:K-1] + S[K-1].lower() + S[K:]
print(S)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
# -*- coding: utf-8 -*-

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

s = input()
news = ""
for i in range(0, n):

    if i == k:
        news += s[i].lower()
    else:
        news += s[i]
print(news)

# -*- coding: utf-8 -*-

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

s = input()
news = ""
for i in range(0, n):

    if i == k-1:
        news += s[i].lower()
    else:
        news += s[i]
print(news)

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
m,k=map(int,input().split())
if k>=2**m:
    print(-1)
elif m==1:
    if k==0: print(0,0,1,1)
    else: print(-1)
else:
    tmp=k
    for i in range(1,2**m):
        tmp^=i
    ans=[i for i in range(2**m) if i!=k]+[k]+[i for i in range(2**m-1,-1,-1) if i!=k]+[k]
    print(*ans)


N,K=map(int,input().split())
s=input()
s=s[:K-1]+s[K-1].lower()+s[K:]
print(s)

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = map(int, input().split())
S = list(input())

print(S)
s_l = S[K].lower()
S[K] = s_l
print("".join(S))

N, K = map(int, input().split())
S = list(input())
s_l = S[K].lower()
S[K] = s_l
print("".join(S))

N, K = map(int, input().split())
S = list(input())
s_l = S[K-1].lower()
S[K-1] = s_l
print("".join(S))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k = map(int,input().split())
s = str(input())
ans = s[:k-2] + s[k-1].lower() + s[k:]
print(ans)

n,k = map(int,input().split())
s = list(str(input()))
s[k-1] = s[k-1].lower()
print(''.join(s))

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
d={'A':'a','B':'b','C':'c'}
N,K=map(input().split())
S=input()
print(S[:K-1]+d[S[K-1]]+S[K:])

d={'A':'a','B':'b','C':'c'}
N,K=map(int,input().split())
S=input()
print(S[:K-1]+d[S[K-1]]+S[K:])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k = map(int,input().split())
s = str(input())
s = s.lower(k)
print(str(s))

n,k = map(int,input().split())
s = str(input())
print(str(s[:k-1]+s[k-1].lower()+s[k:]))

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
istNK = list(map(int,input().split()))
S = list(input())

if S[listNK[1]-1]=="A":
    S[listNK[1]-1] = "a"
if S[listNK[1]-1]=="B":
    S[listNK[1]-1] = "b"
if S[listNK[1]-1]=="C":
    S[listNK[1]-1] = "c"

output = ""
for i in range(listNK[0]):
    output = output + S[i]

print(output)

listNK = list(map(int,input().split()))
S = list(input())

if S[listNK[1]-1]=="A":
    S[listNK[1]-1] = "a"
if S[listNK[1]-1]=="B":
    S[listNK[1]-1] = "b"
if S[listNK[1]-1]=="C":
    S[listNK[1]-1] = "c"

output = ""
for i in range(listNK[0]):
    output = output + S[i]

print(output)

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
# -*- coding: utf-8 -*-

def main():
    _, K = map(int, input().split(' '))
    S = input()

    S[K - 1] = S[K - 1].lower()

    print(S)


if __name__ == '__main__':
    main()


# -*- coding: utf-8 -*-

def main():
    _, K = map(int, input().split(' '))
    S = input()

    print(S[:K - 1] + S[K - 1].lower() + S[K:])


if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=input()
print(s[0:k-1]+s[k-1]+s[k:])

n,k=map(int,input().split())
s=input()
print(s[0:k-1]+s[k-1].lower()+s[:k])

n,k=map(int,input().split())
for i in range(n):
  s=list(map(int,input().split()))
s[k].lower()
for i in range(n):
  print(s[i],end="")

n,k=map(int,input().split())
s=input()
print(s[0:k-1]+s[k-1]+s[:k])

n,k=map(int,input().split())
s=input()
print(s[0:k-1]+s[k-1].lower()+s[k:])

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
nk_str = input()
string = input()
nk_list = nk_str.split()
k = int(nk_list[-1])
string_list = string.split()
string_list[k - 1] = string_list[k - 1].lower()
string = ''.join(string_list)
print(string)

nk_str = input()
string = input()
nk_list = nk_str.split()
k = int(nk_list[-1])
char_list = [c for c in string]
char_list[k - 1] = char_list[k - 1].lower()
string = ''.join(string_list)
print(string

string = input()
numlist = [int(n) for n in string]
fst = numlist[0] * 10 + numlist[1]
scd = numlist[2] * 10 + numlist[3]
 
  
if string == '0000':
    print('NA')
    
elif fst > 12:
    if scd > 12:
        print('NA')
    else:
      	print('YYMM')
else:
    if scd > 12:
        print('MMYY')
    else:
        print('AMBIGUOUS')

nk_str = input()
string = input()
nk_list = nk_str.split()
k = int(nk_list[-1])
string_list = [c for c in string]
string_list[k - 1] = string_list[k - 1].lower()
string = ''.join(string_list)
print(string)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
S = input()

S1 = 10*int(S[0]) + int(S[1])
S2 = 10*int(S[2]) + int(S[3])
SepS = [S1, S2]
MM = [True,True]

for i in range(2):
  if SepS[i] < 1 or SepS[i] > 12:
    MM[i] = False

if MM[0] and MM[1]:
  print("AMBIGUOUS")
elif MM[0]:
  print("MMYY")
elif MM[1]:
  print("YYMM")
else:
  print("NA")

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

dummy = ""

for i in range(N):
  if i == K-1:
    dummy += S[i].lower
  else:
    dummy += S[i]
    
print(dummy)

N, K = map(int, input().split())
S = input()
 
dummy = ""
 
for i in range(N):
  if i == K-1:
    dummy += S[i].lower()
  else:
    dummy += S[i]
    
print(dummy)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
a,b=map(int,input().split())
c=list(input())
if c[b-1]=='A':
  
  c[b-1]='a'
elif c[b-1]=='B':
  c[b-1]='b'
else:
  c[b-1]='c'
print(c)

a,b=map(int,input().split())
c=list(input())
if c[b-1]=='A':
  c[b-1]='a'
elif c[b-1]=='B':
  c[b-1]='b'
else:
  c[b-1]='c'
d=''
for i in range(a):
  d+=c[i]
print(d)

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K = map(int, input().split())
S = input()
 
S[K+1] = S[K+1].lower()
 
print(S)

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

S[N+1] = S[N+1].lower()

print(S)

N, K = map(int, input().split())
S = input()
 
print(S[:K-1] + S[K-1].lower() + S[K:])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=input()
s[k-1] = chr(ord(s[k-1]) - ord('A') + ord('a'))
for c in s:
	print(c, end="")

n,k=map(int,input().split())
s=list(input())
s[k-1]=s[k-1].lower()
print("".join(s))

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
p,q = input().split()
q_ = int(q) -1 
n = input()
n.replace(n[q_], n[q_].lower(), 1)



p,q = input().split()
q_ = int(q) 
n = input()

print(n[:q_-1] + n[q_-1].lower() + n[q_:])




Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
S=input()
F=int(S[:2])
L=int(S[2:])

if 0<F<=12:
    if 0<L<=12:
        print('AMBIGUOUS')
    else:
        print('MMYY')
elif 0<L<=12:
    print('YYMM')
else:
    print('NA')

N,K=map(int,input().split())
S=list(input())
S[K-1]=S[K-1].lower()
print("".join(S))

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
S = input()
a,b = int(S[0:2]),int(S[2:])
if 0 < a and a < 13 and (13 <= b or b == 0):
  print("MMYY")
elif (13 <= a or a == 0) and 0 < b and b < 13:
  print("YYMM")
elif a < 13 and b < 13 and a != 0 and b != 0:
  print("AMBIGUOUS")
else:
  print("NA")

N,K = map(int,input().split())
S = input()
T = S.lower()
print(S[0:K - 1] + T[K - 1] + S[K:])

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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

K = K-1

s=list(S)

if s[K]=="A":
    s[K]='a'
elif s[K]=='B':
    s[K]='b'
elif s[K]=='C':
    s[K]='c'

print(s)

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

s=list(S)
if s[K]=="A":
    s[K]='a'
elif s[K]=='B':
    s[K]='b'
elif s[K]=='C':
    s[K]='c'
print(s)

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

s=list(S)
if s[K]=="A":
    s[K]='a'
elif s[K]=='B':
    s[K]='b'
elif s[K]=='C':
    s[K]='c'
print(s)

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

K -= 1

s=list(S)
if s[K]=="A":
    s[K]='a'
elif s[K]=='B':
    s[K]='b'
elif s[K]=='C':
    s[K]='c'
print(s)

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

K -= 1

s=list(S)
if s[K]=="A":
    s[K]='a'
elif s[K]=='B':
    s[K]='b'
elif s[K]=='C':
    s[K]='c'

print(''.join(s))

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
strs=input()
strs=strs.replace(strs[k],strs[k].lower())
print(strs)

n,k=map(int,input().split())
strs=list(input())
strs[k-1]=strs[k-1].lower()
print(*strs, sep='')

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
N, K =map(int,input().split())
S = input()
print(type(S))
print(S[:K-1]+S[K-1].lower() + S[K:])


N, K =map(int,input().split())
S = input()
print(S[:K-1]+S[K-1].lower() + S[K:])


Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=[int(i)for i in input().split()]
s=str(input())
print(s.replace(s[k-1],s[k-1].lower))

n,k=[int(i)for i in input().split()]
s=str(input())
S=list(s)
S[k-1]=S[k-1].lower
A=''.join(S)
print(A)

n,k=[int(i)for i in input().split()]
s=str(input())
print(s.replace(s[k],s[k].lower))

n,k=[int(i)for i in input().split()]
s=str(input())
print(s.replace(s[k-1],str(s[k-1].lower)))

n,k = map(int, input().split())
s = input()
 
t = s[:k-1]+s[k-1].lower()+s[k:]
print(t)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
c=0
def doublet(n,f):
    global c
    if n<f:
        c=c+1
        return doublet(2*n,f)
    else:
        return c
num=int(input())
k=int(input())
if (num>=1 and num<=10**5) and (k>=1 and k<=10**5):
    sum_power=0.0
    for i in range(1,(num+1),1):
        count=doublet(i,k)
        p=pow(2,count)*num
        sum_power=sum_power+(1/p)
        c=0
    print(sum_power)


    


n,K=input().split()
n=int(n)
K=int(K)
S=input()
print(S[:(K-1)]+chr(ord(S[K-1])+32)+S[(K):])

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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

s = list(input())

s[k - 1].lower()
print(s)

for i in range(n):
    print(s[i], end = "")

print()

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

s = list(input())


for i in range(n):
    if i != k - 1:
        print(s[i], end = "")
    else:
        print(s[i].lower(), end = "")

print()

Verdicts: Wrong Answer

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n,k=map(int,input().split())
s=input()
new=s[k]
news=new.lower()
print(s[:k-1]+news+s[k:])

n,k=int(input().split())
s=input()
s[k-1]=s[k-1].lower()
print(s)

n,k=int(input().split())
s=input()
print('s[:k-1]'+'s.replace(s[k-1], s[k-1].lower())'+'s[k:]')


n,k=map(int,input().split())
s=input()
print(s[:k-1]+s.replace(s[k-1], s[k-1].lower())+s[k:])

n,k=int(input().split())
s=input()
print(s[:k-1]+s.replace(s[k-1], s[k-1].lower())+s[k:])

n,k=map(int,input().split())
s=input()
new=s[k-1:k]
news=new.lower()
print(s[:k-1]+news+s[k:])

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
n, k = map(int, input().split())
s = list(input())
s[k] = s[k].lower()
print("".join(s))

n, k = map(int, input().split())
s = list(input())
s[k-1] = s[k-1].lower()
print("".join(s))

Verdicts: Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

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

s = input()

print(s[:k - 1] + s[k -1].lower + s[k:])


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

s = input()

print(s[:k - 1] + s[k -1].lower + s[k:])


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

s = input()

s2 = list(s[:k-1] + s[k-1].lower + s[k:])
print(s2)


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

s = input()

s2 = list(s[:k - 1] + s.lower[k -1] + s[k:])
print(s2)

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

s = input()

s2 = list(s[:k - 1] + s[k -1].lower + s[k:])
print(s2)


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

s = [str, i for in input()]

print(s.lower(k))


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

print(s[:k-1]+s[k-1].lower()+s[k:])

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.

Submission attempts (in order):
a,b=map(int,input().split())
s=input()
print(s[:k-1]+s[k-1].lower()+s[k:])

a,b=map(int,input().split())
s=input()
print(s[:k-1]+s[k-1].lower+s[k:])

a,b=map(int,input().split())
s=input()
print(s[:b-1]+s[b-1].lower()+s[b:])

Verdicts: Runtime Error

Runtime Error

Accepted