結果

問題 No.1367 文字列門松
ユーザー shakayamishakayami
提出日時 2021-01-29 21:33:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 76,716 KB
最終ジャッジ日時 2023-09-09 14:48:25
合計ジャッジ時間 3,574 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,248 KB
testcase_01 AC 76 ms
75,580 KB
testcase_02 AC 82 ms
76,492 KB
testcase_03 AC 79 ms
76,352 KB
testcase_04 AC 78 ms
76,556 KB
testcase_05 AC 78 ms
76,560 KB
testcase_06 AC 78 ms
75,844 KB
testcase_07 AC 75 ms
75,876 KB
testcase_08 AC 76 ms
76,048 KB
testcase_09 AC 73 ms
75,636 KB
testcase_10 AC 71 ms
75,576 KB
testcase_11 AC 76 ms
75,644 KB
testcase_12 AC 76 ms
75,992 KB
testcase_13 AC 75 ms
76,552 KB
testcase_14 AC 76 ms
76,560 KB
testcase_15 AC 78 ms
76,556 KB
testcase_16 AC 78 ms
76,484 KB
testcase_17 AC 76 ms
76,716 KB
testcase_18 AC 77 ms
76,432 KB
testcase_19 AC 76 ms
76,652 KB
testcase_20 AC 78 ms
76,572 KB
testcase_21 AC 77 ms
76,512 KB
testcase_22 AC 76 ms
76,376 KB
testcase_23 AC 77 ms
76,436 KB
testcase_24 AC 76 ms
76,688 KB
testcase_25 AC 77 ms
76,376 KB
testcase_26 AC 77 ms
76,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
S=input()
T="kadomatsu"
M=len(T)
for seq in itertools.product(range(2),repeat=M):
    U=""
    for i in range(M):
        if seq[i]:
            U+=T[i]
    if S==U:
        print("Yes")
        exit()
print("No")
0