結果
| 問題 | No.588 空白と回文 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-05-19 15:20:07 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 210 bytes | 
| コンパイル時間 | 161 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-10-01 22:49:00 | 
| 合計ジャッジ時間 | 2,799 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 WA * 9 | 
ソースコード
S = input()
N = len(S)
ans = 0
for i in range(N):
    ret = 1
    d = 1
    while i - d >= 0 and i + d < N:
        if S[i - d] == S[i + d]:
            ret += 2
        d += 1
    ans = max(ans,ret)
print(ans)
            
            
            
        