8 lines
148 B
Ruby
8 lines
148 B
Ruby
require_relative 'lib'
|
|
|
|
matrix = File.readlines("input.txt", chomp: true)
|
|
x = walk(matrix)
|
|
puts(x)
|
|
|
|
x = count_possible_obstructions(matrix)
|
|
puts(x)
|