aboutsummaryrefslogtreecommitdiff
path: root/day06/part2.rb
blob: afc343d6f34d27c1f0edec5837da24315bd88d24 (plain)
1
2
3
4
5
6
7
8
9
input = $stdin.read.strip.chars

somm = 0

until input[somm, 14].uniq.count == 14 do
  somm += 1
end

puts somm + 14