結果
問題 | No.1367 文字列門松 |
ユーザー |
👑 ![]() |
提出日時 | 2021-01-29 21:42:18 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-06-27 07:53:58 |
合計ジャッジ時間 | 2,053 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 13 |
ソースコード
def f(S):X="kadomatsu"if X==S:return Trueif len(X)>=9:return Falsefor i in range(len(X)):if S==X[:i]+X[i+1:]:return Truereturn FalseS=input()print("Yes" if f(S) else "No")