結果
| 問題 |
No.273 回文分解
|
| コンテスト | |
| ユーザー |
mathshab
|
| 提出日時 | 2017-06-27 09:37:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-04 11:22:43 |
| 合計ジャッジ時間 | 2,259 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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
a=2
while i-j>=0 and i+j<len(S)-2 and S[i-j]==S[i+2+j]:
a+=2
j+=1
print(a)
mathshab