結果
問題 |
No.1367 文字列門松
|
ユーザー |
![]() |
提出日時 | 2021-12-04 02:03:21 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 81,972 KB |
実行使用メモリ | 54,088 KB |
最終ジャッジ日時 | 2024-07-06 07:10:47 |
合計ジャッジ時間 | 1,852 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 12 |
ソースコード
def main(): from sys import stdin readline = stdin.readline s = readline()[:-1] t = 'kadomatsu' st = set({t}) for i in range(len(t)): tmp = t[:i] + t[i+1:] st.add(tmp) print('Yes' if s in st else 'No') main()