結果

問題 No.273 回文分解
ユーザー Konton7
提出日時 2019-05-18 13:12:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-17 06:11:45
合計ジャッジ時間 2,324 ms
ジャッジサーバーID
(参考情報)
judge3 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 27 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

maxlen = 0
for i in range(len(s)-1):
    for j in range(i+1,len(s)):
        if s[i:j] == s[i:j][::-1]:
            maxlen = max(maxlen,len(s[i:j]))

print(maxlen)
0