Submission #63030958


Source Code Expand

s = list(input())

for i in range(len(s) - 1, 0, -1):
    if s[i] == 'A':
        if s[i - 1] == 'W':
            s[i - 1] = 'A'
            s[i] = 'C'

print(''.join(s))

Submission Info

Submission Time
Task C - Debug
User lamooon
Language Python (CPython 3.11.4)
Score 300
Code Size 180 Byte
Status AC
Exec Time 59 ms
Memory 11516 KiB

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 9 ms 8596 KiB
example_01.txt AC 9 ms 8528 KiB
example_02.txt AC 9 ms 8408 KiB
hand_00.txt AC 58 ms 11440 KiB
hand_01.txt AC 30 ms 11440 KiB
hand_02.txt AC 57 ms 11404 KiB
hand_03.txt AC 30 ms 11356 KiB
hand_04.txt AC 9 ms 8580 KiB
hand_05.txt AC 9 ms 8412 KiB
hand_06.txt AC 49 ms 11464 KiB
random_00.txt AC 53 ms 11356 KiB
random_01.txt AC 53 ms 11516 KiB
random_02.txt AC 59 ms 11444 KiB
random_03.txt AC 55 ms 11456 KiB
random_04.txt AC 57 ms 11412 KiB
random_05.txt AC 40 ms 11412 KiB
random_06.txt AC 46 ms 11492 KiB
random_07.txt AC 49 ms 11468 KiB
random_08.txt AC 47 ms 11488 KiB
random_09.txt AC 44 ms 11456 KiB
random_10.txt AC 52 ms 11436 KiB
random_11.txt AC 46 ms 11392 KiB
random_12.txt AC 55 ms 11412 KiB
random_13.txt AC 51 ms 11380 KiB
random_14.txt AC 41 ms 11444 KiB
random_15.txt AC 37 ms 11436 KiB
random_16.txt AC 33 ms 11392 KiB
random_17.txt AC 40 ms 11360 KiB
random_18.txt AC 52 ms 11436 KiB
random_19.txt AC 48 ms 11456 KiB