ZhenlongDai/ACPR huggingface dataset:
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
word = input()
word_list=[]
word_num = int(input())

for i in range(len(word)):
    word_list.append(word[i])
    if str(word[i]) == str(word[word_num -1]):
         word_list[i] = '*'

print(" ".join(list(map(str,word_list))))

Failing test case input:
9
ecvb`tinn
5

Expected output:
****`****


Actual output:
e c v b * t i n n


Fixed submission (verdict: Accepted):
N = int(input())
word = input()
word_list=[]
word_num = int(input())

for i in range(len(word)):
    word_list.append(word[i])
    if str(word[i]) != str(word[word_num -1]):
         word_list[i] = '*'

print("".join(list(map(str,word_list))))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())
K = int(input())
tag = S[K - 1]
print(tag)
for i in range(N):
    if S[i] == tag:
        continue
    else:
        S[i] = "*"
print("".join(S))


Failing test case input:
9
nnitaaude
6

Expected output:
****aa***


Actual output:
a
****aa***


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
K = int(input())
tag = S[K - 1]
for i in range(N):
    if S[i] == tag:
        continue
    else:
        S[i] = "*"
print("".join(S))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
S = input()
K = int(input())

target = S[K-1]
result = "*"
for i in S:
    if target == i:
        result += i
    else:
        result += '*'

print(result)




Failing test case input:
6
nfvele
2

Expected output:
*f****


Actual output:
**f****


Fixed submission (verdict: Accepted):
N = input()
S = input()
K = int(input())

target = S[K-1]
result = ""
for i in S:
    if target == i:
        result += i
    else:
        result += '*'

print(result)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

input = sys.stdin.readline


def main():
    n = input()
    s = input()
    k = int(input())
    print("".join([c if c == s[k - 1] else "*" for c in s]))


if __name__ == "__main__":
    main()


Failing test case input:
6
elfven
5

Expected output:
e***e*


Actual output:
e***e**


Fixed submission (verdict: Accepted):
import sys

input = sys.stdin.readline


def main():
    n = int(input())
    s = input().rstrip()
    k = int(input())
    print("".join([c if c == s[k - 1] else "*" for c in s]))


if __name__ == "__main__":
    main()

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())

keep_word = s[k-1]
for ss in s:
    if ss == keep_word:
        print(ss)
    else:
        print('*')

Failing test case input:
6
ekeven
5

Expected output:
e*e*e*


Actual output:
e
*
e
*
e
*


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())

keep_word = s[k-1]
for ss in s:
    if ss == keep_word:
        print(ss, end='')
    else:
        print('*', end='')
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(str(input()))
K = int(input())

SK = str(S[K-1])
for i in range(0,N):
    if S[i] == SK:
        pass
    else:
        S[i] = '*'
print(*S)

Failing test case input:
6
nkveee
4

Expected output:
***eee


Actual output:
* * * e e e


Fixed submission (verdict: Accepted):
N = int(input())
S = list(str(input()))
K = int(input())

SK = str(S[K-1])
for i in range(0,N):
    if S[i] == SK:
        pass
    else:
        S[i] = '*'
for j in S:
  print(j, end ="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

S_list = list(S)

target = S_list[K-1]

for i in S_list:
    if not i == target :
        i = "*"

S_new = "".join(S_list)

print(S_new)

Failing test case input:
5
rorre
2

Expected output:
*o***


Actual output:
rorre


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
K = int(input())

target = S[K-1]


for i in range(N):
    if S[i] != target:
        S[i] = "*"

S_new = "".join(S)

print(S_new)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin
N = int(stdin.readline().rstrip())
S = list(input())
K = int(stdin.readline().rstrip())
for s in S:
    if s != S[K-1]:
        print('*')
    else: print(s)


Failing test case input:
9
eiub`tdnn
3

Expected output:
**u******


Actual output:
*
*
u
*
*
*
*
*
*


Fixed submission (verdict: Accepted):
from sys import stdin
N = int(stdin.readline().rstrip())
S = list(input())
K = int(stdin.readline().rstrip())
for s in S:
    if s != S[K-1]:
        print('*', end="")
    else: print(s, end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
S = input()
K = input()
alphabet = S[int(K)-1]
answer = ''
print(alphabet)
for n in range(int(N)):
    if S[n] == alphabet:
        answer = answer+S[n]
    else:
        answer = answer+'*'
print(answer)


Failing test case input:
6
nfvele
2

Expected output:
*f****


Actual output:
f
*f****


Fixed submission (verdict: Accepted):
N = input()
S = input()
K = input()


alphabet = S[int(K)-1]
answer = ''
for n in range(int(N)):
    if S[n] == alphabet:
        answer = answer+S[n]
    else:
        answer = answer+'*'

print(answer)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(input())
k=int(input())
t=s[k-1]
print(t)
for i in range(len(s)):
    if s[i]!=t:
        s[i]="*"
print("".join(s))

Failing test case input:
9
ehub`tdnn
2

Expected output:
*h*******


Actual output:
h
*h*******


Fixed submission (verdict: Accepted):
n=int(input())
s=list(input())
k=int(input())
t=s[k-1]
for i in range(len(s)):
    if s[i]!=t:
        s[i]="*"
print("".join(s))
Problem: p03068
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N=int(input())
S=input()
l=len(S)
S=list(S)
K=int(input())

B=[]
for i in range(N-1):
    if S[K-1]!=S[i]:
        B.append("*")
    elif S[K-1]==S[i]:
        B.append(S[i])

c="".join(B)
print(c)



Failing test case input:
9
nnitabude
2

Expected output:
nn*******


Actual output:
nn******


Fixed submission (verdict: Accepted):
N=int(input())
S=input()
l=len(S)
S=list(S)
K=int(input())

B=[]
for i in range(N):
    if S[K-1]!=S[i]:
        B.append("*")
    elif S[K-1]==S[i]:
        B.append(S[i])

c="".join(B)
print(c)

Problem: p03068
Buggy submission (Python (2.7.6), verdict: Wrong Answer):
import sys


def main():
    N = int(sys.stdin.readline())
    S = sys.stdin.readline().strip()
    K = int(sys.stdin.readline())
    s = S[K-1]
    result = ""
    for i in list(S):
        print(i)
        if i == s:
            result = result + i
        else:
            result = result + "*"
    print(result)


if __name__ == "__main__":
    main()

Failing test case input:
9
ecubatinn
2

Expected output:
*c*******


Actual output:
e
c
u
b
a
t
i
n
n
*c*******


Fixed submission (verdict: Accepted):
import sys


def main():
    N = int(sys.stdin.readline())
    S = sys.stdin.readline().strip()
    K = int(sys.stdin.readline())
    s = S[K-1]
    result = ""
    for i in list(S):
        if i == s:
            result = result + i
        else:
            result = result + "*"
    print(result)


if __name__ == "__main__":
    main()

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

a = S[N-1]
for i in S:
    if i != a:
        print('*',end='')
    else:
        print(i,end='')

Failing test case input:
9
ntdoacujc
1

Expected output:
n********


Actual output:
*****c**c

Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())

a = S[K-1]
for i in S:
    if i != a:
        print('*',end='')
    else:
        print(i,end='')

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
sstr = input()
k = int(input())


s = list(sstr)

for i in range(n):
 if s[k-1] != s[i]:
  s[i] = "*"


sStr = "".join(s)

Failing test case input:
9
mndt`buie
1

Expected output:
m********


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
sstr = input()
k = int(input())


s = list(sstr)

for i in range(n):
 if s[k-1] != s[i]:
  s[i] = "*"


sStr = "".join(s)
print(sStr)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=input()
c=int(input())
word=b[c-1]
d=[]
for i in range(a):
    if b[i]!=word:
        d.append("*")
    else:
        d.append(b[i])
print(*d)

Failing test case input:
9
eudbatinn
2

Expected output:
*u*******


Actual output:
* u * * * * * * *


Fixed submission (verdict: Accepted):
a=int(input())
b=input()
c=int(input())
word=b[c-1]
d=[]
for i in range(a):
    if b[i]!=word:
        d.append("*")
    else:
        d.append(b[i])
for s in d:
  print(s, end ="")
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


intLength = int(input())
strSentence = input()
intIndex = int(input())

strAnswer = ""
strWord = strSentence[intIndex-1]
for intIdx in range(intLength):
    print(str(intIndex) + "@" + strSentence[intIdx] + "@" + strWord)

    if strSentence[intIdx] != strWord:
        strAnswer += "*"
    else:
        strAnswer += strSentence[intIdx]

print(strAnswer)


Failing test case input:
9
mndt`buie
2

Expected output:
*n*******


Actual output:
2@m@n
2@n@n
2@d@n
2@t@n
2@`@n
2@b@n
2@u@n
2@i@n
2@e@n
*n*******


Fixed submission (verdict: Accepted):

intLength = int(input())
strSentence = input()
intIndex = int(input())

strAnswer = ""
strWord = strSentence[intIndex-1]

for intIdx in range(intLength):
    if strSentence[intIdx] != strWord:
        strAnswer += "*"
    else:
        strAnswer += strWord

print(strAnswer)

Problem: p03068
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
tr = s[k-1]
for i in s:
    print(i if i==tr else "*",sep="")


Failing test case input:
9
nnitaaude
6

Expected output:
****aa***


Actual output:
*
*
*
*
a
a
*
*
*


Fixed submission (verdict: Accepted):

n = int(input())
s = input()
k = int(input())
tr = s[k-1]
for i in s:
    print(i if i==tr else "*",end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = int(input())
word = list(input())
K = int(input())

judge=word[K-1]
for i in range(S):
    if word[i] != judge:
        word[i] = '*'
print(" ".join(word))

Failing test case input:
6
nfvele
2

Expected output:
*f****


Actual output:
* f * * * *


Fixed submission (verdict: Accepted):
S = int(input())
word = list(input())
K = int(input())

judge=word[K-1]
for i in range(S):
    if word[i] != judge:
        word[i] = '*'
print("".join(word))

Problem: p03068
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
tr = s[k-1]
for i in s:
    print(i if i==tr else "*",sep=" ")


Failing test case input:
9
eb`btvino
5

Expected output:
****t****


Actual output:
*
*
*
*
t
*
*
*
*


Fixed submission (verdict: Accepted):

n = int(input())
s = input()
k = int(input())
tr = s[k-1]
for i in s:
    print(i if i==tr else "*",end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())
key = S[K - 1]
ans = ''
print(key)
for s in S:
    if s == key:
        ans += key
    else:
        ans += '*'

print(ans)

Failing test case input:
6
nfvele
1

Expected output:
n*****


Actual output:
n
n*****


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())
key = S[K - 1]
ans = ''

for i in range(N):
    if S[i] == key:
        ans += key
    else:
        ans += '*'

print(ans)
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

tmp = str(S[K-1])
l = []
for n,i in enumerate(S):
    print(i,tmp)
    if i==tmp:
        l.append(i)
    else:
        l.append('*')
print("".join(l))

Failing test case input:
5
esrro
1

Expected output:
e****


Actual output:
e e
s e
r e
r e
o e
e****


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())

tmp = str(S[K-1])
l = []
for n,i in enumerate(S):
    if i==tmp:
        l.append(i)
    else:
        l.append('*')
print("".join(l))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
S = input()
K = int(input())
for s in S:print(s if S[K-1] else "*",end="")

Failing test case input:
9
eb`btvino
5

Expected output:
****t****


Actual output:
eb`btvino

Fixed submission (verdict: Accepted):
input()
S = input()
K = int(input())
for s in S:print(s if s==S[K-1] else "*",end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


n = int(input())
s = input()
k = int(input())

S = []
for i in s:
    S.append(i)

ta = S[n-1]
    
for i in range(n):
    if S[i] == ta:
        print(S[i],end = "")

    else:
        print("*",end = "")
        


Failing test case input:
9
ndvbatine
1

Expected output:
n******n*


Actual output:
********e

Fixed submission (verdict: Accepted):


n = int(input())
s = input()
k = int(input())

S = []
for i in s:
    S.append(i)

ta = S[k-1]
    
for i in range(n):
    if S[i] == ta:
        print(S[i],end = "")

    else:
        print("*",end = "")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

s = ''
for i in range(N):
    if S[i] != S[K-1]:
        s += S[i]
    else:
        s += '*'

print(s)

Failing test case input:
9
nnitabdue
9

Expected output:
********e


Actual output:
nnitabdu*


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())

s = ''
for i in range(N):
    if S[i] == S[K-1]:
        s += S[i]
    else:
        s += '*'

print(s)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
sa = s[k: k + 1]
sl = len(s)
sli = list(s)
hey = []
for sli in sli:
    if sli == sa:
        hey.append(sli)
    else:
        hey.append("*")
hey = "".join(hey)
print(hey)


Failing test case input:
9
eiubatdnn
2

Expected output:
*i*******


Actual output:
**u******


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())
sa = s[k - 1: k]
sl = len(s)
sli = list(s)
hey = []
for sli in sli:
    if sli == sa:
        hey.append(sli)
    else:
        hey.append("*")
hey = "".join(hey)
print(hey)
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())

exa = s[k-1]
for i in s:
    if i != exa:
        print(i,exa)
        s = s.replace(i,'*')
    
print(s)

Failing test case input:
9
nnitabude
8

Expected output:
*******d*


Actual output:
n d
n d
i d
t d
a d
b d
u d
e d
*******d*


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())

exa = s[k-1]
for i in s:
    if i != exa:
        s = s.replace(i,'*')
    
print(s)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(str(input()))
K = int(input())
 
SK = str(S[K-1])
for i in range(0,N-1):
    if S[i] == SK:
        pass
    else:
        S[i] = '*'
print(*S)

Failing test case input:
6
nekeve
5

Expected output:
****v*


Actual output:
* * * * v e


Fixed submission (verdict: Accepted):
N = int(input())
S = list(str(input()))
K = int(input())

SK = str(S[K-1])
for i in range(0,N):
    if S[i] == SK:
        pass
    else:
        S[i] = '*'
for j in S:
  print(j, end ="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(str(input()))
K = int(input())
 
SK = str(S[K-1])
for i in range(0,N):
    if S[i] == SK:
        pass
    else:
        S[i] = '*'
print(*S)

Failing test case input:
9
edubation
8

Expected output:
*******o*


Actual output:
* * * * * * * o *


Fixed submission (verdict: Accepted):
N = int(input())
S = list(str(input()))
K = int(input())

SK = str(S[K-1])
for i in range(0,N):
    if S[i] == SK:
        pass
    else:
        S[i] = '*'
for j in S:
  print(j, end ="")

Problem: p03068
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
for i in range(n):
    if s[i]!=s[k-1]:
        print('*',end='')
    else:
        print('r',end='')

Failing test case input:
9
education
9

Expected output:
********n


Actual output:
********r

Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())
for i in range(n):
    if s[i]!=s[k-1]:
        print('*',end='')
    else:
        print(s[i],end='')

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = str(input())
K = int(input())
SS = list(S)
for i in range(N):
  if(SS[i]==SS[K-1]):
    None
  else:
    SS[i] = "*"
SSS = str(SS)
print(SSS)

Failing test case input:
9
edubation
4

Expected output:
***b*****


Actual output:
* * * b * * * * *

Fixed submission (verdict: Accepted):
N = int(input())
S = str(input())
K = int(input())
H = ""
for i in range(N):
  if(S[i]==S[K-1]):
    H+=S[i]
  else:
    H+="*"
print(H)
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k = int( input())
s = list(str(input()))
n = int( input())
  
for i in range(len(s)):
    if s[i] != s[n-1]:
        s[i] = "*"
          
print(s)

Failing test case input:
9
mndt`buie
1

Expected output:
m********


Actual output:
m * * * * * * * *

Fixed submission (verdict: Accepted):
k = int( input())
s = list(str(input()))
n = int( input())
a = ""
  
for i in range(len(s)):
    if s[i] != s[n-1]:
        s[i] = "*"
    a+=(str(s[i]))
        
print(a)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
word = input()
word_list=[]
word_num = int(input())

for i in range(len(word)):
    word_list.append(word[i])
    if str(word[i]) != str(word[word_num -1]):
         word_list[i] = '*'

print(" ".join(list(map(str,word_list))))

Failing test case input:
9
abuidbtmn
8

Expected output:
*******m*


Actual output:
* * * * * * * m *


Fixed submission (verdict: Accepted):
N = int(input())
word = input()
word_list=[]
word_num = int(input())

for i in range(len(word)):
    word_list.append(word[i])
    if str(word[i]) != str(word[word_num -1]):
         word_list[i] = '*'

print("".join(list(map(str,word_list))))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(input())
k=int(input())
num=s[k-1]
num=str(num)
for i in range (0,n):
  if s[i]==num:
    s[i]="*"
s=''.join(s)
print(s)

Failing test case input:
9
noisaeudb
4

Expected output:
***s*****


Actual output:
noi*aeudb


Fixed submission (verdict: Accepted):
n=int(input())
s=list(input())
k=int(input())
num=s[k-1]
num=str(num)
for i in range (0,n):
  if s[i]!=num:
    s[i]="*"
s=''.join(s)
print(s)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
s = input()
S = [str(c) for c in s]
K = int(input())

for i in range(N):
    if str(S[i]) != str(S[K-1]):
        S[i] = "*"
    

Failing test case input:
9
nndtabuif
3

Expected output:
**d******


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
s = input()
S = [str(c) for c in s]
K = int(input())

for i in range(N):
    if str(S[i]) != str(S[K-1]):
        S[i] = "*"
i=0
for i in range(N):
    print(S[i], end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n = int(input())
s = str(input())
k = int(input())

index_num = [n for n, v in enumerate(s) if v == s[k-1]]
ans = list("*"*n)
index_num = list(index_num)
for i in range(0, len(index_num)):
    print(index_num[i])
    ans[index_num[i]] = s[k-1]
print("".join(ans))

Failing test case input:
9
pniv`btbe
4

Expected output:
***v*****


Actual output:
3
***v*****


Fixed submission (verdict: Accepted):

n = int(input())
s = str(input())
k = int(input())

index_num = [n for n, v in enumerate(s) if v == s[k-1]]
ans = list("*"*n)
index_num = list(index_num)
for i in range(0, len(index_num)):
    ans[index_num[i]] = s[k-1]
print("".join(ans))
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = input()
l = int(input())
for i in range(n):
  if a[l-1] != a[i]:
    print('*', sep='')
  else:
    print(a[l-1], sep='')


Failing test case input:
9
ditb`ndtn
3

Expected output:
**t****t*


Actual output:
*
*
t
*
*
*
*
t
*


Fixed submission (verdict: Accepted):
n = int(input())
a = input()
l = int(input())
for i in range(n):
  if a[l-1] != a[i]:
    print('*', end='')
  else:
    print(a[l-1], end='')

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())
K = int(input())

x = S[K-1]
s = [i for i, t in enumerate(S) if t == x]

for i in range(N):
	if i in s:
		S[i-1] = '*'
	else:
		pass

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

Failing test case input:
5
nesrr
4

Expected output:
***rr


Actual output:
ne**r


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
K = int(input())

x = S[K-1]
s = [i for i, t in enumerate(S) if t == x]

for i in range(N):
	if i not in s:
		S[i] = '*'
	else:
		pass

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

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = str(input())
K = int(input())

t = S[K - 1]

print(t)

ans = ''
for i in S:
    if i == t:
        ans += i
    else:
        ans += '*'

print(ans)

Failing test case input:
9
nnitabdue
8

Expected output:
*******u*


Actual output:
u
*******u*


Fixed submission (verdict: Accepted):
N = int(input())
S = str(input())
K = int(input())

t = S[K - 1]

ans = ''
for i in S:
    if i == t:
        ans += i
    else:
        ans += '*'

print(ans)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
t = s[k-1]
for i in s:
    if i!=t:
        s.replace(i,"*")
print(s)

Failing test case input:
9
nnitabude
4

Expected output:
***t*****


Actual output:
nnitabude


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())
t = s[k-1]
for i in s:
    if i!=t:
        s = s.replace(i,"*")
print(s)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=input()
k=int(input())
a=s[k-1]
t=[]
for i in range(n):
    if(s[i] == a):
        t.append('*')
    else:
        t.append(s[i])
        continue
for j in range(n):
    print(t[j],end='')
print()

Failing test case input:
9
eiubatdnn
2

Expected output:
*i*******


Actual output:
e*ubatdnn


Fixed submission (verdict: Accepted):
n=int(input())
s=input()
k=int(input())
a=s[k-1]
t=[]
for i in range(n):
    if(s[i] == a):
        t.append(s[i])
    else:
        t.append('*')
        continue
for j in range(n):
    print(t[j],end='')
print()
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int (input ())
S = str (input ())
K = int (input ())

num = ord (S [N - 1])

for i in range (len (S)):
    if ord (S [i]) == num:
        print (S [i], end = '')
    else:
        print ('*', end = '')


Failing test case input:
9
ednuatinb
4

Expected output:
***u*****


Actual output:
********b

Fixed submission (verdict: Accepted):
N = int (input ())
S = str (input ())
K = int (input ())

num = ord (S [K - 1])

for i in range (N):
    if ord (S [i]) == num:
        print (S [i], end = '')
    else:
        print ('*', end = '')

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(input())
k = int(input())

mozi = s[k-1]
print(mozi)

for i in range(n):
    if s[i] != mozi:
        s[i] = "*"

print(*s)


Failing test case input:
9
nrdnacujc
2

Expected output:
*r*******


Actual output:
r
* r * * * * * * *


Fixed submission (verdict: Accepted):
n = int(input())
s = list(input())
k = int(input())

mozi = s[k-1]

for i in range(n):
    if s[i] != mozi:
        s[i] = "*"

print(*s, sep="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

k = S[K-1]

print(k)

ans = []

for i in S:
    if i == k:
        ans.append(k)
    else:
        ans.append('*')

print(''.join(ans))

Failing test case input:
9
pniv`btbe
4

Expected output:
***v*****


Actual output:
v
***v*****


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())

k = S[K-1]

ans = []

for i in S:
    if i == k:
        ans.append(k)
    else:
        ans.append('*')

print(''.join(ans))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
S=input()
k=int(input())
for s in S:
  print(s if s==S[k-1] else "*")

Failing test case input:
9
education
9

Expected output:
********n


Actual output:
*
*
*
*
*
*
*
*
n


Fixed submission (verdict: Accepted):
input()
S=input()
k=int(input())
for s in S:
  print(s if s==S[k-1] else "*",end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

n = ii()
s = list(input())
k = ii()
for i in s:
    if i != s[k-1]:
        i = '*'
print(''.join(s))

Failing test case input:
6
nfvele
1

Expected output:
n*****


Actual output:
nfvele


Fixed submission (verdict: Accepted):

def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

n = ii()
s = list(input())
k = ii()
for i in range(len(s)):
    if s[i] != s[k-1]:
        s[i] = '*'
print(''.join(s))
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())
skey = S[K-1]
t = ""
for s in S:
  if s == skey:
    t += "*"
  else:
    t += s
print(t)

Failing test case input:
9
abuiebtmn
4

Expected output:
***i*****


Actual output:
abu*ebtmn


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())
skey = S[K-1]
t = ""
for s in S:
  if s != skey:
    t += "*"
  else:
    t += s
print(t)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
S = input()
k = int(input())
for s in S:
  print(s if s==S[k-1] else "*")

Failing test case input:
9
abuiebtmn
4

Expected output:
***i*****


Actual output:
*
*
*
i
*
*
*
*
*


Fixed submission (verdict: Accepted):
input()
S = input()
k = int(input())
for s in S:
  print(s if s==S[k-1] else "*",end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

S_list = list(S)

moji = S_list[K-1]

for i in range(len(S_list)):
    if S_list[i]!=moji:
        S_list[i]="*"
print(S_list)

Failing test case input:
9
nsdnacujc
2

Expected output:
*s*******


Actual output:
* s * * * * * * *

Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())

S_list = list(S)

moji = S_list[K-1]

for i in range(len(S_list)):
    if S_list[i]!=moji:
        S_list[i]="*"
print("".join(S_list))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = 6
B = "terter"
k = 3
for v in B:
    print(v if B[k-1] == v else "*",end="")


Failing test case input:
9
eiub`tdnn
3

Expected output:
**u******


Actual output:
**r**r

Fixed submission (verdict: Accepted):
input()
B = input()
k = int(input())
for v in B:
    print(v if B[k-1] == v else "*",end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())
key = S[K - 1]
ans = ''
print(key)
for i in range(N):
    if S[i] == key:
        ans += S[i]
    else:
        ans += '*'

print(ans)

Failing test case input:
6
nfvele
1

Expected output:
n*****


Actual output:
n
n*****


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())
key = S[K - 1]
ans = ''

for i in range(N):
    if S[i] == key:
        ans += key
    else:
        ans += '*'

print(ans)

Problem: p03068
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
l = s[k-1]
for r in s:
  print(r if r == l else print(""))
  


Failing test case input:
9
ncdoacujt
2

Expected output:
*c***c***


Actual output:

None
c

None

None

None
c

None

None

None


Fixed submission (verdict: Accepted):
n = int(input())
s = input()

k = int(input())
for r in s:
  print(r if r == s[k-1] else "*",end="")
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = str(input())
K = int(input())

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

ans = []
for i in range(N):
  if S[i] != swap_word:
    ans.append("*")
  else:
    ans.append(S[i])

ans_word = ""
for i in range(N):
  ans_word = ans_word + ans[i]

print(ans_word)


Failing test case input:
5
eqrro
4

Expected output:
**rr*


Actual output:
r
**rr*


Fixed submission (verdict: Accepted):
N = int(input())
S = str(input())
K = int(input())

swap_word = S[K-1]

ans = []
for i in range(N):
  if S[i] != swap_word:
    ans.append("*")
  else:
    ans.append(S[i])

ans_word = ""
for i in range(N):
  ans_word = ans_word + ans[i]

print(ans_word)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


N = int(input())
S = input()
K = int(input())

result = ''
sk = S[K-1]
print(sk)
for s in S:
	if sk == s:
		result += s
	else:
		result += '*'

print(result)

Failing test case input:
9
edubation
8

Expected output:
*******o*


Actual output:
o
*******o*


Fixed submission (verdict: Accepted):

 
N = int(input())
S = input()
K = int(input())
 
result = ''
sk = S[K-1]

for s in S:
	if sk == s:
		result += s
	else:
		result += '*'
 
print(result)

Problem: p03068
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())
e = S[K-1]
ans = []
for i in range(N):
  if S[i] != 'e':
    ans.append("*")
  else:
    ans.append(S[i])
print(''.join(ans))

Failing test case input:
9
nniuaadue
8

Expected output:
***u***u*


Actual output:
********e


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())
e = S[K-1]
ans = []
for i in range(N):
  if S[i] != e:
    ans.append("*")
  else:
    ans.append(S[i])
print(''.join(ans))

Problem: p03068
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
l = s[k-1]
for r in s:
  print(r if r == l else print("*"))

Failing test case input:
6
nekeve
5

Expected output:
****v*


Actual output:
*
None
*
None
*
None
*
None
v
*
None


Fixed submission (verdict: Accepted):
n = int(input())
s = input()

k = int(input())
for r in s:
  print(r if r == s[k-1] else "*",end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = str(input())
K = int(input())
S_str = S[K-1]
i = 0
for i in range(N-1):
    if S_str != S[i]:
        S = S.replace(S[i], "*")
        i += 1
    else:
        i += 1
print(S)


Failing test case input:
9
nnitabude
2

Expected output:
nn*******


Actual output:
nn******e


Fixed submission (verdict: Accepted):
N = int(input())
S = str(input())
K = int(input())
S_str = S[K-1]
i = 0
for i in range(N):
    if S_str != S[i]:
        S = S.replace(S[i], "*")
        i += 1
    else:
        i += 1
print(S)
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
A=input()
x=int(input())

for i in range(N):
    if A[i]!=A[x-1]:
        print(A[i])
        A=A.replace(A[i],"*")
        
print(A)


Failing test case input:
9
abuiebtmn
4

Expected output:
***i*****


Actual output:
a
b
u
e
*
t
m
n
***i*****


Fixed submission (verdict: Accepted):
N=int(input())
A=input()
x=int(input())

for i in range(N):
    if A[i]!=A[x-1]:
        A=A.replace(A[i],"*")
        
print(A)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def eee(s,k):
    a = s[k-1]
    k = list(filter(lambda x:x!=a,s))
    z = ''.join(s)
    for i in k:
        print(k)
        z = z.replace(i,'*')
        print(z)
    return z

n = int(input())
s = list(input())
k = int(input())
print(eee(s,k))

Failing test case input:
9
ddubatinn
2

Expected output:
dd*******


Actual output:
['u', 'b', 'a', 't', 'i', 'n', 'n']
dd*batinn
['u', 'b', 'a', 't', 'i', 'n', 'n']
dd**atinn
['u', 'b', 'a', 't', 'i', 'n', 'n']
dd***tinn
['u', 'b', 'a', 't', 'i', 'n', 'n']
dd****inn
['u', 'b', 'a', 't', 'i', 'n', 'n']
dd*****nn
['u', 'b', 'a', 't', 'i', 'n', 'n']
dd*******
['u', 'b', 'a', 't', 'i', 'n', 'n']
dd*******
dd*******


Fixed submission (verdict: Accepted):
def eee(s,k):
    a = s[k-1]
    k = list(filter(lambda x:x!=a,s))
    z = ''.join(s)
    for i in k:
        z = z.replace(i,'*')
    return z

n = int(input())
s = list(input())
k = int(input())
print(eee(s,k))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())
K = int(input())
a = S[K-1]
print(a)
for i in range(N):
    if S[i]!=a:
        S[i] = '*'
print(*S,sep='')

Failing test case input:
6
ekveen
3

Expected output:
**v***


Actual output:
v
**v***


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
K = int(input())
a = S[K-1]
for i in range(N):
    if S[i]!=a:
        S[i] = '*'
print(*S,sep='')

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())
for i in s:
  if i == s[k - 1]:
    print(i, sep= "")
  else :
    print("*", sep= "")

Failing test case input:
9
edubatinn
2

Expected output:
*d*******


Actual output:
*
d
*
*
*
*
*
*
*


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())
for i in range(n):
  if s[i] == s[k - 1]:
    print(s[i], end="")
  else :
    print("*", end="")

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(input())
k=int(input())
num=s[k-1]
num=str(num)
for i in range (0,n):
  if s[i]==num:
    s[i]="*"
s=''.join(s)
print(s)


Failing test case input:
9
cjubandtn
2

Expected output:
*j*******


Actual output:
c*ubandtn


Fixed submission (verdict: Accepted):
n=int(input())
s=list(input())
k=int(input())
num=s[k-1]
num=str(num)
for i in range (0,n):
  if s[i]!=num:
    s[i]="*"
s=''.join(s)
print(s)
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(input())
k = int(input())
c = s[k-1]
for i in range(len(s)):
  if not s[i] == c:
    s[i] = c
print("".join(s))

Failing test case input:
9
edtbiuaon
-2

Expected output:
******a**


Actual output:
aaaaaaaaa


Fixed submission (verdict: Accepted):
n = int(input())
s = list(input())
k = int(input())
c = s[k-1]
for i in range(n):
  if not s[i] == c:
    s[i] = '*'
print("".join(s))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


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

K_char = S[K-1]
ans = ''
for i in S:
    if i != K_char:
        ans += i
    elif  i == K_char:
        ans += '*'
        
print(ans)

Failing test case input:
9
eeubation
1

Expected output:
ee*******


Actual output:
**ubation


Fixed submission (verdict: Accepted):


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

K_char = S[K-1]
ans = ''
for i in S:
    if i == K_char:
        ans += i
    elif  i != K_char:
        ans += '*'
        
print(ans)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=input()
k=int(input())
num = 0
for i in s:
  if i == s[k-1]:
    num +=1
  else:
    s = s.replace(i,'*')
    num +=1

Failing test case input:
9
noitacude
2

Expected output:
*o*******


Actual output:

Fixed submission (verdict: Accepted):
n=int(input())
s=input()
k=int(input())
num = 0
for i in s:
  if i == s[k-1]:
    num +=1
  else:
    s = s.replace(s[num],'*')
    num +=1
print(s)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())

str_list = list(s)
x = str_list[k-1]
print(n,s,k,x)
for i in range(len(s)):
    if str_list[i] != x:
        str_list[i] = "*"
str_changed = "".join(str_list)
print(str_changed)

Failing test case input:
9
education
4

Expected output:
***c*****


Actual output:
9 education 4 c
***c*****


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())

str_list = list(s)
x = str_list[k-1]
for i in range(len(s)):
    if str_list[i] != x:
        str_list[i] = "*"
str_changed = "".join(str_list)
print(str_changed)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

cha = S[K-1]
list_ = [s for s in S]
print(len(list_))
for i in range(N):
  if cha != S[i]:
    list_[i] = "*"
print("".join(list_))

Failing test case input:
9
nsdnacujc
2

Expected output:
*s*******


Actual output:
9
*s*******


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())
 
cha = S[K-1]
list_ = [s for s in S]
for i in range(N):
  if cha != S[i]:
    list_[i] = "*"
print("".join(list_))
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = int(input())
B = input()
C = int(input())
mark = B[C-1]
for i in range(A):
  if B[i] != mark:
    B = B.replace(B[i], '*', 1)
    print(1)

print(B)


Failing test case input:
9
mndt`buie
2

Expected output:
*n*******


Actual output:
1
1
1
1
1
1
1
1
*n*******


Fixed submission (verdict: Accepted):
A = int(input())
B = input()
C = int(input())
mark = B[C-1]
for i in range(A):
  if B[i] != mark:
    B = B.replace(B[i], '*', 1)
    
 
print(B)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=str(input())
K=int(input())
s=list(S)
t=s[K-1]
a=''
for i in range(N):
  if s[i]!=t:
    s[i]='＊'
  a+=s[i]
print(a)


Failing test case input:
5
eqrro
4

Expected output:
**rr*


Actual output:
＊＊rr＊


Fixed submission (verdict: Accepted):
N=int(input())
S=str(input())
K=int(input())
s=list(S)
t=s[K-1]
a=''
for i in range(N):
  if s[i]!=t:
    s[i]='*'
  a+=s[i]
print(a)

Problem: p03068
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
s=list(input())
k=int(input())
ss = s[k-1]
for i in range(1,n):
  if s[i] != ss:
    s[i]='*'
print("".join(s))

Failing test case input:
9
ecvb`tinn
5

Expected output:
****`****


Actual output:
e***`****


Fixed submission (verdict: Accepted):
n=int(input())
s=list(input())
k=int(input())
ss = s[k-1]
for i in range(0,n):
  if s[i] != ss:
    s[i]='*'
print("".join(s))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input=sys.stdin.readline

N=int(input())
S=input()
K=int(input())-1
for s in S:
  if s != S[K]:
    print("*",end='')
  else:
    print(s,end='')
print()

Failing test case input:
9
noisaeudb
4

Expected output:
***s*****


Actual output:
***s******


Fixed submission (verdict: Accepted):
import sys
input=sys.stdin.readline
 
N=int(input())
S=input()[:-1]
K=int(input())-1
for s in S:
  if s != S[K]:
    print("*",end='')
  else:
    print(s,end='')
print()

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = int(input())
word = list(input())
K = int(input())
judge=word[K-1]
for i in range(S):
    if word[i] != judge:
        word[i] = "*"
print(" ".join(word))

Failing test case input:
9
eeubation
1

Expected output:
ee*******


Actual output:
e e * * * * * * *


Fixed submission (verdict: Accepted):
S = int(input())
word = list(input())
K = int(input())

judge=word[K-1]
for i in range(S):
    if word[i] != judge:
        word[i] = '*'
print("".join(word))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())
K = int(input())
target = S[K-1]
for item in S:
  if item != target:
    item = '*'
print(''.join(S))

Failing test case input:
9
acuifbtmn
6

Expected output:
*****b***


Actual output:
acuifbtmn


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
K = int(input())
target = S[K-1]
for i in range(N):
  if S[i] != target:
    S[i] = '*'
print(''.join(S))
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())
K = int(input())
key = S[K-1]
print(key)
for i in range(N):
    if S[i] != key:
        S[i] = "*"
print("".join(S))

Failing test case input:
5
nesrr
4

Expected output:
***rr


Actual output:
r
***rr


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
K = int(input())
key = S[K-1]
for i in range(N):
    if S[i] != key:
        S[i] = "*"
print("".join(S))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
k = int(input())

c = s[n - 1]
ans = ''
for ci in s:
    if ci == c:
        ans += c
    else:
        ans += "*"

print(ans)


Failing test case input:
9
nnitabdue
8

Expected output:
*******u*


Actual output:
********e


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
k = int(input())

c = s[k - 1]
ans = ''
for ci in s:
    if ci == c:
        ans += c
    else:
        ans += "*"

print(ans)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

a = S[N-1]
for i in S:
    if i != a:
        print('*',end='')
    if i == a:
        print(i,end='')

Failing test case input:
6
eleven
5

Expected output:
e*e*e*

Actual output:
*****n

Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())

a = S[K-1]
for i in S:
    if i != a:
        print('*',end='')
    else:
        print(i,end='')

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
Length = int(input())
inputString = input()
SpecialIndex = int(input())
 
for i in inputString:
  if i != inputString[SpecialIndex-1]:
    i = "*"
print(inputString)

Failing test case input:
6
eleven
4

Expected output:
***v**


Actual output:
eleven


Fixed submission (verdict: Accepted):
Length = int(input())
inputString = input()
SpecialIndex = int(input())
SpecialChar = inputString[SpecialIndex-1]
answer = ""
for i in inputString:
  if i != SpecialChar:
    answer += "*"
  else:
    answer += i
print(answer)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(input())
k = int(input())

mozi = s[k-1]
print(mozi)

for i in range(n):
    if s[i] != mozi:
        s[i] = "*"

print(*s, sep="")


Failing test case input:
9
nndtabuif
3

Expected output:
**d******


Actual output:
d
**d******


Fixed submission (verdict: Accepted):
n = int(input())
s = list(input())
k = int(input())

mozi = s[k-1]

for i in range(n):
    if s[i] != mozi:
        s[i] = "*"

print(*s, sep="")
Problem: p03068
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
import sys
import collections
import bisect
readline = sys.stdin.readline


def main():
    [n, s, k] = [str(readline().rstrip()) for _ in range(3)]
    print(s)
    s = list(s)
    strS = ""
    target = s[int(k) - 1]
    for i in range(int(n)):
        if s[i] == target:
            strS += s[i]
        else:
            strS += "*"
    print(strS)


if __name__ == '__main__':
    main()


Failing test case input:
9
noetacudi
3

Expected output:
**e******


Actual output:
noetacudi
**e******


Fixed submission (verdict: Accepted):
import math
import sys
import collections
import bisect
readline = sys.stdin.readline


def main():
    [n, s, k] = [str(readline().rstrip()) for _ in range(3)]
    s = list(s)
    strS = ""
    target = s[int(k) - 1]
    for i in range(int(n)):
        if s[i] == target:
            strS += s[i]
        else:
            strS += "*"
    print(strS)


if __name__ == '__main__':
    main()

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
K = int(input())

for i in range(N):
  if S[K-1] != S[i]:
    S[i] == '*'
  
print(S)

Failing test case input:
9
noisaeudb
6

Expected output:
*****e***


Actual output:
noisaeudb


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
K = int(input())
ans = ''

for i in range(N):
  if S[K-1] != S[i]:
    ans += '*'
  else:
    ans += S[i]
  
print(ans)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input().rstrip()
K = int(input())

val = list(S)[K-1]
print(N,S,K,list(S),val)
output=[tmp if tmp == val else '*' for tmp in list(S) ]

print("".join(output))

Failing test case input:
9
edubation
4

Expected output:
***b*****


Actual output:
9 edubation 4 ['e', 'd', 'u', 'b', 'a', 't', 'i', 'o', 'n'] b
***b*****


Fixed submission (verdict: Accepted):
N = int(input())
S = input().rstrip()
K = int(input())
 
val = list(S)[K-1]
output=[tmp if tmp == val else '*' for tmp in list(S) ]
 
print("".join(output))

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=list(input())
K=int(input())
for i in range(N):
    if S[i]!=S[K-1]:
        S[i]='*'
''.join(S)
print(S)

Failing test case input:
9
nmtbfiuca
6

Expected output:
*****i***


Actual output:
* * * * * i * * *

Fixed submission (verdict: Accepted):
N=int(input())
S=list(input())
K=int(input())
for i in range(N):
    if S[i]!=S[K-1]:
        S[i]='*'
print(''.join(S))
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
length = int(input())
string = input()
K_str_id = int(input())

K_str = string[K_str_id - 1]

output = ""
for tmp_str in string:
    print(K_str, tmp_str)
    if tmp_str == K_str:
        output += tmp_str
    else:
        output += "*"
print(output)

Failing test case input:
9
ditb`ndtn
3

Expected output:
**t****t*


Actual output:
t d
t i
t t
t b
t `
t n
t d
t t
t n
**t****t*


Fixed submission (verdict: Accepted):
length = int(input())
string = input()
K_str_id = int(input())

K_str = string[K_str_id - 1]

output = ""
for tmp_str in string:
    if tmp_str == K_str:
        output += tmp_str
    else:
        output += "*"
print(output)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=input()
k=int(input())
j=s[k-1]
new_s=""
for i in range(n):
  if s[i]!=j:
    new_s+="*"
  else:
    new_s+=j

Failing test case input:
9
cjubandtn
1

Expected output:
c********


Actual output:

Fixed submission (verdict: Accepted):
n=int(input())
s=input()
k=int(input())
j=s[k-1]
new_s=""
for i in range(n):
  if s[i]!=j:
    new_s+="*"
  else:
    new_s+=j
print(new_s)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())
K = int(input())
a = S[K-1]

for i in range(N):
    if S[i] != a:
        S[i] = '*'

print(S)

Failing test case input:
5
nesrr
4

Expected output:
***rr


Actual output:
*, *, *, r, r

Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
K = int(input())
a = S[K-1]
T=[]

for i in range(N):
    if S[i] != a:
        S[i] = '*'

T = ''.join(S)

print(T)

Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
a = []
for l in sys.stdin:
    a.append(l)


word_num = int(a[0])
word = a[1]
char_num = int(a[2])

target_char = word[char_num]

result = []
for each_char in word:
    if each_char == target_char:
        result.append('*')
    else:
        result.append(each_char)
result = ''.join(result)
print(result)


Failing test case input:
9
nnitabude
8

Expected output:
*******d*


Actual output:
nnitabud*



Fixed submission (verdict: Accepted):
import sys
a = []
for l in sys.stdin:
    a.append(l)


word_num = int(a[0])
word = a[1].split()[0]
char_num = int(a[2])

target_char = word[char_num - 1]

result = []
for each_char in word:
    if each_char != target_char:
        result.append('*')
    else:
        result.append(each_char)
result = ''.join(result)
print(result)
Problem: p03068
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
string = input()
m = int(input())

target_word = string[m-1]

char_list = []

for i in range(n):
  if target_word == string[i]:
    char_list.append('e')
  else:
    char_list.append('*')
    
print(*char_list, sep = '')

Failing test case input:
5
rerro
1

Expected output:
r*rr*


Actual output:
e*ee*


Fixed submission (verdict: Accepted):
n = int(input())
string = input()
m = int(input())

target_word = string[m-1]

char_list = []

for i in range(n):
  if target_word == string[i]:
    char_list.append(target_word)
  else:
    char_list.append('*')
    
print(*char_list, sep = '')