結果

問題 No.2373 wa, wo, n
ユーザー Theta
提出日時 2023-10-13 17:24:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 243 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,264 KB
最終ジャッジ日時 2024-09-15 13:18:49
合計ジャッジ時間 4,782 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 TLE * 1 -- * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

from re import compile


def main():

    N = int(input())
    S = input()
    prog = compile(r"(wa|wo|n|\?|\?\?|w\?|\?a|\?o)*$")
    if prog.match(S):
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()
0