結果
問題 |
No.588 空白と回文
|
ユーザー |
|
提出日時 | 2020-05-06 15:18:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-06-28 16:33:32 |
合計ジャッジ時間 | 2,789 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 9 |
ソースコード
s=input();n=len(s);ans=0 for i in range(n): cnt=1 j=1 while 0<=i-j and i+j<n: if s[i-j]==s[i+j]: cnt+=2 j+=1 ans=max(ans,cnt) print(ans)