結果

問題 No.1617 Palindrome Removal
ユーザー convexineq
提出日時 2021-07-22 22:56:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 113 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,424 KB
実行使用メモリ 78,436 KB
最終ジャッジ日時 2024-07-17 19:25:27
合計ジャッジ時間 2,242 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
print(len(s) if s != s[::-1] else len(s)-2 if any(si != s[0] for si in s) else -1 if len(s)%2 else 0)
0