blob: 1f6a3ed2aee320302c330440bde60cc5a1a7b514 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- Part Two ---
An Elf just remembered one more important detail: the two adjacent matching digits [1m[97mare not part of a
larger group of matching digits[0m.
Given this additional criterion, but still ignoring the range rule, the following are now true:
- 112233 meets these criteria because the digits never decrease and all repeated digits are exactly
two digits long.
- 123[1m[97m444[0m no longer meets the criteria (the repeated 44 is part of a larger group of 444).
- 111122 meets the criteria (even though 1 is repeated more than twice, it still contains a double
22).
[1m[97mHow many different passwords[0m within the range given in your puzzle input meet all of the criteria?
|