結果
問題 | No.1367 文字列門松 |
ユーザー | brthyyjp |
提出日時 | 2021-02-01 18:35:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 255 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 81,840 KB |
実行使用メモリ | 61,888 KB |
最終ジャッジ日時 | 2024-06-29 22:55:49 |
合計ジャッジ時間 | 1,945 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
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')