Problem:


Score : 200 points

Problem Statement

You are given a string S of length N consisting of lowercase English letters, and an integer K.
Print the string obtained by replacing every character in S that differs from the K-th character of S, with *.

Constraints

1 \leq K \leq N\leq 10

S is a string of length N consisting of lowercase English letters.

N and K are integers.

Input

Input is given from Standard Input in the following format:

N
S
K

Output

Print the string obtained by replacing every character in S that differs from the K-th character of S, with *.

Sample Input 1

5
error
2

Sample Output 1

*rr*r

The second character of S is r. When we replace every character in error that differs from r with *, we get the string *rr*r.

Sample Input 2

6
eleven
5

Sample Output 2

e*e*e*

Sample Input 3

9
education
7

Sample Output 3

******i**



Sample input:
5
error
2


Sample output:
*rr*r

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
print(s.replace(s[n-1],'*'))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
S = input()
s = S[int(input())-1]

ans = ""
for i in s:
  if i == s:
    ans += s
  else:
    ans += "*"
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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='')

Submission status: Wrong Answer

Solution code:
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='')

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
m = int(input())
print(*['*' if x == s[m-1] else x for x in s])

Submission status: Wrong Answer

Solution code:
n, s, k = open(0)
j = s[int(k)]
print("".join(["*",j][i==j] for i in s)[:-1])

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input()) -1
d = s[k]
w = []
for i in range(n-1):
    if s[i] != d:
        w.append('*')
    else:
        w.append(d)
print(*w, sep='')

Submission status: Wrong Answer

Solution code:


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)

Submission status: Wrong Answer

Solution code:
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='')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
even = input()
odd = input()
if (len(even) - len(odd)) % 2 == 0:
    for i in range(len(even)):
        print(even[i], odd[i], sep="", end="")
else:
    for i in range(len(even)-1):
        print(even[i], odd[i], sep="", end="")
    print(even[-1])

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())
l = s[k-1]
for r in s:
  print(r if r == l else print("*"))

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())
l = s[k-1]
for r in s:
  print(r if r == l else print(""))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
input()
S=input()
k=int(input())
for s in S:
  print(s if s==S[k-1] else "*")

Submission status: Wrong Answer

Solution code:
input()
S = input()
k = int(input())
for s in S:
  print(s if s==S[k-1] else "*")

Submission status: Wrong Answer

Solution code:
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='')

Submission status: Wrong Answer

Solution code:
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('*')

Submission status: Wrong Answer

Solution code:
import re
n,s,k=open(0)
print(re.sub("[^"+s[int(k)-1]+"]","*",s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s =[str() for x in input()]
k = int(input())
for i in range(n):
    if s[i] != s[k-1]:
        s[i] = '*'
print("".join(s))

Submission status: Wrong Answer

Solution code:
n=int(input())
s=input()
k=int(input())
S=list(s)
for i in range(n):
    if S[i]!=S[k-1]:
        S[i]='*'
ans=','.join(S)
print(ans)

Submission status: Wrong Answer

Solution code:
Length = int(input())
inputString = input()
SpecialIndex = int(input())
 
for i in inputString:
  if i != inputString[SpecialIndex-1]:
    i = "*"
print(inputString)

Submission status: Wrong Answer

Solution code:
N=int(input())
S=input()
K=int(input())
for s in S:
  print(s if s==S[K-1] else "*")

Submission status: Wrong Answer

Solution code:
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='')

Submission status: Wrong Answer

Solution code:
input()
S=input()
k=int(input())
#for s in S:print(s if s==S[k-1] else "*")
#for s in S:print(s if s==S[k-1] else "*",end="")
for s in S:print(s if s==S[k-1] else "*",end='\n')

Submission status: Wrong Answer

Solution code:
input()
S=input()
k=int(input())
#for s in S:print(s if s==S[k-1] else "*")
#for s in S:print(s if s==S[k-1] else "*",end="")
for s in S:print(s if s==S[k-1] else "*",end="\n")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
s=list(input())
k=int(input())
for i in range(n):
    if s[i] != s[k-1]:
        s[i]=s[k-1]
print(''.join(s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())

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

new_s = ""
for cal in s:
  if cal != sk:
    new_s += "*"
  else:
    new_s += sk
print(new_s)

Submission status: Wrong Answer

Solution code:
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 = '')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = 6
B = "terter"
k = 3
for v in B:
    print(v if B[k-1] == v else "*",end="")

Submission status: Wrong Answer

Solution code:
n=int(input())
s=list(input())
k=int(input())
l=s[k-1]
for i in range(n):
  if s[i]==l:
    s[i]="*"
print("".join(s))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = input()
K = int(input())

for s in S:
  if s!=S[K-1]:
    s='*'

print(S)

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
N=int(input())
S=list(input())
K=int(input())
moji=S[K-1]
for i in range(N):
  if S[i]!=moji:
    S[i]="*"
mojiretu=""
for x in S:
  mojiretu+=moji
print(mojiretu)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())

print(s.replace(s[k-1],'*'))

Submission status: Wrong Answer

Solution code:
_,s,k=open(0);print(''.join(t*(t==s[int(k)-1])or'*'for t in s))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = list(input())
K = int(input())
target = S[K-1]
for item in S:
  if item != target:
    item = '*'
print(''.join(S))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
string = input()
k = int(input())

key = string[k-1]

index_list = [i for i,letter in enumerate(string) if letter == key]

word = ["*" for i in range(len(string))]
for elem in index_list:
	print(elem)
	word[elem] = key

word = "".join(word)
print(word)

Submission status: Wrong Answer

Solution code:
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] = c
print("".join(s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
S = input()
K = int(input())
str = S[K-1]
for i in range(N):
    if S[i] != str:
        S=S.replace(S[i],'＊')
print(S)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())
print(s.replace(s[k-1],'*'))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=input()
s=input()
K=int(input())
ans = []
R = str(s[K-1])
for leo in s:
    if leo != R:
	   	leo = "*"
    else:
    	pass
    ans.append(str(leo))  
print(ans, sep="")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

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

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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)

Submission status: Wrong Answer

Solution code:
N =input()
S =raw_input()
K =input()

tgt=S[K-1:K]
print tgt

out = ""
for i in range(N):
  c=S[i]
  if c==tgt: 
    out=out+c
  else:
    out=out+'*'

print out

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = int(input())
word = list(input())
K = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys


def main():
    N = int(sys.stdin.readline())
    S = sys.stdin.readline()
    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()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
S = list(input())
K = int(input())

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

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

print(''.join(S))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
str = input()
str =list(str)
str.append("a")
cs = int(input())

char = str[cs-1]
for i in range(n):
  if str[i] != char:
    str[i:i+1] = "*"
ans = str[0:n]

print(*ans)

Submission status: Wrong Answer

Solution code:
kazu = int(input())#文字数
mozi = input()#文字
sitei = int(input())#取り出す文字
lst = []
#print(mozi[sitei])
for i in range(len(mozi)):
    if mozi[i] == mozi[sitei-1]:
        lst.append(mozi[i])
        print(mozi[i],end ="")
    elif mozi[i] != mozi[sitei]:
        lst.append("*")
        print("*",end="")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()
m=input()
l=int(input())
kotae=""
key=m[l-1]

for i in range(len(m)):
    if m[i] != key:
        kotae=kotae+"*"
    else:
        kotae=kotae+key

Submission status: Wrong Answer

Solution code:
import re

N=int(input())
S=str(input())
K=int(input())
slice=S[K-1]
ans=re.sub(r'[^slice]','*',S)
print(ans)

Submission status: Wrong Answer

Solution code:
N=int(input())
S=input()
l=len(S)
S=list(S)
K=int(input())#Kと異なる文字

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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=input()
s=input()
K=int(input())
R=str(s[K-1])
dst = s.replace(R, "*")
print(dst)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
n=3
a=[input() for i in range(n)]
print(a)
S=list(a[1])
s=len(S)
K=int(a[2])-1

for i in range(s):
  if S[i]!=S[K]:
    S[i]="*"
mojiretu = ''
    
for x in S:
    mojiretu += x
    
print(mojiretu)

Submission status: Wrong Answer

Solution code:
N = int(input())
S = list(input())
K = int(input())
K = S[K-1]
    
for i in range(N):
    if S[i] != K:
        S[i] = "*"
        
print(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
Sl=input()
K=int(input())
S= list(Sl)
print(S)
for i in range(N):
 if S[i]  != S[K-1]:
  S[i] = '*'

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()
S = input()
K = input()

char = S[int(K)-1]

#print(char)

ans = []

for j in range(len(S)):
  #print(S[j])
  if char != S[j]:
    ans.append("*")
    #print("!=")   
  else:
    ans.append(char)
    continue

print(" ".join(ans))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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 = '')

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-


from sys import stdin



############################################


# read data for n sequences.
n = stdin.readline()
N = int(n)
n = stdin.readline()
S = str(n)
n = stdin.readline()
K = int(n)
#data = [int(stdin.readline().rstrip()) for _ in range(n)]
key = S[K]

out=[]
for i,l in enumerate(S):
	if l != key:
		out.append("*")
	else:
		out.append(l)
out1=''
for o in out:
	out1+=o
print(out1)

Submission status: Wrong Answer

Solution code:
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 - 1]

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

Submission status: Wrong Answer

Solution code:
N = int(input())
S = str(input())
K = int(input())

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

#T=S.replace(x,'*',N)
print(x)
print(T)

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(raw_input())
S = list(raw_input())
K = int(raw_input())

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

print("".join(S))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
S=list(input())
cnt=0
for i in range(1,N):
    if S[i]=='#' and S[i+1]=='.':
            S[i+1]='#'
            cnt+=1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
n = int(input())
s = str(input())
k = int(input())
"""
n = 7
s = "djfsfok"
k = 3
"""
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))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
	n = int(input())
	s = input()
	k = int(input())
	tmp=''
	for i in range(n):
		if i == k:
			tmp = s[i]	
	ans = ''
	for c in s:
		if c != tmp:
			ans+='*'
		else:
			ans+=c
	print(ans)

if __name__ == '__main__':
	import sys
	sys.exit(main())

Submission status: Wrong Answer

Solution code:
_ = input()
s = input()
i = int(input())-1

a = s[i]

s = s.replace(a, '*')

print(s)

Submission status: Wrong Answer

Solution code:
N = int(input())
S = input()
K = int(input())
l = S[K - 1]
result = ""
print(l)
for s in S:
    if s != l:
         result += "*"
    else:
         result += s
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import re
n = input()
s = input()
k = int(input())
tmp = re.sub(r'[a-z]+', "*", s.replace(s[k-1], "0"))
print(tmp.replace("0", s[k-1]))

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())

letter = s[k-1]
out = ''

for i in range(n):
    print(s[i], letter)
    if s[i] == letter:
        out += s[i]
    else:
        out += '*'

print(out)

Submission status: Wrong Answer

Solution code:
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="")

Submission status: Wrong Answer

Solution code:
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_))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
S = str(input())
K = int(input())
K_S = S[K - 1]
print(K_S)
for i in range(N):
    if S[i] != K_S:
        S = S.replace(S[i], '*')
print (S)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())

t = s.replace(s[k-1],"*")
    
print(t)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
import re

n = [int(x) for x in stdin.readline().rstrip().split()]
s = stdin.readline().rstrip().split()
s = s[0]
k = [int(x) for x in stdin.readline().rstrip().split()]
k = k[0]

ast = ''
for i in range(len(s)):
    print(s[i])
    if i+1 == k:
        ast = s[i]

print(re.sub('[^' + ast + ']', '*', s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
k = int(input())

print(s.replace(s[k -1], '*'))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
S=str(input())
K=int(input())
L=list(S)
s=S[K-1]
print(s)
for i in range(N):
    t=L[i]
    if s!=t:
        L[i]='*'
T="".join(L)
print(T)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
S = input()
K = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
s=input()
k=int(input())
d=s[k-1]
for a in s:
  if a!=d:
    a='*'
print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8

import sys
input = sys.stdin.readline

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

moji = S[K - 1]

for s in S:
    print("*" if s != moji else s, end="")

print()

Submission status: Wrong Answer

Solution code:
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] = "*"
print(S)