結果

問題 No.1367 文字列門松
ユーザー c-yanc-yan
提出日時 2021-01-29 21:36:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 150 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 7,904 KB
最終ジャッジ日時 2023-09-09 14:53:01
合計ジャッジ時間 1,564 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,712 KB
testcase_01 AC 16 ms
7,900 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 16 ms
7,712 KB
testcase_06 AC 14 ms
7,888 KB
testcase_07 AC 15 ms
7,816 KB
testcase_08 AC 14 ms
7,900 KB
testcase_09 AC 14 ms
7,704 KB
testcase_10 AC 14 ms
7,760 KB
testcase_11 AC 15 ms
7,892 KB
testcase_12 AC 15 ms
7,720 KB
testcase_13 AC 14 ms
7,896 KB
testcase_14 AC 14 ms
7,756 KB
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 15 ms
7,680 KB
testcase_25 AC 16 ms
7,776 KB
testcase_26 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

i = 0
for c in S:
    j = 'kadomatsu'.index(c, i)
    if j == -1:
        print('No')
        break
    i = j + 1
else:
    print('Yes')
0