結果
| 問題 | No.1617 Palindrome Removal |
| コンテスト | |
| ユーザー |
mrng
|
| 提出日時 | 2021-12-12 20:57:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 116 ms / 2,000 ms |
| コード長 | 180 bytes |
| 記録 | |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 85,580 KB |
| 実行使用メモリ | 113,468 KB |
| 最終ジャッジ日時 | 2026-04-03 04:08:21 |
| 合計ジャッジ時間 | 8,213 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
s = input() if len(set(list(s)))==1: if len(s)%2==0: print(0) else: print(-1) else: if s==s[::-1]: if len(s)==3: print(-1) else: print(len(s)-2) else: print(len(s))
mrng