2019-04-01から1ヶ月間の記事一覧
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