結果

問題 No.2373 wa, wo, n
ユーザー Basin-BugBasin-Bug
提出日時 2023-07-12 11:52:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 820 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 72,508 KB
最終ジャッジ日時 2023-10-12 02:02:48
合計ジャッジ時間 7,198 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,396 KB
testcase_01 AC 74 ms
71,484 KB
testcase_02 AC 75 ms
71,004 KB
testcase_03 AC 78 ms
71,212 KB
testcase_04 AC 76 ms
71,212 KB
testcase_05 AC 75 ms
71,472 KB
testcase_06 AC 75 ms
71,168 KB
testcase_07 AC 76 ms
71,268 KB
testcase_08 AC 77 ms
71,372 KB
testcase_09 AC 78 ms
71,544 KB
testcase_10 AC 78 ms
71,556 KB
testcase_11 AC 77 ms
71,280 KB
testcase_12 AC 76 ms
71,392 KB
testcase_13 AC 76 ms
71,248 KB
testcase_14 AC 88 ms
72,160 KB
testcase_15 AC 77 ms
71,380 KB
testcase_16 AC 89 ms
72,508 KB
testcase_17 AC 78 ms
70,952 KB
testcase_18 AC 76 ms
71,368 KB
testcase_19 AC 79 ms
71,324 KB
testcase_20 AC 87 ms
72,108 KB
testcase_21 AC 80 ms
71,392 KB
testcase_22 AC 82 ms
71,252 KB
testcase_23 AC 89 ms
72,460 KB
testcase_24 AC 76 ms
71,324 KB
testcase_25 AC 74 ms
71,572 KB
testcase_26 AC 74 ms
71,248 KB
testcase_27 AC 73 ms
71,332 KB
testcase_28 AC 74 ms
71,536 KB
testcase_29 AC 76 ms
71,168 KB
testcase_30 AC 76 ms
71,004 KB
testcase_31 AC 74 ms
71,480 KB
testcase_32 AC 87 ms
72,356 KB
testcase_33 AC 89 ms
72,416 KB
testcase_34 AC 83 ms
71,708 KB
testcase_35 AC 79 ms
72,228 KB
testcase_36 AC 84 ms
71,572 KB
testcase_37 AC 80 ms
71,840 KB
testcase_38 AC 81 ms
71,396 KB
testcase_39 AC 80 ms
71,832 KB
testcase_40 AC 87 ms
72,348 KB
testcase_41 AC 85 ms
72,492 KB
testcase_42 AC 83 ms
72,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = str(input())
S = S.replace("w?" ,"wa")
S = S.replace("?a", "wa")
S = S.replace("?o", "wo")
S = S.replace("?", "n")
S = S.replace("wa", "")
S = S.replace("wo", "")
S = S.replace("n", "")
if S == "":
  print("Yes")
else:
  print("No")
0