結果
| 問題 | No.1617 Palindrome Removal |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-22 22:57:47 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 139 bytes |
| 記録 | |
| コンパイル時間 | 868 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 16,980 KB |
| 最終ジャッジ日時 | 2026-04-01 09:46:30 |
| 合計ジャッジ時間 | 4,198 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 2 |
ソースコード
s = input() if s != s[::-1]: print(len(s)) elif len(s) == 1: print(-1) elif len(set(s)) == 1: print(0 - len(s) % 2) else: print(len(s) - 2)