1
0
Fork 0
advent-of-code-2024/19/main.rb

23 lines
248 B
Ruby
Raw Normal View History

2024-12-19 08:40:26 -05:00
#!/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