fork(1) download
  1. arr = [1,1,1,3,3,3,5,5,5,7,7,7,9,9,9,11,11,11,13,13,13,15,15,15]
  2. p arr.combination(3).select{|c| c.reduce(:+) == 30}
Success #stdin #stdout 0.05s 9784KB
stdin
Standard input is empty
stdout
[]