結果
| 問題 |
No.1617 Palindrome Removal
|
| コンテスト | |
| ユーザー |
mrng
|
| 提出日時 | 2021-12-12 20:53:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 142 bytes |
| コンパイル時間 | 302 ms |
| コンパイル使用メモリ | 82,388 KB |
| 実行使用メモリ | 104,240 KB |
| 最終ジャッジ日時 | 2024-07-21 08:56:24 |
| 合計ジャッジ時間 | 4,208 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 2 |
ソースコード
s = input() if len(set(list(s)))==1: if len(s)%2==0: print(0) else: print(-1) else: if s==s[::-1]: print(len(s)-2) else: print(len(s))
mrng