結果

問題 No.2373 wa, wo, n
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-06-04 13:50:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-12-23 10:52:18
合計ジャッジ時間 3,175 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
s = s.replace("wa","")
s = s.replace("wo","")
s = s.replace("?a","")
s = s.replace("?o","")
s = s.replace("w?","")
s = s.replace("n","")
s = s.replace("?","")
if s == "":
	print("Yes")
else:
	print("No")
0