結果
| 問題 | No.273 回文分解 |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-18 13:15:00 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 442 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-06 03:40:27 |
| 合計ジャッジ時間 | 4,741 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 20 WA * 12 |
ソースコード
s = input()
maxlen = 0
for i in range(len(s)-1):
for j in range(i+1,len(s)):
if s[i:j+1] == s[i:j+1][::-1]:
maxlen = max(maxlen,len(s[i:j+1]))
print(maxlen)
Konton7