結果
| 問題 |
No.273 回文分解
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-07-01 01:07:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-04 23:15:41 |
| 合計ジャッジ時間 | 1,998 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 RE * 1 |
| other | AC * 1 WA * 13 RE * 18 |
ソースコード
S=input()
for i in range(len(S)-3):
if S[i]==S[i+2]:
j=0
c=3
a=3
while i-j>=0 and i+j<len(S)-2 and S[i-j]==S[i+2+j]:
c+=2
j+=1
if c>a:
a=c
print(a)
rocoder