Submission #60330246


Source Code Expand

n,d=map(int,input().split())
s=input()
count=0
ans=[]
for i in range(n-1,-1,-1):
  if s[i]=='@':
    if count==d:
      ans.append(s[i])
      continue
    ans.append('.')
    count+=1
  else:
    ans.append('.')
ans=reversed(ans)
print("".join(ans))

Submission Info

Submission Time
Task B - Daily Cookie 2
User thirdon
Language Python (CPython 3.11.4)
Score 200
Code Size 264 Byte
Status AC
Exec Time 11 ms
Memory 8560 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 18
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 11 ms 8476 KiB
00_sample_01.txt AC 11 ms 8508 KiB
00_sample_02.txt AC 10 ms 8472 KiB
01_random_00.txt AC 11 ms 8528 KiB
01_random_01.txt AC 11 ms 8496 KiB
01_random_02.txt AC 11 ms 8500 KiB
01_random_03.txt AC 11 ms 8444 KiB
01_random_04.txt AC 11 ms 8524 KiB
01_random_05.txt AC 11 ms 8532 KiB
01_random_06.txt AC 11 ms 8464 KiB
01_random_07.txt AC 11 ms 8448 KiB
01_random_08.txt AC 11 ms 8444 KiB
01_random_09.txt AC 11 ms 8504 KiB
02_handmade_00.txt AC 11 ms 8552 KiB
02_handmade_01.txt AC 10 ms 8560 KiB
02_handmade_02.txt AC 11 ms 8464 KiB
02_handmade_03.txt AC 11 ms 8520 KiB
02_handmade_04.txt AC 11 ms 8540 KiB