Submission #63026299
Source Code Expand
import copy
import numpy as np
import math
import random
S = input()
ans = ""
wcount = 0
for s in S:
if s == "W":
wcount += 1
elif s == "A":
ans += "A" + "C" * wcount
wcount = 0
else:
ans += "W" * wcount
ans += s
wcount = 0
ans += "W" * wcount
print(ans)
Submission Info
| Submission Time | |
|---|---|
| Task | C - Debug |
| User | zenmaaa |
| Language | Python (CPython 3.11.4) |
| Score | 300 |
| Code Size | 338 Byte |
| Status | AC |
| Exec Time | 841 ms |
| Memory | 33160 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 300 / 300 | ||||
| Status |
|
|
| 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 | 80 ms | 31924 KiB |
| example_01.txt | AC | 79 ms | 32024 KiB |
| example_02.txt | AC | 79 ms | 31860 KiB |
| hand_00.txt | AC | 101 ms | 32832 KiB |
| hand_01.txt | AC | 101 ms | 33056 KiB |
| hand_02.txt | AC | 99 ms | 32900 KiB |
| hand_03.txt | AC | 100 ms | 33148 KiB |
| hand_04.txt | AC | 79 ms | 31876 KiB |
| hand_05.txt | AC | 79 ms | 31868 KiB |
| hand_06.txt | AC | 841 ms | 32824 KiB |
| random_00.txt | AC | 202 ms | 33160 KiB |
| random_01.txt | AC | 195 ms | 32740 KiB |
| random_02.txt | AC | 100 ms | 32628 KiB |
| random_03.txt | AC | 99 ms | 33100 KiB |
| random_04.txt | AC | 101 ms | 33000 KiB |
| random_05.txt | AC | 100 ms | 32828 KiB |
| random_06.txt | AC | 103 ms | 32892 KiB |
| random_07.txt | AC | 102 ms | 32992 KiB |
| random_08.txt | AC | 99 ms | 32912 KiB |
| random_09.txt | AC | 105 ms | 33004 KiB |
| random_10.txt | AC | 104 ms | 32992 KiB |
| random_11.txt | AC | 101 ms | 32872 KiB |
| random_12.txt | AC | 101 ms | 32884 KiB |
| random_13.txt | AC | 101 ms | 32816 KiB |
| random_14.txt | AC | 103 ms | 32880 KiB |
| random_15.txt | AC | 100 ms | 32636 KiB |
| random_16.txt | AC | 104 ms | 32952 KiB |
| random_17.txt | AC | 101 ms | 32768 KiB |
| random_18.txt | AC | 98 ms | 32932 KiB |
| random_19.txt | AC | 100 ms | 32636 KiB |