7 lines
221 B
Ruby
7 lines
221 B
Ruby
#!/usr/bin/env ruby
|
|
require "cephalopod_math"
|
|
|
|
cephalopod_math = CephalopodMath.for STDIN.read.chomp
|
|
puts "Part 1: #{cephalopod_math.wide_problem_answers.sum}"
|
|
puts "Part 2: #{cephalopod_math.narrow_problem_answers.sum}"
|