結果
問題 | No.2373 wa, wo, n |
ユーザー |
👑 |
提出日時 | 2023-07-07 21:59:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 79 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-07-21 17:57:49 |
合計ジャッジ時間 | 2,901 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 39 |
ソースコード
I,R,P=input,range,printdef J():return map(int,I().split())N=I()t=""for s in I():if s=="a" or s=="o":if t!="w" and t!="?":P("No"),exit(0)elif s=="w" or s=="n":if t=="w":P("No"),exit(0)elif s=="?":if t=="w":s="a"else:P("No"),exit(0)t=sP(["No","Yes"][t!="w"])