Submission #5135619


Source Code Expand

n = gets.to_i
s = gets.chomp
k = gets.to_i
c = s[k-1]

(0..n-1).each{|i|
    if s[i] != c
        s[i] = '*'
    end
}
puts s

Submission Info

Submission Time
Task B - *e**** ********e* *e****e* ****e**
User vpplcb
Language Ruby (2.3.3)
Score 200
Code Size 137 Byte
Status AC
Exec Time 7 ms
Memory 1788 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 9
Set Name Test Cases
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt AC 7 ms 1788 KiB
02.txt AC 7 ms 1788 KiB
03.txt AC 7 ms 1788 KiB
04.txt AC 7 ms 1788 KiB
05.txt AC 7 ms 1788 KiB
06.txt AC 7 ms 1788 KiB
s1.txt AC 7 ms 1788 KiB
s2.txt AC 7 ms 1788 KiB
s3.txt AC 7 ms 1788 KiB