Update code to use advent lib.

This commit is contained in:
2020-12-05 16:06:51 -08:00
parent e9d0701b4c
commit 479b1d745e
7 changed files with 14 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
INPUT = File.read("day1.txt").lines.map(&.chomp.to_i32)
require "advent"
INPUT = input(2020, 1).lines.map(&.chomp.to_i32)
def part1
input = INPUT.clone.sort!