結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
21,948 KB
testcase_01 AC 122 ms
18,444 KB
testcase_02 AC 110 ms
17,332 KB
testcase_03 AC 120 ms
18,124 KB
testcase_04 AC 104 ms
16,460 KB
testcase_05 AC 168 ms
24,004 KB
testcase_06 AC 153 ms
22,208 KB
testcase_07 AC 126 ms
19,608 KB
testcase_08 AC 95 ms
15,692 KB
testcase_09 AC 113 ms
17,748 KB
testcase_10 AC 139 ms
20,588 KB
testcase_11 AC 136 ms
20,264 KB
testcase_12 AC 148 ms
21,404 KB
testcase_13 AC 101 ms
15,920 KB
testcase_14 AC 91 ms
15,464 KB
testcase_15 AC 155 ms
22,672 KB
testcase_16 AC 174 ms
24,208 KB
testcase_17 AC 150 ms
21,928 KB
testcase_18 AC 110 ms
17,468 KB
testcase_19 AC 155 ms
22,256 KB
testcase_20 AC 175 ms
24,320 KB
testcase_21 AC 175 ms
24,588 KB
testcase_22 AC 177 ms
24,404 KB
testcase_23 AC 177 ms
24,588 KB
testcase_24 AC 177 ms
24,440 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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