mirror of
https://github.com/onyx-and-iris/aoc2025.git
synced 2026-04-09 03:23:37 +00:00
rem map
This commit is contained in:
@@ -5,7 +5,7 @@ require_relative "graph"
|
|||||||
|
|
||||||
class Main
|
class Main
|
||||||
def run
|
def run
|
||||||
input = $stdin.readlines.map(&:chomp)
|
input = $stdin.readlines(chomp: true)
|
||||||
graph = Graph.new(input)
|
graph = Graph.new(input)
|
||||||
|
|
||||||
total = dfs(graph.start, graph, 0, Set.new)
|
total = dfs(graph.start, graph, 0, Set.new)
|
||||||
|
|||||||
Reference in New Issue
Block a user