結果

問題 No.273 回文分解
ユーザー Konton7Konton7
提出日時 2019-05-18 13:12:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 11,836 KB
実行使用メモリ 9,976 KB
最終ジャッジ日時 2023-10-17 07:37:22
合計ジャッジ時間 2,877 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,956 KB
testcase_01 AC 27 ms
9,956 KB
testcase_02 AC 26 ms
9,956 KB
testcase_03 WA -
testcase_04 AC 29 ms
9,956 KB
testcase_05 AC 28 ms
9,956 KB
testcase_06 AC 29 ms
9,956 KB
testcase_07 AC 26 ms
9,956 KB
testcase_08 AC 27 ms
9,956 KB
testcase_09 AC 26 ms
9,956 KB
testcase_10 AC 27 ms
9,956 KB
testcase_11 AC 26 ms
9,956 KB
testcase_12 AC 26 ms
9,956 KB
testcase_13 AC 26 ms
9,956 KB
testcase_14 AC 28 ms
9,956 KB
testcase_15 AC 29 ms
9,956 KB
testcase_16 AC 27 ms
9,956 KB
testcase_17 WA -
testcase_18 AC 26 ms
9,956 KB
testcase_19 AC 27 ms
9,956 KB
testcase_20 WA -
testcase_21 AC 26 ms
9,956 KB
testcase_22 AC 28 ms
9,956 KB
testcase_23 AC 27 ms
9,956 KB
testcase_24 WA -
testcase_25 AC 27 ms
9,956 KB
testcase_26 AC 27 ms
9,956 KB
testcase_27 AC 27 ms
9,956 KB
testcase_28 AC 28 ms
9,956 KB
testcase_29 AC 28 ms
9,956 KB
testcase_30 AC 28 ms
9,956 KB
testcase_31 AC 26 ms
9,956 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 27 ms
9,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

maxlen = 0
for i in range(len(s)-1):
    for j in range(i+1,len(s)):
        if s[i:j] == s[i:j][::-1]:
            maxlen = max(maxlen,len(s[i:j]))

print(maxlen)
0