1
0
Fork 0
advent-of-code-2024/19/main.rb
2024-12-19 08:40:26 -05:00

22 lines
248 B
Ruby
Executable file

#!/usr/bin/env ruby
input = (ARGV.first.nil? ? DATA : ARGF)
.readlines(chomp: true)
towels = input.first.split(", ")
designs = input[2..]
p towels
p designs
__END__
r, wr, b, g, bwu, rb, gb, br
brwrr
bggr
gbbr
rrbgbr
ubwu
bwurrg
brgr
bbrgwb