結果

問題 No.1463 Hungry Kanten
ユーザー yuruhiyayuruhiya
提出日時 2021-04-02 22:41:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 608 ms / 2,000 ms
コード長 99 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 11,536 KB
実行使用メモリ 48,832 KB
最終ジャッジ日時 2023-08-25 15:03:42
合計ジャッジ時間 4,789 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,040 KB
testcase_01 AC 82 ms
15,252 KB
testcase_02 AC 101 ms
16,376 KB
testcase_03 AC 581 ms
40,424 KB
testcase_04 AC 83 ms
15,156 KB
testcase_05 AC 608 ms
48,832 KB
testcase_06 AC 82 ms
15,128 KB
testcase_07 AC 82 ms
15,132 KB
testcase_08 AC 83 ms
15,268 KB
testcase_09 AC 84 ms
15,224 KB
testcase_10 AC 82 ms
15,128 KB
testcase_11 AC 84 ms
15,128 KB
testcase_12 AC 84 ms
15,300 KB
testcase_13 AC 84 ms
15,076 KB
testcase_14 AC 90 ms
15,488 KB
testcase_15 AC 86 ms
15,132 KB
testcase_16 AC 98 ms
16,244 KB
testcase_17 AC 121 ms
18,948 KB
testcase_18 AC 100 ms
16,008 KB
testcase_19 AC 265 ms
29,660 KB
testcase_20 AC 401 ms
36,632 KB
testcase_21 AC 85 ms
15,176 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,K,*A="+`dd`.split*?,
K.upto(N){|k|A.combination(k){$*<<_1.sum<<_1.reduce(:*)}}
p$*.uniq.size
0