結果
| 問題 | 
                            No.588 空白と回文
                             | 
                    
| コンテスト | |
| ユーザー | 
                             convexineq
                         | 
                    
| 提出日時 | 2021-03-08 02:12:48 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 162 bytes | 
| コンパイル時間 | 380 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 75,520 KB | 
| 最終ジャッジ日時 | 2024-10-09 12:27:37 | 
| 合計ジャッジ時間 | 2,737 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 17 WA * 8 | 
ソースコード
def solve(s,t):
    return sum(si==ti for si,ti in zip(s,s[::-1]))
s = input()
ans = 0
for i in range(len(s)):
    ans = max(ans,solve(s[i:],s[::-1]))
print(ans)
            
            
            
        
            
convexineq