結果

問題 No.2373 wa, wo, n
ユーザー 👑 H20H20
提出日時 2023-07-07 21:39:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 181 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 98,988 KB
最終ジャッジ日時 2023-09-28 22:40:18
合計ジャッジ時間 8,318 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
79,904 KB
testcase_01 AC 148 ms
79,992 KB
testcase_02 AC 144 ms
79,820 KB
testcase_03 AC 145 ms
79,848 KB
testcase_04 AC 142 ms
79,956 KB
testcase_05 AC 141 ms
79,876 KB
testcase_06 AC 142 ms
79,764 KB
testcase_07 AC 141 ms
79,608 KB
testcase_08 AC 138 ms
79,848 KB
testcase_09 AC 139 ms
79,896 KB
testcase_10 AC 140 ms
79,788 KB
testcase_11 AC 140 ms
79,924 KB
testcase_12 AC 146 ms
79,768 KB
testcase_13 AC 145 ms
79,956 KB
testcase_14 AC 152 ms
81,092 KB
testcase_15 AC 146 ms
80,208 KB
testcase_16 AC 178 ms
97,656 KB
testcase_17 AC 147 ms
79,988 KB
testcase_18 AC 143 ms
79,908 KB
testcase_19 AC 141 ms
79,920 KB
testcase_20 AC 145 ms
80,756 KB
testcase_21 AC 139 ms
79,816 KB
testcase_22 AC 144 ms
79,852 KB
testcase_23 AC 149 ms
80,896 KB
testcase_24 AC 137 ms
79,844 KB
testcase_25 AC 138 ms
79,952 KB
testcase_26 AC 139 ms
79,820 KB
testcase_27 AC 138 ms
79,868 KB
testcase_28 AC 138 ms
79,844 KB
testcase_29 AC 141 ms
79,900 KB
testcase_30 AC 139 ms
79,904 KB
testcase_31 AC 137 ms
79,960 KB
testcase_32 AC 179 ms
97,492 KB
testcase_33 AC 145 ms
81,052 KB
testcase_34 AC 169 ms
92,332 KB
testcase_35 AC 145 ms
80,000 KB
testcase_36 AC 176 ms
97,356 KB
testcase_37 AC 146 ms
80,452 KB
testcase_38 AC 140 ms
80,424 KB
testcase_39 AC 174 ms
98,988 KB
testcase_40 AC 181 ms
98,320 KB
testcase_41 AC 179 ms
97,944 KB
testcase_42 AC 145 ms
80,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
N = int(input())
S = input()
S = S.replace('w?','wa').replace('?a','wa').replace('?o','wo').replace('?','n')
ans = re.match('^(wa|wo|n)*$', S)
if ans:
    print('Yes')
else:
    print('No')
0