結果

問題 No.1367 文字列門松
ユーザー rlangevinrlangevin
提出日時 2023-01-09 01:33:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 754 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 76,764 KB
最終ジャッジ日時 2023-08-22 09:03:29
合計ジャッジ時間 4,578 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,232 KB
testcase_01 AC 71 ms
71,236 KB
testcase_02 AC 78 ms
76,760 KB
testcase_03 AC 76 ms
76,672 KB
testcase_04 AC 78 ms
76,524 KB
testcase_05 AC 77 ms
76,760 KB
testcase_06 AC 71 ms
71,392 KB
testcase_07 AC 78 ms
76,016 KB
testcase_08 AC 76 ms
76,100 KB
testcase_09 AC 75 ms
76,032 KB
testcase_10 AC 74 ms
76,100 KB
testcase_11 AC 79 ms
76,556 KB
testcase_12 AC 76 ms
76,048 KB
testcase_13 AC 72 ms
71,364 KB
testcase_14 AC 69 ms
71,148 KB
testcase_15 AC 77 ms
76,676 KB
testcase_16 AC 78 ms
76,616 KB
testcase_17 AC 80 ms
76,732 KB
testcase_18 AC 80 ms
76,524 KB
testcase_19 AC 77 ms
76,680 KB
testcase_20 AC 80 ms
76,468 KB
testcase_21 AC 78 ms
76,652 KB
testcase_22 AC 78 ms
76,752 KB
testcase_23 AC 80 ms
76,740 KB
testcase_24 AC 79 ms
76,596 KB
testcase_25 AC 78 ms
76,088 KB
testcase_26 AC 79 ms
76,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
K = list("kadomatsu")
N = len(K)
for i in range(1 << N):
    L = []
    for j in range(N):
        if (i >> j) & 1:
            L.append(K[j])
    if S == L:
        print("Yes")
        exit()
print("No")
0