結果

問題 No.1617 Palindrome Removal
ユーザー yuruhiyayuruhiya
提出日時 2021-08-19 16:04:12
言語 Crystal
(1.10.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 108 bytes
コンパイル時間 22,001 ms
コンパイル使用メモリ 264,492 KB
実行使用メモリ 11,428 KB
最終ジャッジ日時 2023-08-02 18:51:23
合計ジャッジ時間 25,040 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
10,188 KB
testcase_01 AC 19 ms
11,040 KB
testcase_02 AC 20 ms
11,112 KB
testcase_03 AC 20 ms
11,088 KB
testcase_04 AC 21 ms
11,204 KB
testcase_05 AC 18 ms
10,272 KB
testcase_06 AC 30 ms
11,264 KB
testcase_07 AC 20 ms
9,252 KB
testcase_08 AC 2 ms
4,404 KB
testcase_09 AC 2 ms
4,420 KB
testcase_10 AC 25 ms
11,044 KB
testcase_11 AC 26 ms
10,484 KB
testcase_12 AC 29 ms
11,428 KB
testcase_13 AC 31 ms
11,272 KB
testcase_14 AC 3 ms
4,424 KB
testcase_15 AC 3 ms
4,424 KB
testcase_16 AC 2 ms
4,516 KB
testcase_17 AC 3 ms
4,356 KB
testcase_18 AC 2 ms
4,492 KB
testcase_19 AC 2 ms
4,488 KB
testcase_20 AC 2 ms
4,360 KB
testcase_21 AC 2 ms
4,424 KB
testcase_22 AC 3 ms
4,580 KB
testcase_23 AC 2 ms
4,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = read_line
n = s.size
puts s.chars.uniq.size == 1 ? 0 - n % 2 : s == s.reverse ? n == 3 ? -1 : n - 2 : n
0