結果
| 問題 | No.588 空白と回文 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-19 15:20:07 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-08 08:18:59 |
| 合計ジャッジ時間 | 2,885 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)