diff options
Diffstat (limited to 'day06/part1.rb')
-rw-r--r-- | day06/part1.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/day06/part1.rb b/day06/part1.rb new file mode 100644 index 0000000..ec62e34 --- /dev/null +++ b/day06/part1.rb @@ -0,0 +1,9 @@ +input = $stdin.read.strip.chars + +sopm = 0 + +until input[sopm, 4].uniq.count == 4 do + sopm += 1 +end + +puts sopm + 4 |