結果

問題 No.1367 文字列門松
ユーザー brthyyjpbrthyyjp
提出日時 2021-02-01 18:35:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 87,416 KB
実行使用メモリ 76,880 KB
最終ジャッジ日時 2023-09-12 10:16:34
合計ジャッジ時間 3,723 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,608 KB
testcase_01 AC 74 ms
71,520 KB
testcase_02 AC 83 ms
76,792 KB
testcase_03 AC 85 ms
76,848 KB
testcase_04 AC 84 ms
76,492 KB
testcase_05 AC 84 ms
76,776 KB
testcase_06 AC 77 ms
71,192 KB
testcase_07 AC 82 ms
76,104 KB
testcase_08 AC 84 ms
76,228 KB
testcase_09 AC 81 ms
76,096 KB
testcase_10 AC 80 ms
76,072 KB
testcase_11 AC 84 ms
76,756 KB
testcase_12 AC 79 ms
75,968 KB
testcase_13 AC 75 ms
71,336 KB
testcase_14 AC 76 ms
71,376 KB
testcase_15 AC 83 ms
76,712 KB
testcase_16 AC 81 ms
76,592 KB
testcase_17 AC 81 ms
76,860 KB
testcase_18 AC 82 ms
76,812 KB
testcase_19 AC 83 ms
76,816 KB
testcase_20 AC 84 ms
76,880 KB
testcase_21 AC 84 ms
76,856 KB
testcase_22 AC 81 ms
76,756 KB
testcase_23 AC 81 ms
76,616 KB
testcase_24 AC 83 ms
76,476 KB
testcase_25 AC 81 ms
75,996 KB
testcase_26 AC 81 ms
76,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
t = 'kadomatsu'
n = len(t)
for i in range(2**n):
    temp = []
    for j in range(n):
        if (i>>j)&1:
            temp.append(t[j])
    temp = ''.join(temp)
    if temp == s:
        print('Yes')
        exit()
else:
    print('No')
0