結果
| 問題 | No.588 空白と回文 | 
| コンテスト | |
| ユーザー |  takakin | 
| 提出日時 | 2020-06-16 23:07:13 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 206 bytes | 
| コンパイル時間 | 392 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-03 12:01:26 | 
| 合計ジャッジ時間 | 3,204 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 WA * 9 | 
ソースコード
import sys,heapq
input = sys.stdin.buffer.readline
S=input()
n=len(S)
ans=1
for i in range(1,n-1):
  cur=1
  for j in range(i):
    if i+i-j<n and S[j]==S[i+i-j]:
      cur+=2
  ans=max(ans,cur)
print(ans)
            
            
            
        