Code for the Advent of Code event
aoc advent-of-code
at rust 10 lines 234 B view raw
1import reencode, get_code_length from require 'helper' 2 3input = io.open 'input.txt', 'r' 4 5total = 0 6 7for line in input\lines '*l' 8 total += get_code_length(reencode line) - get_code_length line 9 10print "The total delta is #{total}"