結果
問題 |
No.1617 Palindrome Removal
|
ユーザー |
![]() |
提出日時 | 2021-07-22 22:53:34 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 94 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 82,020 KB |
実行使用メモリ | 78,544 KB |
最終ジャッジ日時 | 2024-07-17 19:21:08 |
合計ジャッジ時間 | 2,502 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)