結果
| 問題 |
No.588 空白と回文
|
| コンテスト | |
| ユーザー |
omi_UT
|
| 提出日時 | 2017-11-03 22:40:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 349 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,992 KB |
| 最終ジャッジ日時 | 2024-11-22 16:05:44 |
| 合計ジャッジ時間 | 25,473 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 TLE * 8 |
ソースコード
s = list(input())
l = len(s)
ret = 0
for ti in range(l):
for tj in range(ti,l):
i = ti; j = tj
tmp = 0
while (i <= j):
if s[i] == s[j]:
if i == j:
tmp += 1
else:
tmp += 2
i += 1; j -= 1
ret = max(ret,tmp)
print(ret)
omi_UT