過去ログ
「数学」小旅行
ruby するなら、
p (0..6).to_a.repeated_permutation(5).to_a.delete_if{|x|x.sum>6}.size
ですね。
8月29日(土) 7:04:26
49488
過去問題一覧へ戻る