結果

問題 No.2373 wa, wo, n
ユーザー dangodango
提出日時 2023-07-08 08:42:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 113,592 KB
最終ジャッジ日時 2023-09-29 09:58:13
合計ジャッジ時間 8,655 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
79,648 KB
testcase_01 AC 143 ms
79,736 KB
testcase_02 AC 139 ms
79,676 KB
testcase_03 AC 138 ms
79,416 KB
testcase_04 AC 139 ms
79,616 KB
testcase_05 AC 140 ms
79,652 KB
testcase_06 AC 141 ms
79,640 KB
testcase_07 AC 140 ms
79,696 KB
testcase_08 AC 139 ms
79,656 KB
testcase_09 AC 139 ms
79,696 KB
testcase_10 AC 139 ms
79,616 KB
testcase_11 AC 140 ms
79,868 KB
testcase_12 AC 139 ms
79,656 KB
testcase_13 AC 140 ms
79,780 KB
testcase_14 AC 168 ms
90,096 KB
testcase_15 AC 153 ms
79,988 KB
testcase_16 AC 169 ms
89,972 KB
testcase_17 AC 153 ms
80,016 KB
testcase_18 AC 144 ms
80,172 KB
testcase_19 AC 139 ms
79,664 KB
testcase_20 AC 139 ms
79,996 KB
testcase_21 AC 140 ms
79,704 KB
testcase_22 AC 147 ms
79,456 KB
testcase_23 AC 140 ms
80,060 KB
testcase_24 AC 139 ms
79,648 KB
testcase_25 AC 139 ms
79,736 KB
testcase_26 AC 141 ms
79,772 KB
testcase_27 AC 139 ms
79,724 KB
testcase_28 AC 140 ms
79,624 KB
testcase_29 AC 146 ms
79,692 KB
testcase_30 AC 138 ms
79,620 KB
testcase_31 AC 144 ms
79,696 KB
testcase_32 AC 173 ms
90,088 KB
testcase_33 AC 141 ms
80,180 KB
testcase_34 AC 222 ms
113,592 KB
testcase_35 AC 142 ms
80,040 KB
testcase_36 AC 170 ms
98,360 KB
testcase_37 AC 143 ms
80,164 KB
testcase_38 AC 142 ms
80,136 KB
testcase_39 AC 176 ms
98,896 KB
testcase_40 AC 169 ms
93,796 KB
testcase_41 AC 169 ms
93,932 KB
testcase_42 AC 143 ms
80,140 KB
権限があれば一括ダウンロードができます

ソースコード

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