結果
問題 | No.2373 wa, wo, n |
ユーザー |
![]() |
提出日時 | 2023-07-07 21:39:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 75,592 KB |
最終ジャッジ日時 | 2024-07-21 17:25:17 |
合計ジャッジ時間 | 2,963 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 38 WA * 1 |
ソースコード
N=int(input()) S=input().strip() w=0 q=0 for s in S: if s=="?": if w==0: q=1 w=0 continue if s=="w": if w==0: w=1 q=0 continue if s in ["a","o"]: if w or q: w=0 q=0 continue if s=="n": if w==0:continue print("No") exit() print("Yes")