my-solutions/advent-of-code/2024/day_08/main.rb

8 lines
198 B
Ruby

require_relative "lib.rb"
input = File.readlines('input.txt', chomp: true)
res1 = count_antinodes(input, true)
puts("Part 1: #{res1}")
res2 = count_antinodes(input, false)
puts("Part 2: #{res2}")