Submission #60307342
Source Code Expand
Copy
N ,D =map(int,input().split())S = input()S = list(S[::-1])for i,x in enumerate(S):if x=="@" and D>0:S[i] = "."D-=1print("".join(S[::-1]))
N ,D =map(int,input().split()) S = input() S = list(S[::-1]) for i,x in enumerate(S): if x=="@" and D>0: S[i] = "." D-=1 print("".join(S[::-1]))
Submission Info
Submission Time | |
---|---|
Task | B - Daily Cookie 2 |
User | QWERTOP18 |
Language | Python (PyPy 3.10-v7.3.12) |
Score | 200 |
Code Size | 171 Byte |
Status | AC |
Exec Time | 60 ms |
Memory | 76760 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 | 60 ms | 76464 KB |
00_sample_01.txt | AC | 58 ms | 76432 KB |
00_sample_02.txt | AC | 60 ms | 76760 KB |
01_random_00.txt | AC | 59 ms | 76568 KB |
01_random_01.txt | AC | 58 ms | 76464 KB |
01_random_02.txt | AC | 58 ms | 76588 KB |
01_random_03.txt | AC | 58 ms | 76632 KB |
01_random_04.txt | AC | 58 ms | 76632 KB |
01_random_05.txt | AC | 57 ms | 76456 KB |
01_random_06.txt | AC | 59 ms | 76560 KB |
01_random_07.txt | AC | 59 ms | 76296 KB |
01_random_08.txt | AC | 60 ms | 76440 KB |
01_random_09.txt | AC | 59 ms | 76252 KB |
02_handmade_00.txt | AC | 59 ms | 76316 KB |
02_handmade_01.txt | AC | 59 ms | 76600 KB |
02_handmade_02.txt | AC | 57 ms | 76588 KB |
02_handmade_03.txt | AC | 58 ms | 76172 KB |
02_handmade_04.txt | AC | 58 ms | 76252 KB |