結果
| 問題 |
No.1617 Palindrome Removal
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-22 21:30:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 145 bytes |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 13,492 KB |
| 最終ジャッジ日時 | 2024-07-17 16:34:57 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 20 |
ソースコード
s = input().rstrip()
if s==s[::-1]:
print(len(s))
elif len(set(s))>1:
print(len(s)-2)
elif len(s)%2==0:
print(0)
else:
print(-1)