結果
| 問題 | No.1367 文字列門松 |
| コンテスト | |
| ユーザー |
mesame3993
|
| 提出日時 | 2021-12-04 02:03:21 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 425 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-03-27 18:37:29 |
| 合計ジャッジ時間 | 2,921 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()
mesame3993