結果

問題 No.609 Noelちゃんと星々
ユーザー masaktmasakt
提出日時 2017-12-09 17:19:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 182 ms / 2,000 ms
コード長 59 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,324 KB
実行使用メモリ 23,788 KB
最終ジャッジ日時 2023-08-20 05:16:14
合計ジャッジ時間 5,075 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 159 ms
21,488 KB
testcase_01 AC 126 ms
18,040 KB
testcase_02 AC 117 ms
17,172 KB
testcase_03 AC 126 ms
17,940 KB
testcase_04 AC 103 ms
16,348 KB
testcase_05 AC 179 ms
23,004 KB
testcase_06 AC 155 ms
21,964 KB
testcase_07 AC 132 ms
19,256 KB
testcase_08 AC 95 ms
15,712 KB
testcase_09 AC 118 ms
17,556 KB
testcase_10 AC 140 ms
19,928 KB
testcase_11 AC 136 ms
19,956 KB
testcase_12 AC 146 ms
20,760 KB
testcase_13 AC 100 ms
15,908 KB
testcase_14 AC 90 ms
15,560 KB
testcase_15 AC 157 ms
22,028 KB
testcase_16 AC 182 ms
23,364 KB
testcase_17 AC 154 ms
21,492 KB
testcase_18 AC 117 ms
17,124 KB
testcase_19 AC 158 ms
21,792 KB
testcase_20 AC 173 ms
23,640 KB
testcase_21 AC 173 ms
23,632 KB
testcase_22 AC 170 ms
23,736 KB
testcase_23 AC 172 ms
23,788 KB
testcase_24 AC 169 ms
23,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,*a=`dd`.split.map &:to_i;p a.sort!.sum{|x|(a[n/2]-x).abs}
0