結果
| 問題 | No.1617 Palindrome Removal |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-22 22:57:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 139 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 13,328 KB |
| 最終ジャッジ日時 | 2024-07-17 19:29:35 |
| 合計ジャッジ時間 | 2,357 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)