diff --git a/day_07/1.rb b/day_07/1.rb index 079d668..fd1e180 100755 --- a/day_07/1.rb +++ b/day_07/1.rb @@ -5,7 +5,7 @@ require_relative "graph" class Main def run - input = $stdin.readlines.map(&:chomp) + input = $stdin.readlines(chomp: true) graph = Graph.new(input) total = dfs(graph.start, graph, 0, Set.new)