結果

問題 No.615 集合に分けよう
ユーザー yuruhiyayuruhiya
提出日時 2021-08-01 15:05:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 69 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,452 KB
実行使用メモリ 25,132 KB
最終ジャッジ日時 2023-10-14 18:46:11
合計ジャッジ時間 4,656 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,088 KB
testcase_01 AC 74 ms
15,160 KB
testcase_02 AC 74 ms
15,320 KB
testcase_03 AC 72 ms
15,016 KB
testcase_04 AC 73 ms
15,328 KB
testcase_05 AC 72 ms
15,316 KB
testcase_06 AC 71 ms
15,120 KB
testcase_07 AC 75 ms
15,044 KB
testcase_08 AC 75 ms
15,016 KB
testcase_09 AC 72 ms
15,336 KB
testcase_10 AC 75 ms
15,240 KB
testcase_11 AC 74 ms
15,096 KB
testcase_12 AC 76 ms
15,124 KB
testcase_13 AC 74 ms
15,320 KB
testcase_14 AC 77 ms
15,408 KB
testcase_15 AC 87 ms
16,772 KB
testcase_16 AC 129 ms
24,824 KB
testcase_17 AC 141 ms
24,884 KB
testcase_18 AC 139 ms
24,876 KB
testcase_19 AC 140 ms
24,948 KB
testcase_20 AC 142 ms
24,876 KB
testcase_21 AC 138 ms
24,976 KB
testcase_22 AC 131 ms
25,020 KB
testcase_23 AC 126 ms
23,760 KB
testcase_24 AC 138 ms
24,684 KB
testcase_25 AC 78 ms
15,160 KB
testcase_26 AC 79 ms
15,104 KB
testcase_27 AC 120 ms
23,500 KB
testcase_28 AC 116 ms
23,456 KB
testcase_29 AC 131 ms
25,132 KB
testcase_30 AC 127 ms
25,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,K,*A="+`dd`.split*?,
a,*b=A.sort
p b.map{-a+a=_1}.min(N-K).sum
0