Submission #60316357


Source Code Expand

n, d = [int(i) for i in input().split()]
s = [ch for ch in input()]

s.reverse()
for i in range(n):
	if s[i] == '@' and d:
		d -= 1
		s[i] = '.'

s.reverse()
for ch in s:
	print(ch, end = "")
print()

Submission Info

Submission Time
Task B - Daily Cookie 2
User c1ampy
Language Python (CPython 3.11.4)
Score 200
Code Size 213 Byte
Status AC
Exec Time 9 ms
Memory 8672 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 9 ms 8548 KiB
00_sample_01.txt AC 9 ms 8504 KiB
00_sample_02.txt AC 9 ms 8496 KiB
01_random_00.txt AC 9 ms 8672 KiB
01_random_01.txt AC 9 ms 8520 KiB
01_random_02.txt AC 9 ms 8544 KiB
01_random_03.txt AC 9 ms 8496 KiB
01_random_04.txt AC 9 ms 8516 KiB
01_random_05.txt AC 9 ms 8504 KiB
01_random_06.txt AC 9 ms 8472 KiB
01_random_07.txt AC 9 ms 8588 KiB
01_random_08.txt AC 9 ms 8376 KiB
01_random_09.txt AC 9 ms 8504 KiB
02_handmade_00.txt AC 9 ms 8492 KiB
02_handmade_01.txt AC 9 ms 8504 KiB
02_handmade_02.txt AC 9 ms 8480 KiB
02_handmade_03.txt AC 9 ms 8472 KiB
02_handmade_04.txt AC 9 ms 8528 KiB