Solved part 1
parent
47f4fe1364
commit
d62dda2921
|
@ -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
|
Loading…
Reference in New Issue