結果

問題 No.2373 wa, wo, n
ユーザー dangodango
提出日時 2023-07-08 08:42:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 106,752 KB
最終ジャッジ日時 2024-07-22 04:31:41
合計ジャッジ時間 4,916 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
n = input()
line = input()
if n == 0:
    pass
if re.match(r'^(n|w[ao?]|\?[ao]?)*$', line):
    print('Yes')
else:
    print('No')
0