結果
| 問題 | No.1367 文字列門松 |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-01-29 21:29:07 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 325 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-03-14 19:32:29 |
| 合計ジャッジ時間 | 1,922 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 12 |
ソースコード
def f(S):
if X==S:
return True
for i in range(len(X)):
Y=X[:i]+X[i+1:]
if S==X[:i]+X[i+1:]:
return True
return False
X="kadomatsu"
S=input()
print("Yes" if f(S) else "No")
Kazun