結果
| 問題 | No.273 回文分解 |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-18 13:18:52 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 1,064 ms |
| コンパイル使用メモリ | 21,280 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2026-08-29 08:24:56 |
| 合計ジャッジ時間 | 6,754 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 5 WA * 27 |
ソースコード
s = input()
maxlen = 0
for i in range(len(s)-1):
for j in range(i+1,len(s)+1):
if s[i:j] == s[i:j][::-1] and len(s[i:j]) != len(s):
maxlen = max(maxlen,len(s[i:j+1]))
print(maxlen)
Konton7