aboutsummaryrefslogtreecommitdiff
path: root/day01/part1
blob: 6d823382e43bdc241b0abce52fb372a4ca689b2c (plain)
1
2
3
4
5
#!/usr/bin/env ruby

input = $stdin.readlines.map(&:strip).map(&:to_i)

puts input.map{ |x| (x / 3) - 2 }.sum