remove debug print
This commit is contained in:
parent
3658d97661
commit
95b04662d6
@ -4,6 +4,5 @@ a = input.map do |pwl|
|
|||||||
matches = pwl.match /(?<start>\d+)-(?<end>\d+) (?<char>\w): (?<pw>\w+)/
|
matches = pwl.match /(?<start>\d+)-(?<end>\d+) (?<char>\w): (?<pw>\w+)/
|
||||||
matches[:pw].chars.values_at(matches[:start].to_i-1, matches[:end].to_i-1).count(matches[:char])
|
matches[:pw].chars.values_at(matches[:start].to_i-1, matches[:end].to_i-1).count(matches[:char])
|
||||||
end
|
end
|
||||||
puts a.inspect
|
|
||||||
puts a.count(1)
|
puts a.count(1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user