結果

問題 No.1367 文字列門松
ユーザー kohei2019kohei2019
提出日時 2021-02-17 16:56:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 966 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 71,608 KB
最終ジャッジ日時 2023-10-12 04:01:05
合計ジャッジ時間 4,940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
71,284 KB
testcase_01 AC 76 ms
71,160 KB
testcase_02 AC 76 ms
71,356 KB
testcase_03 AC 75 ms
71,168 KB
testcase_04 AC 77 ms
71,376 KB
testcase_05 AC 77 ms
71,304 KB
testcase_06 AC 77 ms
71,292 KB
testcase_07 AC 78 ms
71,260 KB
testcase_08 AC 77 ms
71,160 KB
testcase_09 AC 78 ms
71,284 KB
testcase_10 AC 77 ms
71,288 KB
testcase_11 AC 78 ms
71,608 KB
testcase_12 AC 84 ms
71,420 KB
testcase_13 AC 80 ms
71,464 KB
testcase_14 AC 78 ms
71,332 KB
testcase_15 AC 76 ms
71,120 KB
testcase_16 AC 78 ms
71,252 KB
testcase_17 AC 77 ms
71,404 KB
testcase_18 AC 79 ms
71,420 KB
testcase_19 AC 78 ms
71,416 KB
testcase_20 AC 77 ms
71,272 KB
testcase_21 AC 79 ms
71,392 KB
testcase_22 AC 80 ms
71,284 KB
testcase_23 AC 77 ms
71,604 KB
testcase_24 AC 77 ms
71,132 KB
testcase_25 AC 76 ms
71,376 KB
testcase_26 AC 78 ms
71,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
N = len(S)
k = list('kadomatsu')
for i in range(N):
    if S[i] in k:
        ind = k.index(S[i])
        k = k[ind+1:]
    else:
        print('No')
        exit()
print('Yes')
0