Solved part 1

master
s00ner 2021-11-10 09:50:43 -05:00
parent 47f4fe1364
commit d62dda2921
1 changed files with 5 additions and 0 deletions

5
day01/solution.rb Normal file
View File

@ -0,0 +1,5 @@
#!/bin/env ruby
# Sum all numbers in the text file.
# Part 1
sum = File.readlines('./input').map { |line| line.to_i)}.sum