Sha256: 2cbd459a3daded3e41af6a75357f4386535c982f992be1a0ba0f15c7672d616c

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

#
# https://adventofcode.com/2018/day/1 Part 1
#
# Does not use any cem functions \o/
#

result = 0
File.read("inputs/day1_input.txt").each_line { |line|
  result += line.to_i 
}

puts result

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cem-0.1.7 examples/aoc2018/day1.rb
cem-0.1.6 examples/aoc2018/day1.rb
cem-0.1.5 examples/aoc2018/day1.rb
cem-0.1.4 examples/aoc2018/day1.rb