AtCoder Beginner Contest 017 - B - choku語
pythonで文字列を置換していくような場合はstr.replace()が便利
def solve(X: str): ans = X.replace("ch", "").replace("o", "").replace("k", "").replace("u", "") print(YES) if not ans else print(NO) return
pythonで文字列を置換していくような場合はstr.replace()が便利
def solve(X: str): ans = X.replace("ch", "").replace("o", "").replace("k", "").replace("u", "") print(YES) if not ans else print(NO) return