結果
| 問題 |
No.273 回文分解
|
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-15 04:35:07 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 160 bytes |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-25 13:36:18 |
| 合計ジャッジ時間 | 1,464 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
s=raw_input() r=0 for i in range(len(s)): for j in range(i+1,len(s)+1): if i==0 and j==len(s): continue if s[i:j]==s[i:j][::-1]: r=max(r,j-i) print r
taba