結果

問題 No.1617 Palindrome Removal
ユーザー convexineqconvexineq
提出日時 2021-07-22 22:53:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 94 bytes
コンパイル時間 1,420 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 79,776 KB
最終ジャッジ日時 2023-09-24 18:34:26
合計ジャッジ時間 4,748 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
79,440 KB
testcase_01 WA -
testcase_02 AC 94 ms
79,260 KB
testcase_03 AC 93 ms
79,424 KB
testcase_04 AC 81 ms
75,092 KB
testcase_05 AC 79 ms
74,300 KB
testcase_06 AC 81 ms
74,792 KB
testcase_07 AC 77 ms
73,416 KB
testcase_08 AC 69 ms
71,256 KB
testcase_09 AC 69 ms
71,260 KB
testcase_10 AC 80 ms
75,000 KB
testcase_11 AC 79 ms
74,364 KB
testcase_12 AC 80 ms
75,192 KB
testcase_13 AC 82 ms
75,028 KB
testcase_14 AC 67 ms
71,484 KB
testcase_15 AC 69 ms
71,200 KB
testcase_16 WA -
testcase_17 AC 69 ms
71,360 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 69 ms
71,400 KB
testcase_21 AC 69 ms
71,224 KB
testcase_22 AC 66 ms
71,188 KB
testcase_23 AC 68 ms
71,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
print(len(s) if s != s[::-1] else len(s)-2 if any(si != s[0] for si in s) else -1)
0