結果
| 問題 | No.1617 Palindrome Removal |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-07-22 22:53:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 94 bytes |
| 記録 | |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 85,444 KB |
| 実行使用メモリ | 83,812 KB |
| 最終ジャッジ日時 | 2026-04-01 09:41:19 |
| 合計ジャッジ時間 | 2,730 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 17 WA * 3 |
ソースコード
s = input() print(len(s) if s != s[::-1] else len(s)-2 if any(si != s[0] for si in s) else -1)
convexineq