結果

問題 No.615 集合に分けよう
ユーザー %20%20
提出日時 2017-12-15 10:03:57
言語 Ruby
(3.3.0)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 73 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 11,356 KB
実行使用メモリ 25,124 KB
最終ジャッジ日時 2023-08-21 06:40:34
合計ジャッジ時間 4,866 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,084 KB
testcase_01 AC 82 ms
15,096 KB
testcase_02 AC 81 ms
15,088 KB
testcase_03 AC 82 ms
15,204 KB
testcase_04 AC 82 ms
15,240 KB
testcase_05 AC 81 ms
15,296 KB
testcase_06 AC 81 ms
15,328 KB
testcase_07 AC 81 ms
15,260 KB
testcase_08 AC 81 ms
15,332 KB
testcase_09 AC 79 ms
15,140 KB
testcase_10 AC 80 ms
15,180 KB
testcase_11 AC 81 ms
15,156 KB
testcase_12 AC 82 ms
15,240 KB
testcase_13 AC 81 ms
15,168 KB
testcase_14 AC 84 ms
15,652 KB
testcase_15 AC 95 ms
16,964 KB
testcase_16 AC 142 ms
24,796 KB
testcase_17 AC 150 ms
24,952 KB
testcase_18 AC 151 ms
24,856 KB
testcase_19 AC 150 ms
24,972 KB
testcase_20 AC 151 ms
24,796 KB
testcase_21 AC 146 ms
24,808 KB
testcase_22 AC 144 ms
24,928 KB
testcase_23 AC 130 ms
23,548 KB
testcase_24 AC 146 ms
24,436 KB
testcase_25 AC 79 ms
15,136 KB
testcase_26 AC 80 ms
15,280 KB
testcase_27 AC 126 ms
23,528 KB
testcase_28 AC 126 ms
23,612 KB
testcase_29 AC 141 ms
25,124 KB
testcase_30 AC 140 ms
25,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,K,*A="+`dd`.split*?,
p A.sort!.map{|a|-A[0]+A[0]=a}.min(N-K+1).sum
0