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

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

for i in S:
  s_new += i
    
print(s_new)

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

S = list(input())

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

for i in S:
    s_new += i
    
print(s_new)

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

S = list(input())

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

S[K-1]=x_small
print(S)

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

print(S.lower(K-1))

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

S = list(input())

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

for i in S[0,K]:
    s_new += S[i]
    
print(s_new)

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

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

S = list(input())

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

for i in range(N):
  s_new += S[i]
    
print(s_new)

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

S = list(input())

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

for i in S:
    s_new += i
    
print(s_new)

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

S = list(input())

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

s_new = ""
for i in range(N):
  s_new += S[i]
    
print(s_new)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

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):
import math
n,k = map(int,input().split())
ans = 0
for i in range(1,n+1,1):
  temp = i
  count = 0
  while (temp < k):
      temp *= 2
      count += 1
  #print("1/{} * (1/2)^{}".format(n,count))
  ans += min(1,(math.pow((1/2),count)))
print("{:1.9f}".format(ans/n))

n,k = map(int,input().split())
s = str(input())
for i in range(n):
    if i == k-1:
        print(str.lower(s[i]),end="")
    else:
        print(s[i],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):
a,b=input().split()
a=int(a)
b=int(b)
c=input()
h,i,j=c[:(a-2)],c[a-2],c[a-1:]
if i=="A":
  i="a"
if i=="B":
  i="b"
if i=="C":
  i="c"
print(h+i+j)

a,b=input().split()
a=int(a)
b=int(b)
c=input()
h,i,j=c[:(a-2)],c[a-2],c[a-1:]
if i=="A":
  i="a"
if i=="B":
  i=="b"
if i=="C":
  i=="c"
print(h+i+j)

a,b=input().split()
a=int(a)
b=int(b)
c=input()
h,i,j=c[:(b-1)],c[b-1],c[(b):]
if i=="A":
  i="a"
if i=="B":
  i="b"
if i=="C":
  i="c"
print(h+i+j)

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 = str(input())

S = S[:K] + (S[K]).lower() + S[K+1:]

print(S)


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

S = str(input())

S = S[:K-1] + S[K].swapcase() + S[K+1:]

print(S)


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

S = str(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):
n, k = map(int,input().split())
s = input()
l = s[k - 1]
if l == "A":
    x = s[:(k - 1)] + "a" + s[(k + 1):]
elif l == "B":
    x = s[:(k - 1)] + "b" + s[(k + 1):]
print(x)

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

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())
print("".join(s[:K]+ list(s[K].lower()) + s[K + 1:]))

N, K = map(int, input().split())
s = list(input())
print("".join(s[:K-1]+ list(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] = S[K].lower()
print(S[i] for i in range(N))

N, K = map(int, input().split())
S = input()
S[K] = S[K].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

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()))
k = k-1

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


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

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


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

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


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

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

S[K-1] = chr(ord(S[K-1])+32)
print(str(S))

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

S = list(input())

S[K-1] = chr(ord(S[K-1])+32)
print("".join(map(str,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())

letters = ''
for i, l in enumerate(input().split()):
  if i + 1 == k:
    letters += l.lower()
  else:
    letters += l
print(letters)

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

letters = ''
for i, l in enumerate(input()):
  if i + 1 == k:
    letters += l.lower()
  else:
    letters += l
print(letters)

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(x) for x in input().split()]
s = input()

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

print(s)

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

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

print(*s ,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 = list(map(int,input().split()))
S = input()
print(S.replace(S[k], S[k].lower()))

n,k = list(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):
x=input()
aa=x[:2]
bb=x[3:]
aa=int(aa)
bb=int(bb)
if 0<aa<=12 and 0==bb:
	print("MMYY")
elif 0==aa and 0<bb<=12:
	print("YYMM")
elif 0<aa<=12 and 0<bb<=12:
	print("AMBIGUOUS")
elif 0<aa<=12:
	print("MMYY")
elif 0<bb<=12:
	print("YYMM")
else:
	print("NA")

x=input()
aa=x[:2]
bb=x[3:]
aa=int(aa)
bb=int(bb)
if 0<aa<=12 and bb==0:
	print("MMYY")
elif aa==0 and 0<bb<=12:
	print("YYMM")
elif 0<aa<=12 and 0<bb<=12:
	print("AMBIGUOUS")
elif 0<aa<=12:
	print("MMYY")
elif 0<bb<=12:
	print("YYMM")
else:
	print("NA")

x=input()
aa=x[:2]
bb=x[3:]
aa=int(aa)
bb=int(bb)
if 0<aa<=12 and bb==0:
	print("MMYY")
if aa==0 and 0<bb<=12:
	print("YYMM")
if 0<aa<=12 and 0<bb<=12:
	print("AMBIGUOUS")
elif 0<aa<=12:
	print("MMYY")
elif 0<bb<=12:
	print("YYMM")
else:
	print("NA")

ll=lambda : list(map(int,input().split()))

[n,k]=ll()
s=input()
k-=1
s=list(s)
s[k]=s[k].swapcase()
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=input()
if S[K-1]=A:
  S[K-1]=a
if S[K-1]=B:
  S[K-1]=b
else:
  S[K-1]=c
print(S)

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


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


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


Verdicts: Runtime Error

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=input()
S[K-1].lower()
print (S)

a=""
N,K=map(int,input().split())
S=input()
l=[]
for i,x in enumerate (S):
    if i==K-1:
        x=x.lower()
    l.append(x)
for i in range(N):
    a+=l[i]
print (a)

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,m=map(int,input().split())
s=input()
s=s[:m]+chr(ord(s[m])-ord('A')+ord('a'))+s[m+1:]
print(s)

n,m=map(int,input().split())
s=input()
s=s[:m-1]+chr(ord(s[m-1])-ord('A')+ord('a'))+s[m:]
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):
# coding: utf-8

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

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

# coding: utf-8

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

low = s[k-1].lower()
print(s[:k-1]+low+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):
i = int(input().split()[1])
s = input()
print("{}{}{}".format(s[:i], s[i].lower(), s[i+1:]))

i = int(input().split()[1]) - 1
s = input()
print("{}{}{}".format(s[:i], s[i].lower(), s[i+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= list(map(int,input().split()))
S = input()
K-=1
ans = str.lower(S[K])
print(ans)

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

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

ans = S[:K-1] + after + 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 = map(int, input().split())

S = list(input())

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

S[K-1] = a
print (S)
for i in range(N):
    print (S[i], end='')
print ()

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

S = list(input())

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

S[K-1] = a
#print (S)
for i in range(N):
    print (S[i], 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):
a,b=map(int,input().split())
c=input()
c[b]=c[b].lower()
print(c)

a,b=map(int,input().split())
c=list(input())
c[b-1]=c[b-1].lower()
print(*c,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,M = input().split()
N = int(N)
M = int(M)
list = []
A_list = []

for i in range(M):
    x,y,z = input().split()
    x,y,z = int(x),int(y),int(z)
    list.append([x,y,z])

A_list.append([list[0][0]])
for data in list:
    check = 0
    for A_data in A_list:
        if data[0] in A_data:
            A_data.append(data[1])
            check = 0
        elif data[1] in A_data:
            A_data.append(data[0])
            check = 0
        elif not data[0] in A_data and not data[1] in A_data:
            check = 1
    if check:
        A_list.append([data[0],data[1]])

print(len(A_list))

N,M = input().split()
N = int(N)
M = int(M)
list = []
A_list = []

for i in range(M):
    x,y,z = input().split()
    x,y,z = int(x),int(y),int(z)
    list.append([x,y,z])

A_list.append([list[0][0]])
for data in list:
    check = 0
    for A_data in A_list:
        if data[0] in A_data:
            A_data.append(data[1])
            check = 0
        elif data[1] in A_data:
            A_data.append(data[0])
            check = 0
        elif not data[0] in A_data and not data[1] in A_data:
            check = 1
    if check:
        A_list.append([data[0],data[1]])

print(len(A_list))

import sys

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

N = int(N)
K = int(K)

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

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

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

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):
#python 3.5.2

print ("Hello, world!")
N, K = [int(i) for i in input().split()]
S = input()
res = ""
for i,ch in enumerate(S):
    if i == K - 1:
        res += ch.lower()
    else:
        res += ch
print(res)


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

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 = list(input())
head = int(s[0] + s[1])
tail = int(s[2] + s[3])

if (0 < head < 13) and (0 < tail < 13):
    print('AMBIGUOUS')
elif 0 < tail < 13:
    print('YYMM')
elif 0 < head < 13:
    print('MMYY')
else:
    print('NA')

s = list(input())
head = int(s[0] + s[1])
tail = int(s[2] + s[3])
if (head == 0 or 12 < head < 100) and (0 < tail < 13): 
    print('YYMM')
elif (0 < head < 13) and (tail == 0 or 12 < tail < 100):
    print('MMYY')
elif (0 < head < 13) and (0 < tail < 13):
    print('AMBIGUOUS')
else:
    print('NA')

n, k = map(int, input().split())
s = list(input()) 
s[k-1] = chr(ord(s[k-1]) + 32)
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=input()
s_list=list(s)
s_list[k-1]=s_list[k-1].lower()
s="".join(s_list)
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):
s = (input())
a= s[0:2]
b= s[2:4]
a = int(a)
b= int(b)
if a == 0 or b == 0:
  if b!= 0 and b<13:
    print('YYMM')
  elif a!= 0 and a<13:
    print('MMYY')
  else:
    print('NA')
elif a<13 or b<13:
  if a>12:
    print('YYMM')
  elif b>12:
    print('MMYY')
  else:
    print('AMBIGUOUS')
else:
  print('NA')

N = input()
S = input()
N += "."
f = N.find(" ")
N1 =((N[0:f]))
K =(N[f+1:-1])
N1= int(N1)
S = S[0:N1+1]
S += "."
K= int(K)-1
s = (S[K:K+1])
s= s.lower()
print(S[0:K]+s+S[K+1:-1])

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())
if S[K] == "A":
  S[K] = "a"
  STR = "".join(S)
  print(STR)
elif S[K] == "B":
  S[K] = "b"
  STR = "".join(S)
  print(STR)
else:
  S[K] = "c"
  STR = "".join(S)
  print(STR)

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

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())
c=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(''.join(c))

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

import math


p = 0

for i in range(n+1):
    if i>0:
        if i>=k:
            p += 1
        else:
            p += 2**(30-int(30-math.log2(i/k)))
print(p/n)

a,b=map(int, input().split())
c=list(input())
henka = c.pop(b-1)
if henka=="A":
    c.insert(b-1,"a")
elif henka=="B":
    c.insert(b-1,"b")
else:
    c.insert(b-1,"c")
print(''.join(c))

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=int(input())
k=int(input())
s=str(input())
if k == n:
    r=s[0:(k-1)] + s[k].lower()
elif k == 0:
    r=s[0:(k-1)].lower() + s[k]
else:
    r=s[0:(k-1)] + s[k-1].lower() + s[k]
print(r)

n, k = (int(i) for i in input().split())  
s=str(input())
if k == n:
    r=s[0:(k-1)] + s[k].lower()
elif k == 0:
    r=s[0:(k-1)].lower() + s[k]
else:
    r=s[0:(k-1)] + s[k-1].lower() + s[k]
print(r)

n, k = (int(i) for i in input().split())  
s=str(input())
if k == n:
    r=s[0:(k-1)] + s[n-1].lower()
elif k == 1:
    r=s[0].lower() + s[1:n]
else:
    r=s[0:(k-1)] + s[k-1].lower() + s[k:n]
print(r)

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()
ls = list(s)
ls[k] = ls[k].lower()
print("".join(ls))

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


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


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()
for i in range(n):
  if i == (k-1):
    a = a + s.lower[i]
  else:
    a = a + s[i]

print(a)    

n,k = map(int,input().split())
s = input()
ss = s.lower()
if k == 1:
  print(ss[0]+s[1:n])
elif k == n:
  print(s[0:n-1]+ss[n-1])
else:
  print(s[0:k-1]+ss[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):



before_str = input()

str_list = list(before_str)
str_list[K-1] = str_list[K-1].swapcase()

after_str = ''.join(str_list)

print(after_str)

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

str_list = list(before_str)
str_list[K-1] = str_list[K-1].swapcase()

after_str = ''.join(str_list)

print(after_str)

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):
lst = list(input())
lst1 = []
lst1.append(lst[0]+lst[1])
lst1.append(lst[2]+lst[3])

if (int(lst1[0]) >=13 and int(lst1[1]) >=13) or (int(lst1[0]) >=13 and lst1[1] =="00") or (lst1[0] =="00" and int(lst1[1]) >=13) or (lst1[0] =="00" and lst1[1] == "00"):
  print("NA")
  
elif (0<int(lst1[0])<=12 and 0<int(lst1[1])<=12):
      print("AMBIGUOUS")
      
elif 0<int(lst1[0]) <=12 and int(lst1[1])>=13:
      print("MMYY")
elif 0<int(lst1[1])<=12 and int(lst1[0])>=13:
      print("YYMM")

lst = list(input())
lst1 = []
lst1.append(lst[0]+lst[1])
lst1.append(lst[2]+lst[3])

if (int(lst1[0]) >=13 and int(lst1[1]) >=13) or (int(lst1[0]) >=13 and lst1[1] =="00") or (lst1[0] =="00" and lst1[1] >=13):
  print("NA")
  
elif (0<int(lst1[0])<=12 and 0<int(lst1[1])<=12):
      print("AMBIGUOUS")
      
elif 0<int(lst1[0]) <=12 and int(lst1[1])>=13:
      print("MMYY")
elif 0<int(lst1[1])<=12 and int(lst1[0])>=13:
      print("YYMM")

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

if s[k-1] == 'A':
  s[k-1] = 'a'
elif s[k-1] == 'B':
  s[k-1] = 'b'
else:
  s[k-1] = 'c'
  
for i in s:
  ans += i
  
print(ans)

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=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 = list(map(int, input().split()))
S = str(input())
s = (S[K-1].lower)
print(s)

N,K = list(map(int, input().split()))
S = str(input())
s = [S[i] for i in range(len(S))]
ans = (s[K-1].lower)
print(''.join(ans))

N,K = list(map(int, input().split()))
S = str(input())
s = [S[i] for i in range(len(S))]
ans = (s[K-1].lower)
print(join(ans))

N,K = list(map(int, input().split()))
S = str(input())
s = [S[i] for i in range(len(S))]
s[K-1] = chr(ord(s[k-1])+32)
print(join(s))

N,K = list(map(int, input().split()))
S = str(input())
s = [S[i] for i in range(len(S))]
ans = (s[K-1].lower)
print(ans)

N,K = list(map(int, input().split()))
S = str(input())
s = [S[i] for i in range(len(S))]
s[K-1] = chr(ord(s[K-1])+32)
print(''.join(s))

Verdicts: Wrong Answer

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 = 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):
s = input()
if 0 < int(s[0:2]) <= 12 and 0 < int(s[2:4]) <= 12:
    print('AMBIGUOUS')
elif int(s[0:2]) > 12 and int(s[2:4]) > 12 or int(s[0:2]) == 0 or int(s[2:4]) == 0:
    print('NA')
elif 0 < int(s[0:2]) <= 12 and int(s[2:4]) > 12:
    print('MMYY')
else:
    print('YYMM')

n, k = map(int, input().split())
s = input()
print(s[:k-1] + s[k-1].replace(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()

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


N , K = map(int, input().split())
s = input()
o = []
for i in range(N):
  if i == K - 1:
    o.append(s[i].lower())
  else:
    o.append(s[i])

print("".join(o))

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

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

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


s = input()
s1 = int(s[:2])
s2 = int(s[2:])

# if (s1 <= 0) and (s2 > 12): # 0013
#     print("NA")
# elif (s2 <= 0) and (s1 > 12):  # 1300
#     print("NA")
# elif (s1 <= 0) and (s2 <= 0): # 0000
#     print("NA")
# elif (s1 > 12) and (s2 > 12): # 1313
#     print("NA")
# elif s2 > 12: # 0513
#     print("MMYY")
# elif s1 > 12: # 1305
#     print("YYMM")
# else: #0505
#     print("AMBIGUOUS")

for i in range(13):
    print("NA")


s = input()
s1 = int(s[:2])
s2 = int(s[2:])

if (s1 <= 0) and (s2 > 12): # 0013
    print("NA")
elif (s2 <= 0) and (s1 > 12):  # 1300
    print("NA")
elif (s1 <= 0) and (s2 <= 0): # 0000
    print("NA")
elif (s1 > 12) and (s2 > 12): # 1313
    print("NA")
elif s2 > 12: # 0513
    print("MMYY")
elif s1 > 12: # 1305
    print("YYMM")
elif (s1 == 0) and (s2 <= 12):  # 1305
    print("YYMM")
elif (s2 == 0) and (s1 <= 12):
    print("MMYY")
else: #0505
    print("AMBIGUOUS")


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

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

Verdicts: 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,k = map(int,input().split())
s = input()
s[k-1] = s[k-1].lower()
print(s)

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

n,k = map(int,input().split())
s = list(input())
s[k-1] = s[k-1].lower()
s ="".join(s)
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):
n, k = map(int, input().split())
s = input()
s[k - 1] = s[k - 1].lower()
print(s)

n, k = list(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

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 = []
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

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

if S[K-1] == 'A': rep = 'a'
elif S[K-1] == 'B': rep = 'b'
else: rep = 'c'
  
print(S[:K] + rep + S[K+1:])
  

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

if S[K-1] == 'A': rep = 'a'
elif S[K-1] == 'B': rep = 'b'
else: rep = 'c'
  
print(S[:K] + rep + S[K+1:])

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 = input()
s = list(s)
s[k] = s[k].lower()
print(''.join(s))

n, k = map(int, input().split())
s = input()
s = list(s)
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()
if S[K-1]=='A':
    S[K-1]='a'
if S[K-1]=='B':
    S[K-1]='b'
if S[K-1]=='C':
    S[K-1]='c'
print(S)

N,K=list(map(int,input().split()))
S=list(input())
if S[K-1]=='A':
    S[K-1]="a"
if S[K-1]=='B':
    S[K-1]='b'
if S[K-1]=='C':
    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=map(int,input().split())
s=list(input())
s[k-1]=s[k-1].lower()
print("".join())

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()
if s[k-1] == 'A' :
  print(s[:k-2] + 'a' + s[k:n])
elif s[k-1] == 'B' :
  print(s[:k-2] + 'b' + s[k:n])
else :
  print(s[:k-2] + 'c' + s[k:n])


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


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

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

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

Verdicts: Wrong Answer

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] = s[k].lower()
a = ''.join(s)

print(a)

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

s = list(input())

s[k-1] = s[k-1].lower()
a = ''.join(s)

print(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):
n,k=map(int,input().split())
s=input()
s[k-1].lower()
print(s)

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


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 ())
a = input ()
a = a.replace(a[K-1], '')
print (a)

N,K = map (int, input ().split ())
a = input ()
if a[K-1] == 'A':
  print (a[:K-1]+'a'+a[K:])
elif a[K-1] == 'B':
  print (a[:K-1]+'b'+a[K:])
else:
  print (a[:K-1]+'c'+a[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):
data=input().split()
N=int(data[0])
K=int(data[1])
S=input()
s=list(S)
s[K]=S[K].lower()
print("".join(s))

data=input().split()
N=int(data[0])
K=int(data[1])
S=input()
s=list(S)
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())
s=input()
s[m].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 = list(input())

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

S = ''.join(S)
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):
N, K = map(int,input().split())
S = list(input())
S[K-1]=S[K-1].lower()
ans=' '.join(S)
print(ans)

N, K = map(int,input().split())
S = list(input())
S[K-1]=S[K-1].lower()
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 = 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 = int(input())
edges = [list(map(int, input().split())) for i in range(n-1) ]

# -1 -> Black, 1 -> white, 0 -> not yet
memo = [0 for i in range(n)]
memo[0] = 1

# print("memo", memo)

def paint(index, node_num):
  for edge in edges:
    if (edge[0]==node_num):
      if (edge[2] % 2 == 0):
        # print("edge", edge)
        memo[edge[1]-1] = memo[i]
        edges.remove(edge)
        paint(edge[1]-1, edge[1])
      else:
        # print("edge", edge)
        memo[edge[1]-1] = -memo[i]
        edges.remove(edge)
        paint(edge[1]-1, edge[1])
    if (edge[1]==node_num):
      if (edge[2] % 2 == 0):
        # print("edge", edge)
        memo[edge[0]-1] = memo[i]
        edges.remove(edge)
        paint(edge[0]-1, edge[1])
      else:
        # print("edge", edge)
        memo[edge[0]-1] = -memo[i]
        edges.remove(edge)
        paint(edge[0]-1, edge[1])


for i in range(n):
  if (memo[i] != 0):
    continue
  memo[i] = 1
  node_num = i + 1
  # print("node_num", node_num)
  # print("=======================")
  paint(i, node_num)
  # print("memo", memo)
  # print("=======================")

# print("memo", memo)

for item in memo:
  if (item == 1):
    print("1")
  else:
    print("0")

nk = list(map(lambda x: int(x), input().split()))
n = nk[0]
k = nk[1]
s = input()

front = s[:k-1]
back = s[k:]
target = s[k-1].lower()

answer = front + target + back
print(answer)

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=input().split()
s=list(input())
li=[l.replace(s[int(b)-1],str.lower(s[int(b)-1])) for l in s]
for v in li:
  print(v, end="")

a=input().split
s=input()
print(a)
print(s)

a,b=input().split()
s=list(input())
print([l.replace(s[int(b)],str.lower(s[int(b)])) for l in s])

a,b=input().split()
s=list(input())
print([l.replace(s[int(b)-1],str.lower(s[int(b)-1])) for l in s])

A=input()
B=int(A[:2])
C=int(A[2:4])
if B<=12 and C<=12:
  print("AMBIGUOUS")
elif 12>=B>=1:
  print("YYMM")
elif 12>=C>=1:
  print("MMYY")
else:
  print("NA")

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

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())
str_t = list(input())
ans =''
for i in range(len(str_t)):
    if i == K:
        ans += str_t[i].lower()
    else:
        ans += str_t[i].upper()
print(ans)

N , K = map(int,input().split())
str_t = list(input())
ans =''
K = K-1
for i in range(len(str_t)):
    if i == K:
        ans += str_t[i].lower()
    else:
        ans += str_t[i].upper()
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(x) for x in input().split())
S=input()
Sa=S[0:K-2]+str(S[K-1].lower())+S[K:N-1]
print(Sa)

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

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



#include <algorithm>
#include <cmath>
#include <ctype.h>
int main()
{
    
    int N,K;
    char S[50];
    std::cin >> N >> K;
    for(int i=0; i<N; i++){
    std::cin >> S[i];
    }
    S[K-1]=(char)tolower(S[K-1]);
    for(int i=0; i<N; i++){
    std::cout << S[i];
    }
  std::cout <<std::endl;
    return 0;
}

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

Verdicts: Wrong Answer

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

res=''
for i in range(n):
	if i==k:
		res=res+s[i].lower()
	else:
		res=res+s[i]
print(res)

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

res=''
for i in range(n):
	if i==k-1:
		res=res+s[i].lower()
	else:
		res=res+s[i]
print(res)

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].lower()
C = ''.join(S)
print(C)


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

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


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(i) for i in input().split(" ") ]
s = input()
print(s[:k] + s[k].lower() + s[k+1:])

n,k = [ int(i) for i in 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 = input()

alp = S[K-1]
if alp == "A":
  S[K-1] = "a"
elif alp == "B":
  S[K-1] = "b"
else:
  S[K-1] = "c"
  
print(S)

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

alp = S[K-1]
if alp == "A":
  print(S[:K-1] + "a" + S[K:])
elif alp == "B":
  print(S[:K-1] + "b" + S[K:])
else:
  print(S[:K-1] + "c" + 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()

for i in s:
    if s.index(i) == k-1:
        print(i.lower(), end="")
        continue
    print(i, end="")

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):
b=int(input())
c=input()
c=c.replace(c[b-1],c[b-1].lower())
print(c)

a=int(input())
b=int(input())
c=input()
c=c.replace(c[b-1],c[b-1].lower())
print(c)

c=c.replace(c[b-1],c[b-1].upper())

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

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):
a,b=map(int,input().split())
s=input()
s=s[b-1].lower()
print(s)

a,b=map(int,input().split())
s=input()
s[b-1]=s[b-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[k-1].lower()+s[k:])

Verdicts: Wrong Answer

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()
print(S[:K-1] + S[K-1].lower() + S[:K])

s = list('ABC')
n = 3
k = 1
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)

s = list('ABC')
n = 3
k = 1
if s[k-1] == 'A':
    s[k-1] = 'a'
elif s[k-1] == 'B':
    s[k-1] = 'b'
else:
    s[k-1] = 'c'
"".join(s)

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

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

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

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

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

s = ''.join(S)
print(s)

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

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

s = ''.join(S)
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):
if __name__ == '__main__':
    N, K = map(int, input().split())
    S = list(str(input()))
    s = S[K]
    S[K] = s.lower()
    print(''.join(S))

if __name__ == '__main__':
    N, K = map(int, input().split())
    S = list(str(input()))
    s = S[K-1]
    S[K-1] = s.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())
s=list(input())
s[k-1]=s[k-1].lower()
print(''.join(s))

n,k=map(int,input())
s=list(input())
s[k-1]=s[k-1].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

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=int,input()
k=int,input()
s=input()
S='s[0:k-1]' + 's[k-1].lower()' + 's[k:]'
print(S)


n=int,input(4)
k=int,input(3)
s=input(CABA)
S='s[0:k-2]'+'s[k-1].swapcase()'+'s[k:]'
print(S)


n=int,input()
k=int,input()
s=input()
S='s[0:k-2]'+'s[k-1].swapcase()'+'s[k:n]'
print(S)

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


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


n=int,input(4)
k=int,input(3)
s=input(CABA)
S=s[0:k-1]+s[k-1].lower()+s[k:]
print(S)


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


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):
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.lower(s[k-1])
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

Accepted