結果
問題 |
No.2373 wa, wo, n
|
ユーザー |
![]() |
提出日時 | 2023-07-08 01:39:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 294 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 18,204 KB |
最終ジャッジ日時 | 2024-07-21 21:52:07 |
合計ジャッジ時間 | 5,253 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 WA * 11 TLE * 1 -- * 8 |
ソースコード
N = int(input()) S = input() T = "" while len(T) < N: if (T + "?a") in S: T += "?a" elif (T + "w?") in S: T += "w?" elif (T + "?o") in S: T += "?o" elif (T + "?") in S: T += "?" elif (T + "n") in S: T += "n" else: break if T == S: print("Yes") else: print("No")