結果
| 問題 | No.1617 Palindrome Removal | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-07-22 22:56:38 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 126 bytes | 
| コンパイル時間 | 757 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 12,540 KB | 
| 最終ジャッジ日時 | 2024-07-17 19:26:02 | 
| 合計ジャッジ時間 | 2,021 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 16 WA * 4 | 
ソースコード
s = input() if s != s[::-1]: print(len(s)) elif len(s) == 1: print(-1) elif len(set(s)) == 1: print(0) else: print(len(s) - 2)
