結果
| 問題 | No.273 回文分解 |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2021-01-18 00:17:08 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 404 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 20,708 KB |
| 最終ジャッジ日時 | 2026-05-23 23:01:50 |
| 合計ジャッジ時間 | 11,024 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 32 |
ソースコード
def is_palindrome(s):
return s == s[::-1]
S = input()
result = 0
for i in range(len(S)):
for j in range(i + 1, len(S) + 1):
if not is_palindrome(S[i:j]):
continue
result = max(result, j - i)
print(f(S))
c-yan