This commit is contained in:
onyx-and-iris 2025-12-08 03:44:28 +00:00
parent 3dbbab6fbe
commit 65499624e7

View File

@ -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)