結果

問題 No.609 Noelちゃんと星々
ユーザー letrangerjpletrangerjp
提出日時 2017-12-09 00:35:55
言語 Ruby
(3.3.0)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 65 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 34,076 KB
最終ジャッジ日時 2023-08-19 23:20:31
合計ジャッジ時間 5,038 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 163 ms
29,116 KB
testcase_01 AC 119 ms
22,384 KB
testcase_02 AC 109 ms
19,984 KB
testcase_03 AC 117 ms
21,704 KB
testcase_04 AC 95 ms
18,272 KB
testcase_05 AC 181 ms
32,916 KB
testcase_06 AC 160 ms
30,212 KB
testcase_07 AC 126 ms
24,396 KB
testcase_08 AC 89 ms
16,912 KB
testcase_09 AC 112 ms
20,772 KB
testcase_10 AC 141 ms
26,592 KB
testcase_11 AC 137 ms
25,732 KB
testcase_12 AC 151 ms
27,976 KB
testcase_13 AC 93 ms
17,328 KB
testcase_14 AC 84 ms
15,820 KB
testcase_15 AC 165 ms
30,616 KB
testcase_16 AC 184 ms
33,644 KB
testcase_17 AC 155 ms
29,184 KB
testcase_18 AC 106 ms
19,804 KB
testcase_19 AC 163 ms
30,400 KB
testcase_20 AC 189 ms
34,076 KB
testcase_21 AC 189 ms
33,980 KB
testcase_22 AC 187 ms
34,064 KB
testcase_23 AC 187 ms
33,892 KB
testcase_24 AC 188 ms
33,988 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*A="+gets(p).split*?,
p A.sort!.map{|a|(a-A[N/2]).abs}.sum
0