結果

問題 No.1367 文字列門松
ユーザー paruf4paruf4
提出日時 2021-01-29 22:53:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 1,102 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 76,568 KB
最終ジャッジ日時 2023-09-09 16:33:23
合計ジャッジ時間 3,716 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
76,452 KB
testcase_01 AC 77 ms
76,340 KB
testcase_02 AC 77 ms
76,324 KB
testcase_03 AC 78 ms
76,280 KB
testcase_04 AC 78 ms
76,296 KB
testcase_05 AC 78 ms
76,452 KB
testcase_06 AC 78 ms
76,284 KB
testcase_07 AC 78 ms
75,904 KB
testcase_08 AC 80 ms
76,136 KB
testcase_09 AC 78 ms
76,028 KB
testcase_10 AC 80 ms
75,944 KB
testcase_11 AC 77 ms
76,516 KB
testcase_12 AC 78 ms
75,936 KB
testcase_13 AC 77 ms
76,568 KB
testcase_14 AC 78 ms
76,280 KB
testcase_15 AC 77 ms
76,440 KB
testcase_16 AC 78 ms
76,504 KB
testcase_17 AC 78 ms
76,308 KB
testcase_18 AC 78 ms
76,324 KB
testcase_19 AC 77 ms
76,320 KB
testcase_20 AC 80 ms
76,512 KB
testcase_21 AC 78 ms
76,476 KB
testcase_22 AC 76 ms
76,392 KB
testcase_23 AC 77 ms
76,416 KB
testcase_24 AC 76 ms
76,464 KB
testcase_25 AC 79 ms
76,012 KB
testcase_26 AC 77 ms
76,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
n = len(s)
t = "kadomatsu"
f = False
for i in range(1, 1 << 9):
    tmp = ""
    for j in range(9):
        if i & (1 << j):
            tmp += t[j]
    if s == tmp:
        f = True
if f:
    print("Yes")
else:
    print("No")
0