結果
| 問題 |
No.273 回文分解
|
| コンテスト | |
| ユーザー |
tjake
|
| 提出日時 | 2015-12-18 20:25:32 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 116 bytes |
| コンパイル時間 | 416 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-06-25 13:33:26 |
| 合計ジャッジ時間 | 1,817 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
s=raw_input() l=len(s) r=range print max(max(j+1for j in r(l-max(i,1))if s[i:i+j+1]==s[i+j:i-1-l:-1])for i in r(l))
tjake