Submission #63008237


Source Code Expand

Copy
S=list(input())
for i in reversed(range(len(S)-1)):
if S[i]=='W' and S[i+1]=='A':
S[i]='A'
S[i+1]='C'
print(''.join(S))
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
S=list(input())
for i in reversed(range(len(S)-1)):
    if S[i]=='W' and S[i+1]=='A':
        S[i]='A'
        S[i+1]='C'

print(''.join(S))

Submission Info

Submission Time
Task C - Debug
User matttttttoy
Language Python (PyPy 3.10-v7.3.12)
Score 300
Code Size 146 Byte
Status AC
Exec Time 69 ms
Memory 87464 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 30
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt
Case Name Status Exec Time Memory
example_00.txt AC 54 ms 76436 KB
example_01.txt AC 55 ms 76704 KB
example_02.txt AC 54 ms 76772 KB
hand_00.txt AC 66 ms 87276 KB
hand_01.txt AC 65 ms 86896 KB
hand_02.txt AC 66 ms 87160 KB
hand_03.txt AC 65 ms 87144 KB
hand_04.txt AC 55 ms 76516 KB
hand_05.txt AC 54 ms 76584 KB
hand_06.txt AC 67 ms 86892 KB
random_00.txt AC 67 ms 86976 KB
random_01.txt AC 68 ms 87056 KB
random_02.txt AC 68 ms 87464 KB
random_03.txt AC 69 ms 86928 KB
random_04.txt AC 68 ms 87116 KB
random_05.txt AC 67 ms 87256 KB
random_06.txt AC 66 ms 87264 KB
random_07.txt AC 67 ms 86984 KB
random_08.txt AC 67 ms 87140 KB
random_09.txt AC 66 ms 87404 KB
random_10.txt AC 67 ms 87380 KB
random_11.txt AC 66 ms 87212 KB
random_12.txt AC 67 ms 86860 KB
random_13.txt AC 68 ms 87040 KB
random_14.txt AC 69 ms 87120 KB
random_15.txt AC 66 ms 86964 KB
random_16.txt AC 66 ms 87120 KB
random_17.txt AC 68 ms 86836 KB
random_18.txt AC 67 ms 86792 KB
random_19.txt AC 67 ms 87060 KB


2025-03-23 (Sun)
18:14:44 +00:00