結果

問題 No.615 集合に分けよう
ユーザー letrangerjpletrangerjp
提出日時 2017-12-15 19:29:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 74 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 11,432 KB
実行使用メモリ 25,152 KB
最終ジャッジ日時 2023-08-21 06:44:58
合計ジャッジ時間 4,599 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,132 KB
testcase_01 AC 78 ms
15,024 KB
testcase_02 AC 78 ms
15,048 KB
testcase_03 AC 77 ms
15,284 KB
testcase_04 AC 78 ms
15,032 KB
testcase_05 AC 77 ms
15,284 KB
testcase_06 AC 78 ms
15,116 KB
testcase_07 AC 78 ms
15,328 KB
testcase_08 AC 79 ms
15,052 KB
testcase_09 AC 78 ms
15,156 KB
testcase_10 AC 78 ms
15,160 KB
testcase_11 AC 78 ms
15,084 KB
testcase_12 AC 78 ms
15,188 KB
testcase_13 AC 80 ms
15,208 KB
testcase_14 AC 81 ms
15,340 KB
testcase_15 AC 88 ms
16,880 KB
testcase_16 AC 128 ms
24,976 KB
testcase_17 AC 137 ms
24,812 KB
testcase_18 AC 137 ms
24,808 KB
testcase_19 AC 135 ms
24,816 KB
testcase_20 AC 135 ms
24,804 KB
testcase_21 AC 133 ms
25,008 KB
testcase_22 AC 129 ms
24,984 KB
testcase_23 AC 124 ms
23,708 KB
testcase_24 AC 137 ms
24,704 KB
testcase_25 AC 78 ms
15,028 KB
testcase_26 AC 78 ms
15,080 KB
testcase_27 AC 120 ms
23,696 KB
testcase_28 AC 123 ms
23,500 KB
testcase_29 AC 126 ms
25,092 KB
testcase_30 AC 127 ms
25,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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