結果

問題 No.2373 wa, wo, n
ユーザー bug maker / ばぐめいかー@Python学習者bug maker / ばぐめいかー@Python学習者
提出日時 2023-07-08 01:39:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 10,472 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2023-09-29 03:12:40
合計ジャッジ時間 6,438 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,732 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 15 ms
7,788 KB
testcase_03 AC 16 ms
7,860 KB
testcase_04 AC 15 ms
7,768 KB
testcase_05 AC 16 ms
7,772 KB
testcase_06 AC 15 ms
7,768 KB
testcase_07 AC 16 ms
7,904 KB
testcase_08 AC 16 ms
7,732 KB
testcase_09 AC 15 ms
7,744 KB
testcase_10 AC 15 ms
7,816 KB
testcase_11 AC 16 ms
7,740 KB
testcase_12 AC 16 ms
7,892 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 18 ms
7,800 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 17 ms
8,244 KB
testcase_20 AC 18 ms
8,424 KB
testcase_21 AC 17 ms
8,304 KB
testcase_22 AC 17 ms
8,192 KB
testcase_23 AC 21 ms
8,412 KB
testcase_24 AC 15 ms
7,800 KB
testcase_25 AC 16 ms
7,900 KB
testcase_26 AC 16 ms
7,844 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 24 ms
8,392 KB
testcase_34 TLE -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

S = input()

T = ""

while len(T) < N:
    if (T + "?a") in S:
        T += "?a"
    elif (T + "w?") in S:
        T += "w?"
    elif (T + "?o") in S:
        T += "?o"
    elif (T + "?") in S:
        T += "?"
    elif (T + "n") in S:
        T += "n"
    else:
        break

if T == S:
    print("Yes")
else:
    print("No")
0