結果
| 問題 | No.273 回文分解 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-07 15:03:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 2,000 ms |
| + 791µs | |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 15,744 KB |
| 最終ジャッジ日時 | 2026-08-17 14:07:35 |
| 合計ジャッジ時間 | 5,657 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
s = input()
x = 0
for i in range(len(s)):
for j in range(i+1, len(s)+1):
l1 = s[i:j]
l2 = l1[::-1]
if l1 == l2 and len(l1) != len(s):
x = max(x, len(l1))
print(x)