結果

問題 No.1367 文字列門松
ユーザー 👑 KazunKazun
提出日時 2021-01-29 21:44:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 71,544 KB
最終ジャッジ日時 2023-09-09 15:06:25
合計ジャッジ時間 3,330 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,376 KB
testcase_01 AC 71 ms
71,016 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 71 ms
71,376 KB
testcase_05 AC 71 ms
71,360 KB
testcase_06 AC 70 ms
71,388 KB
testcase_07 AC 71 ms
71,384 KB
testcase_08 AC 70 ms
71,144 KB
testcase_09 AC 70 ms
71,360 KB
testcase_10 AC 69 ms
71,156 KB
testcase_11 AC 71 ms
71,148 KB
testcase_12 AC 71 ms
71,284 KB
testcase_13 AC 70 ms
71,016 KB
testcase_14 AC 69 ms
71,188 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 70 ms
71,272 KB
testcase_25 AC 71 ms
71,216 KB
testcase_26 AC 71 ms
71,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(S):
    X="kadomatsu"
    if X==S:
        return True

    if len(S)>=9:
        return False

    for i in range(len(X)):
        if S==X[:i]+X[i+1:]:
            return True
    return True

S=input()
print("Yes" if f(S) else "No")
0