結果
| 問題 |
No.273 回文分解
|
| コンテスト | |
| ユーザー |
mathshab
|
| 提出日時 | 2017-06-27 09:42:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-04 11:23:45 |
| 合計ジャッジ時間 | 2,006 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 RE * 1 |
| other | AC * 3 WA * 11 RE * 18 |
ソースコード
#273 mirror sentence
S=input()
for i in range(len(S)-3):
if S[i]==S[i+2]:
j=0
c=2
a=2
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)
mathshab