結果

問題 No.1617 Palindrome Removal
ユーザー minimum
提出日時 2021-07-22 21:29:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 82,220 KB
実行使用メモリ 130,988 KB
最終ジャッジ日時 2024-07-17 16:29:05
合計ジャッジ時間 3,536 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

x = list(input())
y = list(reversed(x))

if x != y:
    print(len(x))
else:
    if x.count(x[0]) == len(x):
        print(- (len(x) % 2))
    else:
        print(len(x) - 2)
0