From 5eb58ad076f2cd435b11b140820da224b60b73d5 Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 2 Jan 2023 21:58:56 +0000 Subject: initial commit --- 2020/.gitignore | 62 ++ 2020/01a.hs | 13 + 2020/01b.hs | 13 + 2020/02a.hs | 31 + 2020/02b.hs | 31 + 2020/03a.hs | 48 ++ 2020/03b.hs | 48 ++ 2020/04a.hs | 30 + 2020/04b.hs | 58 ++ 2020/05a.hs | 57 ++ 2020/05b.hs | 69 ++ 2020/06a.hs | 14 + 2020/06b.hs | 17 + 2020/07a.hs | 36 + 2020/07b.hs | 38 + 2020/08a.hs | 34 + 2020/08b.hs | 76 ++ 2020/09a.hs | 24 + 2020/09b.hs | 34 + 2020/10a.hs | 29 + 2020/10b.hs | 34 + 2020/11a.hs | 62 ++ 2020/11b.hs | 62 ++ 2020/12a.hs | 62 ++ 2020/12b.hs | 67 ++ 2020/13a.hs | 45 + 2020/13b.hs | 51 ++ 2020/14a.hs | 89 ++ 2020/14b.hs | 88 ++ 2020/15a.hs | 49 ++ 2020/15b.hs | 44 + 2020/16a.hs | 69 ++ 2020/16b.hs | 97 +++ 2020/17a.hs | 64 ++ 2020/17b.hs | 61 ++ 2020/18a.hs | 86 ++ 2020/18b.hs | 97 +++ 2020/19a.hs | 158 ++++ 2020/19b.hs | 95 ++ 2020/1a.hs | 28 + 2020/1b.hs | 28 + 2020/20a.hs | 92 ++ 2020/20b.hs | 306 +++++++ 2020/21a.hs | 60 ++ 2020/21b.hs | 74 ++ 2020/22a.hs | 54 ++ 2020/22b.hs | 71 ++ 2020/23a.hs | 54 ++ 2020/23b.hs | 82 ++ 2020/24a.hs | 67 ++ 2020/24b.hs | 100 +++ 2020/25a.hs | 43 + 2020/LICENSE | 7 + 2020/README.md | 3 + 2020/inputs/day1 | 200 +++++ 2020/inputs/day10 | 107 +++ 2020/inputs/day10_short | 31 + 2020/inputs/day11 | 97 +++ 2020/inputs/day11_short | 10 + 2020/inputs/day12 | 768 +++++++++++++++++ 2020/inputs/day12_short | 5 + 2020/inputs/day13 | 2 + 2020/inputs/day13_short | 2 + 2020/inputs/day14 | 546 ++++++++++++ 2020/inputs/day14_short | 4 + 2020/inputs/day15 | 6 + 2020/inputs/day16 | 265 ++++++ 2020/inputs/day16_short | 12 + 2020/inputs/day17 | 8 + 2020/inputs/day17_short | 3 + 2020/inputs/day18 | 377 ++++++++ 2020/inputs/day19 | 530 ++++++++++++ 2020/inputs/day19_short | 47 + 2020/inputs/day19b | 530 ++++++++++++ 2020/inputs/day2 | 1000 +++++++++++++++++++++ 2020/inputs/day20 | 1727 +++++++++++++++++++++++++++++++++++++ 2020/inputs/day20_short | 107 +++ 2020/inputs/day21 | 42 + 2020/inputs/day21_short | 4 + 2020/inputs/day22 | 53 ++ 2020/inputs/day22_short | 13 + 2020/inputs/day23 | 1 + 2020/inputs/day23_short | 1 + 2020/inputs/day24 | 403 +++++++++ 2020/inputs/day24_short | 20 + 2020/inputs/day25 | 2 + 2020/inputs/day25_short | 2 + 2020/inputs/day3 | 323 +++++++ 2020/inputs/day4 | 1000 +++++++++++++++++++++ 2020/inputs/day5 | 932 ++++++++++++++++++++ 2020/inputs/day6 | 2197 +++++++++++++++++++++++++++++++++++++++++++++++ 2020/inputs/day7 | 594 +++++++++++++ 2020/inputs/day8 | 634 ++++++++++++++ 2020/inputs/day8_patch | 634 ++++++++++++++ 2020/inputs/day9 | 1000 +++++++++++++++++++++ 95 files changed, 17450 insertions(+) create mode 100644 2020/.gitignore create mode 100644 2020/01a.hs create mode 100644 2020/01b.hs create mode 100644 2020/02a.hs create mode 100644 2020/02b.hs create mode 100644 2020/03a.hs create mode 100644 2020/03b.hs create mode 100644 2020/04a.hs create mode 100644 2020/04b.hs create mode 100644 2020/05a.hs create mode 100644 2020/05b.hs create mode 100644 2020/06a.hs create mode 100644 2020/06b.hs create mode 100644 2020/07a.hs create mode 100644 2020/07b.hs create mode 100644 2020/08a.hs create mode 100644 2020/08b.hs create mode 100644 2020/09a.hs create mode 100644 2020/09b.hs create mode 100644 2020/10a.hs create mode 100644 2020/10b.hs create mode 100644 2020/11a.hs create mode 100644 2020/11b.hs create mode 100644 2020/12a.hs create mode 100644 2020/12b.hs create mode 100644 2020/13a.hs create mode 100644 2020/13b.hs create mode 100644 2020/14a.hs create mode 100644 2020/14b.hs create mode 100644 2020/15a.hs create mode 100644 2020/15b.hs create mode 100644 2020/16a.hs create mode 100644 2020/16b.hs create mode 100644 2020/17a.hs create mode 100644 2020/17b.hs create mode 100644 2020/18a.hs create mode 100644 2020/18b.hs create mode 100644 2020/19a.hs create mode 100644 2020/19b.hs create mode 100644 2020/1a.hs create mode 100644 2020/1b.hs create mode 100644 2020/20a.hs create mode 100644 2020/20b.hs create mode 100644 2020/21a.hs create mode 100644 2020/21b.hs create mode 100644 2020/22a.hs create mode 100644 2020/22b.hs create mode 100644 2020/23a.hs create mode 100644 2020/23b.hs create mode 100644 2020/24a.hs create mode 100644 2020/24b.hs create mode 100644 2020/25a.hs create mode 100644 2020/LICENSE create mode 100644 2020/README.md create mode 100644 2020/inputs/day1 create mode 100644 2020/inputs/day10 create mode 100644 2020/inputs/day10_short create mode 100644 2020/inputs/day11 create mode 100644 2020/inputs/day11_short create mode 100644 2020/inputs/day12 create mode 100644 2020/inputs/day12_short create mode 100644 2020/inputs/day13 create mode 100644 2020/inputs/day13_short create mode 100644 2020/inputs/day14 create mode 100644 2020/inputs/day14_short create mode 100644 2020/inputs/day15 create mode 100644 2020/inputs/day16 create mode 100644 2020/inputs/day16_short create mode 100644 2020/inputs/day17 create mode 100644 2020/inputs/day17_short create mode 100644 2020/inputs/day18 create mode 100644 2020/inputs/day19 create mode 100644 2020/inputs/day19_short create mode 100644 2020/inputs/day19b create mode 100644 2020/inputs/day2 create mode 100644 2020/inputs/day20 create mode 100644 2020/inputs/day20_short create mode 100644 2020/inputs/day21 create mode 100644 2020/inputs/day21_short create mode 100644 2020/inputs/day22 create mode 100644 2020/inputs/day22_short create mode 100644 2020/inputs/day23 create mode 100644 2020/inputs/day23_short create mode 100644 2020/inputs/day24 create mode 100644 2020/inputs/day24_short create mode 100644 2020/inputs/day25 create mode 100644 2020/inputs/day25_short create mode 100644 2020/inputs/day3 create mode 100644 2020/inputs/day4 create mode 100644 2020/inputs/day5 create mode 100644 2020/inputs/day6 create mode 100644 2020/inputs/day7 create mode 100644 2020/inputs/day8 create mode 100644 2020/inputs/day8_patch create mode 100644 2020/inputs/day9 (limited to '2020') diff --git a/2020/.gitignore b/2020/.gitignore new file mode 100644 index 0000000..0bc021e --- /dev/null +++ b/2020/.gitignore @@ -0,0 +1,62 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/haskell,sublimetext +# Edit at https://www.toptal.com/developers/gitignore?templates=haskell,sublimetext + +### Haskell ### +dist +dist-* +cabal-dev +*.o +*.hi +*.hie +*.chi +*.chs.h +*.dyn_o +*.dyn_hi +.hpc +.hsenv +.cabal-sandbox/ +cabal.sandbox.config +*.prof +*.aux +*.hp +*.eventlog +.stack-work/ +cabal.project.local +cabal.project.local~ +.HTF/ +.ghc.environment.* + +### SublimeText ### +# Cache files for Sublime Text +*.tmlanguage.cache +*.tmPreferences.cache +*.stTheme.cache + +# Workspace files are user-specific +*.sublime-workspace + +# Project files should be checked into the repository, unless a significant +# proportion of contributors will probably not be using Sublime Text +# *.sublime-project + +# SFTP configuration file +sftp-config.json + +# Package control specific files +Package Control.last-run +Package Control.ca-list +Package Control.ca-bundle +Package Control.system-ca-bundle +Package Control.cache/ +Package Control.ca-certs/ +Package Control.merged-ca-bundle +Package Control.user-ca-bundle +oscrypto-ca-bundle.crt +bh_unicode_properties.cache + +# Sublime-github package stores a github token in this file +# https://packagecontrol.io/packages/sublime-github +GitHub.sublime-settings + +# End of https://www.toptal.com/developers/gitignore/api/haskell,sublimetext diff --git a/2020/01a.hs b/2020/01a.hs new file mode 100644 index 0000000..1c72ecc --- /dev/null +++ b/2020/01a.hs @@ -0,0 +1,13 @@ +module Day1A where + +import System.Environment (getArgs) + +main :: IO () +main = do + args <- getArgs; + c <- readFile $ head args; + let ns = map read $ lines c; + + print $ head [a * b | a <- ns, b <- ns, a + b == 2020]; + + return (); \ No newline at end of file diff --git a/2020/01b.hs b/2020/01b.hs new file mode 100644 index 0000000..17d6e02 --- /dev/null +++ b/2020/01b.hs @@ -0,0 +1,13 @@ +module Day1B where + +import System.Environment (getArgs) + +main :: IO () +main = do + args <- getArgs; + c <- readFile $ head args; + let ns = map read $ lines c; + + print $ head [a * b * c| a <- ns, b <- ns, c <- ns, a + b + c == 2020]; + + return (); \ No newline at end of file diff --git a/2020/02a.hs b/2020/02a.hs new file mode 100644 index 0000000..3671403 --- /dev/null +++ b/2020/02a.hs @@ -0,0 +1,31 @@ +module Day2 where + +import Data.List.Split (splitOn) +import Text.Read (readMaybe) +import System.Environment (getArgs) + +valid :: (Int, Int) -> Char -> String -> Bool +valid (lo, hi) c s = len >= lo && len <= hi + where len = length (filter (== c) s) + +parseHeader :: String -> (Int, Int, Char) +parseHeader s = (lo, hi, c) + where [range, (c:_)] = splitOn " " s + [lo, hi] = map read $ splitOn "-" range + +lineValid :: String -> Bool +lineValid s = valid (lo, hi) c pass + where [header, pass] = splitOn ": " s + (lo, hi, c) = parseHeader header + +-- Usage: runghc --ghc-arg="-package split" 2a.hs inputs/day2 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let nums = filter lineValid l + + putStrLn $ show $ length nums; + + return (); \ No newline at end of file diff --git a/2020/02b.hs b/2020/02b.hs new file mode 100644 index 0000000..5754fe0 --- /dev/null +++ b/2020/02b.hs @@ -0,0 +1,31 @@ +module Day2 where + +import Data.List.NonEmpty (xor, fromList) +import Data.List.Split (splitOn) +import Text.Read (readMaybe) +import System.Environment (getArgs) + +valid :: (Int, Int) -> Char -> String -> Bool +valid (lo, hi) c s = xor $ fromList [s!!lo == c, s!!hi == c] + +parseHeader :: String -> (Int, Int, Char) +parseHeader s = (lo, hi, c) + where [range, (c:_)] = splitOn " " s + [lo, hi] = map (\x -> x - 1) $ map read $ splitOn "-" range + +lineValid :: String -> Bool +lineValid s = valid (lo, hi) c pass + where [header, pass] = splitOn ": " s + (lo, hi, c) = parseHeader header + +-- Usage: runghc --ghc-arg="-package split" 2b.hs inputs/day2 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let nums = filter lineValid l + + putStrLn $ show $ length nums; + + return (); diff --git a/2020/03a.hs b/2020/03a.hs new file mode 100644 index 0000000..a2438b7 --- /dev/null +++ b/2020/03a.hs @@ -0,0 +1,48 @@ +module Day3 where + +import System.Environment (getArgs) + +data Square = Empty | Tree + deriving (Eq, Ord, Show) + +type Map = [[Square]] + +-- Converts lines to a map +toMap :: [String] -> Map +toMap = map toRow + where toRow = map toSquare + toSquare '.' = Empty + toSquare '#' = Tree + toSquare _ = error "Invalid map character" + +-- Get the size of a map +-- Note this returns (height, width) +getSize :: Map -> (Int, Int) +getSize m = (length m, length (head m)) + +-- Get the square at the given (y, x) coord +-- This wraps the x coord, but not the y +get :: Map -> Int -> Int -> Square +get m y x = m!!y!!(x `mod` w) + where (_, w) = getSize m + +-- Get the squares encountered along a slop, starting at (y, x) +-- and descending along (f, r) +getSquaresAlongSlope :: Map -> Int -> Int -> Int -> Int -> [Square] +getSquaresAlongSlope m y x f r | y >= h = [] + | otherwise = get m y x : getSquaresAlongSlope m (y + f) (x + r) f r + where (h, _) = getSize m + +-- Count the number of trees along a given slope, starting at (0, 0) +checkSlope :: Map -> Int -> Int -> Int +checkSlope m f r = length $ filter (== Tree) $ getSquaresAlongSlope m 0 0 f r + +-- Usage: ./3a inputs/day3 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let m = toMap l; + print $ checkSlope m 1 3 + return () \ No newline at end of file diff --git a/2020/03b.hs b/2020/03b.hs new file mode 100644 index 0000000..43e7ba2 --- /dev/null +++ b/2020/03b.hs @@ -0,0 +1,48 @@ +module Day3 where + +import System.Environment (getArgs) + +data Square = Empty | Tree + deriving (Eq, Ord, Show) + +type Map = [[Square]] + +-- Converts lines to a map +toMap :: [String] -> Map +toMap = map toRow + where toRow = map toSquare + toSquare '.' = Empty + toSquare '#' = Tree + toSquare _ = error "Invalid map character" + +-- Get the size of a map +-- Note this returns (height, width) +getSize :: Map -> (Int, Int) +getSize m = (length m, length (head m)) + +-- Get the square at the given (y, x) coord +-- This wraps the x coord, but not the y +get :: Map -> Int -> Int -> Square +get m y x = m!!y!!(x `mod` w) + where (_, w) = getSize m + +-- Get the squares encountered along a slop, starting at (y, x) +-- and descending along (f, r) +getSquaresAlongSlope :: Map -> Int -> Int -> Int -> Int -> [Square] +getSquaresAlongSlope m y x f r | y >= h = [] + | otherwise = get m y x : getSquaresAlongSlope m (y + f) (x + r) f r + where (h, _) = getSize m + +-- Count the number of trees along a given slope, starting at (0, 0) +checkSlope :: Map -> Int -> Int -> Int +checkSlope m f r = length $ filter (== Tree) $ getSquaresAlongSlope m 0 0 f r + +-- Usage: ./3b inputs/day3 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let m = toMap l; + print $ product $ map (uncurry $ checkSlope m) [(1, 1), (1, 3), (1, 5), (1, 7), (2, 1)] + return () \ No newline at end of file diff --git a/2020/04a.hs b/2020/04a.hs new file mode 100644 index 0000000..09dd5c3 --- /dev/null +++ b/2020/04a.hs @@ -0,0 +1,30 @@ +module Day4a where + +import System.Environment (getArgs) +import Data.List.Split (splitOn) + +-- Split a passport declaration into k:v declarations +getDeclarations :: String -> [String] +getDeclarations xs = concat [splitOn "\n" y | y <- splitOn " " xs] + +-- Split a passport declaration into tuples of (key, value) +getTuples :: String -> [(String, String)] +getTuples xs = [(head x, x!!1) | x <- map (splitOn ":") $ getDeclarations xs] + +-- Check a passport is valid +passportValid :: String -> Bool +passportValid xs = and [r `elem` map fst tups | r <- reqs] + where tups = getTuples xs + reqs = ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"] + +-- Usage: runghc --ghc-arg="-package split" 4a.hs inputs/day4 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + + let ps = splitOn "\n\n" content; + let valid = filter passportValid ps; + + print $ length valid; + return (); \ No newline at end of file diff --git a/2020/04b.hs b/2020/04b.hs new file mode 100644 index 0000000..0a15431 --- /dev/null +++ b/2020/04b.hs @@ -0,0 +1,58 @@ +module Day4a where + +import System.Environment (getArgs) +import Data.List.Split (splitOn) + +-- Split a passport declaration into k:v declarations +getDeclarations :: String -> [String] +getDeclarations xs = concat [splitOn "\n" y | y <- splitOn " " xs] + +-- Split a passport declaration into tuples of (key, value) +getTuples :: String -> [(String, String)] +getTuples xs = [(head x, x!!1) | x <- map (splitOn ":") $ getDeclarations xs] + +-- Check a passport is valid +passportValid :: String -> Bool +passportValid xs = and [r `elem` map fst tups | (r, _) <- reqs] && -- Contains all required fields + and [f v | (k, v) <- tups, (t, f) <- reqs, t == k] -- Passes validation rules + where tups = getTuples xs + reqs = [("byr", numberValid 4 1920 2002), + ("iyr", numberValid 4 2010 2020), + ("eyr", numberValid 4 2020 2030), + ("hgt", heightValid), + ("hcl", hexClValid), + ("ecl", enumValid ["amb", "blu", "brn", "gry", "grn", "hzl", "oth"]), + ("pid", numberValid 9 0 999999999)] + +-- Validation functions + +-- digits, low, high, value +numberValid :: Int -> Int -> Int -> String -> Bool +(numberValid d l h) x = length x == d && val >= l && val <= h + where val = read x + +heightValid :: String -> Bool +heightValid x | u == "cm" = v >= 150 && v <= 193 + | u == "in" = v >= 59 && v <= 76 + | otherwise = False + where u = drop (length x - 2) x + v = read $ take (length x - 2) x :: Int + +enumValid :: [String] -> String -> Bool +(enumValid e) x = x `elem` e + +hexClValid :: String -> Bool +hexClValid ('#':ds) = and [x `elem` "abcdef0123456789" | x <- ds] && length ds == 6 +hexClValid _ = False + +-- Usage: runghc --ghc-arg="-package split" 4b.hs inputs/day4 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + + let ps = splitOn "\n\n" content; + let valid = filter passportValid ps; + + print $ length valid; + return (); \ No newline at end of file diff --git a/2020/05a.hs b/2020/05a.hs new file mode 100644 index 0000000..e22239c --- /dev/null +++ b/2020/05a.hs @@ -0,0 +1,57 @@ +module Day5A where + +import System.Environment (getArgs) + +data Keymap k a = Leaf k a + | Node k (Keymap k a) (Keymap k a) + deriving (Eq, Show) + +type SeatingPlan = Keymap Int (Keymap Int Bool) + +data Step = Bigger | Smaller + +setFromSteps :: Ord k => [Step] -> a -> Keymap k a -> Keymap k a +setFromSteps [] v (Leaf k _) = Leaf k v +setFromSteps (Bigger:xs) v (Node k l r) = Node k l (setFromSteps xs v r) +setFromSteps (Smaller:xs) v (Node k l r) = Node k (setFromSteps xs v l) r + +performSteps :: Ord k => [Step] -> Keymap k a -> Keymap k a +performSteps _ k@(Leaf _ _) = k +performSteps [] k = k +performSteps (Bigger:xs) (Node _ _ r) = performSteps xs r +performSteps (Smaller:xs) (Node _ l _) = performSteps xs l + +fromList :: Ord k => [(k,a)] -> Keymap k a +fromList ((k, v):[]) = Leaf k v +fromList xs = Node k (fromList (take pivot xs)) (fromList (drop pivot xs)) + where pivot = length xs `div` 2 + (k, _) = xs!!pivot + +constructPlan :: Int -> Int -> SeatingPlan +constructPlan rows cols = fromList [(i, fromList $ zip [0..cols - 1] (replicate cols False)) | i <- [0..rows - 1]] + +toSteps :: String -> [Step] +toSteps "" = [] +toSteps ('B':xs) = Bigger : toSteps xs +toSteps ('R':xs) = Bigger : toSteps xs +toSteps ('F':xs) = Smaller : toSteps xs +toSteps ('L':xs) = Smaller : toSteps xs + +toSeatId :: Int -> Int -> Int +toSeatId r c = (r * 8) + c + +passToSeatId :: SeatingPlan -> String -> Int +passToSeatId k s = toSeatId r c + where steps = toSteps s + (Leaf r col) = performSteps (take 7 steps) k + (Leaf c _) = performSteps (drop 7 steps) col + + +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let p = constructPlan 128 8 + let ids = map (passToSeatId p) l; + print $ maximum ids; \ No newline at end of file diff --git a/2020/05b.hs b/2020/05b.hs new file mode 100644 index 0000000..efe26bb --- /dev/null +++ b/2020/05b.hs @@ -0,0 +1,69 @@ +module Day5B where + +import System.Environment (getArgs) + +data Keymap k a = Leaf k a + | Node k (Keymap k a) (Keymap k a) + deriving (Eq, Show) + +type SeatingPlan = Keymap Int (Keymap Int Bool) + +data Step = Bigger | Smaller + +setFromSteps :: Ord k => [Step] -> a -> Keymap k a -> Keymap k a +setFromSteps [] v (Leaf k _) = Leaf k v +setFromSteps (Bigger:xs) v (Node k l r) = Node k l (setFromSteps xs v r) +setFromSteps (Smaller:xs) v (Node k l r) = Node k (setFromSteps xs v l) r + +performSteps :: Ord k => [Step] -> Keymap k a -> Keymap k a +performSteps _ k@(Leaf _ _) = k +performSteps [] k = k +performSteps (Bigger:xs) (Node _ _ r) = performSteps xs r +performSteps (Smaller:xs) (Node _ l _) = performSteps xs l + +fromList :: Ord k => [(k,a)] -> Keymap k a +fromList ((k, v):[]) = Leaf k v +fromList xs = Node k (fromList (take pivot xs)) (fromList (drop pivot xs)) + where pivot = length xs `div` 2 + (k, _) = xs!!pivot + +toList :: Ord k => Keymap k a -> [(k, a)] +toList (Leaf k v) = [(k, v)] +toList (Node _ l r) = toList l ++ toList r + +constructPlan :: Int -> Int -> SeatingPlan +constructPlan rows cols = fromList [(i, fromList $ zip [0..cols - 1] (replicate cols False)) | i <- [0..rows - 1]] + +toSteps :: String -> [Step] +toSteps "" = [] +toSteps ('B':xs) = Bigger : toSteps xs +toSteps ('R':xs) = Bigger : toSteps xs +toSteps ('F':xs) = Smaller : toSteps xs +toSteps ('L':xs) = Smaller : toSteps xs + +toSeatId :: Int -> Int -> Int +toSeatId r c = (r * 8) + c + +setPassOccupied :: String -> SeatingPlan -> SeatingPlan +setPassOccupied s k = setFromSteps (take 7 steps) col' k + where steps = toSteps s + (Leaf _ col) = performSteps (take 7 steps) k + col' = setFromSteps (drop 7 steps) True col + +kmFilter :: Ord k => (a -> Bool) -> Keymap k a -> [(k, a)] +kmFilter f (Leaf k v) | f v = [(k, v)] + | otherwise = [] +kmFilter f (Node _ l r) = kmFilter f l ++ kmFilter f r + +filterUnoccupied :: SeatingPlan -> [(Int, Int)] +filterUnoccupied k = [(r,c) | (r, col) <- toList k, (c, occupied) <- toList col, not occupied] + +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let p = constructPlan 128 8; + let full = foldr setPassOccupied p l; + + print $ filterUnoccupied full; diff --git a/2020/06a.hs b/2020/06a.hs new file mode 100644 index 0000000..33647ed --- /dev/null +++ b/2020/06a.hs @@ -0,0 +1,14 @@ +module Day6A where + +import Data.List (delete, nub) +import Data.List.Split (splitOn) +import System.Environment (getArgs) + +-- Usage: runghc --ghc-arg="-package split" 6a.hs inputs/day6 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + + print $ sum $ map (length . delete '\n' . nub) $ splitOn "\n\n" content; + return (); \ No newline at end of file diff --git a/2020/06b.hs b/2020/06b.hs new file mode 100644 index 0000000..2cf3f03 --- /dev/null +++ b/2020/06b.hs @@ -0,0 +1,17 @@ +module Day6B where + +import Data.List (nub) +import Data.List.Split (splitOn) +import System.Environment (getArgs) + +sharedElems :: [String] -> [Char] +sharedElems xs = filter (\x -> all (x `elem`) xs) (nub $ concat xs) + +-- Usage: runghc --ghc-arg="-package split" 6b.hs inputs/day6 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + + print $ sum $ map (length . sharedElems . lines) $ splitOn "\n\n" content; + return (); \ No newline at end of file diff --git a/2020/07a.hs b/2020/07a.hs new file mode 100644 index 0000000..32c4aaf --- /dev/null +++ b/2020/07a.hs @@ -0,0 +1,36 @@ +module Day7A where + +import System.Environment (getArgs) +import Text.Regex.PCRE + +type Rule = (String, [(Int, String)]) + +parseRule :: String -> Rule +parseRule xs = (parent, children) + where parentMatch = xs =~ "^([a-z ]*) bag" :: [[String]] + parent = head parentMatch!!1 + childrenMatch = xs =~ "([0-9]+) ([a-z ]*) bag" :: [[String]] + childrenNs = map (read . (!! 1)) childrenMatch + childrenNames = map (!! 2) childrenMatch + children = zip childrenNs childrenNames + +-- Keep applying f to a until the output stops changing +untilUnchanged :: Eq a => (a -> a) -> a -> a +untilUnchanged f a | n /= a = untilUnchanged f n + | otherwise = n + where n = f a + +-- Add the bags that can contain these bags to the list +addParents :: [Rule] -> [String] -> [String] +addParents rs xs = map fst $ filter (\(n, cs) -> n `elem` xs || any (`elem` map snd cs) xs) rs + +-- Usage: runghc --ghc-arg="-package regex-pcre-builtin" 7a.hs inputs/day7 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let rules = map parseRule $ lines content; + let topLevels = untilUnchanged (addParents rules) ["shiny gold"] + print topLevels; + print $ length topLevels - 1; + return (); \ No newline at end of file diff --git a/2020/07b.hs b/2020/07b.hs new file mode 100644 index 0000000..d703295 --- /dev/null +++ b/2020/07b.hs @@ -0,0 +1,38 @@ +module Day7A where + +import System.Environment (getArgs) +import Text.Regex.PCRE + +type Rule = (String, [(Int, String)]) + +parseRule :: String -> Rule +parseRule xs = (parent, children) + where parentMatch = xs =~ "^([a-z ]*?) bag" :: [[String]] + parent = head parentMatch!!1 + childrenMatch = xs =~ "([0-9]+) ([a-z ]*) bag" :: [[String]] + childrenNs = map (read . (!! 1)) childrenMatch + childrenNames = map (!! 2) childrenMatch + children = zip childrenNs childrenNames + +-- Keep applying f to a until the output stops changing +untilUnchanged :: Eq a => (a -> a) -> a -> a +untilUnchanged f a | n /= a = untilUnchanged f n + | otherwise = n + where n = f a + +ruleFor :: String -> [Rule] -> Rule +-- ruleFor x rs | null r = (x, []) +-- | otherwise = head r +-- where r = filter ((== x) . fst) rs +ruleFor x = head . filter ((== x) . fst) + +nBags :: [Rule] -> String -> Int +nBags rs x = 1 + sum [n * nBags rs c | (n, c) <- snd $ ruleFor x rs] + +-- Usage: runghc --ghc-arg="-package regex-pcre-builtin" 7a.hs inputs/day7 +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let rules = map parseRule $ lines content; + print $ nBags rules "shiny gold" - 1; diff --git a/2020/08a.hs b/2020/08a.hs new file mode 100644 index 0000000..846c3df --- /dev/null +++ b/2020/08a.hs @@ -0,0 +1,34 @@ +module Day8A where + +import System.Environment (getArgs) + +data Instruction = Nop | Acc Int | Jmp Int + deriving (Eq, Show, Ord) + +readSigned :: String -> Int +readSigned ('+':xs) = read xs +readSigned xs = read xs + +parseInstruction :: String -> Instruction +parseInstruction xs | ins == "nop" = Nop + | ins == "acc" = Acc num + | ins == "jmp" = Jmp num + where ins = take 3 xs + num = readSigned $ drop 4 xs + +execUntilLoop :: [Instruction] -> [Int] -> Int -> Int -> Int +execUntilLoop is vs ip ax | ip `elem` vs = ax + | otherwise = case ins of Nop -> execUntilLoop is vs' (ip + 1) ax + Acc x -> execUntilLoop is vs' (ip + 1) (ax + x) + Jmp x -> execUntilLoop is vs' (ip + x) ax + where ins = is!!ip + vs' = ip : vs + +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let is = map parseInstruction l; + print $ execUntilLoop is [] 0 0; + return (); \ No newline at end of file diff --git a/2020/08b.hs b/2020/08b.hs new file mode 100644 index 0000000..5740e60 --- /dev/null +++ b/2020/08b.hs @@ -0,0 +1,76 @@ +module Day8A where + +import System.Environment (getArgs) +import Data.List (nub) + +data Instruction = Nop Int | Acc Int | Jmp Int | Dead + deriving (Eq, Show, Ord) + +readSigned :: String -> Int +readSigned ('+':xs) = read xs +readSigned xs = read xs + +parseInstruction :: String -> Instruction +parseInstruction xs | ins == "nop" = Nop num + | ins == "acc" = Acc num + | ins == "jmp" = Jmp num + where ins = take 3 xs + num = readSigned $ drop 4 xs + +-- (ip, ax). Runs until infinite loop or end of program. +getTrace :: [Instruction] -> [(Int, Int)] -> Int -> Int -> [(Int, Int)] +getTrace is ts ip ax | ip `elem` (map fst ts) || ip >= length (is) = ts + | otherwise = case ins of Nop _ -> getTrace is (ts ++ [(ip, ax)]) (ip + 1) ax + Acc x -> getTrace is (ts ++ [(ip, ax + x)]) (ip + 1) (ax + x) + Jmp x -> getTrace is (ts ++ [(ip, ax)]) (ip + x) ax + where ins = is!!ip + +-- Get by how much this instruction changes ip +delta :: Instruction -> Int +delta (Nop _) = 1 +delta (Acc _) = 1 +delta (Jmp x) = x +delta Dead = 9999999999 + +-- Flip this instruction, then get by how much ip changes. +deltaFlip :: Instruction -> Int +deltaFlip (Nop x) = x +deltaFlip (Acc _) = 1 +deltaFlip (Jmp x) = 1 +deltaFlip Dead = 999999999 + +-- A reference to an instruction, either unchanged or flipped (Nop <-> Jmp) +data InstructionRef = Idx Int | Flipped Int + deriving (Show, Eq, Ord) + +-- Get all the ways to reach t from instruction set is. If s is set, allow one 'flip' per chain. +potentialTraces :: [Instruction] -> Int -> Bool -> [[InstructionRef]] +potentialTraces _ 0 _ = [[]] -- We start here +potentialTraces is t s | s = unswappedPaths ++ + concat [map ([Flipped i] ++) $ potentialTraces (kill is i) i False | (i, x) <- isi, (i + deltaFlip x) == t] + | otherwise = unswappedPaths + where isi = zip [0..] is + kill xs i = take i xs ++ [Dead] ++ drop (i + 1) xs + unswappedPaths = concat [map ([Idx i] ++) $ potentialTraces (kill is i) i s | (i, x) <- isi, (i + delta x) == t] + +-- Parse instructions from a file +insFromFile :: String -> IO [Instruction] +insFromFile n = do + c <- readFile n + return $ map parseInstruction $ lines c; + +main :: IO () +main = do + args <- getArgs; + is <- insFromFile $ head args; + + -- Print out the full trace + let trace = getTrace is [] 0 0; + putStrLn "<<>> = 0"; + putStr $ unlines $ map (\(i,x) -> show i ++ ": " ++ show (is!!i) ++ " --> " ++ show x) trace; + + if (fst $ last trace) /= (length is - 1) then + -- Print out all the ways to get to the end, potentially swapping (once) + print $ nub $ potentialTraces is (length is) True + else + return (); diff --git a/2020/09a.hs b/2020/09a.hs new file mode 100644 index 0000000..4ee18f2 --- /dev/null +++ b/2020/09a.hs @@ -0,0 +1,24 @@ +module Day9A where + +import System.Environment (getArgs) + +potentialSum :: [Int] -> Int -> [(Int, Int)] +potentialSum xs t = filter ((== t) . uncurry (+)) [(x, y) | x <- xs, y <- xs, x /= y] + +mapSumPrev :: [Int] -> Int -> [[(Int, Int)]] +mapSumPrev xs l = [potentialSum (take l $ drop (i - l) xs) v | (i, v) <- zip [25..] (drop l xs)] + +numsFromFile :: String -> IO [Int] +numsFromFile p = do + c <- readFile p; + return $ map read $ lines c; + +main :: IO () +main = do + args <- getArgs; + xs <- numsFromFile $ head args; + + let unob = head $ filter (null . fst) $ zip (mapSumPrev xs 25) [25..]; + let unob_n = xs !! snd unob; + putStrLn $ "No way to sum up to " ++ show unob_n; + return (); diff --git a/2020/09b.hs b/2020/09b.hs new file mode 100644 index 0000000..a643b29 --- /dev/null +++ b/2020/09b.hs @@ -0,0 +1,34 @@ +module Day9B where + +import System.Environment (getArgs) + +potentialSum :: [Int] -> Int -> [(Int, Int)] +potentialSum xs t = filter ((== t) . uncurry (+)) [(x, y) | x <- xs, y <- xs, x /= y] + +mapSumPrev :: [Int] -> Int -> [[(Int, Int)]] +mapSumPrev xs l = [potentialSum (take l $ drop (i - l) xs) v | (i, v) <- zip [25..] (drop l xs)] + +rangesSummingTo :: [Int] -> Int -> [[Int]] +rangesSummingTo [] _ = [] +rangesSummingTo xs t = filter ((== t) . sum) $ map (`take` xs) [1..length xs] + ++ rangesSummingTo (drop 1 xs) t + +numsFromFile :: String -> IO [Int] +numsFromFile p = do + c <- readFile p; + return $ map read $ lines c; + +main :: IO () +main = do + args <- getArgs; + xs <- numsFromFile $ head args; + + let unob = head $ filter (null . fst) $ zip (mapSumPrev xs 25) [25..]; + let unob_n = xs !! snd unob; + putStrLn $ "No way to sum up to " ++ show unob_n; + + let rs = head $ rangesSummingTo xs unob_n; + print rs; + + putStrLn $ "Smallest + Largest = " ++ show (minimum rs + maximum rs); + return (); diff --git a/2020/10a.hs b/2020/10a.hs new file mode 100644 index 0000000..5df6941 --- /dev/null +++ b/2020/10a.hs @@ -0,0 +1,29 @@ +module Day10A where + +import System.Environment (getArgs) +import Data.List (sort) + +-- Get the longest chain of adapters possible +getJoltsChain :: [Int] -> [Int] +getJoltsChain ss = xs ++ [last xs + 3] + where xs = sort ss + +-- Read a line-seperated file of numbers +numsFromFile :: String -> IO [Int] +numsFromFile p = do + c <- readFile p; + return $ map read $ lines c; + +main :: IO () +main = do + args <- getArgs; + xs <- numsFromFile $ head args; + + let chain = 0 : getJoltsChain xs; + + let diffs = zipWith (-) chain (drop 1 chain); + let diff3s = length $ filter (== -3) diffs; + let diff1s = length $ filter (== -1) diffs; + + print $ diff1s * diff3s; + return (); diff --git a/2020/10b.hs b/2020/10b.hs new file mode 100644 index 0000000..e6851f6 --- /dev/null +++ b/2020/10b.hs @@ -0,0 +1,34 @@ +module Main where + +import System.Environment (getArgs) +import Data.List (sort) +import qualified Data.IntMap.Strict as M + +-- Delete elements from a list until element t is encountered +deleteUntil :: Eq a => [a] -> a -> [a] +deleteUntil [] _ = [] +deleteUntil (x:xs) t | x == t = xs + | otherwise = deleteUntil xs t + +-- Get the number of posisble valid permutations of a list of adapters +possiblePerms :: [Int] -> M.IntMap Int +possiblePerms ss = foldl addToMap (M.fromList [(0, 1)]) (sort ss ++ [end]) + where getChildren x m = [k | k <- [x-3..x-1], k `M.member` m] + end = maximum ss + 3 + addToMap m x = M.insert x (sum $ map (m M.!) (getChildren x m)) m + + +-- Read a line-seperated file of numbers +numsFromFile :: String -> IO [Int] +numsFromFile p = do + c <- readFile p; + return $ map read $ lines c; + + +main :: IO () +main = do + args <- getArgs; + xs <- numsFromFile $ head args; + + print $ possiblePerms xs; + return (); diff --git a/2020/11a.hs b/2020/11a.hs new file mode 100644 index 0000000..f6a4e9d --- /dev/null +++ b/2020/11a.hs @@ -0,0 +1,62 @@ +module Day11A where + +import System.Environment (getArgs) + +-- Type declarations +type AreaMap = [[Space]]; +data Space = Occupied | Empty | Floor + deriving (Show, Eq, Ord); + + +-- Keep applying f to a until the output stops changing +untilUnchanged :: Eq a => (a -> a) -> a -> a +untilUnchanged f a | n /= a = untilUnchanged f n + | otherwise = n + where n = f a + +-- Get the space at x, y, or floor if it's out of bounds +idxOrFloor :: AreaMap -> Int -> Int -> Space +idxOrFloor ss x y | x >= length (head ss) || y >= length ss || x < 0 || y < 0 = Floor + | otherwise = ss!!y!!x + +-- Get spaces adjacent to (x, y), including diagonals +adjSpaces :: AreaMap -> (Int, Int) -> [Space] +adjSpaces a (x, y) = [idxOrFloor a x' y' | x' <- [x-1..x+1], y' <- [y-1..y+1], x' /= x || y' /= y] + +-- Mutate a space given its current state and its adjacent spaces +mutateSpace :: Space -> [Space] -> Space +mutateSpace Empty adj | Occupied `notElem` adj = Occupied + | otherwise = Empty +mutateSpace Occupied adj | length (filter (== Occupied) adj) >= 4 = Empty + | otherwise = Occupied +mutateSpace x _ = x + +-- Mutate all spaces on the map +mutateAll :: AreaMap -> AreaMap +mutateAll rs = [[mutateSpace s (adjSpaces rs (c, r)) | (c, s) <- zip [0..] ss] | (r, ss) <- zip [0..] rs] + +-- Read a map in from its string representation +readMap :: String -> AreaMap +readMap = map readLine . lines + where readLine [] = [] + readLine ('.':xs) = Floor : readLine xs + readLine ('L':xs) = Empty : readLine xs + readLine ('#':xs) = Occupied : readLine xs + readLine _ = error "Invalid character passed to readMap" + +-- Read a map from the filename +mapFromFile :: String -> IO AreaMap +mapFromFile s = do + contents <- readFile s; + return $ readMap contents; + +main :: IO () +main = do + args <- getArgs; + m <- mapFromFile (head args); + + let final = untilUnchanged mutateAll m; + let occ = sum $ map (length . filter (== Occupied)) final; + + putStrLn $ "Occupied Seats: " ++ show occ; + return (); diff --git a/2020/11b.hs b/2020/11b.hs new file mode 100644 index 0000000..75f4bda --- /dev/null +++ b/2020/11b.hs @@ -0,0 +1,62 @@ +module Day11B where + +import System.Environment (getArgs) + +type AreaMap = [[Space]]; +data Space = Occupied | Empty | Floor + deriving (Show, Eq, Ord); + + +-- Keep applying f to a until the output stops changing +untilUnchanged :: Eq a => (a -> a) -> a -> a +untilUnchanged f a | n /= a = untilUnchanged f n + | otherwise = n + where n = f a + +-- Find if an occupied seat is visible from (x,y) looking along (dx, dy) +occupiedAlongDir :: AreaMap -> (Int, Int) -> (Int, Int) -> Bool +occupiedAlongDir ss (x, y) (dx, dy) | x >= length (head ss) || y >= length ss || x < 0 || y < 0 = False + | ss!!y!!x == Empty = False + | ss!!y!!x == Occupied = True + | otherwise = occupiedAlongDir ss (x + dx, y + dy) (dx, dy) + +-- Count the number of visible occupied seats from (x, y), looking along all directions incl diagonals. +visibleOccupied :: AreaMap -> (Int, Int) -> Int +visibleOccupied a (x, y) = length [(x', y') | x' <- [x-1..x+1], y' <- [y-1..y+1], x' /= x || y' /= y, occupiedAlongDir a (x', y') (x'-x, y'-y)] + +-- Mutate a space given its current state and its adjacent spaces +mutateSpace :: Space -> Int -> Space +mutateSpace Empty adj | adj == 0 = Occupied + | otherwise = Empty +mutateSpace Occupied adj | adj >= 5 = Empty + | otherwise = Occupied +mutateSpace x _ = x + +-- Mutate all spaces on the map +mutateAll :: AreaMap -> AreaMap +mutateAll rs = [[mutateSpace s (visibleOccupied rs (c, r)) | (c, s) <- zip [0..] ss] | (r, ss) <- zip [0..] rs] + +-- Read a map in from its string representation +readMap :: String -> AreaMap +readMap = map readLine . lines + where readLine [] = [] + readLine ('.':xs) = Floor : readLine xs + readLine ('L':xs) = Empty : readLine xs + readLine ('#':xs) = Occupied : readLine xs + +-- Read a map from the filename +mapFromFile :: String -> IO AreaMap +mapFromFile s = do + contents <- readFile s; + return $ readMap contents; + +main :: IO () +main = do + args <- getArgs; + m <- mapFromFile (head args); + + let final = untilUnchanged mutateAll m; + let occ = sum $ map (length . filter (== Occupied)) final; + + putStrLn $ "Occupied Seats: " ++ show occ; + return (); diff --git a/2020/12a.hs b/2020/12a.hs new file mode 100644 index 0000000..a147884 --- /dev/null +++ b/2020/12a.hs @@ -0,0 +1,62 @@ +module Day12A where + +import System.Environment (getArgs) + +data Instruction = North Int | East Int | + South Int | West Int | + TLeft Int | TRight Int | + Forward Int + deriving (Eq, Show, Ord); + +-- ((x, y), direction) +type State = ((Int, Int), Int); + +initialState :: State; +initialState = ((0, 0), 90); + +directionToDisplacement :: Int -> (Int, Int) +directionToDisplacement 0 = (0, 1) +directionToDisplacement 90 = (1, 0) +directionToDisplacement 180 = (0, -1) +directionToDisplacement 270 = (-1, 0) +directionToDisplacement _ = error "Invalid direction" + +readInstructions :: String -> [Instruction] +readInstructions = map readInstruction . lines + where readInstruction ('N':xs) = North $ read xs + readInstruction ('S':xs) = South $ read xs + readInstruction ('E':xs) = East $ read xs + readInstruction ('W':xs) = West $ read xs + readInstruction ('L':xs) = TLeft $ read xs + readInstruction ('R':xs) = TRight $ read xs + readInstruction ('F':xs) = Forward $ read xs + readInstruction _ = error "Invalid instruction" + +doInstruction :: Instruction -> State -> State +doInstruction (North r) ((x, y), d) = ((x, y + r), d) +doInstruction (South r) ((x, y), d) = ((x, y - r), d) +doInstruction (East r) ((x, y), d) = ((x + r, y), d) +doInstruction (West r) ((x, y), d) = ((x - r, y), d) +doInstruction (TLeft r) ((x, y), d) = ((x, y), (d - r) `mod` 360) +doInstruction (TRight r) ((x, y), d) = ((x, y), (d + r) `mod` 360) +doInstruction (Forward r) ((x, y), d) = ((x + (x' * r), y + (y' * r)), d) + where (x', y') = directionToDisplacement d + +instructionsFromFile :: String -> IO [Instruction] +instructionsFromFile s = do + contents <- readFile s; + return $ readInstructions contents; + +main :: IO () +main = do + args <- getArgs; + is <- instructionsFromFile (head args); + + let final = foldl (flip doInstruction) initialState is; + putStrLn $ "Final State: " ++ show final; + + let ((x, y), _) = final; + let dist = abs x + abs y; + putStrLn $ "Distance: " ++ show dist; + + return (); diff --git a/2020/12b.hs b/2020/12b.hs new file mode 100644 index 0000000..040287e --- /dev/null +++ b/2020/12b.hs @@ -0,0 +1,67 @@ +module Day12B where + +import System.Environment (getArgs) + +data Instruction = North Int | East Int | + South Int | West Int | + TLeft Int | TRight Int | + Forward Int + deriving (Eq, Show, Ord); + +-- ((shipX, shipY), (wY, wX)) +type State = ((Int, Int), (Int, Int)); + +initialState :: State; +initialState = ((0, 0), (10, 1)); + +rotateAround :: (Int, Int) -> Int -> (Int, Int) +rotateAround (wx, wy) (-90) = (-wy, wx) +rotateAround (wx, wy) 0 = (wx, wy) +rotateAround (wx, wy) 90 = (wy, -wx) +rotateAround (wx, wy) 180 = (-wx, -wy) +rotateAround (wx, wy) (-180) = rotateAround (wx, wy) 180 +rotateAround (wx, wy) 270 = rotateAround (wx, wy) (-90) +rotateAround (wx, wy) (-270) = rotateAround (wx, wy) 90 +rotateAround _ _ = error "Direction not defined" + +moveToward :: (Int, Int) -> (Int, Int) -> Int -> (Int, Int) +moveToward (sx, sy) (wx, wy) r = (sx + (wx * r), sy + (wy * r)) + +readInstructions :: String -> [Instruction] +readInstructions = map readInstruction . lines + where readInstruction ('N':xs) = North $ read xs + readInstruction ('S':xs) = South $ read xs + readInstruction ('E':xs) = East $ read xs + readInstruction ('W':xs) = West $ read xs + readInstruction ('L':xs) = TLeft $ read xs + readInstruction ('R':xs) = TRight $ read xs + readInstruction ('F':xs) = Forward $ read xs + readInstruction _ = error "Invalid instruction" + +doInstruction :: Instruction -> State -> State +doInstruction (North r) ((sx, sy), (wx, wy)) = ((sx, sy), (wx, wy + r)) +doInstruction (South r) ((sx, sy), (wx, wy)) = ((sx, sy), (wx, wy - r)) +doInstruction (East r) ((sx, sy), (wx, wy)) = ((sx, sy), (wx + r, wy)) +doInstruction (West r) ((sx, sy), (wx, wy)) = ((sx, sy), (wx - r, wy)) +doInstruction (TLeft r) ((sx, sy), (wx, wy)) = ((sx, sy), rotateAround (wx, wy) (-r)) +doInstruction (TRight r) ((sx, sy), (wx, wy)) = ((sx, sy), rotateAround (wx, wy) r) +doInstruction (Forward r) ((sx, sy), (wx, wy)) = (moveToward (sx, sy) (wx, wy) r, (wx, wy)) + +instructionsFromFile :: String -> IO [Instruction] +instructionsFromFile s = do + contents <- readFile s; + return $ readInstructions contents; + +main :: IO () +main = do + args <- getArgs; + is <- instructionsFromFile (head args); + + let final = foldl (flip doInstruction) initialState is; + putStrLn $ "Final State: " ++ show final; + + let ((x, y), _) = final; + let dist = abs x + abs y; + putStrLn $ "Distance: " ++ show dist; + + return (); diff --git a/2020/13a.hs b/2020/13a.hs new file mode 100644 index 0000000..1346a68 --- /dev/null +++ b/2020/13a.hs @@ -0,0 +1,45 @@ +module Day13A where + +import System.Environment (getArgs) +import Data.Maybe (catMaybes) +import Data.List.Split (splitOn) +import Text.Read (readMaybe) +import Text.Printf + +-- Get the nearest bus in the list after the given time +-- Returns (time, bus) +getNearest :: Int -> [Int] -> (Int, Int) +getNearest e xs | not $ null rs = (e, head rs) + | otherwise = getNearest (e + 1) xs + where rs = filter (\x -> e `mod` x == 0) xs + +-- Parse the input as a string +-- Returns (current time, list of valid buses) +parseInput :: String -> (Int, [Int]) +parseInput x = (read t, catMaybes ts) + where (t:r) = lines x + bs = splitOn "," (head r) + ts :: [Maybe Int] + ts = map readMaybe bs + +-- Parse a file given the path +-- Returns (current time, list of valid buses) +parseFromFile :: String -> IO (Int, [Int]) +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- runghc --ghc-arg='-package split' 13a.hs inputs/day13 +main :: IO () +main = do + args <- getArgs; + (now, bs) <- parseFromFile (head args); + + let (t, b) = getNearest now bs; + let w = t - now; + + printf "You could get bus %d at %d\n" b t :: IO (); + printf "This is a %d minute wait\n" w :: IO (); + printf "Answer = %d\n" (b * w) :: IO (); + + return (); diff --git a/2020/13b.hs b/2020/13b.hs new file mode 100644 index 0000000..4a66ec2 --- /dev/null +++ b/2020/13b.hs @@ -0,0 +1,51 @@ +module Day13B where + +import System.Environment (getArgs) +import Data.List.Split (splitOn) +import Text.Read (readMaybe) +import Text.Printf + +-- Extended Euclidean Algorithm +-- Returns (s, t) such that as + bt = gcd(a,b) +extendedEu :: Int -> Int -> (Int, Int) +extendedEu _ 0 = (1, 0) +extendedEu a b = (t, s - q * t) + where (q, r) = quotRem a b + (s, t) = extendedEu b r + +-- Solve for x in (a, n) such that x = a mod n +-- Assumes all ns are coprime +crt :: [(Int, Int)] -> Int +crt xs | r < 0 = -(r + n') + | otherwise = r + where n' = product $ map snd xs + r = sum [a * snd (extendedEu n (n' `div` n)) * (n' `div` n) |(a, n) <- xs] + +-- Calculate the nearest time with the given parameters +solvePuzzle :: [Maybe Int] -> Int +solvePuzzle bs = crt [(i `mod` x, x) | (i, Just x) <- zip [0..] bs] + +-- Parse the input as a string +-- Returns (current time, list of buses / nothing if x) +parseInput :: String -> (Int, [Maybe Int]) +parseInput x = (read t, ts) + where (t:r) = lines x + bs = splitOn "," (head r) + ts :: [Maybe Int] + ts = map readMaybe bs + +-- Parse a file given the path +-- Returns (current time, list of buses / nothing if x) +parseFromFile :: String -> IO (Int, [Maybe Int]) +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- runghc --ghc-arg='-package split' 13a.hs inputs/day13 +main :: IO () +main = do + args <- getArgs; + (_, bs) <- parseFromFile (head args); + + printf "Answer = %d\n" (solvePuzzle bs) :: IO (); + return (); diff --git a/2020/14a.hs b/2020/14a.hs new file mode 100644 index 0000000..3595c0e --- /dev/null +++ b/2020/14a.hs @@ -0,0 +1,89 @@ +module Day14A where + +import System.Environment (getArgs) +import Text.Regex.PCRE +import Text.Printf +import qualified Data.Map as Map + +-- Types +type U36 = [Bool]; +data Instruction = SetAddr Int Int | + SetMask Mask + deriving (Eq, Show); + +data MaskBit = Zero | One | Preserve + deriving (Eq, Show); +type Mask = [MaskBit]; + +type State = (Mask, Map.Map Int Int) + +-- The initial state - An empty mask and all 0s. +initialState :: State +initialState = (toMask "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", Map.empty) + +-- Apply a mask to a U36 +applyMask :: Mask -> U36 -> U36 +applyMask = zipWith maskBit + where maskBit Zero _ = False + maskBit One _ = True + maskBit Preserve x = x + +-- Apply a mask to an int +applyMaskInt :: Mask -> Int -> Int +applyMaskInt m = fromU36 . applyMask m . toU36 + +-- Conversion to/from u36 +toU36 :: Int -> U36 +toU36 = genBit 35 + where genBit 0 x = [x `mod` 2 == 1] + genBit e x = (x >= (2 ^ e)) : genBit (e - 1) (x `mod` (2 ^ e)) + +fromU36 :: U36 -> Int +fromU36 [] = 0 +fromU36 (x:xs) | x = 2 ^ (length xs) + fromU36 xs + | otherwise = fromU36 xs + +-- Parse a string as a mask +toMask :: String -> Mask +toMask [] = [] +toMask ('X':xs) = Preserve : toMask xs +toMask ('1':xs) = One : toMask xs +toMask ('0':xs) = Zero : toMask xs + +-- Parse a string as an instruction +parseInstruction :: String -> Instruction +parseInstruction xs | not (null sm) = SetMask (toMask (sm!!0!!1)) + | not (null sa) = SetAddr (read (sa!!0!!1)) (read (sa!!0!!2)) + | otherwise = error "Invalid Instruction" + where sm = xs =~ "^mask = ([X01]{36})" :: [[String]] + sa = xs =~ "^mem\\[(\\d+)\\] = (\\d+)" :: [[String]] + +-- Parse a string, with one instruction per line +parseInput :: String -> [Instruction] +parseInput = map parseInstruction . lines + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO [Instruction] +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- Run the given instructions on the given state +run :: State -> [Instruction] -> State +run s [] = s +run (_, a) (SetMask m:xs) = run (m, a) xs +run (m, a) (SetAddr k v:xs) = run (m, Map.insert k (applyMaskInt m v) a) xs + +-- runghc --ghc-arg='-package regex-pcre-builtin' 14a.hs inputs/day14 +main :: IO () +main = do + args <- getArgs; + is <- parseFromFile (head args); + + let (_, mem) = run initialState is; + let s = sum mem; -- Defaults to values :) + + printf "Answer = %d\n" s :: IO (); + + return (); diff --git a/2020/14b.hs b/2020/14b.hs new file mode 100644 index 0000000..8be43e1 --- /dev/null +++ b/2020/14b.hs @@ -0,0 +1,88 @@ +module Day14B where + +import System.Environment (getArgs) +import Text.Regex.PCRE +import Text.Printf +import qualified Data.Map as Map + +-- Types +type U36 = [Bool]; +data Instruction = SetAddr Int Int | + SetMask Mask + deriving (Eq, Show); + +data MaskBit = Floating | One | Preserve + deriving (Eq, Show); +type Mask = [MaskBit]; + +type State = (Mask, Map.Map Int Int) + +-- The initial state - An empty mask and all 0s. +initialState :: State +initialState = (toMask "000000000000000000000000000000000000", Map.empty) + +-- Apply a mask to a U36, returning all addresses this should mutate +applyMask :: Mask -> U36 -> [U36] +applyMask [] [] = [[]] +applyMask (One:ms) (b:bs) = [True : s | s <- applyMask ms bs] +applyMask (Preserve:ms) (b:bs) = [b : s | s <- applyMask ms bs] +applyMask (Floating:ms) (b:bs) = [x : s | s <- applyMask ms bs, x <- [True, False]] + +-- Apply a mask to an int +applyMaskInt :: Mask -> Int -> [Int] +applyMaskInt m = map fromU36 . applyMask m . toU36 + +-- Conversion to/from u36 +toU36 :: Int -> U36 +toU36 = genBit 35 + where genBit 0 x = [x `mod` 2 == 1] + genBit e x = (x >= (2 ^ e)) : genBit (e - 1) (x `mod` (2 ^ e)) + +fromU36 :: U36 -> Int +fromU36 [] = 0 +fromU36 (x:xs) | x = 2 ^ (length xs) + fromU36 xs + | otherwise = fromU36 xs + +-- Parse a string as a mask +toMask :: String -> Mask +toMask [] = [] +toMask ('X':xs) = Floating : toMask xs +toMask ('1':xs) = One : toMask xs +toMask ('0':xs) = Preserve : toMask xs + +-- Parse a string as an instruction +parseInstruction :: String -> Instruction +parseInstruction xs | not (null sm) = SetMask (toMask (sm!!0!!1)) + | not (null sa) = SetAddr (read (sa!!0!!1)) (read (sa!!0!!2)) + | otherwise = error "Invalid Instruction" + where sm = xs =~ "^mask = ([X01]{36})" :: [[String]] + sa = xs =~ "^mem\\[(\\d+)\\] = (\\d+)" :: [[String]] + +-- Parse a string, with one instruction per line +parseInput :: String -> [Instruction] +parseInput = map parseInstruction . lines + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO [Instruction] +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- Run the given instructions on the given state +run :: State -> [Instruction] -> State +run s [] = s +run (_, a) (SetMask m:xs) = run (m, a) xs +run (m, a) (SetAddr k v:xs) = run (m, foldr (\k a -> Map.insert k v a) a (applyMaskInt m k)) xs + +-- runghc --ghc-arg='-package regex-pcre-builtin' 14a.hs inputs/day14 +main :: IO () +main = do + args <- getArgs; + is <- parseFromFile (head args); + + let (_, mem) = run initialState is; + let s = sum mem; -- Defaults to values :) + printf "Answer = %d\n" s :: IO (); + + return (); diff --git a/2020/15a.hs b/2020/15a.hs new file mode 100644 index 0000000..9e574ef --- /dev/null +++ b/2020/15a.hs @@ -0,0 +1,49 @@ +module Day15A where + +import System.Environment (getArgs) +import Text.Printf + +-- Parse a string, with one number per line +parseInput :: String -> [Int] +parseInput = map read . lines + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO [Int] +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- Index of an element in a list +indexOf :: Eq a => [a] -> a -> Maybe Int +indexOf [] t = Nothing +indexOf (x:xs) t | x == t = Just 0 + | otherwise = case indexOf xs t of + Nothing -> Nothing + Just x -> Just (x + 1) + +-- Index of an element in a list, starting from the right / end +indexOfRight :: Eq a => [a] -> a -> Maybe Int +indexOfRight xs t = case indexOf (reverse xs) t of + Nothing -> Nothing + Just x -> Just (length xs - x - 1) + +-- Run until the given turn +runTillTurn :: [Int] -> Int -> [Int] +runTillTurn ns l | length ns == l = ns + | otherwise = runTillTurn ns' l + where x = last ns + ns' = case indexOfRight (take (length ns - 1) ns) x of + Just x -> ns ++ [(length ns - 1) - x] + Nothing -> ns ++ [0] + +-- runghc 15a.hs inputs/day15 +main :: IO () +main = do + args <- getArgs; + ns <- parseFromFile (head args); + let xs = runTillTurn ns 30000000; + + printf "Answer = %d\n" (last xs) :: IO (); + + return (); diff --git a/2020/15b.hs b/2020/15b.hs new file mode 100644 index 0000000..1efe53e --- /dev/null +++ b/2020/15b.hs @@ -0,0 +1,44 @@ +module Main where + +import System.Environment (getArgs) +import Text.Printf +import qualified Data.IntMap.Strict as Map + +-- This does the same thing as 15a, it's just done in a more memory-optimised way. + +-- Parse a string, with one number per line +parseInput :: String -> [Int] +parseInput = map read . lines + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO [Int] +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- Generate a map from the list of initial numbers +mapFromInitial :: [Int] -> Map.IntMap Int +mapFromInitial xs = foldr (\(i,x) m -> Map.insert x i m) Map.empty (zip [0..] xs) + +-- Run till the given turn, this time using a map to store last occurences. +-- This means we don't get the full 'log', just the final turn. +-- map, prev, current index, stopping len +runTillTurn :: Map.IntMap Int -> Int -> Int -> Int -> Int +runTillTurn occ prev i n | i >= n = prev + | otherwise = runTillTurn occ' curr (i + 1) n + where curr = case Map.lookup prev occ of + Nothing -> 0 + Just x -> (i - 1) - x + occ' = Map.insert prev (i - 1) occ + +-- runghc 15b.hs inputs/day15 +main :: IO () +main = do + args <- getArgs; + ns <- parseFromFile (head args); + let x = runTillTurn (mapFromInitial ns) (last ns) (length ns) 30000000; + + printf "Answer = %d\n" x :: IO (); + + return (); diff --git a/2020/16a.hs b/2020/16a.hs new file mode 100644 index 0000000..0342e5d --- /dev/null +++ b/2020/16a.hs @@ -0,0 +1,69 @@ +module Day16A where + +import System.Environment (getArgs) +import Text.Printf +import Data.List.Split (splitOn) + + +-- name, (lo, hi) +type FieldDef = (String, [(Int, Int)]) + +-- (fields, your ticket, nearby tickets) +type Input = ([FieldDef], [Int], [[Int]]) + +parseTicketLine :: String -> [Int] +parseTicketLine = map read . splitOn "," + +parseRange :: String -> (Int, Int) +parseRange x = (head ns, last ns) + where ns = map read $ splitOn "-" x + +parseFieldDef :: String -> FieldDef +parseFieldDef x = (n, ranges) + where [n, rs] = splitOn ": " x + ranges = map parseRange $ splitOn " or " rs + +parseFields :: [String] -> [FieldDef] +parseFields = inner . head . splitOn [""] + where inner = map parseFieldDef + + +findYourTicket :: [String] -> [Int] +findYourTicket ("your ticket:":xs) = parseTicketLine (head xs) +findYourTicket (_:xs) = findYourTicket xs +findYourTicket [] = error "Couldn't find your ticket" + +findOtherTickets :: [String] -> [[Int]] +findOtherTickets ("nearby tickets:":xs) = map parseTicketLine xs +findOtherTickets (_:xs) = findOtherTickets xs +findOtherTickets [] = error "Couldn't find nearby tickets" + + +-- Parse the input +parseInput :: String -> Input +parseInput xs = (parseFields ls, findYourTicket ls, findOtherTickets ls) + where ls = lines xs + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO Input +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +fieldValid :: FieldDef -> Int -> Bool +fieldValid (_, rs) x = any (\(l,h) -> x >= l && x <= h) rs + +invalidValues :: Input -> [Int] +invalidValues (cs, _, ts) = concat [filter (\x -> not (any (`fieldValid` x) cs)) t | t <- ts] + +-- runghc --ghc-arg='-package split' 16a.hs inputs/day16 +main :: IO () +main = do + args <- getArgs; + i <- parseFromFile (head args); + let vs = invalidValues i; + + printf "Answer = %d\n" (sum vs) :: IO (); + + return (); diff --git a/2020/16b.hs b/2020/16b.hs new file mode 100644 index 0000000..a3ba48a --- /dev/null +++ b/2020/16b.hs @@ -0,0 +1,97 @@ +module Day16B where + +import System.Environment (getArgs) +import Text.Printf +import Data.List.Split (splitOn) + + +-- name, (lo, hi) +type FieldDef = (String, [(Int, Int)]) + +-- (fields, your ticket, nearby tickets) +type Input = ([FieldDef], [Int], [[Int]]) + +parseTicketLine :: String -> [Int] +parseTicketLine = map read . splitOn "," + +parseRange :: String -> (Int, Int) +parseRange x = (head ns, last ns) + where ns = map read $ splitOn "-" x + +parseFieldDef :: String -> FieldDef +parseFieldDef x = (n, ranges) + where [n, rs] = splitOn ": " x + ranges = map parseRange $ splitOn " or " rs + +parseFields :: [String] -> [FieldDef] +parseFields = inner . head . splitOn [""] + where inner = map parseFieldDef + + +findYourTicket :: [String] -> [Int] +findYourTicket ("your ticket:":xs) = parseTicketLine (head xs) +findYourTicket (_:xs) = findYourTicket xs +findYourTicket [] = error "Couldn't find your ticket" + +findOtherTickets :: [String] -> [[Int]] +findOtherTickets ("nearby tickets:":xs) = map parseTicketLine xs +findOtherTickets (_:xs) = findOtherTickets xs +findOtherTickets [] = error "Couldn't find nearby tickets" + + +-- Parse the input +parseInput :: String -> Input +parseInput xs = (parseFields ls, findYourTicket ls, findOtherTickets ls) + where ls = lines xs + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO Input +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +fieldValid :: FieldDef -> Int -> Bool +fieldValid (_, rs) x = any (\(l,h) -> x >= l && x <= h) rs + +validTickets :: Input -> [[Int]] +validTickets (cs, _, ts) = filter (all (\x -> any (`fieldValid` x) cs)) ts + +discardInvalid :: Input -> Input +discardInvalid i@(cs, m, _) = (cs, m, validTickets i) + +findPositions :: FieldDef -> [[Int]] -> [Int] +findPositions f ts = filter (\k -> all (fieldValid f . (!!k)) ts) [0..length (head ts) - 1] + +-- Takes a list of lists of possibilities, and selects one from each such that there are no duplicates +selectOne :: [[Int]] -> [Int] +selectOne xs | all ((== 1) . length) ps = map head ps + | ps == xs = selectOne $ ([head $ head undecided]:tail undecided) ++ singletons + | otherwise = selectOne ps -- Recurse until every list of possibilities is singleton + where singletons = filter ((== 1) . length) xs + undecided = filter ((> 1) . length) xs + reqs = map head singletons -- Numbers that are already taken + ps = map (\x -> if length x > 1 then deleteReqs x else x) xs -- Possibilities assuming this one is taken + deleteReqs (n:ns) | n `elem` reqs = ns + | otherwise = n : deleteReqs ns + deleteReqs [] = [] + + +startsWith :: Eq a => [a] -> [a] -> Bool +startsWith a b = and $ zipWith (==) a b + +-- runghc --ghc-arg='-package split' 16b.hs inputs/day16 +main :: IO () +main = do + args <- getArgs; + i <- parseFromFile (head args); + let (cs, m, ts) = discardInvalid i; + + let ps = zip (map fst cs) (selectOne $ map (`findPositions` (m:ts)) cs) + let deps = filter (startsWith "departure" . fst) ps; + let vals = map ((m!!) . snd) deps; + printf "Drawing from %d fields\n" (length deps) :: IO (); + + printf "Answer = %d\n" (product vals) :: IO (); + + return (); diff --git a/2020/17a.hs b/2020/17a.hs new file mode 100644 index 0000000..d888379 --- /dev/null +++ b/2020/17a.hs @@ -0,0 +1,64 @@ +module Day17A where + +import System.Environment (getArgs) +import Text.Printf +import qualified Data.Map.Strict as Map + +-- Types +type Coord = (Int, Int, Int); +type ActiveMap = Map.Map Coord Bool + +-- Add two coords +addCoord :: Coord -> Coord -> Coord +addCoord (x, y, z) (x', y', z') = (x + x', y + y', z + z') + +-- The range of cubes that need to be simulated. +consideredRange :: ActiveMap -> (Coord, Coord) +consideredRange m = (addCoord (Map.foldrWithKey (compCoord min) (0, 0, 0) m) (-1, -1, -1), + addCoord (Map.foldrWithKey (compCoord max) (0, 0, 0) m) (1, 1, 1)) + where compCoord f (x', y', z') _ (x, y, z) = (f x' x, f y' y, f z' z) + +-- The neighbours of the given cube +neighbours :: Coord -> [Coord] +neighbours (x, y, z) = [(x', y', z') | x' <- [x-1..x+1], + y' <- [y-1..y+1], + z' <- [z-1..z+1], + x' /= x || y' /= y || z' /= z] + +-- Simulate the cube at the given coord +simulateCube :: ActiveMap -> Coord -> Bool +simulateCube m c | s && n `elem` [2..3] = True + | n == 3 = True + | otherwise = False + where s = Map.findWithDefault False c m + n = length $ filter (== True) $ map (\x -> Map.findWithDefault False x m) (neighbours c) + +-- Run one cycle of simulation +runCycle :: ActiveMap -> ActiveMap +runCycle m = foldr (\(k, v) m' -> Map.insert k v m') m changes -- Run all changes simultaneously + where ((lx, ly, lz), (hx, hy, hz)) = consideredRange m + changes = [((x, y, z), simulateCube m (x, y, z)) | x <- [lx..hx], y <- [ly..hy], z <- [lz..hz]] + +-- Parse the input +parseInput :: String -> ActiveMap +parseInput xs = foldr (\c m -> Map.insert c True m) Map.empty coords + where ls = zip (lines xs) [0..] + coords = concatMap (\(hs, y) -> [(x, y, 0) | ('#', x) <- zip hs [0..]]) ls + +-- Read and parse given filename +parseFromFile :: String -> IO ActiveMap +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- runghc 17a.hs inputs/day17 +main :: IO () +main = do + args <- getArgs; + i <- parseFromFile (head args); + + let final = foldr (\_ m -> runCycle m) i [1..6]; + + printf "Answer = %d\n" (Map.size $ Map.filter (== True) final) :: IO (); + + return (); diff --git a/2020/17b.hs b/2020/17b.hs new file mode 100644 index 0000000..417fda0 --- /dev/null +++ b/2020/17b.hs @@ -0,0 +1,61 @@ +module Day17B where + +import System.Environment (getArgs) +import Text.Printf +import qualified Data.Map.Strict as Map + +-- Types +type Coord = (Int, Int, Int, Int); +type ActiveMap = Map.Map Coord Bool + +-- Add two coords +addCoord :: Coord -> Coord -> Coord +addCoord (x, y, z, w) (x', y', z', w') = (x + x', y + y', z + z', w + w') + +-- The range of cubes that need to be simulated. +consideredRange :: ActiveMap -> (Coord, Coord) +consideredRange m = (addCoord (Map.foldrWithKey (compCoord min) (0, 0, 0, 0) m) (-1, -1, -1, -1), + addCoord (Map.foldrWithKey (compCoord max) (0, 0, 0, 0) m) (1, 1, 1, 1)) + where compCoord f (x', y', z', w') _ (x, y, z, w) = (f x' x, f y' y, f z' z, f w' w) + +-- The neighbours of the given cube +neighbours :: Coord -> [Coord] +neighbours (x, y, z, w) = [(x', y', z', w') | x' <- [x-1..x+1], y' <- [y-1..y+1], z' <- [z-1..z+1], w' <- [w-1..w+1], x' /= x || y' /= y || z' /= z || w' /= w] + +-- Simulate the cube at the given coord +simulateCube :: ActiveMap -> Coord -> Bool +simulateCube m c | s && n `elem` [2..3] = True + | n == 3 = True + | otherwise = False + where s = Map.findWithDefault False c m + n = length $ filter (== True) $ map (\x -> Map.findWithDefault False x m) (neighbours c) + +-- Run one cycle of simulation +runCycle :: ActiveMap -> ActiveMap +runCycle m = foldr (\(k, v) m' -> Map.insert k v m') m changes + where ((lx, ly, lz, lw), (hx, hy, hz, hw)) = consideredRange m + changes = [((x, y, z, w), simulateCube m (x, y, z, w)) | x <- [lx..hx], y <- [ly..hy], z <- [lz..hz], w <- [lw..hw]] + +-- Parse the input +parseInput :: String -> ActiveMap +parseInput xs = foldr (\c m -> Map.insert c True m) Map.empty coords + where ls = zip (lines xs) [0..] + coords = concatMap (\(hs, y) -> [(x, y, 0, 0) | ('#', x) <- zip hs [0..]]) ls + +-- Read and parse given filename +parseFromFile :: String -> IO ActiveMap +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +-- runghc 17b.hs inputs/day17 +main :: IO () +main = do + args <- getArgs; + i <- parseFromFile (head args); + + let final = foldr (\_ m -> runCycle m) i [1..6]; + + print (Map.size $ Map.filter (== True) final); + + return (); diff --git a/2020/18a.hs b/2020/18a.hs new file mode 100644 index 0000000..7ed5a90 --- /dev/null +++ b/2020/18a.hs @@ -0,0 +1,86 @@ +module Day18A where + +import System.Environment (getArgs) +import Text.Printf + +-- Types +data Symbol = Num Int | Add | Mult | StartParen | EndParen + deriving (Eq, Show); + +data Expression = Expression :+: Expression | Expression :*: Expression | Paren Expression | Literal Int + deriving (Eq, Show); + +-- Read until there's some sort of operator, ie the entire number +readUntilOp :: String -> (String, String) -- read, remaining +readUntilOp [] = ("", "") +readUntilOp xs@('+':_) = ("", xs) +readUntilOp xs@('*':_) = ("", xs) +readUntilOp xs@('(':_) = ("", xs) +readUntilOp xs@(')':_) = ("", xs) +readUntilOp (x:xs) = (x : r, re) + where (r, re) = readUntilOp xs + +-- Tokenise a string to a list of symbols +toSymbols :: String -> [Symbol] +toSymbols [] = [] +toSymbols(' ':xs) = toSymbols xs +toSymbols ('+':xs) = Add : toSymbols xs +toSymbols ('*':xs) = Mult : toSymbols xs +toSymbols ('(':xs) = StartParen : toSymbols xs +toSymbols (')':xs) = EndParen : toSymbols xs +toSymbols xs = Num (read n) : toSymbols re + where (n, re) = readUntilOp xs + +-- Read till the next end paren at the same level +-- This needs to not start with a start paren +tillEndParen :: [Symbol] -> ([Symbol], [Symbol]) -- read, remaining +tillEndParen (StartParen:xs) = ([StartParen] ++ i ++ [EndParen] ++ r, re) + where (i, is) = tillEndParen xs + (r, re) = tillEndParen is +tillEndParen (EndParen:xs) = ([], xs) +tillEndParen [] = ([], []) +tillEndParen (x:xs) = (x:r, re) + where (r, re) = tillEndParen xs + +-- Reverse symbols, to get the right precedence level. +revSyms :: [Symbol] -> [Symbol] +revSyms = map swapParens . reverse + where swapParens StartParen = EndParen + swapParens EndParen = StartParen + swapParens x = x + +-- Parse a list of symbols to an expression tree +toExp :: [Symbol] -> Expression +toExp (StartParen:xs) = parenthesise r re + where (r, re) = tillEndParen xs + parenthesise r (Add:xs) = toExp r :+: toExp xs + parenthesise r (Mult:xs) = toExp r :*: toExp xs + parenthesise r [] = toExp r +toExp (x:Add:y) = toExp [x] :+: toExp y +toExp (x:Mult:y) = toExp [x] :*: toExp y +toExp [Num x] = Literal x +toExp [] = Literal 0 + +-- Evaluate an expression +evalExp :: Expression -> Int +evalExp (Literal x) = x +evalExp (x :+: y) = evalExp x + evalExp y +evalExp (x :*: y) = evalExp x * evalExp y +evalExp (Paren x) = evalExp x + +-- Parse the expressions in the given line seperated file. +parseFromFile :: String -> IO [Expression] +parseFromFile s = do + contents <- readFile s + return $ map (toExp . revSyms . toSymbols) (lines contents); + +-- runghc 18a.hs inputs/day18 +main :: IO () +main = do + args <- getArgs; + es <- parseFromFile (head args); + + let ns = map evalExp es; + printf "Answer = %d\n" (sum ns) :: IO (); + + return (); diff --git a/2020/18b.hs b/2020/18b.hs new file mode 100644 index 0000000..cb27c19 --- /dev/null +++ b/2020/18b.hs @@ -0,0 +1,97 @@ +module Day18A where + +import System.Environment (getArgs) +import Text.Printf + +-- Types +data Symbol = Num Int | Add | Mult | StartParen | EndParen + deriving (Eq, Show); + +data Expression = Expression :+: Expression | Expression :*: Expression | Paren Expression | Literal Int | Unparsed [Symbol] + deriving (Eq, Show); + +-- Read until there's some sort of operator, ie the entire number +readUntilOp :: String -> (String, String) -- read, remaining +readUntilOp [] = ("", "") +readUntilOp xs@('+':_) = ("", xs) +readUntilOp xs@('*':_) = ("", xs) +readUntilOp xs@('(':_) = ("", xs) +readUntilOp xs@(')':_) = ("", xs) +readUntilOp (x:xs) = (x : r, re) + where (r, re) = readUntilOp xs + +-- Tokenise a string to a list of symbols +toSymbols :: String -> [Symbol] +toSymbols [] = [] +toSymbols(' ':xs) = toSymbols xs +toSymbols ('+':xs) = Add : toSymbols xs +toSymbols ('*':xs) = Mult : toSymbols xs +toSymbols ('(':xs) = StartParen : toSymbols xs +toSymbols (')':xs) = EndParen : toSymbols xs +toSymbols xs = Num (read n) : toSymbols re + where (n, re) = readUntilOp xs + +-- Read till the next end paren at the same level +-- This needs to not start with a start paren +tillEndParen :: [Symbol] -> ([Symbol], [Symbol]) -- read, remaining +tillEndParen (StartParen:xs) = ([StartParen] ++ i ++ [EndParen] ++ r, re) + where (i, is) = tillEndParen xs + (r, re) = tillEndParen is +tillEndParen (EndParen:xs) = ([], xs) +tillEndParen [] = ([], []) +tillEndParen (x:xs) = (x:r, re) + where (r, re) = tillEndParen xs + +-- Split on the given symbol when it's found at the top level +splitOnTop :: Symbol -> [Symbol] -> ([Symbol], [Symbol]) -- read, remaining +splitOnTop t (StartParen:xs) = ([StartParen] ++ i ++ [EndParen] ++ r, re) + where (i, is) = tillEndParen xs + (r, re) = splitOnTop t is +splitOnTop _ (EndParen:xs) = ([], xs) +splitOnTop _ [] = ([], []) +splitOnTop t (x:xs) | x == t = ([], xs) + | otherwise = (x:r, re) + where (r, re) = splitOnTop t xs + +-- Parse the given symbol list to an expression tree +parse :: [Symbol] -> Expression +parse [] = Unparsed [] +parse xs | not (null b) = parse a :*: parse b + | otherwise = parseLower xs + where (a, b) = splitOnTop Mult xs + +-- Parse the lower-precedence operators +parseLower :: [Symbol] -> Expression +parseLower (StartParen:xs) = parenthesise r re + where (r, re) = tillEndParen xs + parenthesise r (Add:xs) = parse r :+: parse xs + parenthesise r (Mult:xs) = parse r :*: parse xs + parenthesise r [] = parse r +parseLower (x:Add:y) = parseLower [x] :+: parseLower y +parseLower (x:Mult:y) = parseLower [x] :*: parseLower y +parseLower [Num x] = Literal x +parseLower [] = Literal 0 + +-- Evaluate an expression +evalExp :: Expression -> Int +evalExp (Literal x) = x +evalExp (x :+: y) = evalExp x + evalExp y +evalExp (x :*: y) = evalExp x * evalExp y +evalExp (Paren x) = evalExp x + +-- Parse the expressions in the given line seperated file. +parseFromFile :: String -> IO [Expression] +parseFromFile s = do + contents <- readFile s + return $ map (parse . toSymbols) (lines contents); + +-- runghc 18a.hs inputs/day18 +main :: IO () +main = do + args <- getArgs; + es <- parseFromFile (head args); + + let ns = map evalExp es; + printf "Answer = %d\n" (sum ns) :: IO (); + + return (); diff --git a/2020/19a.hs b/2020/19a.hs new file mode 100644 index 0000000..66c8838 --- /dev/null +++ b/2020/19a.hs @@ -0,0 +1,158 @@ +module Day19A where + +import System.Environment (getArgs) +import Text.Printf +import Data.List.Split (splitOn) +import Data.Char (isDigit) +import qualified Data.Set as S +import qualified Data.Map.Strict as M + + +-- Rules parser + +-- Types +data Rule = Literal Char | Reference Int | Concat Rule Rule | Union Rule Rule | End + deriving (Eq, Show); + +-- Convert a list of rules to the union of those rules +toUnion :: [Rule] -> Rule +toUnion [x] = x +toUnion (x:ys) = Union x (toUnion ys) + +-- Parse the given line seperated list of rules +-- Returns a map from id to rule +parseRules :: String -> M.Map Int Rule +parseRules = M.fromList . map parseRule . lines + +-- Parse the given rule, in format `0: 1 2 | 3 4` +parseRule :: String -> (Int, Rule) +parseRule s = (read idx, toUnion $ map parseNoUnion $ splitOn " | " def) + where [idx, def] = splitOn ": " s + + +-- Parse the lower precedence parts (anything that isn't a union) +parseNoUnion :: String -> Rule +parseNoUnion "" = End; +parseNoUnion (' ':xs) = parseNoUnion xs +parseNoUnion ('"':xs) = Literal (head xs) +parseNoUnion xs@(x:_) | not (null re)= Concat (Reference (read n)) (parseNoUnion (drop (length n + 1) xs)) + | otherwise = Reference (read n) + where (n:re) = splitOn " " xs + +-- Parse the input into a list of rules and list of messages +parseInput :: String -> (M.Map Int Rule, [String]) +parseInput s = (parseRules rs, lines ms) + where [rs, ms] = splitOn "\n\n" s + +-- Parse the file with the given name +parseFile :: String -> IO (M.Map Int Rule, [String]) +parseFile f = do + contents <- readFile f + return $ parseInput contents; + +-- Finite State Machines + +-- Types +-- starting states, accept states, transitions, epsilon transitions +newtype FSM k = FSM (S.Set k, S.Set k, S.Set (k, Char, k), S.Set (k, k)) + deriving (Show, Eq) + +-- Map a set of transitions +mapTransitions :: Ord a => Ord b => (a -> b) -> S.Set (a, Char, a) -> S.Set (b, Char, b) +mapTransitions f = S.map (\(s, c, t) -> (f s, c, f t)) + +-- Map a set of epsilon transitions +mapEpsilons :: Ord a => Ord b => (a -> b) -> S.Set (a, a) -> S.Set (b, b) +mapEpsilons f = S.map (\(s, t) -> (f s, f t)) + +-- Concatenate two FSMs +concatFSMs :: Ord a => Ord b => FSM a -> FSM b -> FSM (Either a b) +concatFSMs (FSM (ssa, fsa, tsa, esa)) (FSM (ssb, fsb, tsb, esb)) = FSM (S.map Left ssa, S.map Right fsb, ts', es') + where ts' = mapTransitions Left tsa `S.union` mapTransitions Right tsb + es' = mapEpsilons Left esa `S.union` mapEpsilons Right esb + `S.union` S.fromList [(Left s, Right d) | s <- S.toList fsa, d <- S.toList ssb] + +-- Take the union of two FSMs +unionFSMs :: Ord a => Ord b => FSM a -> FSM b -> FSM (Either a b) +unionFSMs (FSM (ssa, fsa, tsa, esa)) (FSM (ssb, fsb, tsb, esb)) = FSM (ss', fs', ts', es') + where ss' = S.map Left ssa `S.union` S.map Right ssb + fs' = S.map Left fsa `S.union` S.map Right fsb + ts' = mapTransitions Left tsa `S.union` mapTransitions Right tsb + es' = mapEpsilons Left esa `S.union` mapEpsilons Right esb + +-- Add a key to the given list. Used when generating lookup tables for new states +addKey :: Eq a => Ord a => a -> [(a, Int)] -> [(a, Int)] +addKey s [] = [(s, 1)] +addKey s ks = ks ++ as + where as = case lookup s ks of + Just _ -> [] + Nothing -> [(s, (snd . last) ks + 1)] + +-- Get all states in the given FSM +allStates :: Ord a => FSM a -> S.Set a +allStates (FSM (ss, fs, ts, es)) = ss `S.union` fs + `S.union` S.map fst3 ts `S.union` S.map lst3 ts + `S.union` S.map fst es `S.union` S.map snd es + +-- Convert a FSM of any type to an int based one. +normalizeStates :: Eq a => Ord a => FSM a -> FSM Int +normalizeStates fsm@(FSM (ss, fs, ts, es)) = FSM (ss', fs', ts', es') + where keymap = S.foldr addKey [] (allStates fsm) + ss' = S.map (unwrap . (`lookup` keymap)) ss + fs' = S.map (unwrap . (`lookup` keymap)) fs + ts' = mapTransitions (unwrap . (`lookup` keymap)) ts + es' = mapEpsilons (unwrap . (`lookup` keymap)) es + +-- Convert a rule to a FSM +toFSM :: M.Map Int Rule -> Rule -> FSM Int +toFSM m End = FSM (S.singleton 1, S.singleton 1, S.empty, S.empty) +toFSM m (Literal x) = FSM (S.singleton 1, S.singleton 2, S.singleton (1, x, 2), S.empty) +toFSM m (Reference n) = toFSM m r + where (Just r) = M.lookup n m +toFSM m (Union a b) = normalizeStates $ unionFSMs (toFSM m a) (toFSM m b) +toFSM m (Concat a b) = normalizeStates $ concatFSMs (toFSM m a) (toFSM m b) + +-- Get the new states after performing the given transition +performTransition :: Ord a => S.Set (a, Char, a) -> S.Set a -> Char -> S.Set a +performTransition ts ss t = S.fromList [d | (s, c, d) <- S.toList ts, c == t, s `S.member` ss] + +-- Get the new states including those that come from epsilon transitions +performEpsilons :: Ord a => S.Set (a, a) -> S.Set a -> S.Set a +performEpsilons es ss = S.fromList [d | (s, d) <- S.toList es, s `S.member` ss] `S.union` ss + +-- Run all given transitions from the given starting state. +runFSM :: Ord a => FSM a -> String -> S.Set a -> S.Set a +runFSM _ "" ss = ss +runFSM fsm@(FSM (_, _, ts, es)) (x:xs) ss = runFSM fsm xs $ performEpsilons es $ performTransition ts ss x + +-- Determine if the given FSM will accept the given string +acceptedBy :: Ord a => FSM a -> String -> Bool +acceptedBy fsm@(FSM (ss, fs, _, _)) xs = any (`S.member` fs) $ runFSM fsm xs ss + +-- runghc --ghc-arg='-package split' 19a.hs inputs/day19 +main :: IO () +main = do + args <- getArgs; + (rs, ms) <- parseFile (head args); + let fsm = toFSM rs (unwrap (M.lookup 0 rs)); + + let ps = filter (acceptedBy fsm) ms; + + printf "Answer = %d\n" (length ps) :: IO (); + + return (); + +-- Helpers + +-- Unwrap a maybe value, throwing an error if wrong +unwrap :: Maybe a -> a +unwrap (Just x) = x +unwrap _ = error "unwrap on null value" + +-- First of a 3tuple +fst3 :: (a, b, c) -> a +fst3 (a, _, _) = a + +-- Last of a 3 tuple +lst3 :: (a, b, c) -> c +lst3 (_, _, c) = c \ No newline at end of file diff --git a/2020/19b.hs b/2020/19b.hs new file mode 100644 index 0000000..d1fa763 --- /dev/null +++ b/2020/19b.hs @@ -0,0 +1,95 @@ +module Day19B where + +import System.Environment (getArgs) +import Text.Printf +import Data.List.Split (splitOn) +import Data.Char (isDigit) +import qualified Data.Set as S +import qualified Data.Map.Strict as M + + +-- Rules parser + +-- Types +data Rule = Literal Char | Reference Int | Concat Rule Rule | Union Rule Rule | End + deriving (Eq, Show); + +-- Convert a list of rules to the union of those rules +toUnion :: [Rule] -> Rule +toUnion [x] = x +toUnion (x:ys) = Union x (toUnion ys) + +-- Parse the given line seperated list of rules +-- Returns a map from id to rule +parseRules :: String -> M.Map Int Rule +parseRules = M.fromList . map parseRule . lines + +-- Parse the given rule, in format `0: 1 2 | 3 4` +parseRule :: String -> (Int, Rule) +parseRule s = (read idx, toUnion $ map parseNoUnion $ splitOn " | " def) + where [idx, def] = splitOn ": " s + + +-- Parse the lower precedence parts (anything that isn't a union) +parseNoUnion :: String -> Rule +parseNoUnion "" = End; +parseNoUnion (' ':xs) = parseNoUnion xs +parseNoUnion ('"':xs) = Literal (head xs) +parseNoUnion xs@(x:_) | not (null re)= Concat (Reference (read n)) (parseNoUnion (drop (length n + 1) xs)) + | otherwise = Reference (read n) + where (n:re) = splitOn " " xs + +-- Parse the input into a list of rules and list of messages +parseInput :: String -> (M.Map Int Rule, [String]) +parseInput s = (parseRules rs, lines ms) + where [rs, ms] = splitOn "\n\n" s + +-- Parse the file with the given name +parseFile :: String -> IO (M.Map Int Rule, [String]) +parseFile f = do + contents <- readFile f + return $ parseInput contents; + +-- Parser + +-- Returns remaining if valid +attemptConsume :: M.Map Int Rule -> Rule -> String -> [Maybe String] +attemptConsume m End xs = [Just xs] +attemptConsume m r [] = [Nothing] +attemptConsume m (Literal t) (x:xs) | t == x = [Just xs] + | otherwise = [Nothing] +attemptConsume m (Concat a b) xs = concat [attemptConsume m b re | Just re <- attemptConsume m a xs] +attemptConsume m (Union a b) xs = attemptConsume m b xs ++ attemptConsume m a xs +attemptConsume m (Reference n) xs = attemptConsume m (unwrap $ M.lookup n m) xs + + +matchedBy :: M.Map Int Rule -> String -> Bool +matchedBy m s = or [x == "" | Just x <- ps] + where ps = attemptConsume m (unwrap $ M.lookup 0 m) s + +-- runghc --ghc-arg='-package split' 19b.hs inputs/day19 +main :: IO () +main = do + args <- getArgs; + (rs, ms) <- parseFile (head args); + + let ps = filter (matchedBy rs) ms; + + print (length ps); + + return (); + +-- Helpers + +-- Unwrap a maybe value, throwing an error if wrong +unwrap :: Maybe a -> a +unwrap (Just x) = x +unwrap _ = error "unwrap on null value" + +-- First of a 3tuple +fst3 :: (a, b, c) -> a +fst3 (a, _, _) = a + +-- Last of a 3 tuple +lst3 :: (a, b, c) -> c +lst3 (_, _, c) = c \ No newline at end of file diff --git a/2020/1a.hs b/2020/1a.hs new file mode 100644 index 0000000..adac6bc --- /dev/null +++ b/2020/1a.hs @@ -0,0 +1,28 @@ +module Day1 where + +import Text.Read (readMaybe) +import System.Environment (getArgs) + +-- Cartesian product of a set with itself where ordering doesn't matter +cp :: [a] -> [(a, a)] +cp [] = [] +cp (x:xs) = [(x, y) | y <- xs] ++ cp xs + +getSomes :: [Maybe a] -> [a] +getSomes xs = [x | Just x <- xs] + +sumEq :: Int -> [Int] -> [(Int, Int)] +sumEq target = filter (\(x,y) -> x + y == target) . cp + +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let nums = getSomes $ map readMaybe l :: [Int] + + let (a,b) = head $ sumEq 2020 nums; + let r = a * b; + + putStrLn $ show a ++ " + " ++ show b ++ " = 2020"; + putStrLn $ show a ++ " * " ++ show b ++ " = " ++ show r; \ No newline at end of file diff --git a/2020/1b.hs b/2020/1b.hs new file mode 100644 index 0000000..6cebb47 --- /dev/null +++ b/2020/1b.hs @@ -0,0 +1,28 @@ +module Day1 where + +import Text.Read (readMaybe) +import System.Environment (getArgs) + +-- All 3-tuples you can take from a list (where ordering doesn't matter) +cp3 :: [a] -> [(a, a, a)] +cp3 [] = [] +cp3 (x:xs) = [(x, y, z) | y <- xs, z <- xs] ++ cp3 xs + +getSomes :: [Maybe a] -> [a] +getSomes xs = [x | Just x <- xs] + +sumEq :: Int -> [Int] -> [(Int, Int, Int)] +sumEq target = filter (\(x,y,z) -> x + y + z == target) . cp3 + +main :: IO () +main = do + args <- getArgs; + content <- readFile $ head args; + let l = lines content; + let nums = getSomes $ map readMaybe l :: [Int] + + let (a,b,c) = head $ sumEq 2020 nums; + let r = a * b * c; + + putStrLn $ show a ++ " + " ++ show b ++ " + " ++ show c ++ " = 2020"; + putStrLn $ show a ++ " * " ++ show b ++ " * " ++ show c ++ " = " ++ show r; \ No newline at end of file diff --git a/2020/20a.hs b/2020/20a.hs new file mode 100644 index 0000000..cb91d54 --- /dev/null +++ b/2020/20a.hs @@ -0,0 +1,92 @@ +{-# LANGUAGE TupleSections #-} + +module Day20A where + +import System.Environment (getArgs) +import Data.List.Split (splitOn) +import Data.List.Extra (groupOn) +import Data.List (transpose, sort, sortOn) +import Data.Bool (bool) + +-- Types + +-- (y, x) +type Tile = [[Bool]]; +type TileWithId = (Int, Tile); +type Coord = (Int, Int); + +-- Flip Vertical, Rotations (0-3) +data Orientation = Transform Bool Int; + +orients :: [Orientation] +orients = [Transform f r | f <- [True, False], r <- [0..3]] + +-- Tile manipulation +rotate :: Tile -> Tile +rotate = transpose . reverse + +rotateN :: Int -> Tile -> Tile +rotateN 0 t = t +rotateN n t = rotateN (n - 1) (rotate t) + +reorient :: Orientation -> Tile -> Tile +reorient (Transform False n) = rotateN n +reorient (Transform True n) = rotateN n . reverse + +-- Edge manipulation + +-- A number uniquely representing this edge +edgeIdentifier :: [Bool] -> Int +edgeIdentifier = foldl (\n s -> n * 2 + bool 0 1 s) 0 + +-- All edges that this tile can have +-- Returns list of edge ids +allEdges :: Tile -> [Int] +allEdges t = map (edgeIdentifier . head . (`reorient` t)) orients + +getCornerIDs :: [TileWithId] -> [Int] +getCornerIDs ts = map (fst . head) $ filter ((== 4) . length) tilesWithUniqEdges + where edges = concatMap (\(i, t) -> map (i,) $ allEdges t) ts + uniqEdges = map head $ filter ((== 1) . length) $ groupOn snd $ sortOn snd edges + tilesWithUniqEdges = groupOn fst $ sort uniqEdges + +-- runghc --ghc-arg='-package split' --ghc-arg='-package extra' 20a.hs inputs/day20 +main :: IO () +main = do + args <- getArgs; + ts <- parseFile (head args); + + print $ product $ getCornerIDs ts; + return (); + +-- Utilities +maybeNoDefault :: (a -> b) -> Maybe a -> Maybe b +maybeNoDefault _ Nothing = Nothing +maybeNoDefault f (Just x) = Just (f x) + +unwrap :: Maybe a -> a +unwrap (Just x) = x +unwrap _ = error "unwrap on null value" + +-- Get all possible combinations by picking one element from each of the sublists +oneFromEach :: [[a]] -> [[a]] +oneFromEach [] = [[]] +oneFromEach (xs:xss) = concat $ [ map (x : ) (oneFromEach xss) | x <- xs] + +-- Parsing +parseTileDef :: String -> (Int, Tile) +parseTileDef s = (read n, map readLine ls) + where (f:ls) = lines s + n = drop 5 $ take (length f - 1) f + readLine [] = [] + readLine ('.':xs) = False : readLine xs + readLine ('#':xs) = True : readLine xs + readLine _ = error "invalid input" + +parseInput :: String -> [(Int, Tile)] +parseInput = map parseTileDef . splitOn "\n\n" + +parseFile :: String -> IO [(Int, Tile)] +parseFile f = do + c <- readFile f + return $ parseInput c; \ No newline at end of file diff --git a/2020/20b.hs b/2020/20b.hs new file mode 100644 index 0000000..7bce210 --- /dev/null +++ b/2020/20b.hs @@ -0,0 +1,306 @@ +{-# LANGUAGE TupleSections #-} + +module Day20B where + +import Data.Maybe (isNothing, isJust) +import Data.List (transpose, sortOn, nub) +import Data.List.Split (splitOn) +import System.Environment (getArgs) +import qualified Data.Map.Strict as M +import Text.Printf (printf) +import Debug.Trace (trace) + +-- Types + +-- (y, x) +type Tile = [[Bool]]; +type TileWithId = (Int, Tile); +type Coord = (Int, Int); +type Grid = M.Map Coord TileWithId; + +-- Flip Vertical, Rotations (0-3) +data Orientation = Transform Bool Int; + +orients :: [Orientation] +orients = [Transform f r | f <- [True, False], r <- [0..3]] + +-- top, left, right, bottom +data Side = T | L | R | B + deriving (Show, Eq); + +sides :: [Side] +sides = [T, L, R, B] + +complement :: Side -> Side +complement T = B +complement B = T +complement L = R +complement R = L + +-- Tile manipulation +rotate :: Tile -> Tile +rotate = transpose . reverse + +rotateN :: Int -> Tile -> Tile +rotateN 0 t = t +rotateN n t = rotateN (n - 1) (rotate t) + +reorient :: Orientation -> Tile -> Tile +reorient (Transform False n) = rotateN n +reorient (Transform True n) = rotateN n . reverse + +permutations :: Tile -> [Tile] +permutations t = [reorient o t | o <- orients] + +--- Side / Edge manipulation +-- Get the border on the given side of the tile +border :: Side -> Tile -> [Bool] +border T t = head t +border B t = last t +border L t = map head t +border R t = map last t + +-- Get all borders of a given tile +borders :: Tile -> [[Bool]] +borders t = map (`border` t) sides + +-- Get the coord at the given side of that coord +getSideCoord :: Coord -> Side -> Coord +getSideCoord (x, y) T = (x, y - 1) +getSideCoord (x, y) B = (x, y + 1) +getSideCoord (x, y) L = (x - 1, y) +getSideCoord (x, y) R = (x + 1, y) + +-- Return true if y is on the s of x +checkBorder :: Tile -> Tile -> Side -> Bool +checkBorder x y s = border (complement s) y == border s x + +-- y is on the s of x (if it exists) +attemptCheckBorder :: Tile -> Maybe Tile -> Side -> Bool +attemptCheckBorder _ Nothing _ = True +attemptCheckBorder x (Just y) s = checkBorder x y s + +--- Grid manipulations + +-- Get the bounds of the grid +-- Returns (low, high) +squareBounds :: M.Map Coord a -> (Coord, Coord) +squareBounds g = (M.foldrWithKey (compCoord min) (0, 0) g, + M.foldrWithKey (compCoord max) (0, 0) g) + where compCoord f (x', y') _ (x, y) = (f x' x, f y' y) + +-- Get the corners of the grid +getCorners :: Grid -> [Coord] +getCorners g = [(lx, ly), (lx, hy), (hx, ly), (hx, hy)] + where ((lx, ly), (hx, hy)) = squareBounds g + +-- Returns true if the grid is rectangular +isRect :: Grid -> Bool +isRect g = all (isJust . (g M.!?)) (getCorners g) + +-- Return true if given side is unfilled for coord of grid +sideIsUnfilled :: Side -> Grid -> Coord -> Bool +sideIsUnfilled s g c = isNothing $ M.lookup (getSideCoord c s) g + +--- Checking and solving +fitsSpace :: Grid -> Coord -> Tile -> Bool +fitsSpace g c t = and [attemptCheckBorder t (maybeNoDefault snd $ M.lookup (getSideCoord c s) g) s | s <- sides] + +-- Returns tiles that could be on the given side of the given coord +possibleNeighbours :: [TileWithId] -> Grid -> Coord -> Side -> [TileWithId] +possibleNeighbours ts g c s = filter (fitsSpace g c' . snd) ts + where c' = getSideCoord c s + +-- Check if the entire grid is valid +isValid :: Grid -> Bool +isValid m = M.foldrWithKey checkSquare True m + where checkSquare l (_, t) v = v && fitsSpace m l t + +-- Add to the given side of each coord, returning all possible ways to do so and the remaining tiles from each. +fillSideOnce :: Side -> [TileWithId] -> Grid -> [([TileWithId], Grid)] +fillSideOnce _ [] m = [([], m)] +fillSideOnce s xs m | null mutations = [(xs, m)] + | otherwise = mutatedMaps + where mutations :: [(Coord, [TileWithId])] -- list of squares to mutate, and possibilities + mutations = filter (not . null . snd) $ map getNextFill $ M.toList m + getNextFill :: (Coord, TileWithId) -> (Coord, [TileWithId]) + getNextFill (c, _) | sideIsUnfilled s m c = (getSideCoord c s, possibleNeighbours xs m c s) + | otherwise = (getSideCoord c s, []) + attempts :: [[(Coord, TileWithId)]] -- All the possible lists of mutations we can make + attempts = filter (allUnique . map (fst . snd)) $ map (zip $ map fst mutations) (oneFromEach $ map snd mutations) + mutatedMaps :: [([TileWithId], Grid)] -- new remaining tiles, new grid + mutatedMaps = map doAllMutations attempts + doAllMutations :: [(Coord, TileWithId)] -> ([TileWithId], Grid) + doAllMutations = foldr mutateMap (xs, m) + mutateMap :: (Coord, TileWithId) -> ([TileWithId], Grid) -> ([TileWithId], Grid) + mutateMap (newC, (newId, newTile)) (re, grid) = (filter ((/= newId) . fst) re, M.insert newC (newId, newTile) grid) + +fillRect :: [([TileWithId], Grid)] -> [([TileWithId], Grid)] +fillRect xs | not (null fullSols) = fullSols + | otherwise = fillRect $ filter (not . (`elem` xs)) $ foldr (\s ps -> concatMap (uncurry $ fillSideOnce s) ps) xs sides + where fullSols = filter (null . fst) xs + +-- Pattern matching +type Pattern = [Coord] -- List of coord offsets that must be set. + +data Square = Empty | Filled | Highlight + deriving (Eq, Show); +type PlainGrid = M.Map Coord [[Square]] + +toSquare :: Bool -> Square +toSquare True = Filled +toSquare False = Empty + +monsterPattern :: Pattern +monsterPattern = [ + (0, 1), + (1, 2), + (4, 2), + (5, 1), + (6, 1), + (7, 2), + (10, 2), + (11, 1), + (12, 1), + (13, 2), + (16, 2), + (17, 1), + (18, 0), + (18, 1), + (19, 1) + ] + +patternAt :: Pattern -> Coord -> [Coord] +patternAt p c = map (addCoord c) p + +-- Get the value at a specific coord +getSpecificCoord :: PlainGrid -> Coord -> Maybe Square +getSpecificCoord g (x, y) = getFromTile $ g M.!? (x `div` tileSize, y `div` tileSize) + where tileSize = length $ g M.! (0, 0) + getFromTile Nothing = Nothing + getFromTile (Just t) = Just $ t!!(y `mod` tileSize)!!(x `mod` tileSize) + +-- Set the value at a specific coord +setSpecificCoord :: PlainGrid -> Coord -> Square -> PlainGrid +setSpecificCoord g (x, y) b = M.insert (tx, ty) t' g + where tileSize = length $ g M.! (0, 0) + (tx, ty) = (x `div` tileSize, y `div` tileSize) + (sx, sy) = (x `mod` tileSize, y `mod` tileSize) + t = g M.! (tx, ty) + r = t!!sy + r' = take sx r ++ [b] ++ drop (sx + 1) r + t' = take sy t ++ [r'] ++ drop (sy + 1) t + +-- Returns true if the pattern is true at the given coord +patternTrueAt :: PlainGrid -> Coord -> Pattern -> Bool +patternTrueAt g b = all (areSet . addCoord b) + where areSet c = case getSpecificCoord g c of + Just Filled -> True + Just Highlight -> True + _ -> False + +-- Strip all borders from all tiles +stripBorders :: Grid -> PlainGrid +stripBorders = M.map strip + where strip (_, t) = map (map toSquare . init . tail) $ init $ tail t + +-- Find all occurences of a pattern +findAllOccs :: PlainGrid -> Pattern -> [Coord] +findAllOccs g p = trace (show (lx, hy, hx, hy)) $ filter (\c -> patternTrueAt g c p) $ [(x, y) | x <- [lx..hx], y <- [ly..hy]] + where ((ltx, lty), (htx, hty)) = squareBounds g + tileSize = length $ head $ g M.! (0, 0) + (lx, ly) = (ltx * tileSize, lty * tileSize) + (hx, hy) = ((htx + 1) * tileSize, (hty + 1) * tileSize) + +-- runghc --ghc-arg='-package split' --ghc-arg='-package extra' 20a.hs inputs/day20 +main :: IO () +main = do + args <- getArgs; + ((si, st):ts) <- parseFile (head args); + + -- Expand the tiles to include all orientations + let ts' = concatMap (\(i, t) -> map (i,) $ permutations t) ts; + printf "%d possible tiles\n" (length ts'); + + -- Get our starting states + let starting = [(ts', M.singleton (0, 0) (si, t')) | t' <- permutations st]; + + -- Get the first solution that uses all tiles + let imgs = map snd $ filter (null . fst) $ fillRect starting; + + printf "Found %d images\n" (length imgs); + + -- Remove border tiles + let imgs' = map stripBorders imgs; + + -- Find the monsters + let ((df, ms):_) = sortOn ((0 -) . length . snd) $ map (\img -> (img, findAllOccs img monsterPattern)) imgs'; + + printf "Found, at most, %d monsters\n" (length ms); + + -- Delete all tiles part of a monster + let tiles = concatMap (patternAt monsterPattern) ms; + let img' = foldr (\c i -> setSpecificCoord i c Highlight) df tiles; + + putStr $ prettyPrint img'; + + let answer = length $ filter (== Filled) $ concatMap (concat . snd) $ M.toList img'; + printf "Tiles remaining = %d\n" answer; + return (); + +-- Utilities +maybeNoDefault :: (a -> b) -> Maybe a -> Maybe b +maybeNoDefault _ Nothing = Nothing +maybeNoDefault f (Just x) = Just (f x) + +unwrap :: Maybe a -> a +unwrap (Just x) = x +unwrap _ = error "unwrap on null value" + +addCoord :: Coord -> Coord -> Coord +addCoord (x, y) (x', y') = (x + x', y + y') + +-- Get all possible combinations by picking one element from each of the sublists +oneFromEach :: [[a]] -> [[a]] +oneFromEach [] = [[]] +oneFromEach (xs:xss) = concat $ [ map (x : ) (oneFromEach xss) | x <- xs] + +allUnique :: Eq a => [a] -> Bool +allUnique xs = length (nub xs) == length xs + +-- Pretty printing +prettyPrintIds :: PlainGrid -> String +prettyPrintIds grid = unlines [concatMap show (getRow y) | y <- [lyc..hyc]] + where ((_, lyc), (_, hyc)) = squareBounds grid + getRow y = map fst $ M.toAscList $ M.filterWithKey (\(_, y') _ -> y' == y) grid + +prettyPrint :: PlainGrid -> String +prettyPrint grid = concat [unlines $ printTiles (getRow y) | y <- [lyc..hyc]] + where tileSize = length (grid M.! (0, 0)) + ((_, lyc), (_, hyc)) = squareBounds grid + getRow y = map snd $ M.toAscList $ M.filterWithKey (\(_, y') _ -> y' == y) grid + printTiles ts = [concatMap (rowToStr . (!!y)) ts | y <- [0..tileSize - 1]] + +rowToStr :: [Square] -> String +rowToStr [] = "" +rowToStr (Filled:xs) = '#' : rowToStr xs +rowToStr (Empty:xs) = '.' : rowToStr xs +rowToStr (Highlight:xs) = 'O' : rowToStr xs + +-- Parsing +parseTileDef :: String -> (Int, Tile) +parseTileDef s = (read n, map readLine ls) + where (f:ls) = lines s + n = drop 5 $ take (length f - 1) f + readLine [] = [] + readLine ('.':xs) = False : readLine xs + readLine ('#':xs) = True : readLine xs + readLine _ = error "invalid input" + +parseInput :: String -> [(Int, Tile)] +parseInput = map parseTileDef . splitOn "\n\n" + +parseFile :: String -> IO [(Int, Tile)] +parseFile f = do + c <- readFile f + return $ parseInput c; \ No newline at end of file diff --git a/2020/21a.hs b/2020/21a.hs new file mode 100644 index 0000000..d7006ac --- /dev/null +++ b/2020/21a.hs @@ -0,0 +1,60 @@ +module Day21A where + +import System.Environment (getArgs) +import Data.List (nub) +import Data.List.Split (splitOn) + +-- Types +type Food = ([String], [String]) + +-- Parse a single line +parseFood :: String -> Food +parseFood x = (splitOn " " ings, splitOn ", " algsNParen) + where [ings, algs] = splitOn " (contains " x + algsNParen = take (length algs - 1) algs + +-- Parse a whole file +parseFoods :: String -> [Food] +parseFoods = map parseFood . lines + +parseFile :: String -> IO [Food] +parseFile f = do + c <- readFile f + return (parseFoods c); + +-- Returns true if x is a sublist of y. +sublist :: Eq a => [a] -> [a] -> Bool +sublist xs l = foldr (\x a -> a && x `elem` l) True xs + +-- Get a list of foods with the given allergen +withAls :: [Food] -> String -> [Food] +withAls fs x = filter ((x `elem`) . snd) fs + +-- Get a list of foods with the given ing +withIng :: [Food] -> String -> [Food] +withIng fs x = filter ((x `elem`) . fst) fs + +-- Get all ingredients in all the given foods +allIngs :: [Food] -> [String] +allIngs fs = nub $ concatMap fst fs + +-- Get all allergens in all the given foods +allAls :: [Food] -> [String] +allAls fs = nub $ concatMap snd fs + +-- Get a list of foods that are in all foods with the given allergen +getSynonymous :: [Food] -> String -> [String] +getSynonymous fs x = filter ((xs `sublist`) . withIng fs) (allIngs fs) + where xs = withAls fs x + + +-- Usage: runghc --ghc-arg="-package split" 21a.hs inputs/day21 +main :: IO () +main = do + args <- getArgs; + fs <- parseFile $ head args; + let syn = nub $ concatMap (getSynonymous fs) (allAls fs); + let notSyn = filter (not . (`elem` syn)) (allIngs fs); + + print $ sum $ map (length . withIng fs) notSyn; + return (); \ No newline at end of file diff --git a/2020/21b.hs b/2020/21b.hs new file mode 100644 index 0000000..3620d3d --- /dev/null +++ b/2020/21b.hs @@ -0,0 +1,74 @@ +module Day21B where + +import System.Environment (getArgs) +import Data.List (nub, sort) +import Data.List.Split (splitOn) + +-- Types +type Food = ([String], [String]) + +-- Parse a single line +parseFood :: String -> Food +parseFood x = (splitOn " " ings, splitOn ", " algsNParen) + where [ings, algs] = splitOn " (contains " x + algsNParen = take (length algs - 1) algs + +-- Parse a whole file +parseFoods :: String -> [Food] +parseFoods = map parseFood . lines + +parseFile :: String -> IO [Food] +parseFile f = do + c <- readFile f + return (parseFoods c); + +-- Returns true if x is a sublist of y. +sublist :: Eq a => [a] -> [a] -> Bool +sublist xs l = foldr (\x a -> a && x `elem` l) True xs + +-- Get a list of foods with the given allergen +withAls :: [Food] -> String -> [Food] +withAls fs x = filter ((x `elem`) . snd) fs + +-- Get a list of foods with the given ing +withIng :: [Food] -> String -> [Food] +withIng fs x = filter ((x `elem`) . fst) fs + +-- Get all ingredients in all the given foods +allIngs :: [Food] -> [String] +allIngs fs = nub $ concatMap fst fs + +-- Get all allergens in all the given foods +allAls :: [Food] -> [String] +allAls fs = nub $ concatMap snd fs + +-- Get a list of foods that are in all foods with the given allergen +getSynonymous :: [Food] -> String -> [String] +getSynonymous fs x = filter ((xs `sublist`) . withIng fs) (allIngs fs) + where xs = withAls fs x + +-- Takes a list of lists of possibilities, and selects one from each such that there are no duplicates +selectOne :: Eq a => [[a]] -> [a] +selectOne xs | all ((== 1) . length) ps = map head ps + | ps == xs = selectOne $ ([head $ head undecided]:tail undecided) ++ singletons + | otherwise = selectOne ps -- Recurse until every list of possibilities is singleton + where singletons = filter ((== 1) . length) xs + undecided = filter ((> 1) . length) xs + reqs = map head singletons -- Numbers that are already taken + ps = map (\x -> if length x > 1 then deleteReqs x else x) xs -- Possibilities assuming this one is taken + deleteReqs (n:ns) | n `elem` reqs = ns + | otherwise = n : deleteReqs ns + deleteReqs [] = [] + +-- Usage: runghc --ghc-arg="-package split" 21b.hs inputs/day21 +main :: IO () +main = do + args <- getArgs; + fs <- parseFile $ head args; + let as = sort $ allAls fs; + let ps = map (getSynonymous fs) as; + let als = zip as (selectOne ps) + + print als; + putStrLn $ init $ concatMap ((++ ",") . snd) als; + return (); \ No newline at end of file diff --git a/2020/22a.hs b/2020/22a.hs new file mode 100644 index 0000000..95ae117 --- /dev/null +++ b/2020/22a.hs @@ -0,0 +1,54 @@ +module Day22A where + +import System.Environment (getArgs) +import Text.Printf +import Data.List.Split (splitOn) + +-- Types +-- Top = First +type Deck = [Int]; + +-- (P1, P2) +type State = (Deck, Deck); + +-- Parsing + +parseDeck :: String -> Deck +parseDeck = map read . tail . lines + +-- Parse the input +parseInput :: String -> State +parseInput xs = (p1, p2) + where [p1, p2] = map parseDeck $ splitOn "\n\n" xs + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO State +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +takeTurn :: State -> State +takeTurn (c1:p1, c2:p2) | c1 > c2 = (p1 ++ [c1, c2], p2) + | otherwise = (p1, p2 ++ [c2, c1]) +takeTurn ([], _) = error "game is over!" +takeTurn (_, []) = error "game is over!" + +getWinner :: State -> Deck +getWinner (p1, []) = p1 +getWinner ([], p2) = p2 +getWinner s = getWinner $ takeTurn s + +getScore :: Deck -> Int +getScore d = sum $ zipWith (*) (reverse [1..length d]) d + +-- runghc --ghc-arg='-package split' 22a.hs inputs/day22 +main :: IO () +main = do + args <- getArgs; + s <- parseFromFile (head args); + + let winnerScore = getScore $ getWinner s; + printf "Answer = %d\n" winnerScore :: IO (); + + return (); diff --git a/2020/22b.hs b/2020/22b.hs new file mode 100644 index 0000000..167e3ba --- /dev/null +++ b/2020/22b.hs @@ -0,0 +1,71 @@ +module Day22B where + +import System.Environment (getArgs) +import Text.Printf +import Data.List.Split (splitOn) + +-- Types + +data Player = P1 | P2; + +-- Top = First +type Deck = [Int]; + +-- (P1, P2) +type State = (Deck, Deck); + +-- Parsing + +parseDeck :: String -> Deck +parseDeck = map read . tail . lines + +-- Parse the input +parseInput :: String -> State +parseInput xs = (p1, p2) + where [p1, p2] = map parseDeck $ splitOn "\n\n" xs + +-- Parse a file given the path +-- Returns list of instructions +parseFromFile :: String -> IO State +parseFromFile s = do + contents <- readFile s; + return $ parseInput contents; + +takeTurn :: State -> [State] -> (State, [State]) +takeTurn s@(c1:p1, c2:p2) h | s `elem` h = ((p1 ++ p2 ++ [c1, c2], []), h) + | length p1 >= c1 + && length p2 >= c2 = case getPlayerWinner ((take c1 p1, take c2 p2), []) of + P1 -> p1Win + P2 -> p2Win + | c1 > c2 = p1Win + | otherwise = p2Win + where p1Win = ((p1 ++ [c1, c2], p2), h') + p2Win = ((p1, p2 ++ [c2, c1]), h') + h' = s : h + +takeTurn ([], _) _ = error "game is over!" +takeTurn (_, []) _ = error "game is over!" + +getPlayerWinner :: (State, [State]) -> Player +getPlayerWinner ((_, []), _) = P1 +getPlayerWinner (([], _), _) = P2 +getPlayerWinner (s, h) = getPlayerWinner $ takeTurn s h + +getWinner :: (State, [State]) -> Deck +getWinner ((p1, []), _) = p1 +getWinner (([], p2), _) = p2 +getWinner (s, h) = getWinner $ takeTurn s h + +getScore :: Deck -> Int +getScore d = sum $ zipWith (*) (reverse [1..length d]) d + +-- runghc --ghc-arg='-package split' 22a.hs inputs/day22 +main :: IO () +main = do + args <- getArgs; + s <- parseFromFile (head args); + + let winnerScore = getScore $ getWinner (s, []); + printf "Answer = %d\n" winnerScore :: IO (); + + return (); diff --git a/2020/23a.hs b/2020/23a.hs new file mode 100644 index 0000000..ef515d4 --- /dev/null +++ b/2020/23a.hs @@ -0,0 +1,54 @@ +module Day23A where + +import System.Environment (getArgs) +import Data.List (elemIndex) + +-- Types +type State = [Int]; + +-- Parsing input +parseLine :: String -> [Int] +parseLine = map (read . (: "")) + +parseFile :: String -> IO [Int] +parseFile f = do + c <- readFile f + return (parseLine c); + +-- Get the index of the destination cup, given (n - 1) +getDestIdx :: Int -> [Int] -> Int +getDestIdx x is | x `elem` is = unwrap $ elemIndex x is + | x < minimum is = unwrap $ elemIndex (maximum is) is + | otherwise = getDestIdx (x - 1) is + +-- n, current state, assumes current cup is cup 0 +performMoves :: Int -> State -> State +performMoves 0 s = s +performMoves n (c:cs) = performMoves (n - 1) s'' + where re = c : drop 3 cs + as = take 3 cs + dI = getDestIdx (c - 1) re + s' = take (dI + 1) re ++ as ++ drop (dI + 1) re + s'' = moveToFront s' (head $ tail re) + +-- Usage: runghc 23a.hs inputs/day23 +main :: IO () +main = do + args <- getArgs; + circ <- parseFile $ head args; + + let final = performMoves 100 circ; + putStrLn $ tail $ concatMap show (moveToFront final 1); + return (); + +-- Utilities +unwrap :: Maybe a -> a +unwrap (Just x) = x +unwrap _ = error "unwrap on null value" + + +-- Move the given item to the front of the list, maintaining order. +moveToFront :: Eq a => [a] -> a -> [a] +moveToFront [] _ = [] +moveToFront (x:xs) t | t == x = x : xs + | otherwise = moveToFront (xs ++ [x]) t diff --git a/2020/23b.hs b/2020/23b.hs new file mode 100644 index 0000000..926ce5e --- /dev/null +++ b/2020/23b.hs @@ -0,0 +1,82 @@ +module Main where + +import System.Environment (getArgs) +import Text.Printf (printf) +import qualified Data.IntMap as M; +import Debug.Trace (trace) +import Data.List (foldl') + +-- Types +-- Stores the next cup for each cup value. +type State = M.IntMap Int; + +-- Parsing input +parseLine :: String -> [Int] +parseLine = map (read . (: "")) + +parseFile :: String -> IO [Int] +parseFile f = do + c <- readFile f + return (parseLine c); + +-- The maximum value cup to use +maxCup :: Int +maxCup = 1000000 + +getNextCup :: State -> Int -> Int; +getNextCup m n = M.findWithDefault (n + 1) n m + +-- Get the label of destination cup, given the current cup and the cups set aside +getDestCup :: Int -> [Int] -> Int +getDestCup x r | x <= 1 = last [i | i <- [maxCup - 4..maxCup], i `notElem` r] + | x - 1 `notElem` r = x - 1 + | otherwise = getDestCup (x - 1) r + +-- Returns new state and whole chain of removed ones +takeN :: State -> Int -> Int -> (State, [Int]) +takeN s i n = (M.insert i after s, finalIn) + where (_:finalIn) = foldr (\_ ks -> ks ++ [s `getNextCup` last ks]) [i] [1..n] + after = s `getNextCup` last finalIn + + +-- Perform a single move on the given state with the given current cup +-- Returns the new state and next current cup +performMove :: State -> Int -> (State, Int) +performMove m c = (m', (m' `getNextCup` c)) + where (re, chain) = takeN m c 3 + d = getDestCup c chain + m' = M.fromList [(d, head chain), (last chain, m `getNextCup` d)] `M.union` re + +-- Repeatedly performMove. This uses foldl' to prevent stack overflow +performMoves :: State -> Int -> Int -> State +performMoves s c n = fst $ foldl' (\(s', c') n -> performMove s' c') (s, c) [1..n] + +constructState :: [Int] -> State +constructState xs = M.fromList [(last xs, maximum xs + 1), (maxCup, head xs)] `M.union` inner xs + where inner [] = M.empty + inner [x] = M.empty + inner (x:y:ns) = M.insert x y $ inner (y:ns) + +-- This is infinite, so use `take` +getLinear :: State -> Int -> [Int] +getLinear s c = n : getLinear s n + where n = s `getNextCup` c + +-- Usage: runghc 23b.hs inputs/day23 +main :: IO () +main = do + args <- getArgs; + ns <- parseFile $ head args; + + let circ = constructState ns; + + let final = performMoves circ (head ns) 10000000; + let [a,b] = take 2 $ getLinear final 1; + + printf "%d * %d = %d\n" a b (a * b); + return (); + +-- Utilities +unwrap :: Maybe a -> a +unwrap (Just x) = x +unwrap _ = error "unwrap on null value" \ No newline at end of file diff --git a/2020/24a.hs b/2020/24a.hs new file mode 100644 index 0000000..35a96de --- /dev/null +++ b/2020/24a.hs @@ -0,0 +1,67 @@ +module Day24A where + +import System.Environment (getArgs) +import Data.List (elemIndex) +import qualified Data.Map.Strict as M; + +-- Types + +data Direction = E | SE | SW | W | NW | NE + deriving (Eq, Show); + +data Colour = White | Black + deriving (Eq, Show); + +type Coord = (Int, Int, Int); +type Grid = M.Map Coord Colour; + +inverse :: Colour -> Colour +inverse White = Black +inverse Black = White + +-- Parsing +parseDirections :: String -> [Direction] +parseDirections "" = [] +parseDirections ('e':xs) = E : parseDirections xs +parseDirections ('w':xs) = W : parseDirections xs +parseDirections ('s':'e':xs) = SE : parseDirections xs +parseDirections ('s':'w':xs) = SW : parseDirections xs +parseDirections ('n':'e':xs) = NE : parseDirections xs +parseDirections ('n':'w':xs) = NW : parseDirections xs +parseDirections _ = error "Invalid directions" + +parseFile :: String -> IO [[Direction]] +parseFile f = do + c <- readFile f; + return $ map parseDirections $ lines c; + +-- Grid manipulation + +flipTile :: Grid -> Coord -> Grid +flipTile g c = M.insert c (inverse $ M.findWithDefault White c g) g + +baseCoord :: Coord +baseCoord = (0, 0, 0) + +followDirections :: Coord -> [Direction] -> Coord +followDirections c [] = c +followDirections (x, y, z) (E:ds) = followDirections (x + 1, y - 1, z) ds +followDirections (x, y, z) (W:ds) = followDirections (x - 1, y + 1, z) ds +followDirections (x, y, z) (NE:ds) = followDirections (x + 1, y, z - 1) ds +followDirections (x, y, z) (NW:ds) = followDirections (x, y + 1, z - 1) ds +followDirections (x, y, z) (SE:ds) = followDirections (x, y - 1, z + 1) ds +followDirections (x, y, z) (SW:ds) = followDirections (x - 1, y, z + 1) ds + +flipByDirections :: [Direction] -> Grid -> Grid +flipByDirections ds g = flipTile g $ followDirections baseCoord ds + +-- Usage: runghc 24a.hs inputs/day24 +main :: IO () +main = do + args <- getArgs; + ds <- parseFile $ head args; + + let final = foldr flipByDirections M.empty ds; + let blacks = M.size $ M.filter (== Black) final; + print blacks; + return (); \ No newline at end of file diff --git a/2020/24b.hs b/2020/24b.hs new file mode 100644 index 0000000..6e82148 --- /dev/null +++ b/2020/24b.hs @@ -0,0 +1,100 @@ +module Day24B where + +import System.Environment (getArgs) +import Data.List (elemIndex) +import Data.Maybe (isJust) +import qualified Data.Map.Strict as M; +import qualified Data.Set as S; + +-- Types +data Direction = E | SE | SW | W | NW | NE + deriving (Eq, Show); + +dirs :: [Direction] +dirs = [E, SE, SW, W, NW, NE] + +data Colour = White | Black + deriving (Eq, Show); + +type Coord = (Int, Int, Int); +type Grid = M.Map Coord Colour; + +inverse :: Colour -> Colour +inverse White = Black +inverse Black = White + +type Blacks = S.Set Coord; + +-- Parsing +parseDirections :: String -> [Direction] +parseDirections "" = [] +parseDirections ('e':xs) = E : parseDirections xs +parseDirections ('w':xs) = W : parseDirections xs +parseDirections ('s':'e':xs) = SE : parseDirections xs +parseDirections ('s':'w':xs) = SW : parseDirections xs +parseDirections ('n':'e':xs) = NE : parseDirections xs +parseDirections ('n':'w':xs) = NW : parseDirections xs +parseDirections _ = error "Invalid directions" + +parseFile :: String -> IO [[Direction]] +parseFile f = do + c <- readFile f; + return $ map parseDirections $ lines c; + +-- Grid manipulation +flipTile :: Grid -> Coord -> Grid +flipTile g c = M.insert c (inverse $ g `getTile` c) g + +baseCoord :: Coord +baseCoord = (0, 0, 0) + +getTile :: Grid -> Coord -> Colour +getTile g c = M.findWithDefault White c g + +followDirections :: Coord -> [Direction] -> Coord +followDirections c [] = c +followDirections (x, y, z) (E:ds) = followDirections (x + 1, y - 1, z) ds +followDirections (x, y, z) (W:ds) = followDirections (x - 1, y + 1, z) ds +followDirections (x, y, z) (NE:ds) = followDirections (x + 1, y, z - 1) ds +followDirections (x, y, z) (NW:ds) = followDirections (x, y + 1, z - 1) ds +followDirections (x, y, z) (SE:ds) = followDirections (x, y - 1, z + 1) ds +followDirections (x, y, z) (SW:ds) = followDirections (x - 1, y, z + 1) ds + +flipByDirections :: [Direction] -> Grid -> Grid +flipByDirections ds g = flipTile g $ followDirections baseCoord ds + +-- Part B + +-- Convert a grid to a set of black tiles +toBlacksSet :: Grid -> Blacks +toBlacksSet g = S.fromList $ map fst $ M.toList $ M.filter (== Black) g + +-- Get a map of coords to the number of black neighbours +blackNeighbours :: Blacks -> M.Map Coord Int +blackNeighbours bs = foldr addToNeighbours M.empty bs + where addToNeighbours c m = foldr addToCoord m [followDirections c [d] | d <- dirs] + addToCoord c m = M.insert c (1 + M.findWithDefault 0 c m) m + +-- Simulate one iteration given the rules in part B +simulateOnce :: Blacks -> Blacks +simulateOnce bs = maintainedBlacks `S.union` newBlacks + where bns = blackNeighbours bs + getBns c = M.findWithDefault 0 c bns + maintainedBlacks = S.filter (\c -> getBns c <= 2 && getBns c > 0) bs + newBlacks = S.fromList $ map fst $ M.toList $ M.filterWithKey (\c n -> n == 2 && c `S.notMember` bs) bns + +-- Usage: runghc 24b.hs inputs/day24 +main :: IO () +main = do + args <- getArgs; + ds <- parseFile $ head args; + + let start = toBlacksSet $ foldr flipByDirections M.empty ds; + let final = foldr (\_ g -> simulateOnce g) start [1..100]; + print (length final); + return (); + +-- Utilities +unwrap :: Maybe a -> a +unwrap (Just x) = x +unwrap _ = error "unwrap on null value" \ No newline at end of file diff --git a/2020/25a.hs b/2020/25a.hs new file mode 100644 index 0000000..7b96ed4 --- /dev/null +++ b/2020/25a.hs @@ -0,0 +1,43 @@ +module Day25A where + +import System.Environment (getArgs) +import Text.Printf (printf) +import Data.Bits + +modExp :: Integer -> Integer -> Integer -> Integer +modExp b 0 m = 1 +modExp b e m = t * modExp ((b * b) `mod` m) (shiftR e 1) m `mod` m + where t = if testBit e 0 then b `mod` m else 1 + +-- subject, loop size +encrypt :: Integer -> Integer -> Integer +encrypt s n = modExp s n 20201227 + +-- Brute force the loop size used for the given number with the given subject +bruteLoopSize :: Integer -> Integer -> Integer +bruteLoopSize k s = getNEqual 1 1 + where getNEqual n x | new == k = n + | otherwise = getNEqual (n + 1) new + where new = (x * s) `mod` 20201227 + +parseFile :: String -> IO (Integer, Integer) +parseFile f = do + c <- readFile f; + let [a, b] = map read $ lines c; + return (a, b); + +-- runghc 25a.hs inputs/day25 +main :: IO () +main = do + args <- getArgs; + (a, b) <- parseFile $ head args; + + let aLoop = bruteLoopSize a 7; + let bLoop = bruteLoopSize b 7; + + printf "a loop size = %d\nb loop size = %d\n" aLoop bLoop; + + let enc = encrypt a bLoop; + printf "key = %d\n" enc; + + return (); diff --git a/2020/LICENSE b/2020/LICENSE new file mode 100644 index 0000000..2b1be0d --- /dev/null +++ b/2020/LICENSE @@ -0,0 +1,7 @@ +Copyright 2020 Oscar Shrimpton + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/2020/README.md b/2020/README.md new file mode 100644 index 0000000..c0deabd --- /dev/null +++ b/2020/README.md @@ -0,0 +1,3 @@ +# advent of code 2020 + +My solutions for the [Advent of Code](https://adventofcode.com/) 2020. Most of these are in Haskell, since I was learning it in uni and I felt like practicing. \ No newline at end of file diff --git a/2020/inputs/day1 b/2020/inputs/day1 new file mode 100644 index 0000000..7b7f47a --- /dev/null +++ b/2020/inputs/day1 @@ -0,0 +1,200 @@ +1713 +1281 +1185 +1501 +1462 +1752 +1363 +1799 +1071 +1446 +1685 +1706 +1726 +1567 +1867 +1376 +1445 +1971 +1429 +1749 +438 +1291 +1261 +1585 +1859 +1835 +1630 +1975 +1467 +1829 +1669 +1638 +1961 +1719 +1238 +1751 +1514 +1744 +1547 +1677 +1811 +1820 +1371 +740 +1925 +1803 +1753 +1208 +1772 +1642 +1140 +1838 +1444 +1321 +1556 +1635 +1687 +688 +1650 +1580 +1290 +1812 +1814 +1384 +1426 +1374 +1973 +1791 +1643 +1846 +1676 +1724 +1810 +1911 +1765 +945 +1357 +1919 +1994 +1697 +1632 +1449 +1539 +1725 +1963 +1879 +1731 +1904 +1392 +1823 +1420 +1504 +204 +1661 +1575 +1401 +1806 +1417 +1965 +1960 +1990 +1409 +1649 +1566 +1957 +514 +1464 +1352 +1841 +1601 +1473 +1309 +1421 +1190 +1582 +1825 +655 +1666 +1878 +1891 +1579 +1176 +1557 +1910 +1747 +1388 +1493 +1372 +1522 +1515 +1745 +1494 +1763 +1147 +1364 +1469 +1165 +1901 +1368 +1234 +1308 +1416 +1678 +1541 +1509 +1427 +1223 +1496 +1600 +1383 +1295 +1415 +1890 +1694 +1793 +1529 +1984 +1576 +1244 +1348 +1085 +1770 +1358 +1611 +1159 +1964 +1647 +818 +1246 +1458 +1936 +1370 +1659 +1923 +1619 +1604 +1354 +1118 +1657 +1945 +1898 +1948 +798 +769 +1689 +1821 +1979 +1460 +1832 +1596 +1679 +1818 +1815 +1977 +1634 +1828 +1386 +1284 +1569 +1970 diff --git a/2020/inputs/day10 b/2020/inputs/day10 new file mode 100644 index 0000000..1f6c5d6 --- /dev/null +++ b/2020/inputs/day10 @@ -0,0 +1,107 @@ +59 +134 +159 +125 +95 +92 +169 +43 +154 +46 +110 +79 +117 +151 +141 +56 +87 +10 +65 +170 +89 +32 +40 +118 +36 +94 +124 +173 +164 +166 +113 +67 +76 +102 +107 +52 +144 +119 +2 +72 +86 +73 +66 +13 +15 +38 +47 +109 +103 +128 +165 +148 +116 +146 +18 +135 +68 +83 +133 +171 +145 +48 +31 +106 +161 +6 +21 +22 +77 +172 +28 +78 +96 +55 +132 +39 +100 +108 +33 +23 +54 +157 +80 +153 +9 +62 +26 +147 +1 +27 +131 +88 +138 +93 +14 +123 +122 +158 +152 +71 +49 +101 +37 +99 +160 +53 +3 diff --git a/2020/inputs/day10_short b/2020/inputs/day10_short new file mode 100644 index 0000000..be5c492 --- /dev/null +++ b/2020/inputs/day10_short @@ -0,0 +1,31 @@ +28 +33 +18 +42 +31 +14 +46 +20 +48 +47 +24 +23 +49 +45 +19 +38 +39 +11 +1 +32 +25 +35 +8 +17 +7 +9 +4 +2 +34 +10 +3 \ No newline at end of file diff --git a/2020/inputs/day11 b/2020/inputs/day11 new file mode 100644 index 0000000..da5f2b3 --- /dev/null +++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LL.LLLLLLL.LLLL.LLLLLLLLL.LLLLLLLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLLLL.LLLLLLL. +LLLLLLL.LLLLLLLL.LLLLLLL.LLLLLLLLLLLLLL.LLLLLLL.LLLLLL.LL.LLLLLLL.LLLLLLLL.LLLLLLLLLLLLLLL diff --git a/2020/inputs/day11_short b/2020/inputs/day11_short new file mode 100644 index 0000000..ff5431a --- /dev/null +++ b/2020/inputs/day11_short @@ -0,0 +1,10 @@ +L.LL.LL.LL +LLLLLLL.LL +L.L.L..L.. +LLLL.LL.LL +L.LL.LL.LL +L.LLLLL.LL +..L.L..... +LLLLLLLLLL +L.LLLLLL.L +L.LLLLL.LL \ No newline at end of file diff --git a/2020/inputs/day12 b/2020/inputs/day12 new file mode 100644 index 0000000..5f68e60 --- /dev/null +++ b/2020/inputs/day12 @@ -0,0 +1,768 @@ +W5 +F91 +S3 +R90 +F98 +S3 +E1 +F51 +E3 +S5 +E4 +N2 +R180 +N3 +F25 +N1 +W4 +R90 +S1 +E1 +F18 +W2 +F13 +W5 +R180 +S5 +L90 +W1 +F23 +L270 +F7 +R180 +E2 +R90 +E4 +S3 +L90 +W2 +R90 +F47 +R90 +W5 +L270 +F8 +E2 +F72 +W3 +N4 +E1 +S2 +R90 +F8 +S1 +L270 +F59 +L90 +F100 +L90 +W1 +R90 +F73 +E5 +R180 +E2 +N4 +E3 +N3 +E1 +F42 +W3 +S3 +L180 +F8 +W5 +R180 +R180 +F88 +W3 +F49 +W3 +S1 +R270 +N1 +F63 +W1 +F87 +W3 +S4 +L90 +E2 +N5 +F12 +E3 +F32 +W3 +R180 +L90 +S2 +L180 +N4 +F41 +S2 +R180 +S3 +E3 +N1 +L270 +E3 +F33 +R90 +F94 +R270 +S5 +E3 +F75 +S3 +R180 +W2 +N4 +W4 +R90 +F61 +N3 +F33 +E5 +R180 +S3 +F39 +N5 +R90 +R180 +W3 +F67 +L90 +R90 +F83 +E3 +S2 +L270 +W2 +F13 +S5 +E5 +L90 +N2 +W5 +N4 +F68 +N1 +F95 +W1 +F56 +S1 +F55 +L90 +F85 +W5 +L90 +F25 +E3 +S3 +W3 +N3 +W5 +F27 +L90 +E5 +N2 +F62 +R180 +S3 +E4 +R90 +F31 +S2 +F24 +R180 +F20 +S2 +F26 +R90 +F55 +W1 +R90 +N3 +F53 +L180 +W4 +N3 +E3 +R90 +S2 +R90 +R90 +S5 +W1 +W3 +F100 +R90 +F27 +E2 +R90 +N5 +R90 +S1 +L90 +S3 +E5 +S5 +F23 +S5 +W2 +S5 +R180 +E5 +F79 +R90 +S5 +E3 +F68 +E3 +N1 +W4 +R90 +F46 +W3 +R90 +F31 +W2 +N4 +R90 +F33 +E4 +S2 +R180 +F69 +E2 +N5 +E4 +N1 +F30 +L90 +E2 +F40 +W4 +F27 +W2 +N3 +F30 +E3 +N1 +R90 +N2 +W3 +R90 +W2 +S5 +W3 +F77 +S3 +W2 +F86 +L90 +N3 +F45 +R180 +F58 +R90 +F75 +N2 +E1 +N1 +E4 +R90 +S4 +S2 +R180 +E4 +S4 +R180 +F16 +W1 +L180 +E5 +F10 +N5 +E3 +S1 +W1 +F36 +S4 +S3 +F28 +N3 +F21 +S5 +W4 +F78 +W4 +R180 +F93 +E5 +F47 +R90 +W2 +S1 +F52 +R270 +W5 +F24 +N5 +S3 +E2 +L270 +L90 +N4 +R90 +E1 +N1 +F73 +N4 +F67 +W4 +R90 +E5 +F8 +W3 +F5 +S5 +E4 +N5 +R180 +N2 +F46 +L90 +F69 +W5 +R90 +W3 +N3 +L180 +F78 +W1 +F47 +F9 +N4 +F76 +N4 +F2 +L90 +S1 +F61 +L90 +E1 +R90 +W2 +F75 +R90 +W1 +N3 +R90 +F22 +N2 +E5 +L180 +E2 +F20 +E4 +F29 +R90 +S5 +E1 +R90 +S3 +F51 +S1 +R90 +E2 +F15 +R90 +S2 +R180 +F18 +W3 +L90 +N4 +F20 +S1 +R90 +S2 +F30 +W4 +S2 +W2 +F52 +E4 +F76 +W5 +R90 +F2 +L180 +F82 +E1 +R180 +F94 +E4 +N1 +F78 +N1 +W2 +L90 +E1 +F14 +W1 +F50 +E5 +L90 +E4 +N5 +E3 +F51 +L90 +F91 +S2 +L90 +W4 +F46 +N1 +F52 +R90 +F91 +W5 +S4 +W3 +R90 +W3 +F94 +R90 +S3 +W3 +R90 +F88 +E5 +F15 +L90 +F46 +R90 +S5 +E5 +S3 +L180 +S1 +F29 +R270 +F13 +S4 +W2 +R90 +F40 +N3 +F85 +S3 +F18 +N3 +R180 +S5 +E1 +S5 +R90 +W1 +L90 +F94 +R270 +E5 +S1 +L270 +W5 +F78 +S5 +E1 +N3 +F98 +N1 +E2 +W3 +F80 +N4 +E1 +F78 +S1 +L270 +E4 +R90 +F15 +W4 +R90 +E5 +F53 +N1 +W4 +F19 +E1 +S2 +F21 +N2 +W2 +F2 +E4 +F27 +W5 +R180 +F85 +R180 +F40 +W3 +N1 +F52 +E2 +F77 +L180 +E1 +N3 +R90 +F55 +N2 +R90 +E5 +S3 +L90 +F88 +N3 +W5 +R90 +S3 +F85 +F52 +L90 +W3 +R270 +S5 +F34 +N2 +W1 +F65 +W2 +N4 +L180 +N1 +F73 +E2 +N5 +E3 +S4 +R90 +W4 +N5 +F24 +N3 +L90 +N4 +F99 +E2 +N2 +L180 +W3 +S4 +W5 +N2 +L180 +F66 +R90 +W1 +R180 +F100 +S2 +E4 +R90 +W4 +F51 +S1 +W2 +F26 +N3 +N1 +E2 +S2 +F11 +R90 +F25 +E4 +F78 +N2 +N2 +R180 +F68 +N3 +R180 +W4 +F21 +E2 +N2 +E5 +S5 +E3 +F23 +R90 +F30 +W5 +F3 +L90 +F82 +N4 +W5 +S3 +E2 +N4 +F4 +S2 +R90 +W3 +R90 +F14 +W4 +F14 +W4 +F92 +S1 +W4 +S5 +S3 +F77 +S1 +F45 +N1 +L180 +E5 +F86 +L90 +E4 +F12 +S1 +E3 +F46 +W1 +L90 +F20 +S4 +F89 +N2 +S2 +F18 +E4 +F37 +S4 +F48 +W4 +L180 +F93 +R90 +W5 +L90 +S1 +E4 +L90 +S4 +E4 +S5 +E4 +L90 +E5 +R180 +N4 +R90 +W2 +F44 +S1 +L180 +F15 +W2 +F84 +S5 +L90 +N5 +W4 +R180 +F11 +R90 +F47 +S4 +R180 +S4 +F48 +L90 +W4 +L90 +S2 +F22 +E3 +F85 +N4 +F53 +R90 +F65 +L90 +S3 +R90 +F80 +R90 +F40 +R90 +F9 +L180 +W5 +N5 +W1 +S4 +F87 +S5 +F43 +S3 +L90 +E5 +R180 +S4 +W2 +N3 +N3 +F98 +E2 +R90 +W5 +F4 +L90 +E4 +F48 +S5 +F81 +E3 +S3 +L90 +S2 +F62 +E1 +F17 +S3 +F95 +N3 +W5 +E2 +R90 +R180 +W5 +L90 +W3 +F31 +S3 +W3 +S4 +L90 +W5 +R90 +W4 +S3 +L90 +S2 +F11 +S4 +F93 diff --git a/2020/inputs/day12_short b/2020/inputs/day12_short new file mode 100644 index 0000000..48c2a50 --- /dev/null +++ b/2020/inputs/day12_short @@ -0,0 +1,5 @@ +F10 +N3 +F7 +R90 +F11 \ No newline at end of file diff --git a/2020/inputs/day13 b/2020/inputs/day13 new file mode 100644 index 0000000..3043e0a --- /dev/null +++ b/2020/inputs/day13 @@ -0,0 +1,2 @@ +1002576 +13,x,x,x,x,x,x,37,x,x,x,x,x,449,x,29,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,19,x,x,x,23,x,x,x,x,x,x,x,773,x,x,x,x,x,x,x,x,x,41,x,x,x,x,x,x,17 diff --git a/2020/inputs/day13_short b/2020/inputs/day13_short new file mode 100644 index 0000000..e473080 --- /dev/null +++ b/2020/inputs/day13_short @@ -0,0 +1,2 @@ +939 +7,13,x,x,59,x,31,19 \ No newline at end of file diff --git a/2020/inputs/day14 b/2020/inputs/day14 new file mode 100644 index 0000000..6cd863a --- /dev/null +++ b/2020/inputs/day14 @@ -0,0 +1,546 @@ +mask = 01100101XX0010111010X010X10001010111 +mem[59869] = 296403277 +mem[50029] = 14565 +mem[52488] = 627950233 +mem[48318] = 113982010 +mem[22257] = 82 +mem[27870] = 17795 +mem[55511] = 4594118 +mask = 00000X00000110111110X000XX00010XX001 +mem[61743] = 13086 +mem[3724] = 4029841 +mem[10560] = 236422779 +mem[28511] = 7957 +mem[32609] = 3123 +mem[3930] = 26884 +mask = 0110000XX1001011111X111010X010000100 +mem[42884] = 252696502 +mem[18565] = 820 +mem[28279] = 105604729 +mem[41611] = 1567094 +mem[36341] = 5551 +mem[35962] = 28056 +mask = X111X001010010X1111X0XX1X11X10001X00 +mem[52299] = 24969 +mem[41449] = 160272674 +mem[34903] = 14302599 +mem[35962] = 71766 +mask = X11001010XX010111010XX10100000X00101 +mem[44250] = 536 +mem[21842] = 494315083 +mem[51716] = 3417 +mem[37939] = 242985 +mask = 111100X1010XX011X1111100X000000010X0 +mem[35845] = 48792746 +mem[26794] = 1026647 +mem[47814] = 92296 +mem[63043] = 3100 +mem[26635] = 2181 +mem[40164] = 2436842 +mask = 0X1111X0X10110101011X100011X01010010 +mem[63001] = 36102371 +mem[47565] = 2512786 +mask = 010X000111X1X01X1110XX01111100101X10 +mem[18403] = 512 +mem[58372] = 65318068 +mem[53197] = 15875 +mem[58632] = 231362257 +mask = 0X1010X11110101X011000X0000000111001 +mem[4095] = 116134614 +mem[63365] = 186252884 +mem[19024] = 2449 +mem[30536] = 1021 +mem[49282] = 447504 +mem[16658] = 98394885 +mask = 0111000111001011X11011000X1111X0100X +mem[64187] = 1431 +mem[11141] = 1904 +mem[39855] = 61495 +mask = 1111000XX100X01X111111111110XX011X11 +mem[44407] = 1449308 +mem[43902] = 2006 +mem[62547] = 3478 +mask = 0X1010010100X011101000X00010X0100111 +mem[3885] = 140726549 +mem[3307] = 938307640 +mem[22257] = 71231 +mem[41243] = 508095 +mem[25091] = 24579 +mask = X0000000XX011011111010X000XX0X000X01 +mem[22764] = 96570583 +mem[36352] = 56148675 +mask = 0X0X0011X110111010X001X10XX000101010 +mem[38443] = 1755 +mem[56360] = 25308 +mask = 11X0X00000X11X11111001XXXXX100001111 +mem[7833] = 785 +mem[4380] = 2874 +mask = 0X1000X11X0XX0X1101001011110001X0000 +mem[61544] = 144576256 +mem[2156] = 1658 +mem[26571] = 28977534 +mem[43902] = 1032904266 +mem[21524] = 463 +mask = 100X000010011011111XX01010001010X101 +mem[47123] = 5438 +mem[28936] = 39885 +mem[55045] = 946386 +mem[43630] = 143495580 +mem[10560] = 3231 +mask = 0110000X1X00101111XXX0000000010010X1 +mem[39551] = 524769 +mem[37150] = 397326 +mem[153] = 2696665 +mem[43255] = 44 +mem[14355] = 14827 +mem[51242] = 445851 +mask = X1X000X1110X10111X101100100X0X000XX0 +mem[40969] = 756383545 +mem[26794] = 100307329 +mem[48938] = 1863389 +mem[2345] = 2535119 +mem[53880] = 1759799 +mask = 11X0X0001X0110111X001X0011XX000XX000 +mem[8343] = 11387 +mem[48589] = 60 +mem[27590] = 5929131 +mem[3690] = 63744500 +mem[520] = 31249543 +mem[24387] = 473 +mem[21573] = 32235112 +mask = 11101001011X10111X10X111X00000000000 +mem[50565] = 563 +mem[26571] = 3496 +mem[3930] = 418 +mem[35770] = 7558838 +mem[12614] = 1619627 +mask = 011X010111001X11111001100000X00XX1X1 +mem[50701] = 111977200 +mem[19006] = 10909 +mem[16052] = 74134 +mem[43094] = 14253 +mem[50557] = 608639 +mem[59406] = 1422 +mask = 110X00001101101X11100XX011X000000011 +mem[52383] = 4751812 +mem[1669] = 833448227 +mem[35841] = 439768021 +mem[43630] = 7511 +mem[53126] = 343642 +mem[60802] = 1256603 +mask = 11100XXX11XX101111101100000X00X01010 +mem[49511] = 4982217 +mem[51824] = 270 +mem[51349] = 1890 +mem[59808] = 3773655 +mask = 111000XX110X10X11110011010110101101X +mem[57730] = 57401 +mem[35630] = 973239 +mem[54672] = 138240715 +mem[8136] = 10996 +mem[55459] = 401980 +mem[17187] = 941 +mask = X111XX01X100101111X00X0001000000X011 +mem[41484] = 1242838 +mem[29717] = 1145160 +mem[27394] = 1108224 +mem[2816] = 272760856 +mask = 1XX00101000010111010X1111000X0010010 +mem[32201] = 304518 +mem[16394] = 79826575 +mem[39941] = 13157 +mem[35282] = 760997 +mem[63951] = 7011404 +mem[8985] = 123284486 +mask = 011X100111000011X110X0110000X1111010 +mem[34856] = 39388801 +mem[18190] = 3208452 +mask = 1X000X11XX1010111X10001111X00X101X00 +mem[32295] = 1729184 +mem[48809] = 3708309 +mem[17960] = 66227 +mem[39063] = 5571972 +mem[34523] = 1100265 +mem[17724] = 1074235 +mask = 1X000000100110X111101X1001010000010X +mem[2309] = 1178 +mem[56623] = 5006 +mem[41091] = 951374 +mem[63942] = 21970475 +mem[8120] = 1167 +mem[50184] = 5634 +mask = 11X0001X111111X11010100XX0101X111000 +mem[63703] = 31429 +mem[19083] = 32307 +mem[48832] = 3825073 +mask = 11X000111111X11110X00000001000011X11 +mem[53491] = 953 +mem[39752] = 91899271 +mask = 111XX011X1011011111XX110X00X00000000 +mem[63089] = 3036 +mem[38445] = 356279 +mem[40137] = 10955 +mem[37568] = 477812 +mem[18443] = 85 +mask = 11X1100101X0101111X000X001X111101XX1 +mem[64998] = 758355504 +mem[10506] = 5946 +mem[58372] = 800 +mem[40606] = 1267021 +mem[42753] = 86680 +mem[38503] = 9164580 +mask = 1X110000XX100000X100010001110000X010 +mem[4805] = 898 +mem[50969] = 219378 +mem[3182] = 14757 +mask = 01101X0111X01011X0X000000111X0101001 +mem[26794] = 289 +mem[27899] = 67683 +mask = X1X0001111XX1X1X10X0X0111110000010X0 +mem[60968] = 128881 +mem[21049] = 153946 +mem[4625] = 6492 +mem[13554] = 14536684 +mask = 1110100X1X0110111X001011X1111X0X010X +mem[49387] = 48190714 +mem[5514] = 58395 +mem[59861] = 2590 +mem[59717] = 706 +mask = 110000XX1101X01111100001111000X00000 +mem[52288] = 594838 +mem[47711] = 256545 +mem[37150] = 5576185 +mask = X1001000100X101110X0X1001X01X1X00X0X +mem[12194] = 1010012 +mem[55682] = 745 +mem[19810] = 54828 +mask = X111100111001011X10X0110110X00000011 +mem[10747] = 10766086 +mem[40969] = 6443091 +mem[2563] = 7520 +mask = X110X001X10010111X1001X0001010X00X11 +mem[16385] = 16194 +mem[9178] = 1770 +mem[3885] = 584370 +mem[32909] = 551495 +mem[21842] = 534 +mem[59406] = 4042521 +mask = X110X0001100101X11100X00XXX0X00000X1 +mem[62127] = 1228052 +mem[34922] = 165241779 +mem[38187] = 7559 +mask = 00X101X111X0X1X1011010001X11111X0111 +mem[37035] = 51004 +mem[64187] = 9284 +mem[38834] = 163012800 +mask = 0X1X1001110010X111101X00101101001011 +mem[41856] = 13039831 +mem[63376] = 1043992 +mask = 00X000000X01X01111X01X011001101X11X0 +mem[14490] = 10619 +mem[63497] = 64 +mem[8985] = 2445 +mem[3372] = 2134806 +mem[43902] = 25402 +mem[63408] = 2150231 +mem[35251] = 252 +mask = 01100001010X101X11X0XX0X000010000010 +mem[11427] = 40388 +mem[5594] = 2064 +mem[14642] = 3216356 +mem[33886] = 16148 +mem[22872] = 317877 +mem[16905] = 22391 +mem[59260] = 14964908 +mask = 11X01000X10X1011110010000101X1XXX1X0 +mem[40205] = 162183 +mem[52774] = 21039251 +mem[47529] = 13977 +mask = 111X1X0101X0101111100X1011X10X0001XX +mem[50214] = 131677558 +mem[37828] = 45776303 +mem[25486] = 270926 +mem[3307] = 100144082 +mask = 0X1X0101110011X1XX1010X010001X00X110 +mem[24709] = 4703889 +mem[20251] = 4768780 +mem[23739] = 292844 +mem[33886] = 59676 +mem[29424] = 157758852 +mem[48117] = 434386871 +mask = 111010010100X01X1X10101111XX10000X00 +mem[24094] = 50839 +mem[40525] = 62507 +mem[16058] = 11731 +mem[57853] = 286 +mem[13702] = 252 +mem[61517] = 92673 +mem[28899] = 10302 +mask = 0X101000011X10X111001X10101001011010 +mem[39054] = 164757015 +mem[46804] = 194909 +mem[17096] = 16017 +mem[50214] = 474 +mem[55787] = 471712 +mask = 010X0X0X110110111X1X10000X000XX011X0 +mem[50969] = 44594 +mem[62079] = 4008 +mem[26760] = 1302 +mem[40242] = 450994 +mask = 00100000000010X1010011X100X10X000111 +mem[13951] = 29184 +mem[44387] = 733 +mem[56481] = 1419987 +mem[21049] = 113460142 +mask = 111000X01101101X10001X01110X01000001 +mem[37955] = 23023 +mem[23639] = 7326 +mem[41939] = 125079 +mask = 010X101X00X110XXX011010100X10011100X +mem[4000] = 325975899 +mem[65121] = 332644116 +mem[41463] = 345 +mem[16748] = 1087582 +mem[37842] = 894 +mask = X110100111X01011X11011XX00X0101X0001 +mem[19704] = 11095 +mem[8715] = 72847 +mem[41939] = 6370749 +mem[12294] = 6805400 +mem[21842] = 79 +mask = 01XX1X10XX011X1X101X01010001X1010011 +mem[50017] = 55985 +mem[49915] = 1470 +mem[38942] = 1053875 +mem[16748] = 874238254 +mem[59353] = 678489 +mem[57733] = 14739 +mask = 111111XX01X010X11110000001X11000111X +mem[40606] = 199 +mem[17692] = 1696176 +mem[11913] = 4169294 +mask = 01101X0X01001011101XXX10001100001010 +mem[23120] = 237551058 +mem[28299] = 142 +mask = 1X10X0011110101X1X1X11001100110X1001 +mem[6118] = 115871 +mem[19568] = 514315 +mem[24764] = 365 +mask = 1110X0X11X0XX0X1111X11011X0000000000 +mem[47355] = 25865880 +mem[51774] = 163286264 +mem[37432] = 2954 +mem[31036] = 12067 +mask = 01110X01110010111XX001100001010X1101 +mem[28516] = 323191 +mem[43255] = 3274 +mem[58073] = 86929637 +mask = 01XX0001XX11001111X0X100X1010X101000 +mem[18330] = 378470 +mem[39651] = 1052033 +mem[7784] = 143118549 +mem[32641] = 10950293 +mem[4029] = 836004 +mask = 0110010X0100XX1X10101010101000X01110 +mem[64998] = 399249156 +mem[16391] = 2391 +mem[15113] = 25159 +mem[35039] = 1672488 +mem[44901] = 4947519 +mask = 001000X11101101X1X1000X0X00000111000 +mem[23194] = 192980783 +mem[2379] = 26471 +mem[52040] = 748413 +mask = XX101X11X1X01110X1100X0011X01110111X +mem[35610] = 3487435 +mem[15827] = 1447 +mem[52266] = 8003180 +mem[6315] = 254747938 +mem[38582] = 21341903 +mem[23012] = 1942 +mem[52040] = 1040637609 +mask = 1110X011110XX0011111X001X000000111X0 +mem[19431] = 6438 +mem[55404] = 381 +mem[49702] = 21205234 +mem[28299] = 43345 +mem[32419] = 3944214 +mem[15970] = 1406843 +mask = 0110X001XX010X01XX1X1010111001000000 +mem[63608] = 2388415 +mem[19550] = 397 +mem[64770] = 354 +mask = 011XX011X1101X10X11001X0X0001X101001 +mem[27886] = 54971772 +mem[61000] = 547 +mem[9281] = 5472661 +mem[32039] = 20450 +mem[47529] = 214406 +mem[32922] = 2186075 +mask = X1X0000X0100101110X00100000010000101 +mem[54996] = 136156 +mem[1645] = 1422 +mem[645] = 51359613 +mask = 010X000110X100X1110000010011110010XX +mem[58473] = 54000741 +mem[50214] = 118839 +mem[60719] = 4225 +mask = 11101000110010101X10X11011X00010X011 +mem[4967] = 2810 +mem[55561] = 270767273 +mem[50906] = 323094280 +mem[544] = 1779102 +mem[12700] = 122462 +mem[20654] = 71 +mask = 01100001X0X1000101X011101X100000X00X +mem[40754] = 6033263 +mem[3724] = 640 +mem[6776] = 274 +mask = 00110X0111001111X010110000X010X00110 +mem[59461] = 40987 +mem[49367] = 418940480 +mem[12155] = 58648 +mem[50876] = 55597938 +mem[39338] = 125566 +mask = 01100001X110101111X001101X1100X0100X +mem[16658] = 13293 +mem[19410] = 355061209 +mem[30127] = 9284451 +mem[35805] = 2422 +mask = 1X11X0010100X01X111X1101XX1101010011 +mem[10560] = 116 +mem[42153] = 4817997 +mem[40333] = 970832 +mem[19083] = 63018397 +mask = 011XX0X111XX101111100XX0101010011010 +mem[51898] = 95230576 +mem[49059] = 481728904 +mem[25416] = 1192004 +mem[6045] = 244681888 +mem[22225] = 208962448 +mask = X11X100XX1X0101111XX1110101X110110X0 +mem[10560] = 3688 +mem[50016] = 3038 +mem[25234] = 52018301 +mask = X11XX001X100101111100110X011110X1XXX +mem[8343] = 111304110 +mem[9100] = 833307 +mem[43853] = 836994 +mem[9178] = 24458493 +mem[59596] = 257520799 +mask = 101X0X0000100X0X010000X1X0010X0XX111 +mem[13597] = 887 +mem[16422] = 232 +mem[52384] = 120276377 +mem[10834] = 6933 +mem[16058] = 992102418 +mem[24456] = 92155 +mask = X11000010100101111X01100001X10001XX1 +mem[37568] = 26930 +mem[16385] = 232190606 +mem[8340] = 113193119 +mem[35910] = 832 +mask = 11111001010010111110100XX1X11X100111 +mem[56429] = 6105943 +mem[33886] = 8020 +mem[51774] = 168714 +mask = 1111100101101X11110000000X0110001X0X +mem[37828] = 28012 +mem[51551] = 320681847 +mem[34281] = 52088 +mask = 0110X001110XX01111100010X00X010X1010 +mem[36720] = 26721 +mem[39098] = 8365128 +mem[28279] = 994775 +mem[59762] = 1466626 +mem[17088] = 910296 +mem[33578] = 4789 +mem[31320] = 11279 +mask = X1010000X1011011101001XX000X010011X1 +mem[58476] = 20790 +mem[33584] = 339 +mem[21127] = 471449302 +mask = 0100X01X1101X011X010010XX0000X011000 +mem[39915] = 1754512 +mem[51774] = 183707725 +mem[43094] = 2797257 +mem[21120] = 8809 +mask = X010000X00XXX0X1X10010X11101X0100110 +mem[48113] = 54854990 +mem[43108] = 127392 +mem[57733] = 4840137 +mem[17088] = 7272071 +mem[65436] = 1211 +mask = X11010X01100101010100X11111000101X01 +mem[38787] = 139 +mem[9667] = 37073154 +mem[18731] = 370 +mem[4538] = 15900 +mem[13202] = 517905282 +mask = X11000011100001X1110X01001100X001010 +mem[12467] = 932 +mem[14070] = 12280 +mem[40105] = 184487874 +mem[33314] = 832859 +mask = 0X100000X1001011X11X1000X10001X0X000 +mem[17724] = 3496777 +mem[53907] = 23167 +mem[63544] = 1614248 +mem[50209] = 2618603 +mem[36348] = 384412976 +mem[44536] = 16223523 +mask = X110X1011X0011X11110X111X0X00001X000 +mem[4784] = 11971978 +mem[10982] = 398035940 +mem[7005] = 515 +mem[35241] = 1093398 +mem[63779] = 1906 +mask = 1100X00XX001101111X0X101X1010X001011 +mem[36341] = 2194817 +mem[40531] = 724 +mem[5658] = 468782968 +mem[62005] = 1168 +mem[3491] = 1329281 +mem[49511] = 672 +mem[49173] = 1048435 +mask = 1110XX0010X1101X11X01X1010011101010X +mem[44290] = 660182 +mem[21184] = 291220 +mem[39098] = 2769543 +mem[30987] = 24159 +mask = 1010X00X00100X1111000X011XX10100X110 +mem[48117] = 29838 +mem[23924] = 4158 +mem[46502] = 501874 +mem[32481] = 713511 +mask = XX1000111XX1X01110X0X1001001X000100X +mem[11848] = 60796 +mem[35576] = 125075628 +mem[7365] = 367051456 +mem[49453] = 2467302 +mem[63274] = 2446 +mask = X1100X01X10010111X10X10000X00000XXX1 +mem[59406] = 7522 +mem[26316] = 194122 +mem[33419] = 24756556 +mem[17066] = 827 +mask = 111100010100001011111X101011X000X0X0 +mem[28511] = 54553 +mem[9469] = 136199 +mem[6481] = 674106955 +mem[4029] = 62909806 +mask = 0010000000011X0X110X11X11XX100100011 +mem[19006] = 23636330 +mem[49695] = 113355 +mem[9478] = 25169678 +mem[26475] = 7337 +mem[1712] = 89775255 +mem[32101] = 917 +mask = 1X00X00X1101101111X010X011100000XXX0 +mem[24770] = 10592648 +mem[40969] = 757841 +mem[42211] = 7319070 +mem[42753] = 277734 +mem[30310] = 11988774 +mem[19470] = 89618256 +mem[2816] = 89780492 diff --git a/2020/inputs/day14_short b/2020/inputs/day14_short new file mode 100644 index 0000000..2e961e3 --- /dev/null +++ b/2020/inputs/day14_short @@ -0,0 +1,4 @@ +mask = 000000000000000000000000000000X1001X +mem[42] = 100 +mask = 00000000000000000000000000000000X0XX +mem[26] = 1 diff --git a/2020/inputs/day15 b/2020/inputs/day15 new file mode 100644 index 0000000..4a1865f --- /dev/null +++ b/2020/inputs/day15 @@ -0,0 +1,6 @@ +2 +15 +0 +9 +1 +20 \ No newline at end of file diff --git a/2020/inputs/day16 b/2020/inputs/day16 new file mode 100644 index 0000000..93329d1 --- /dev/null +++ b/2020/inputs/day16 @@ -0,0 +1,265 @@ +departure location: 35-796 or 811-953 +departure station: 25-224 or 248-952 +departure platform: 47-867 or 885-959 +departure track: 44-121 or 127-949 +departure date: 49-154 or 180-960 +departure time: 35-532 or 546-971 +arrival location: 41-700 or 706-953 +arrival station: 25-562 or 568-968 +arrival platform: 31-672 or 680-969 +arrival track: 43-836 or 852-961 +class: 38-291 or 304-968 +duration: 31-746 or 755-956 +price: 46-711 or 719-971 +route: 35-584 or 608-955 +row: 39-618 or 640-950 +seat: 25-308 or 334-954 +train: 26-901 or 913-957 +type: 33-130 or 142-965 +wagon: 34-395 or 405-962 +zone: 46-358 or 377-969 + +your ticket: +97,103,89,191,73,79,83,101,151,71,149,53,181,59,61,67,113,109,107,127 + +nearby tickets: +895,527,676,768,695,821,473,414,835,426,741,650,886,709,938,355,113,358,106,888 +559,796,709,661,116,680,773,857,118,304,704,578,720,339,584,914,270,196,661,861 +390,557,348,432,734,441,74,761,272,266,531,704,52,78,200,478,455,664,663,339 +400,386,926,211,100,481,358,429,450,336,943,549,933,78,274,722,571,483,144,442 +579,509,478,975,218,855,93,759,92,406,339,648,144,128,478,948,489,482,547,926 +512,946,469,183,24,694,889,198,551,947,275,857,408,943,734,382,308,80,448,119 +305,830,449,54,518,193,663,825,95,946,484,672,248,701,257,395,827,783,218,189 +128,52,773,150,561,436,483,913,526,819,903,700,530,941,757,509,386,885,554,788 +779,947,111,357,206,252,661,481,124,450,773,554,779,827,116,466,259,434,901,898 +651,143,274,523,89,53,116,71,513,108,753,858,209,282,410,436,357,57,517,743 +87,691,793,306,426,127,152,836,192,497,276,418,66,771,147,910,824,917,767,510 +180,657,454,609,60,190,705,337,941,947,835,554,546,84,546,772,389,193,531,890 +128,387,865,735,462,548,652,89,902,728,490,490,278,931,81,265,449,523,948,112 +588,892,450,651,154,583,667,835,356,497,81,405,671,480,53,259,514,896,352,734 +928,686,618,946,933,205,485,392,445,119,69,248,265,398,522,725,438,781,821,555 +73,213,183,89,210,650,349,356,722,550,341,816,986,824,250,145,890,446,690,698 +488,462,456,569,746,471,460,995,916,777,526,116,520,71,762,569,455,472,890,647 +549,351,421,477,661,335,148,530,759,207,599,283,304,208,271,609,919,574,528,708 +610,833,569,613,672,664,924,99,94,389,819,664,727,739,249,768,836,911,252,825 +923,429,814,577,109,818,571,522,714,646,815,706,898,439,216,494,495,931,898,458 +96,852,211,822,181,71,697,709,542,745,273,813,493,499,474,196,469,79,276,792 +608,219,527,665,474,755,419,700,913,644,822,393,666,412,335,402,281,618,460,771 +267,438,112,433,853,103,676,766,187,831,490,569,927,826,771,334,773,377,342,209 +258,98,457,900,83,511,612,897,220,414,119,24,734,572,147,425,72,509,118,287 +81,386,854,74,363,118,738,448,53,772,526,112,198,948,926,915,186,526,408,501 +853,553,490,194,282,756,261,939,754,448,386,522,516,83,154,65,433,780,415,451 +153,702,580,200,948,198,146,379,121,109,759,114,153,659,794,735,852,568,347,84 +856,742,770,91,270,611,693,148,450,265,506,889,680,657,130,729,75,457,455,8 +188,553,865,61,184,208,643,405,996,212,856,574,943,470,745,532,185,811,613,735 +887,381,24,68,426,640,89,85,693,757,460,109,913,689,763,358,121,655,498,424 +772,771,418,58,922,152,272,378,689,254,290,568,453,24,73,768,254,457,503,896 +695,649,924,79,209,661,775,859,575,221,858,86,269,857,836,305,274,23,659,795 +61,553,740,52,522,270,388,124,736,660,457,897,262,665,833,104,442,530,270,479 +392,893,306,252,278,336,259,560,421,103,150,409,923,460,190,711,261,503,12,924 +863,768,397,857,384,260,70,916,96,470,390,466,472,666,442,50,457,819,532,69 +861,441,900,519,383,467,809,191,72,426,720,711,380,468,505,485,546,266,743,652 +189,82,440,738,685,640,507,194,699,694,449,449,404,437,553,113,947,433,925,64 +151,768,503,66,918,129,913,474,827,823,358,115,750,833,791,783,576,790,920,276 +432,813,10,925,689,694,558,462,813,194,515,739,476,210,490,182,726,609,480,421 +148,211,56,811,945,213,550,354,465,529,463,795,58,655,677,919,282,266,812,357 +462,455,76,737,383,471,663,617,811,84,97,796,263,546,930,442,871,409,827,467 +250,724,682,652,197,512,501,861,373,220,276,899,734,777,258,467,888,287,697,441 +89,918,763,793,208,823,694,467,212,264,755,889,104,643,530,766,702,767,462,154 +146,347,79,341,791,195,858,622,648,833,796,390,189,262,192,249,719,392,67,95 +367,144,697,887,430,506,343,739,220,283,455,469,507,471,684,85,547,489,856,832 +498,65,97,187,445,427,615,583,451,198,734,513,142,454,756,713,513,612,471,789 +501,483,212,690,715,739,735,410,900,561,584,336,855,727,651,70,526,613,776,527 +654,762,519,185,350,438,584,940,831,687,378,782,278,436,716,816,502,63,217,835 +825,265,471,920,584,286,118,109,616,271,772,511,192,726,633,103,407,416,419,418 +223,263,121,56,187,654,514,737,876,942,856,286,427,768,831,740,455,281,85,854 +486,642,271,617,576,672,459,151,763,890,665,697,708,96,180,678,98,579,854,354 +78,219,92,736,143,865,268,862,658,120,356,732,704,854,147,411,214,685,117,926 +491,777,270,230,62,552,477,427,618,337,213,508,790,571,345,512,410,69,72,552 +697,149,409,661,576,615,696,142,942,353,281,736,473,452,739,452,418,367,866,583 +354,738,737,108,637,112,211,825,356,926,520,766,345,355,700,948,279,212,764,90 +203,425,771,222,279,428,583,507,277,689,687,215,188,864,467,72,674,641,381,759 +479,763,261,511,655,62,568,781,656,223,530,75,692,987,104,935,266,733,467,262 +415,111,785,308,489,111,932,648,455,512,218,55,910,285,389,355,497,520,547,724 +650,76,531,598,767,216,406,947,438,212,920,256,611,572,660,395,865,789,251,856 +498,740,14,822,82,335,522,724,932,414,284,775,722,191,699,493,421,740,475,184 +151,337,451,581,663,419,279,400,646,272,64,744,181,684,512,727,393,142,739,469 +251,649,640,621,76,858,305,440,923,264,407,642,520,687,258,827,108,947,78,932 +832,546,893,919,218,96,196,478,418,769,722,864,576,382,597,787,392,949,655,691 +83,741,429,56,289,615,546,734,127,450,638,192,343,251,498,255,852,308,671,923 +447,818,826,743,145,695,285,485,414,432,864,358,95,481,104,931,10,734,561,931 +784,502,263,204,449,94,766,941,684,464,124,776,425,86,608,380,272,467,485,282 +261,449,457,646,349,721,199,466,731,783,198,192,61,455,901,366,512,449,725,70 +449,145,579,783,501,426,111,736,277,257,433,864,455,217,289,600,128,642,573,51 +21,788,352,920,184,794,783,938,785,405,614,885,580,102,515,129,57,502,93,938 +578,664,726,192,224,484,761,452,105,436,556,240,765,671,273,249,920,663,896,858 +217,436,644,118,743,764,671,273,746,922,891,721,390,856,897,561,910,826,788,117 +507,618,859,708,149,687,922,181,119,350,671,391,457,980,727,554,786,788,386,441 +617,478,483,217,640,929,183,935,274,771,245,258,664,385,834,286,79,434,448,145 +428,946,524,413,402,51,496,115,777,682,64,378,681,493,520,609,147,77,900,692 +261,642,350,949,640,561,626,63,394,254,829,525,886,584,51,409,380,812,515,550 +282,66,827,524,274,514,830,356,703,818,721,862,532,447,405,614,901,949,334,561 +101,546,574,365,439,390,922,96,581,72,896,782,80,513,439,280,78,149,520,291 +183,854,86,307,796,500,150,103,358,725,368,937,191,211,900,644,732,742,198,142 +616,558,63,650,349,127,349,554,484,80,103,261,678,407,832,212,265,187,767,693 +441,943,943,730,689,980,471,183,348,289,948,820,641,469,569,666,914,438,575,609 +860,482,775,386,283,487,216,717,930,513,53,255,335,756,502,392,378,199,720,790 +781,656,555,584,206,284,519,490,890,463,679,272,289,776,559,408,343,206,572,486 +665,795,189,287,569,889,387,363,939,207,523,501,819,856,259,516,146,210,816,855 +857,78,94,277,821,336,715,663,760,184,934,460,424,528,511,478,780,892,214,738 +568,457,280,108,243,892,831,917,127,928,351,99,282,103,889,645,767,416,380,349 +933,760,991,736,661,127,853,682,756,180,291,216,83,825,935,651,146,113,498,813 +84,408,381,551,50,274,696,471,15,514,612,616,197,780,916,198,763,102,523,503 +584,416,85,180,931,485,900,761,674,358,915,502,103,938,946,614,728,290,471,892 +695,51,391,102,251,560,391,334,23,578,80,731,729,482,811,61,919,769,87,272 +827,143,548,613,933,986,813,513,664,283,796,860,268,933,493,568,444,391,383,855 +780,504,571,489,910,927,254,71,889,430,405,59,472,886,482,486,826,887,700,781 +60,341,248,187,998,265,128,338,506,65,698,664,741,186,284,711,277,867,550,559 +406,304,376,249,742,790,181,345,62,668,498,645,684,822,180,478,812,74,432,506 +270,381,831,187,680,283,241,608,735,496,130,724,530,892,792,81,419,772,655,351 +482,106,781,656,336,736,64,737,192,357,264,663,185,709,988,383,191,443,217,97 +267,944,254,179,82,486,290,794,86,496,617,662,762,308,450,385,180,683,479,215 +926,406,626,860,422,897,710,735,693,82,520,561,180,268,252,651,922,250,554,251 +468,475,923,562,8,289,924,914,944,392,216,51,485,60,196,927,187,815,78,290 +61,855,766,451,864,361,271,105,153,927,338,939,475,788,60,939,104,212,546,900 +704,512,570,707,831,427,571,487,429,945,217,186,344,474,50,571,493,405,708,441 +388,867,405,398,740,196,147,451,470,546,460,128,98,77,405,776,285,510,824,153 +279,438,550,654,392,979,461,852,692,560,56,931,920,69,614,642,427,930,512,116 +116,78,490,214,275,494,488,550,397,435,206,144,461,898,947,901,688,557,482,51 +579,519,554,903,552,731,59,211,729,654,823,761,154,514,65,888,494,697,348,142 +68,129,412,83,870,932,154,643,730,786,659,352,835,681,524,433,658,436,261,347 +488,814,279,774,821,105,710,483,16,105,460,520,477,786,546,206,75,554,70,699 +652,515,670,211,289,611,348,896,926,199,691,282,718,349,291,104,209,201,823,692 +355,87,455,472,934,568,832,827,340,776,261,818,1,143,933,722,482,287,698,785 +449,557,357,270,94,463,647,885,853,701,61,59,761,923,578,611,424,729,920,81 +619,826,258,520,738,779,577,90,719,757,513,658,338,683,836,918,288,463,691,340 +646,128,424,440,87,709,788,391,305,308,381,188,746,78,794,386,636,813,500,270 +191,778,659,767,346,257,95,154,393,423,609,380,107,617,857,347,122,142,223,431 +516,71,889,922,407,522,870,736,777,147,394,118,818,689,358,344,470,207,526,761 +98,97,682,814,62,20,108,828,482,711,524,764,201,771,834,186,495,409,418,434 +287,305,54,611,337,489,771,537,816,683,517,465,304,220,515,770,467,572,148,666 +215,390,287,269,284,121,727,925,305,815,347,87,808,193,121,97,577,524,820,186 +266,213,87,854,580,489,764,57,275,250,538,338,547,307,269,121,143,106,115,183 +555,893,866,888,522,195,404,557,455,647,774,494,818,109,784,571,66,822,671,440 +658,555,105,338,505,661,573,740,127,508,56,667,642,449,658,111,120,398,255,60 +277,65,550,280,640,817,900,262,490,419,791,201,266,548,881,219,350,287,260,821 +494,478,573,415,928,70,821,231,394,121,383,562,666,440,664,77,474,348,380,820 +666,260,412,534,918,655,449,283,743,463,90,727,558,76,113,711,612,824,745,941 +898,815,783,816,94,289,69,222,480,201,108,640,580,522,205,117,468,715,127,781 +942,472,648,744,925,112,903,781,410,106,897,274,306,818,781,575,896,664,450,647 +407,390,945,269,818,584,616,96,642,185,813,127,900,830,708,475,221,888,366,650 +249,407,939,915,95,265,439,436,164,71,766,943,197,110,115,75,890,63,84,268 +277,82,617,513,128,334,114,549,621,284,653,709,818,104,836,478,892,181,113,205 +443,473,198,416,918,642,646,795,900,488,1,920,728,443,824,188,695,578,522,78 +80,443,451,573,181,518,592,735,688,110,919,143,387,64,142,411,193,252,643,919 +392,492,486,95,528,252,448,934,527,579,796,902,822,305,477,270,468,923,859,889 +643,356,190,830,863,153,76,91,932,457,691,880,344,775,108,512,512,286,61,769 +146,490,417,429,687,395,525,477,930,521,61,268,444,184,64,77,235,466,110,727 +461,582,343,666,825,188,84,941,886,107,382,129,487,660,261,173,192,72,53,913 +128,935,546,419,143,787,83,779,577,431,859,658,496,475,403,52,380,357,863,548 +472,900,916,942,777,776,433,659,422,357,53,826,204,182,19,686,575,796,509,532 +908,201,268,129,858,495,916,711,697,854,224,757,308,406,484,477,426,503,687,89 +794,628,392,180,822,508,555,787,57,202,568,387,507,937,185,916,575,514,103,91 +519,348,79,82,745,708,515,99,111,416,564,411,385,652,76,409,818,758,469,473 +489,121,342,573,488,439,504,435,519,919,62,265,764,690,927,622,788,348,823,556 +660,501,588,654,478,660,725,721,653,352,581,343,88,196,286,616,787,532,830,644 +766,525,582,471,947,198,501,89,104,900,745,685,362,455,249,211,389,812,506,113 +425,506,457,255,289,492,498,468,707,766,180,386,609,742,57,564,828,782,769,515 +275,363,148,699,351,525,812,767,67,932,87,551,308,866,112,188,304,440,431,392 +424,414,510,822,223,709,419,55,73,546,203,404,759,860,279,273,927,474,347,861 +505,439,783,384,765,719,58,415,353,778,418,674,147,433,794,93,945,823,411,70 +918,250,934,436,812,385,207,675,481,383,405,345,208,618,681,84,87,785,616,215 +264,94,350,861,116,502,155,946,578,938,391,187,96,666,491,927,653,260,220,429 +391,895,497,648,495,81,256,887,348,181,216,354,213,657,501,561,743,483,824,998 +938,854,791,777,740,100,767,862,648,432,942,104,562,93,670,216,650,6,220,526 +255,110,477,344,347,887,124,552,82,895,147,58,260,77,424,813,615,444,223,928 +925,691,345,895,708,388,860,249,563,119,503,928,865,97,498,492,202,426,661,117 +472,96,280,424,480,440,348,896,73,503,718,862,730,899,260,941,469,337,186,259 +708,646,6,220,482,700,202,918,889,337,831,130,656,890,921,766,530,210,66,381 +524,508,528,346,649,77,433,939,935,793,423,304,318,97,671,932,562,736,726,253 +145,215,651,721,675,819,206,696,723,111,216,512,385,285,928,726,709,495,437,666 +118,288,95,866,435,102,353,196,335,935,145,105,125,508,306,438,818,261,854,736 +656,529,742,807,189,416,856,290,414,933,88,572,348,473,925,104,831,186,281,665 +249,198,417,714,279,936,813,814,823,357,351,89,304,60,936,503,103,377,381,505 +787,933,280,527,492,704,405,252,468,785,305,457,431,193,378,521,896,283,422,741 +814,860,216,405,129,790,490,906,465,929,181,478,667,93,497,888,423,641,866,502 +834,521,429,529,388,792,477,216,440,683,739,251,831,360,770,650,51,337,727,205 +204,401,110,794,394,682,569,95,190,287,720,515,70,524,440,191,501,442,853,644 +186,259,509,476,664,687,865,420,186,220,480,651,229,933,153,765,497,546,471,580 +405,916,150,514,702,387,741,939,385,896,576,824,487,504,866,867,356,734,889,581 +734,358,829,735,548,142,437,388,331,773,455,182,152,336,459,489,483,79,581,470 +67,656,820,264,406,739,698,51,516,547,822,128,580,191,71,0,562,857,550,103 +513,490,822,982,934,763,555,194,145,789,99,917,380,253,504,388,344,420,75,180 +101,662,492,414,147,343,818,668,490,488,69,715,406,731,552,81,357,477,945,833 +495,931,719,384,274,145,366,98,501,356,654,437,507,898,248,406,387,556,757,381 +410,423,821,395,984,521,862,260,190,611,654,709,213,145,264,84,935,496,248,385 +494,94,549,59,784,488,435,685,191,769,181,143,213,441,918,7,90,446,514,734 +886,505,744,566,855,288,441,655,487,507,417,744,901,786,278,431,211,769,778,570 +85,812,930,667,610,117,735,881,706,414,65,857,289,287,758,109,556,891,103,84 +79,476,445,211,515,707,725,557,859,80,393,792,600,470,427,478,120,390,504,930 +552,896,73,618,449,447,692,818,662,887,338,820,690,185,406,553,586,643,335,75 +745,668,406,877,551,76,756,501,785,98,459,304,519,720,57,469,416,739,668,793 +276,834,581,258,764,557,184,760,186,859,857,175,939,924,578,759,866,349,681,287 +578,153,766,489,349,406,276,380,709,55,852,304,222,859,900,878,492,347,437,925 +579,665,790,901,416,929,75,914,940,205,814,354,196,681,909,432,652,265,651,194 +58,505,344,79,528,418,731,121,604,142,270,150,780,257,88,355,789,935,83,337 +455,419,391,189,187,497,687,531,130,129,400,856,206,276,260,273,727,696,571,769 +886,920,698,784,582,611,698,856,440,248,475,392,876,463,190,443,914,70,697,222 +91,205,353,920,477,475,153,672,948,573,485,270,665,480,63,222,784,473,457,993 +738,745,212,346,653,828,50,860,379,118,921,694,540,819,214,147,657,94,55,497 +793,17,194,925,150,350,755,554,508,252,527,289,55,253,694,509,769,102,59,118 +461,250,272,394,480,248,758,890,667,128,575,217,842,700,649,792,212,693,897,96 +926,928,558,452,588,515,289,459,221,481,913,60,465,61,143,580,415,744,442,685 +267,152,772,891,153,257,448,895,115,612,520,538,710,698,885,463,195,746,86,466 +776,89,497,277,344,684,573,414,194,455,667,626,127,523,271,283,340,446,471,784 +334,641,853,473,278,452,94,763,644,690,831,738,136,256,733,922,935,462,768,776 +249,142,256,97,75,562,458,828,865,680,444,361,644,464,930,423,789,84,688,419 +706,52,714,347,510,782,286,428,708,113,505,89,901,834,770,120,511,427,204,63 +86,62,501,468,64,885,105,641,214,825,453,560,388,764,79,123,690,413,380,487 +96,885,505,689,938,511,483,189,202,97,355,792,500,689,392,336,713,740,853,788 +531,89,925,122,261,479,923,864,816,106,568,453,692,518,556,929,709,78,928,790 +456,513,395,212,757,730,729,653,724,975,429,756,457,418,489,725,929,528,437,184 +947,854,154,255,95,70,724,682,226,94,423,187,641,616,252,105,885,558,658,695 +663,386,584,556,209,277,542,732,552,106,818,819,690,415,415,478,216,219,815,218 +272,743,99,339,74,647,72,488,577,353,89,426,91,745,823,135,782,757,773,57 +81,826,492,113,562,66,430,287,830,370,284,434,547,142,899,338,765,378,732,644 +644,350,490,929,901,816,942,69,493,257,118,695,858,713,79,222,500,343,116,608 +487,412,702,771,418,722,857,475,437,450,812,830,250,490,561,553,658,709,90,462 +550,60,90,145,429,203,991,509,94,283,500,608,468,892,460,617,916,277,857,474 +524,695,889,437,582,895,901,422,761,691,107,117,476,54,818,807,269,517,928,894 +507,715,776,831,120,385,338,415,377,95,579,445,696,785,91,696,274,568,307,415 +85,90,129,78,940,774,521,468,459,101,431,348,255,205,416,24,66,434,287,755 +897,937,896,507,895,657,932,858,819,890,471,430,994,681,410,420,925,498,280,940 +50,941,470,745,458,72,271,740,288,546,549,125,504,467,248,254,184,767,91,51 +575,461,649,149,54,762,925,613,741,584,408,922,738,305,377,703,433,410,755,81 +507,269,148,886,180,659,817,71,466,476,111,336,498,782,361,707,915,576,650,478 +764,475,57,763,925,88,515,555,803,641,351,414,271,548,121,657,719,467,860,473 +484,764,910,487,191,204,721,682,113,187,926,569,441,337,761,787,142,202,353,106 +714,437,468,562,811,198,443,420,118,610,743,923,666,643,513,743,934,354,433,357 +513,578,744,574,721,739,551,488,207,574,865,145,901,103,701,508,218,818,264,777 +684,572,186,679,944,776,78,105,947,212,937,424,857,412,929,787,532,186,260,812 +423,259,558,577,648,425,306,672,307,714,550,573,348,612,249,744,253,521,427,193 +270,273,474,746,531,836,269,443,471,433,100,732,625,510,654,557,894,420,688,248 +825,522,945,833,262,507,82,601,680,945,446,946,921,89,477,513,411,276,70,151 +472,664,80,343,277,669,268,224,59,791,347,342,128,934,645,741,375,379,687,185 +668,894,212,392,95,491,791,264,573,812,894,698,728,73,767,448,794,634,116,213 +885,52,940,305,788,558,447,705,744,526,557,571,549,777,690,886,393,392,377,518 +107,344,897,693,767,468,249,560,570,289,121,341,608,435,412,860,399,778,646,470 +429,351,515,87,726,888,523,650,418,464,803,200,666,56,813,829,670,816,192,657 +279,187,280,500,382,942,52,687,853,62,491,306,934,506,699,321,796,381,934,55 +69,772,786,783,722,222,759,358,265,853,710,445,567,920,770,645,936,224,80,733 +377,795,794,438,256,813,829,852,511,919,872,662,200,188,457,889,942,467,519,503 +437,96,211,829,931,335,347,811,409,700,736,20,119,525,395,338,930,474,734,486 +502,199,287,285,471,551,488,252,895,466,104,415,156,945,512,51,358,830,340,859 +129,340,461,772,670,686,812,386,438,744,662,590,532,811,577,143,641,888,308,934 +85,815,948,571,117,949,516,980,822,58,258,737,856,573,212,819,923,531,914,949 +945,531,934,344,917,692,343,281,291,288,164,811,697,899,897,187,928,266,285,852 +377,420,283,655,127,421,221,740,550,611,50,306,417,80,610,392,429,705,477,852 +116,211,852,422,484,933,215,215,760,202,349,789,440,685,615,536,149,616,729,568 +497,393,743,867,60,863,150,13,939,149,56,527,783,111,782,493,671,280,260,923 +742,284,811,708,148,710,925,265,734,413,384,731,992,689,467,784,103,886,259,73 +484,349,479,705,188,188,933,465,221,722,72,571,274,735,456,866,192,818,76,393 +942,998,248,914,272,380,380,924,461,61,291,392,154,709,420,574,813,493,786,511 +55,50,353,792,84,721,865,223,205,833,997,930,579,761,583,98,727,744,647,780 +766,82,280,201,943,695,516,898,68,143,682,205,387,780,433,230,744,200,690,936 +205,558,687,475,90,337,920,665,529,196,456,445,283,55,120,749,60,304,553,389 diff --git a/2020/inputs/day16_short b/2020/inputs/day16_short new file mode 100644 index 0000000..ba62efb --- /dev/null +++ b/2020/inputs/day16_short @@ -0,0 +1,12 @@ +class: 1-3 or 5-7 +row: 6-11 or 33-44 +seat: 13-40 or 45-50 + +your ticket: +7,1,14 + +nearby tickets: +7,3,47 +40,4,50 +55,2,20 +38,6,12 \ No newline at end of file diff --git a/2020/inputs/day17 b/2020/inputs/day17 new file mode 100644 index 0000000..d8b3575 --- /dev/null +++ b/2020/inputs/day17 @@ -0,0 +1,8 @@ +.#.#.#.. +..#....# +#####..# +#####..# +#####..# +###..#.# +#..##.## +#.#.#### diff --git a/2020/inputs/day17_short b/2020/inputs/day17_short new file mode 100644 index 0000000..17630fd --- /dev/null +++ b/2020/inputs/day17_short @@ -0,0 +1,3 @@ +.#. +..# +### \ No newline at end of file diff --git a/2020/inputs/day18 b/2020/inputs/day18 new file mode 100644 index 0000000..4fd2cf6 --- /dev/null +++ b/2020/inputs/day18 @@ -0,0 +1,377 @@ +9 + 4 + (3 + (6 * 5 + 9 * 2 * 4) * 9) +((7 + 6) + 2 * 6 + 4 * 2 + 9) * 6 + 5 +7 * 3 * 9 * 6 + (4 + 2 + 4 * 9) + 7 +9 + (9 * 3 * 3 * (9 + 5 + 4) + 4) +(8 * 5 + (7 + 5 + 3 + 6) * 9 + 7 * (9 * 8 + 7 * 2)) * 8 +3 + (6 * 2 * (9 + 2 + 5) * (9 * 2 * 6 + 8 * 5) * (2 + 2 + 3 + 7 * 9)) + 4 * 4 + (6 * 4 * (9 + 4) + 8 * 3 * (5 + 3)) * 5 +2 * 8 * (8 * 2 * 4) + (9 * 3 * 6) * 9 +2 + (8 * 4 * 9 * 3 + 8 * 2) + 4 * 9 * 6 +((6 * 4 + 9 + 5 * 7 + 3) * 4 + 8 * (3 + 6 + 9 * 9) + 9 * 6) + (7 * 7) + 6 * 2 * 2 +2 + 5 * 3 +2 + 6 * (8 + 6 * 5 + (3 * 9) + 3) +3 + 2 * 4 + 9 * 4 + 9 +(7 + 5 + (4 +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 6) + 9 * 2 * 4 +7 + 7 + 3 * (2 + 2 + 4 * (9 * 2 + 6 + 5 * 4) * 8 + 2) * 3 +9 + (7 + 6) + (5 * 8 * 7) * (5 + 7 + 9) +5 + (2 + (7 * 4) * 9 * (8 + 7 * 5) + 5 * (2 * 3 * 8)) * (7 + 9) +5 * 7 + (8 + 2 * (5 + 3 * 6 * 9 + 9) * 5) +(4 + (6 + 6 + 5 * 4)) + 4 + 3 +2 + 8 * (9 + (7 + 8 * 9 + 7 * 2 * 9) + 5 * 4 * 9 * 7) +2 + ((5 * 5) * 8) + 2 * 9 * (8 + (6 * 4 + 9) * (7 * 7 * 6 * 7) * 5 * 6) +(4 + 3 * 8) * (8 + 6 * 7 + (9 + 4 + 6 + 2 * 3)) +9 * ((4 + 3 * 4) + 6 * 6 + 9 + 2) +(9 + 6 * 9) + 9 * 7 + 3 * 6 + (4 * 6) +7 + 6 + (4 + 7 * 4 * 9 * 2) +7 * (7 + (9 * 4 * 3)) * (2 * 2 * 4 + (2 * 8)) * 2 +(5 * 5 + 2 + 2 * (5 + 3 * 5 * 4)) * 3 +5 * 5 + ((5 + 7) + 3 * (9 + 2 * 6) + (5 + 4 * 3) + 6) * 7 +6 * 6 * 4 * (2 * 5) + ((9 * 7 + 4 * 7 * 2) + 6) +5 + 9 + 5 +9 + (6 * 5 * 9 + (4 * 4 * 7 * 3 * 6 * 4) + (5 + 4 * 3 * 4 * 5 + 7)) +(4 * 5) + 6 + 3 +4 * (7 + 3 + (5 + 2 * 7)) * 7 + (3 + 3 * 9 * (8 * 8 * 3 + 3) + (4 * 7 * 3 + 6) * 5) + (8 + 3 * 7 + 4 * 5) +4 + 4 + (3 + 7) + 2 + (9 + 7 + (5 + 5 + 4 * 7) + 8 * (5 * 7 + 7 + 3)) * 4 +(4 + 3 + 8 * 5 + 8) + 5 * (8 * 9 + 7) + (7 * 6 + (3 * 6 * 6 + 5 + 4) * 2 + (2 + 4) + (6 * 3 + 8)) + (2 * 7 * (2 * 6) + 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 + 6)) * 2 * 3 + 3 + (9 + 4 + 6 * 9 + 8 + 8) + 6 +(6 * 5 * 2 * 5) * 7 + (2 * 6 + (3 * 3)) + 4 +((7 * 3 + 8 * 9 + 7) * 4 * (2 + 3 + 5 + 5 + 5)) * 3 +(6 * 4 * 3) + 3 + 2 * 6 +3 + 7 + 8 * 4 +(6 * (7 + 6 * 6 * 2 + 7 + 3) + (3 * 3 * 8 * 4 * 7 * 6) * 3 + 9) * 9 * (2 + 2) +(8 * 6 + 8 + 9) * (3 + 8) +9 * ((8 * 4 * 8) * 3 * 2 * 3 * 4 + 6) + 8 +5 + 4 * 5 + (8 + 5 + 6 * 7 * 7) +5 * ((5 * 2 + 7 + 6) * 9 * 7 * (7 + 6 + 3 + 5 * 5) + (5 + 8 + 7 + 4 + 9)) +8 * 6 * (9 + (9 * 8 + 2 * 3) + 2 * 6 * 3) + 7 +(7 * 6 * 2 + 6 + 4) + 9 * 4 +((4 * 8) * 8 * 7 + 2) * 8 +2 + 3 * ((8 + 2 * 3 * 9 + 8 + 8) + 9 + 4 + (5 * 2) + 9 * 3) +(5 + 3 + 3) * ((5 + 4) + 5) + 8 * 8 * ((8 * 6 + 9 + 5) * 5 + 4 + 5 * 6) * 8 +(8 * (8 + 9 + 6) + 2 * 2) + 5 * 4 + 4 + 3 +(9 * 6 + 2 * 6) * (6 * 6 + 2) * (7 * (3 + 6 * 8 * 6 * 5) * 8) +(2 + 8 + 8 + (6 * 3 * 2 * 3) + 4 * (8 * 5 * 8 * 4 + 6 + 2)) * 2 + 4 + 6 + 9 +9 * 9 * 9 + (6 + 9 * 3 + 6 * 5 * 5) * 3 +3 * 2 * (8 * (4 + 5 + 8 * 5 + 5)) * 5 * 9 diff --git a/2020/inputs/day19 b/2020/inputs/day19 new file mode 100644 index 0000000..f206eb8 --- /dev/null +++ b/2020/inputs/day19 @@ -0,0 +1,530 @@ +70: 90 92 | 53 50 +99: 90 102 | 53 22 +24: 130 90 +125: 85 53 | 100 90 +61: 53 58 | 90 26 +88: 33 53 | 46 90 +32: 65 90 | 90 53 +48: 46 53 +116: 53 50 | 90 18 +40: 53 83 | 90 81 +54: 46 53 | 5 90 +36: 50 90 | 130 53 +58: 92 90 | 130 53 +2: 19 53 | 75 90 +95: 53 46 | 90 19 +124: 46 53 | 33 90 +79: 91 53 | 7 90 +46: 90 90 | 53 90 +87: 9 90 | 84 53 +122: 90 46 | 53 33 +15: 89 90 | 79 53 +41: 90 4 | 53 119 +7: 53 128 | 90 128 +93: 53 120 | 90 37 +121: 15 53 | 103 90 +91: 90 33 | 53 110 +5: 53 90 | 65 53 +26: 53 19 | 90 107 +44: 53 75 | 90 32 +23: 107 53 | 50 90 +33: 90 53 | 90 90 +75: 53 53 | 90 90 +18: 65 65 +59: 53 107 | 90 32 +104: 90 33 | 53 46 +20: 121 90 | 123 53 +100: 90 75 | 53 46 +131: 18 90 | 46 53 +9: 90 67 | 53 105 +37: 53 75 | 90 128 +3: 53 29 | 90 22 +120: 53 92 | 90 33 +35: 55 53 | 30 90 +115: 65 107 +106: 90 46 | 53 19 +89: 90 59 | 53 68 +83: 90 46 | 53 130 +25: 90 87 | 53 41 +11: 42 31 +84: 53 117 | 90 34 +8: 42 +53: "a" +86: 53 6 | 90 12 +76: 53 78 | 90 97 +52: 126 90 | 115 53 +31: 53 35 | 90 20 +112: 110 90 | 32 53 +82: 101 90 | 127 53 +119: 53 27 | 90 93 +117: 90 81 | 53 23 +57: 82 53 | 43 90 +105: 90 126 | 53 21 +111: 53 32 | 90 110 +68: 53 18 | 90 46 +73: 71 90 | 24 53 +49: 77 90 | 48 53 +81: 90 50 | 53 75 +102: 32 53 | 128 90 +12: 92 53 | 19 90 +60: 62 90 | 108 53 +101: 53 104 | 90 62 +65: 53 | 90 +50: 53 90 +97: 53 56 | 90 64 +63: 99 90 | 39 53 +43: 90 125 | 53 60 +66: 130 90 | 33 53 +27: 53 2 | 90 14 +4: 3 90 | 74 53 +118: 53 76 | 90 57 +113: 86 53 | 13 90 +56: 90 28 | 53 54 +38: 36 90 | 69 53 +39: 10 53 | 23 90 +14: 90 50 | 53 18 +45: 53 72 | 90 40 +21: 130 90 | 107 53 +30: 90 113 | 53 1 +19: 53 53 | 90 53 +130: 53 53 +110: 53 65 | 90 90 +0: 8 11 +77: 53 110 | 90 92 +62: 53 33 | 90 19 +126: 50 90 +29: 75 53 | 5 90 +129: 98 53 | 47 90 +47: 53 94 | 90 95 +71: 107 53 +92: 53 53 | 90 65 +127: 22 53 | 109 90 +6: 92 53 | 32 90 +51: 26 90 | 66 53 +107: 90 53 | 53 90 +72: 90 124 | 53 104 +1: 53 96 | 90 52 +103: 53 73 | 90 61 +74: 2 90 | 131 53 +64: 90 7 | 53 122 +67: 53 70 | 90 104 +42: 53 25 | 90 118 +123: 63 90 | 80 53 +17: 46 53 | 130 90 +10: 19 90 | 33 53 +13: 53 112 | 90 17 +28: 90 128 | 53 110 +114: 53 5 | 90 50 +78: 49 90 | 51 53 +16: 111 53 | 14 90 +90: "b" +85: 130 90 | 50 53 +80: 38 53 | 16 90 +69: 110 53 | 107 90 +98: 53 44 | 90 88 +94: 5 53 | 46 90 +108: 18 53 | 75 90 +55: 90 129 | 53 45 +128: 90 90 +34: 106 90 | 114 53 +109: 90 110 | 53 50 +96: 36 90 | 116 53 +22: 75 53 | 18 90 + +aaaaaaaabbbbaabaabbbaaba +aaaaaaaaabbaaabbbaabaaaaabbaaabaaabbbbbb +babaabaaabaaabbbaaaabbba +baaaabbbabbabbbbabaababa +aaaaabaabbbabbbabaaabababaabaabbbaaaabba +babababbbaababbabaaaaaab +bbabbbabbabaaabaaaaaaaba +bbaabbaaaababbabbbabbbbb +babbbbbbbbbababaaaabbbab +abbbbbbaaaabbaaaaabbaaababbbbbababbaaaab +aabbaabaaabaabaababbbaaa +baaabaabaaabaabbbbaaaaba +aabababbaabaaaabbaaaabaaabbbbbaa +bbbbbababbaabaaabaababbababbaabababbababbaabbabaaaabbbba +bbbaabbbaababbaaaaaaaabb +aaababbbbbaaababababaabb +bbabaabbababbbaabbababaa +baaabababbbbbaaababbabab +aaaababaaabbaababbaaaabb +ababbabaaabaaaabbbbaaaba +bbaaababbbbababbabbaabba +babbbbbbbbbababababbaaab +babaabbbbababaababbaabaabbabaabb +baaaaabaaaaaabaabbaaabaa +aabbabaaabaaabababbbbaab +bababaabaabbaabbababaaab +babaababbbbbbabababbbaaa +babaaabbaababaaaaaaabbbb +bbbbbabbbbaabaaabbaabbaabaabbaabaababbaa +bbababaaaaaaaababbbaabbabbbaabbabbabbaabaaaaaaaaabbbabbbbaabbaababaaaaabaabbaaaa +abaaabababaaabaabbbaaaaa +baabbbbbabbbabbbbbaababbaababaaabbbbaaaa +abbbabbbabbbaabbbaaaabab +babbabbbabbbbabbaaabbaaabbababbabbbbbbaababaabbb +babaabaaabbaabaaaaabbbbbabaabaaaabbbbaaaaaaababbabbaabbbaaabaaaababaaaba +aabbababbaaaaaaabbbbababbaabbbbaaababbbbaaaabbabbabbbbaaaabbababbbbbabba +bbaaabbaabaabaaabbaaaabb +bbaabaaaabbabbababbbbbabbaaaaaababbaabbb +baaababaabbbabaabbaaaaabaaababab +abababbabbaabaabbaaabbaa +bbbbabbaababaaaabbbbaaaababbabbbabbbbbabbbaaabbabbbbbbbabbbaabababaabbbb +bbabaaaaaaababbababbabaaaaaaabaabbbbbaaabababbaaaaaaaabbbbabaabaaaaaabbbbababaabaabbaababbaaabab +babaaaabbaaabababbaaabbbbaaaaaaa +babbbabbbaabbababbbaaabb +abbbabaaabbabbbbbbabababaaaaabba +baaaaaaaaababaaaabbbbbaabbaaaaba +bbbabbbababbaababaabbabaaabbbabbabaaaababbbaaaab +bbbaabaaabbaaaaabbabaaaa +abababbabaababbaaabaabaaaaababbbbaaabbaabbbababbababaaba +bbbaabbbbbbbbbaababbaabababbaabaabbbbaba +babbaaaaaabaaabaabaabaabbbaaaababaaaaabaabbbaaaabbbabaabbabbbaabbbabaaab +bbabbbbaababaabbababbbbaaaaabaabbaababbbabaabaaaaababaaabbabbbba +abbabaaaaabbbbbabbaaabbb +aababaaaaaaabaaabbababbb +babbbbbbbbbababaaaabaaab +bbbabaabababaaaabaaaabba +aaababbbbabbaabbbabbbabbbbababaa +abbbbaaaabaaaabaabaaaaba +bbabaabbbaabbabbaaaababbbbbaabbaabaaaaaabbabbbbaababaaba +abaaababaaaaaaabbbabbbbaabbababbbbbaababbbbbabbaabbbbbababbabbbb +bababaababbaaaaaaabbabab +baaabbaabbaabaaababbababbbabbbabbbbbbaab +baaaaababaababbaaaababab +abbaabaabbbabbaaaaabaaab +abbbabbaabbaaaaabbbbaaaabaababbabaabbbaa +bbaabbbbbaabbaaaabaabaaaababbaaa +aaabaaaaabbabbabaaababaa +aabaabbaaabbbbbaabbbbbbaabaabbba +aababbaababbbabbabbbabab +bbabbaaaaabbbbbaaabababa +aaabbbbbabbbbbaababaabba +aaaaaaaabbabaaabbbabbbaa +bbbabaaaaaabaaaaaaababaa +aabbbabbbabbabababbbabbbbbbbabba +baababbababbaabaabbbbaba +abbbaabbbabbbabbabbabbaa +aabbaabbabbbbbbabaabbabbabbbbbbbaaabbbbbaaaabbba +bababaabaabaaabaaaabbbaa +bbbabaabbaaababababbbbba +abbbaabbbbbaaaabbabbbbabababbabb +baabaaaabbababbbabbaabbabaaaabab +babaabbabbaabbbabbaabbababbbbabb +aaaaabbbaaabbbbbabbabbbbbbbabaabbbabbbababaaaaaa +babaaaabbababbaaababaababaaaabba +bababaabbbbabababbabaaba +aaabbbbbaabababbababbabb +bbbaabbbbabbbbbbaabaabab +baababbabbbbbabaabaabbbb +abbbabaabbbbaabaababbbaa +aababaaaaabaaabaaaaaaaba +abbbbaaaababaaabbaaaaaaababbaaaababbbaabbaabbbbbaabbababbaaabbbb +bbbbbbaabbbababaabaaaababbbbbaabaabbaaaabbbbaaababababaa +bbbaabbaaaabaaababbabbaaaabbabbabaabbbaaaabaaaaa +bbbabbbabbbbbaababaaabbbaaababbaabaabaaa +abbbabbaabbaaaaaaabababa +baabaabbabaaabbabbbaaabb +aaabaabaabaaabaaababbbaa +babbaabaabaaaabbabbbbaba +bbbbaabbbaabbaabbbabbbbaabaaababaaaaabab +baabaabbaaaaabaaaabbabaabbbbbabaaababbabbbbbababbabaabbbbbabaaba +abaaabbaaabaabbaaaaabbba +ababaaaabbaaaaaaabbbaabbabbbbabb +babaabbababbbabbabaabaabbbbbaabbbabaaabbaaabbbba +baabbbbbbbbabbbbbababbab +ababbababaaaaabbbbbabbbbabaaaabbaaaaabaaabaababb +aaabaabababaabababbababb +aaabbbbaaaaabbbbbbabbabbbabaabaabbaaaaaabaaaaabbbbbabbbabaaaaabaababaaba +bbaabbaaaaaababbbaababaa +aaaaabbbbbaaaaabbaababaa +aaabbbbbabbbbbababbbaabbaaabbabbabaaabbb +baaaaabbbbbbbbbabbbbbabbbaabbbababbbbbaa +abbabababbbbabbabbaabbaabaaaabaabbbbbaaabbbbbbaaabbabbbabbbaaabbbbaaabab +bbabbbabbbbabaaaabbabbabbaaabbab +aabbaaabaabbbabbbbbaaaba +ababbabaabbbaabbaaaaabbbaabaabbbbbbbbbbbbaaabbbbbaabaaabbaaaabba +bbabbbababababaabbaaabbb +babbabbbbbbabbbabbabaabbabbaaabbababbababbabbbbbabababaa +bbaaaaabaabaabaabbbabbbbaabbbbbbaaaaaaba +aaaaababbaaaaababaaabaaaaaaaaaabababbabbabbaaaaa +abaaabbbaaabaabaaabaaaabaaabbbaa +baaaaababbabbbbaaaaaaaaabbbbabba +bbaabbaabbbbbabaaabbbbbabaaabaaaaaabbaba +bbaaabbabaaaaabbaabbaababaaaabaaababbbab +aabbaaababbbbbbbaabbabba +abbabbabbbaaabbababaaaaa +abbaabaabbbbbbbbbbbabbbbbabaabaa +aabbabaaababbabaabbbaaaa +bbabaababbabbaaaaaabbbbbabbaabaabaaabbbbbabbaabbbaaaaababbaababbbbababab +bbabbaabbbabbbbabaaabbaa +aaaabbababbaaabbabbbabaabbbaaababababbab +aaaababbaaabaabbbaabaaab +aabbaabbaaabaaaabbaabbab +babababbaabbbbabbbabbaabbaaaaababaabbabbabbabbbaabababaabbabbbaa +baabbaabbababbbbabaaaaba +aabaaabbababbbaaabbbabaabaaaabbbabaabbaaabbbaabaaaabaaaaabaaabbabbbabbbb +aabbbbbbaabaaabaaabbbbabaaabaabaababbaababbaabab +bbbabbbaaaaabaabbbbbbaaaaabbbbbabbabaaabbbbaabba +aabbbaaaabaaaabbbbbabbab +bbaaaaaaabbbbbbbababbbaa +baaaabbbabbbbbbbbbaababa +abbabaaaaabbbbbaaabbaaaa +bbbbbbbbaabaabbbbaaaabba +aabaaaaaaabbbaababbaabbbbababbabababaaab +aaaabbabaabbabaaaaabbbab +baaabbbbbbbabaabbbaabaabaaaaababbaabbbbababbbbababbbbababbbbbbab +baabbbbbbababbbbabaaaaaa +bbbbbbbbbaaaaababbabbbbbbbbaaabb +abbaaabbaaaabbabbaabbabbbbaababbbbbbbabb +abbabababbaabaaaabbbaaba +abbabaaaaabbbbbbaaaabbbb +bbaabaababababbabbabaaaa +ababbbbbbabbabbababbaababbbabbabbbabbabaaaaaababaaaabaabbbaababa +bbabbabbabbababaaaababaa +baabbaaabaabaaaaabaaaaab +bbbabbaabbaaababbaaaaaab +bbbbaabaababbabababbaaaa +babbbabbabbabbabbbaaabbaaabbaabababbbabb +aaaababbbaaaaababbbbbbaaabaababb +bbbbaaaabbbbaaaaaabaaababbaabaababababaa +baabbbabaaababababbbabab +aaaaaaabbbbbbabaababbabb +aaaaaababbbaaaaabababbab +baaabbbbaaaabababababbba +ababbbabaaaabbabaaaaabababaabbba +abbabbbbbabbaabaabaababb +baaaaababbbaabababbaabab +babbaaaaaabbbbaabbabbbabbbbbbababaabbabbababaaba +bbbbbaaaaabababbaabaabbaabbbaabbabaabbba +bbbbaabaaaabbbbbbabbaaab +baaababaaababbaaaabbbbbbabaaaaaa +aaabbaaaababaabbabbbbabbbbaaaaaaaaabbaaabaabbaabbbbabbabbabbaaabaaabaabb +aabaabbabbbabbbaabaaaaab +abaabaaaaabaabaaabaabbba +aabbbbabaaababbbababbbaa +bbabaaababbabbabaabbaabbbbbbabba +aabbbaaaaabbbbbbbababaaabaabbbaa +abbbbabbaabbabaabaababaaabbabaaabaabaabbaaaaabaabbaaabbabbaaaaab +bbbabaaabbaabbbbaaaaaaba +baaaaabbaaaaabaabbababbb +bbbabbbbbabbbbbbbbbbabab +abbbabaabbaaababbbbbabaa +aaaaabaaaaababbbabaaaabbabaaaaba +abbababbbbbaaabbaaaabbbabaaabbbaaaaabbaababaaaababaaaabb +abaabbbbbbbabaabababbabbbbabaaabbabababbaaabbaabbaababab +baabbababbbabbaaaaaaaaba +aabbbabbaaaabaaaababaaab +abbabaaaaabbbbabbabbbbaaabbbbbabbbaaaabbbbaababb +abbbbbbaaaabaababbaabbaa +bbbbaabaabaaababaaabbabbaabbbabbbbababbbaabbabbabaabaaba +abbbabaaaababaaaababaaab +bbabaaababbaabbababbabaabaababaa +aaaabbbaaaaabbbbabbbbbbabbbabaabbbabbbaabbaabababababaaabbbaabbabbabaaaabbbbbbbbabaaabba +abbaabaabbbabbbbabaaaaab +abbaaaaababbbbbbbabbabbaabbababbaaaaaabbabbaaaabaabbbaba +aababaaaaabaaabbbaabaaab +bbbabababbbabbbbabbabaaababaaaaa +abbbbaaababbaaabbaaaabbabaabaaab +abaabaabbbbabaabaabababa +aaaaaaaaabaaababbbabbabbaaaaaaabaaaabbababababaa +abababbbabababbaaabbabbbbbaabbbbbbaaababbbabbbbaabbabbaa +bbbbbabaaabbbbabaaabbabbabababbaaaaabbbb +aabbbbaaaaababbbaabbabba +baaaaababaaaaababbabbbbaaaaaabaaababbaaabaaaaaaa +abaaaabbabbaaababbabbbbb +bbaabaaabaaaaabbbabbaabaaaabaabbaaaaabba +abbbbbbbbabbbbaabbabaaaaabbabbbabaaabaaa +bbbaabaaabaaaababbbbbabbbbbbbabbbbaaaaba +abbaaabbbaabaabbbbbbaaab +aaabbaaabbabbaabbababbaa +abbbabbbabababbababaaaaa +bbabbbbabaaaaababbaababbbbbaabaabbabbaaaaaaaabbbaaabbaab +abaaababbbaabaaababbabaa +bbaabaabbaaabbbbbaaaaabbaabbbbbbabbabaaabbaabababababbbabaaaabab +abbaaaaaaabbabaababbbbba +bbbababababaaabbabaaaaaa +babbbabbbbbabaabababbabb +abbaaaaaabbabaaabbbbaabbbabababa +abbabbbbbbabaabbbabbabba +baabaaaaaaaabaabbbbababaaaabbaaabbbaaabbbabbbaba +baaabaababbaaabbabbbbabb +abaabaabbbbbaabbababbbaa +bbbbaabaabbababbbbababaabaaabbabbbbbabbabbbabbab +bbabaaababbabaaaaaabaabbaabaaabaaabbaababbaaabbbbbbbabba +bbbabaaaabbabbabbbbabbab +bababaaababbbbbbbaabbbaa +abbbbbbbbbabbaaabbababbb +aabbaaabaabbbaaabbbaaaba +aabbabbbbabaabababbabbaa +abbbabaababaaabbabaabaaaaabbbbababaaabaababbaaaa +aaaaabaabaaababaabaaaaab +bbbaabbbbbaabbaababaabbb +abaaaabbabbabbbbbbbbaaab +aabababbbaaabababbabbabbaaaaabab +bbabbaaaaaaaaaabbaaababb +baaaaabaaaabaaaabbbabbbbaabbbbaaabaabbabbabbbbbababaaaaa +aaababbaaababaaaaaabaababbbabaaa +babbaabbbaaabaababaabbba +abbbabaaabbababaaababbbb +abbbaabbbabbababaabbaaabbabbaaaa +bbbaabababbaaabaaaababab +aaaaaaaaabbabbabababaabbbbaaaabbbbababbaaaabbaaaabababaabaabababbbbaaabaaaabaabb +bbbbbaaabababbabaabbbbaabaaaaabbabbbabbabaabbbbaaabaababbbaabbba +aaabbabbaabbaaabbbaaabbaaabbbbbabaaaaabaaababaaabaabaaab +bbaababbaabbbbbbaabbbaaaabaabbab +bbbbababababaaaaabbbaabbaaababbbababbabaaabbbaaa +bababaaaaabaaabbbbabbababbbbbaaa +babababbaaaaaaababaababb +bbaaaaaaaabababbabbaabab +abbaaaaabbbbbbaaaababaab +babaababaababbaabbbabbbbbabbabbb +aabbbbbbaababaaaababaabb +aaaababbabababbabbabbabbbbaaababbabbbaab +bbabbaaaaabaaababaabbaabaaaaabab +aaaaaaaabbbbbaaaabbaabab +abaaaabbbabbbabbabaabaabbbaaaaabbbbaabbb +babaaabbabababbabbaaaaba +baaababaabbabaabbaababbb +aababaaaabaaabbaabaababa +bbbabaabbabbbabbbbaaabbb +abaaabbabbaabbaabaaabbaa +bbbababbbbbbbaaabababbbaabbbaabbbaabaaabbabbabbabbaabaaaababbbbbbbbbbababbbabbaa +bbbbaaaaaabbbabbabbaabaababbababaabbabaaaaababbbbaababaa +bababbbbbaabbaababababbbabbbaaab +bbaababbabbbaabbbababbab +baabaabbaabbaabbbaaaabab +aaaaabbbbababaabaabaaaaa +bbbabaababbabaaabbbbabab +bbbabaabaaaaaaaabaabbbababbaaabaaaabbabbaaaaabbbabbaaabb +aabbabaabbbbaabaaababaaaabbbabbbbbbaaaaababbbbab +aaaaaaabbabaaabbababaabb +abaaabaabbabbaaabbbbbaab +aabaabbaabbabaaabbabbabbabbbbbbbaaaabbbb +baabaaaabbbabaabaabbaabbaababbaaaabbaaaaaababaab +baabbaaaaabbbbbbabbabbba +aabbbbbbbbaababbaaabaabaabbbabaababbbabaabbababb +bbabaabbbabbaababbababba +bbbbaabbbbaabbaaabbbbaba +aaababbabaabbabbabaaaaab +aaabaabaaaaaabaaabababab +ababbabaabbbbbabbabbaababababbba +abbaaabbbbbabaabaabbbbbababaababaabaabaabbaabbbaabbbbaaa +baabbaabbbaaabbaabaaaabbbbbbbbaaabaaababababbbba +aaaababaaaaabbabaabbaaaababaabaabaabababababbbbaaabbaaaa +aaabaabbbbbaabaaababaaba +bababaabaabbbabbaaaabbababbabbaa +baabaaaaaabbaababaaababb +baaaabaaaaaaaaaabbabbbaa +babbaabbabaaabaaabbaabaabababbbabaababababaaaaaaabaaaaabaaabbbba +abbaaaaabaabbbbbabaaaaaabbbbbbba +aaabbaaaabaaaabbbaababab +baaabbbbaabbbabbaabbbaab +babbaabbbabbabaaababbbababaababbbabbbbbbbbaabaaaabaaabbbbaabbbbbbaaabbbb +bbabbabaaaaaaaabaaaaaabb +ababbbbbababbabaaabbaababababbbbabbbbaaaaaaaaaaaabbbbbbabbbaabba +aaababbaaabababbababaaba +aaaaababbababbabbaaabbbbbbaaaabaaaabbabb +baabbbbbabbbabbbaaabaaab +babaaababaababbbababbbbabbababababbbbaab +abaabaabbabababbbaababbbbabbbbab +baababbababaaaaaaababaababbaabaaaabaaabaabbbbbbabbbbabaabbbababbaaaabbbabaaaaababbbababaabaaabab +bbbbbbaaabbababaabbbbaab +abbaaaaabbabbabaababbaaa +baaabbbbaabaabbbbbbabbbbbaaaabab +bbbbbbaaaabaabaabaaabbaa +aabaabbabbbabbbaabaaabbb +bbaababbaabbbbabbbababbb +bababaaabbabbbabaaaaabbbaaabbaab +babbabbbbbabaabbbbabbbbaaabbbaaabaabbbbaaabbaaaabbbbabbb +babbababbbabbabaabbbbaab +aaaabbabbbabbbbabbbbaabaabbabababaaabaabbbbbbbbabaaaabba +bbbbaaabaaabaaaaabbaabababaaabbbabbabbbb +bbbabababbbbbbaaabbbbbaa +baababbabaabbabbaabaabbbaabbbbbabbabbbaa +bbaabbbbbbabbababaaabbaa +aaaaaababaabbbbbbaabbabbbababaaaaababababaaabbabaaaabbbbaaaabbabbabbbaab +babbbabbbaaabbbbbbaaaaaaaaabaabbbaabbaaaaababaabababaaba +abababbbaaaababbbbaaabaa +ababbabaaaaababbabaaaaaa +bababaaaabbaaabbbababbab +bbaabbbaabbabbbbaabababa +baabbbbbabbabbabbbbbaaab +abbaaaaaaaaabaaabaaaabba +aabbaabbbbbabbaababbababaaabaabb +bbaababbbbbabbbaaaababbabbaababbabababbabbababaabbaaabaaabaabbaa +abbbbbabaaabbabbababbaab +aaaaabaaaabaaaababbbbaaa +aabaaabbbabbabbbabababaa +aabbbabbaaaaabbbaababaab +abababbbbbaabbaaabbbaabbaaaaabaabaaaabaabbbaaababbaababaabaababaababbbbb +babbaabaabababbbaaabbaab +abbbaabbabbbbbbbbaaababababbbaabbababbab +aaaababbabbaaaaabaabaabbbbabbbaaaaaaabba +bababbbbbbbbaabbaaaabbba +bbaabbbaaaaaabbbbabbbbaa +aabbaabaabbbabaabababbbbbbbbabab +babababbabbbabaabbbabaaaabababaa +babaaababbaaaabbbaabbbba +ababaaaaabbbbbbbbaabbabbbabbaabbaaaabababaababaa +bbaaaaabbaaaabbbbabbaabaababaababaabbaabababbbbaabbabbaa +baabbabbaaabaabbbbbbaabaaaaabaabaabaabab +aaababbbbbaababbabbabbaa +aabbaaabaabbaaabbaababab +abbabaaaaababaaaaaaaaaaabaaabaaabbbbabaa +aaabaabaabbbabaabaabbabbaababaaaabaababa +abbabbabbababbbbbaaaaaab +aabaaabbbbbaaaabbbabababbaaaabbbaaabbbab +bababbaaababbabababbabaabababaababbabaaaaaabaaaabbaaaaaabaabaaab +aababaaabaaaaabbabababaa +aabbabaabbabbaaabbbaaaba +aabbabbbabbabaababbaaaaaaabbbabbaaabbaabaaaabbbbaaaabbba +abababbabbbbaaaababbbbab +aaaabbbbbbbbaabbbaababbaaabbbbbaaababbabbbbaaaaaababaabbababbbaabaababba +abaaabbababababbbabababa +abaaabbaabababbbbaaaaaaabbbbabbb +aabababbbbbabaaababbabbbababaabb +abababbaabbbaabbaabbbbbabbbbbbbb +aabaabbbbbaabbbabaaabbbbbbaaaaaabbbbbbbabababbaabaaaabaa +babaaaabaaababbaaabababa +bbaabbbaababbababbbaaaab +bbbaaaababbbbbaabbbbbababbababbaabbaabababbabbbababbbbababbbabaaaabbabaaabaaaababbbbbaaaabaaabbb +baabaabbbaabbabaaababbba +bbbaabbbbbababbbbbbbaababbaabbaabbbbbaababbaabbabbbbaaabaabaabbabaabbbaa +bbbbbbbababbbbbbaabaababaaaaabbbbbbabbbb +aababbaabbbbaabbbbbaabbbaabaabaaaaaaabbbbabababa +abbbabaaabaaabbabbaaaaba +aaaaabbbaabbbbbbaaababbbbabaabbaababaabbbabaaaaabbaaabbb +babbabbbbbabaaabaaaabbaa +bbbbaabbaaaaabaabbabbaaabbabaaaa +aaababbbaabaaabbbbbaabba +aabbaabbababaaaaabbababbbababbaaabbbbaabbbbaaabbbaaabaab +bbabbabaabbabaabababaaab +bbaaababbbbbaabababbbbaa +aaaababaabbaaabbabbbbbaa +bbaabbbaabaabaabbbaaaaababbabaabbbabbabaaabbabbabbbbabaa +babbababaabaaabababbababbbaaababbbabbbbbbabababa +aababbaaaaabaabbbbaaabaaabbbbabb +bbbaaabbabaabbbbaabbabbbbabbaabbbabaababbbbaaaaaaababaabaaaaaaabbababaaa +abbaaabbbbabbaaaabaabbba +aaaaabaaaaaabbabbbaabaaaabaaaaaa +aaabbbbbbaabaabbabbbaaab +abaabaabbabaabbabbababbb +aabbbaaaabababbababbbabbbabbabababbbbaabbaaaaaaa +baababaababbabbbbbbabbbbababbabaabaaaaba +bbaabbaabbaaaaaaaaabbaba +aaaaabbbbaabbababababbbbbaababbaaaabbaab +abbaabbabaaabbbaaaaaaabbaababbbaaabbbbbbabaaaaabbaabaaaabaaaaaababaabaababbbbbbbbaabbabb +baababbabbabbabaabbabaaababbbaaa +baabbaabaababbabbbbbabbb +aabbaaababbbabbbbaabbaabababbbbb +aabbbabbaaabaabaabbbaaab +abbbbbbbbabababbbbaaaaabaabaabbbbababbaa +bbbbbaaabbabaaabaababbababbababababaabbbbabaaaaa +abbabbabaabbbbbbaabbbbbbbabbabbbabbaaaaaabbbaabababbaaaa +aaaababbaababbabaaaaabaaabbbbbbbbbbbbaba +bbbbabbaabaaabbabbaaabbaaababbaabbabbabaababaababbaaabaa +aaabbbbbbaabaabbbbaababa +baabaaaaaaabbabbbabbbabbbabbaaabbaaaabab diff --git a/2020/inputs/day19_short b/2020/inputs/day19_short new file mode 100644 index 0000000..f5f6d4e --- /dev/null +++ b/2020/inputs/day19_short @@ -0,0 +1,47 @@ +42: 9 14 | 10 1 +9: 14 27 | 1 26 +10: 23 14 | 28 1 +1: "a" +11: 42 31 | 42 11 31 +5: 1 14 | 15 1 +19: 14 1 | 14 14 +12: 24 14 | 19 1 +16: 15 1 | 14 14 +31: 14 17 | 1 13 +6: 14 14 | 1 14 +2: 1 24 | 14 4 +0: 8 11 +13: 14 3 | 1 12 +15: 1 | 14 +17: 14 2 | 1 7 +23: 25 1 | 22 14 +28: 16 1 +4: 1 1 +20: 14 14 | 1 15 +3: 5 14 | 16 1 +27: 1 6 | 14 18 +14: "b" +21: 14 1 | 1 14 +25: 1 1 | 1 14 +22: 14 14 +8: 42 | 42 8 +26: 14 22 | 1 20 +18: 15 15 +7: 14 5 | 1 21 +24: 14 1 + +abbbbbabbbaaaababbaabbbbabababbbabbbbbbabaaaa +bbabbbbaabaabba +babbbbaabbbbbabbbbbbaabaaabaaa +aaabbbbbbaaaabaababaabababbabaaabbababababaaa +bbbbbbbaaaabbbbaaabbabaaa +bbbababbbbaaaaaaaabbababaaababaabab +ababaaaaaabaaab +ababaaaaabbbaba +baabbaaaabbaaaababbaababb +abbbbabbbbaaaababbbbbbaaaababb +aaaaabbaabaaaaababaa +aaaabbaaaabbaaa +aaaabbaabbaaaaaaabbbabbbaaabbaabaaa +babaaabbbaaabaababbaabababaaab +aabbbbbaabbbaaaaaabbbbbababaaaaabbaaabba diff --git a/2020/inputs/day19b b/2020/inputs/day19b new file mode 100644 index 0000000..98858e0 --- /dev/null +++ b/2020/inputs/day19b @@ -0,0 +1,530 @@ +70: 90 92 | 53 50 +99: 90 102 | 53 22 +24: 130 90 +125: 85 53 | 100 90 +61: 53 58 | 90 26 +88: 33 53 | 46 90 +32: 65 90 | 90 53 +48: 46 53 +116: 53 50 | 90 18 +40: 53 83 | 90 81 +54: 46 53 | 5 90 +36: 50 90 | 130 53 +58: 92 90 | 130 53 +2: 19 53 | 75 90 +95: 53 46 | 90 19 +124: 46 53 | 33 90 +79: 91 53 | 7 90 +46: 90 90 | 53 90 +87: 9 90 | 84 53 +122: 90 46 | 53 33 +15: 89 90 | 79 53 +41: 90 4 | 53 119 +7: 53 128 | 90 128 +93: 53 120 | 90 37 +121: 15 53 | 103 90 +91: 90 33 | 53 110 +5: 53 90 | 65 53 +26: 53 19 | 90 107 +44: 53 75 | 90 32 +23: 107 53 | 50 90 +33: 90 53 | 90 90 +75: 53 53 | 90 90 +18: 65 65 +59: 53 107 | 90 32 +104: 90 33 | 53 46 +20: 121 90 | 123 53 +100: 90 75 | 53 46 +131: 18 90 | 46 53 +9: 90 67 | 53 105 +37: 53 75 | 90 128 +3: 53 29 | 90 22 +120: 53 92 | 90 33 +35: 55 53 | 30 90 +115: 65 107 +106: 90 46 | 53 19 +89: 90 59 | 53 68 +83: 90 46 | 53 130 +25: 90 87 | 53 41 +11: 42 31 | 42 11 31 +84: 53 117 | 90 34 +8: 42 | 42 8 +53: "a" +86: 53 6 | 90 12 +76: 53 78 | 90 97 +52: 126 90 | 115 53 +31: 53 35 | 90 20 +112: 110 90 | 32 53 +82: 101 90 | 127 53 +119: 53 27 | 90 93 +117: 90 81 | 53 23 +57: 82 53 | 43 90 +105: 90 126 | 53 21 +111: 53 32 | 90 110 +68: 53 18 | 90 46 +73: 71 90 | 24 53 +49: 77 90 | 48 53 +81: 90 50 | 53 75 +102: 32 53 | 128 90 +12: 92 53 | 19 90 +60: 62 90 | 108 53 +101: 53 104 | 90 62 +65: 53 | 90 +50: 53 90 +97: 53 56 | 90 64 +63: 99 90 | 39 53 +43: 90 125 | 53 60 +66: 130 90 | 33 53 +27: 53 2 | 90 14 +4: 3 90 | 74 53 +118: 53 76 | 90 57 +113: 86 53 | 13 90 +56: 90 28 | 53 54 +38: 36 90 | 69 53 +39: 10 53 | 23 90 +14: 90 50 | 53 18 +45: 53 72 | 90 40 +21: 130 90 | 107 53 +30: 90 113 | 53 1 +19: 53 53 | 90 53 +130: 53 53 +110: 53 65 | 90 90 +0: 8 11 +77: 53 110 | 90 92 +62: 53 33 | 90 19 +126: 50 90 +29: 75 53 | 5 90 +129: 98 53 | 47 90 +47: 53 94 | 90 95 +71: 107 53 +92: 53 53 | 90 65 +127: 22 53 | 109 90 +6: 92 53 | 32 90 +51: 26 90 | 66 53 +107: 90 53 | 53 90 +72: 90 124 | 53 104 +1: 53 96 | 90 52 +103: 53 73 | 90 61 +74: 2 90 | 131 53 +64: 90 7 | 53 122 +67: 53 70 | 90 104 +42: 53 25 | 90 118 +123: 63 90 | 80 53 +17: 46 53 | 130 90 +10: 19 90 | 33 53 +13: 53 112 | 90 17 +28: 90 128 | 53 110 +114: 53 5 | 90 50 +78: 49 90 | 51 53 +16: 111 53 | 14 90 +90: "b" +85: 130 90 | 50 53 +80: 38 53 | 16 90 +69: 110 53 | 107 90 +98: 53 44 | 90 88 +94: 5 53 | 46 90 +108: 18 53 | 75 90 +55: 90 129 | 53 45 +128: 90 90 +34: 106 90 | 114 53 +109: 90 110 | 53 50 +96: 36 90 | 116 53 +22: 75 53 | 18 90 + +aaaaaaaabbbbaabaabbbaaba +aaaaaaaaabbaaabbbaabaaaaabbaaabaaabbbbbb +babaabaaabaaabbbaaaabbba +baaaabbbabbabbbbabaababa +aaaaabaabbbabbbabaaabababaabaabbbaaaabba +babababbbaababbabaaaaaab +bbabbbabbabaaabaaaaaaaba +bbaabbaaaababbabbbabbbbb +babbbbbbbbbababaaaabbbab +abbbbbbaaaabbaaaaabbaaababbbbbababbaaaab +aabbaabaaabaabaababbbaaa +baaabaabaaabaabbbbaaaaba +aabababbaabaaaabbaaaabaaabbbbbaa +bbbbbababbaabaaabaababbababbaabababbababbaabbabaaaabbbba +bbbaabbbaababbaaaaaaaabb +aaababbbbbaaababababaabb +bbabaabbababbbaabbababaa +baaabababbbbbaaababbabab +aaaababaaabbaababbaaaabb +ababbabaaabaaaabbbbaaaba +bbaaababbbbababbabbaabba +babbbbbbbbbababababbaaab +babaabbbbababaababbaabaabbabaabb +baaaaabaaaaaabaabbaaabaa +aabbabaaabaaabababbbbaab +bababaabaabbaabbababaaab +babaababbbbbbabababbbaaa +babaaabbaababaaaaaaabbbb +bbbbbabbbbaabaaabbaabbaabaabbaabaababbaa +bbababaaaaaaaababbbaabbabbbaabbabbabbaabaaaaaaaaabbbabbbbaabbaababaaaaabaabbaaaa +abaaabababaaabaabbbaaaaa +baabbbbbabbbabbbbbaababbaababaaabbbbaaaa +abbbabbbabbbaabbbaaaabab +babbabbbabbbbabbaaabbaaabbababbabbbbbbaababaabbb +babaabaaabbaabaaaaabbbbbabaabaaaabbbbaaaaaaababbabbaabbbaaabaaaababaaaba +aabbababbaaaaaaabbbbababbaabbbbaaababbbbaaaabbabbabbbbaaaabbababbbbbabba +bbaaabbaabaabaaabbaaaabb +bbaabaaaabbabbababbbbbabbaaaaaababbaabbb +baaababaabbbabaabbaaaaabaaababab +abababbabbaabaabbaaabbaa +bbbbabbaababaaaabbbbaaaababbabbbabbbbbabbbaaabbabbbbbbbabbbaabababaabbbb +bbabaaaaaaababbababbabaaaaaaabaabbbbbaaabababbaaaaaaaabbbbabaabaaaaaabbbbababaabaabbaababbaaabab +babaaaabbaaabababbaaabbbbaaaaaaa +babbbabbbaabbababbbaaabb +abbbabaaabbabbbbbbabababaaaaabba +baaaaaaaaababaaaabbbbbaabbaaaaba +bbbabbbababbaababaabbabaaabbbabbabaaaababbbaaaab +bbbaabaaabbaaaaabbabaaaa +abababbabaababbaaabaabaaaaababbbbaaabbaabbbababbababaaba +bbbaabbbbbbbbbaababbaabababbaabaabbbbaba +babbaaaaaabaaabaabaabaabbbaaaababaaaaabaabbbaaaabbbabaabbabbbaabbbabaaab +bbabbbbaababaabbababbbbaaaaabaabbaababbbabaabaaaaababaaabbabbbba +abbabaaaaabbbbbabbaaabbb +aababaaaaaaabaaabbababbb +babbbbbbbbbababaaaabaaab +bbbabaabababaaaabaaaabba +aaababbbbabbaabbbabbbabbbbababaa +abbbbaaaabaaaabaabaaaaba +bbabaabbbaabbabbaaaababbbbbaabbaabaaaaaabbabbbbaababaaba +abaaababaaaaaaabbbabbbbaabbababbbbbaababbbbbabbaabbbbbababbabbbb +bababaababbaaaaaaabbabab +baaabbaabbaabaaababbababbbabbbabbbbbbaab +baaaaababaababbaaaababab +abbaabaabbbabbaaaaabaaab +abbbabbaabbaaaaabbbbaaaabaababbabaabbbaa +bbaabbbbbaabbaaaabaabaaaababbaaa +aaabaaaaabbabbabaaababaa +aabaabbaaabbbbbaabbbbbbaabaabbba +aababbaababbbabbabbbabab +bbabbaaaaabbbbbaaabababa +aaabbbbbabbbbbaababaabba +aaaaaaaabbabaaabbbabbbaa +bbbabaaaaaabaaaaaaababaa +aabbbabbbabbabababbbabbbbbbbabba +baababbababbaabaabbbbaba +abbbaabbbabbbabbabbabbaa +aabbaabbabbbbbbabaabbabbabbbbbbbaaabbbbbaaaabbba +bababaabaabaaabaaaabbbaa +bbbabaabbaaababababbbbba +abbbaabbbbbaaaabbabbbbabababbabb +baabaaaabbababbbabbaabbabaaaabab +babaabbabbaabbbabbaabbababbbbabb +aaaaabbbaaabbbbbabbabbbbbbbabaabbbabbbababaaaaaa +babaaaabbababbaaababaababaaaabba +bababaabbbbabababbabaaba +aaabbbbbaabababbababbabb +bbbaabbbbabbbbbbaabaabab +baababbabbbbbabaabaabbbb +abbbabaabbbbaabaababbbaa +aababaaaaabaaabaaaaaaaba +abbbbaaaababaaabbaaaaaaababbaaaababbbaabbaabbbbbaabbababbaaabbbb +bbbbbbaabbbababaabaaaababbbbbaabaabbaaaabbbbaaababababaa +bbbaabbaaaabaaababbabbaaaabbabbabaabbbaaaabaaaaa +bbbabbbabbbbbaababaaabbbaaababbaabaabaaa +abbbabbaabbaaaaaaabababa +baabaabbabaaabbabbbaaabb +aaabaabaabaaabaaababbbaa +babbaabaabaaaabbabbbbaba +bbbbaabbbaabbaabbbabbbbaabaaababaaaaabab +baabaabbaaaaabaaaabbabaabbbbbabaaababbabbbbbababbabaabbbbbabaaba +abaaabbaaabaabbaaaaabbba +ababaaaabbaaaaaaabbbaabbabbbbabb +babaabbababbbabbabaabaabbbbbaabbbabaaabbaaabbbba +baabbbbbbbbabbbbbababbab +ababbababaaaaabbbbbabbbbabaaaabbaaaaabaaabaababb +aaabaabababaabababbababb +aaabbbbaaaaabbbbbbabbabbbabaabaabbaaaaaabaaaaabbbbbabbbabaaaaabaababaaba +bbaabbaaaaaababbbaababaa +aaaaabbbbbaaaaabbaababaa +aaabbbbbabbbbbababbbaabbaaabbabbabaaabbb +baaaaabbbbbbbbbabbbbbabbbaabbbababbbbbaa +abbabababbbbabbabbaabbaabaaaabaabbbbbaaabbbbbbaaabbabbbabbbaaabbbbaaabab +bbabbbabbbbabaaaabbabbabbaaabbab +aabbaaabaabbbabbbbbaaaba +ababbabaabbbaabbaaaaabbbaabaabbbbbbbbbbbbaaabbbbbaabaaabbaaaabba +bbabbbababababaabbaaabbb +babbabbbbbbabbbabbabaabbabbaaabbababbababbabbbbbabababaa +bbaaaaabaabaabaabbbabbbbaabbbbbbaaaaaaba +aaaaababbaaaaababaaabaaaaaaaaaabababbabbabbaaaaa +abaaabbbaaabaabaaabaaaabaaabbbaa +baaaaababbabbbbaaaaaaaaabbbbabba +bbaabbaabbbbbabaaabbbbbabaaabaaaaaabbaba +bbaaabbabaaaaabbaabbaababaaaabaaababbbab +aabbaaababbbbbbbaabbabba +abbabbabbbaaabbababaaaaa +abbaabaabbbbbbbbbbbabbbbbabaabaa +aabbabaaababbabaabbbaaaa +bbabaababbabbaaaaaabbbbbabbaabaabaaabbbbbabbaabbbaaaaababbaababbbbababab +bbabbaabbbabbbbabaaabbaa +aaaabbababbaaabbabbbabaabbbaaababababbab +aaaababbaaabaabbbaabaaab +aabbaabbaaabaaaabbaabbab +babababbaabbbbabbbabbaabbaaaaababaabbabbabbabbbaabababaabbabbbaa +baabbaabbababbbbabaaaaba +aabaaabbababbbaaabbbabaabaaaabbbabaabbaaabbbaabaaaabaaaaabaaabbabbbabbbb +aabbbbbbaabaaabaaabbbbabaaabaabaababbaababbaabab +bbbabbbaaaaabaabbbbbbaaaaabbbbbabbabaaabbbbaabba +aabbbaaaabaaaabbbbbabbab +bbaaaaaaabbbbbbbababbbaa +baaaabbbabbbbbbbbbaababa +abbabaaaaabbbbbaaabbaaaa +bbbbbbbbaabaabbbbaaaabba +aabaaaaaaabbbaababbaabbbbababbabababaaab +aaaabbabaabbabaaaaabbbab +baaabbbbbbbabaabbbaabaabaaaaababbaabbbbababbbbababbbbababbbbbbab +baabbbbbbababbbbabaaaaaa +bbbbbbbbbaaaaababbabbbbbbbbaaabb +abbaaabbaaaabbabbaabbabbbbaababbbbbbbabb +abbabababbaabaaaabbbaaba +abbabaaaaabbbbbbaaaabbbb +bbaabaababababbabbabaaaa +ababbbbbbabbabbababbaababbbabbabbbabbabaaaaaababaaaabaabbbaababa +bbabbabbabbababaaaababaa +baabbaaabaabaaaaabaaaaab +bbbabbaabbaaababbaaaaaab +bbbbaabaababbabababbaaaa +babbbabbabbabbabbbaaabbaaabbaabababbbabb +aaaababbbaaaaababbbbbbaaabaababb +bbbbaaaabbbbaaaaaabaaababbaabaababababaa +baabbbabaaababababbbabab +aaaaaaabbbbbbabaababbabb +aaaaaababbbaaaaabababbab +baaabbbbaaaabababababbba +ababbbabaaaabbabaaaaabababaabbba +abbabbbbbabbaabaabaababb +baaaaababbbaabababbaabab +babbaaaaaabbbbaabbabbbabbbbbbababaabbabbababaaba +bbbbbaaaaabababbaabaabbaabbbaabbabaabbba +bbbbaabaaaabbbbbbabbaaab +baaababaaababbaaaabbbbbbabaaaaaa +aaabbaaaababaabbabbbbabbbbaaaaaaaaabbaaabaabbaabbbbabbabbabbaaabaaabaabb +aabaabbabbbabbbaabaaaaab +abaabaaaaabaabaaabaabbba +aabbbbabaaababbbababbbaa +bbabaaababbabbabaabbaabbbbbbabba +aabbbaaaaabbbbbbbababaaabaabbbaa +abbbbabbaabbabaabaababaaabbabaaabaabaabbaaaaabaabbaaabbabbaaaaab +bbbabaaabbaabbbbaaaaaaba +baaaaabbaaaaabaabbababbb +bbbabbbbbabbbbbbbbbbabab +abbbabaabbaaababbbbbabaa +aaaaabaaaaababbbabaaaabbabaaaaba +abbababbbbbaaabbaaaabbbabaaabbbaaaaabbaababaaaababaaaabb +abaabbbbbbbabaabababbabbbbabaaabbabababbaaabbaabbaababab +baabbababbbabbaaaaaaaaba +aabbbabbaaaabaaaababaaab +abbabaaaaabbbbabbabbbbaaabbbbbabbbaaaabbbbaababb +abbbbbbaaaabaababbaabbaa +bbbbaabaabaaababaaabbabbaabbbabbbbababbbaabbabbabaabaaba +abbbabaaaababaaaababaaab +bbabaaababbaabbababbabaabaababaa +aaaabbbaaaaabbbbabbbbbbabbbabaabbbabbbaabbaabababababaaabbbaabbabbabaaaabbbbbbbbabaaabba +abbaabaabbbabbbbabaaaaab +abbaaaaababbbbbbbabbabbaabbababbaaaaaabbabbaaaabaabbbaba +aababaaaaabaaabbbaabaaab +bbbabababbbabbbbabbabaaababaaaaa +abbbbaaababbaaabbaaaabbabaabaaab +abaabaabbbbabaabaabababa +aaaaaaaaabaaababbbabbabbaaaaaaabaaaabbababababaa +abababbbabababbaaabbabbbbbaabbbbbbaaababbbabbbbaabbabbaa +bbbbbabaaabbbbabaaabbabbabababbaaaaabbbb +aabbbbaaaaababbbaabbabba +baaaaababaaaaababbabbbbaaaaaabaaababbaaabaaaaaaa +abaaaabbabbaaababbabbbbb +bbaabaaabaaaaabbbabbaabaaaabaabbaaaaabba +abbbbbbbbabbbbaabbabaaaaabbabbbabaaabaaa +bbbaabaaabaaaababbbbbabbbbbbbabbbbaaaaba +abbaaabbbaabaabbbbbbaaab +aaabbaaabbabbaabbababbaa +abbbabbbabababbababaaaaa +bbabbbbabaaaaababbaababbbbbaabaabbabbaaaaaaaabbbaaabbaab +abaaababbbaabaaababbabaa +bbaabaabbaaabbbbbaaaaabbaabbbbbbabbabaaabbaabababababbbabaaaabab +abbaaaaaaabbabaababbbbba +bbbababababaaabbabaaaaaa +babbbabbbbbabaabababbabb +abbaaaaaabbabaaabbbbaabbbabababa +abbabbbbbbabaabbbabbabba +baabaaaaaaaabaabbbbababaaaabbaaabbbaaabbbabbbaba +baaabaababbaaabbabbbbabb +abaabaabbbbbaabbababbbaa +bbbbaabaabbababbbbababaabaaabbabbbbbabbabbbabbab +bbabaaababbabaaaaaabaabbaabaaabaaabbaababbaaabbbbbbbabba +bbbabaaaabbabbabbbbabbab +bababaaababbbbbbbaabbbaa +abbbbbbbbbabbaaabbababbb +aabbaaabaabbbaaabbbaaaba +aabbabbbbabaabababbabbaa +abbbabaababaaabbabaabaaaaabbbbababaaabaababbaaaa +aaaaabaabaaababaabaaaaab +bbbaabbbbbaabbaababaabbb +abaaaabbabbabbbbbbbbaaab +aabababbbaaabababbabbabbaaaaabab +bbabbaaaaaaaaaabbaaababb +baaaaabaaaabaaaabbbabbbbaabbbbaaabaabbabbabbbbbababaaaaa +aaababbaaababaaaaaabaababbbabaaa +babbaabbbaaabaababaabbba +abbbabaaabbababaaababbbb +abbbaabbbabbababaabbaaabbabbaaaa +bbbaabababbaaabaaaababab +aaaaaaaaabbabbabababaabbbbaaaabbbbababbaaaabbaaaabababaabaabababbbbaaabaaaabaabb +bbbbbaaabababbabaabbbbaabaaaaabbabbbabbabaabbbbaaabaababbbaabbba +aaabbabbaabbaaabbbaaabbaaabbbbbabaaaaabaaababaaabaabaaab +bbaababbaabbbbbbaabbbaaaabaabbab +bbbbababababaaaaabbbaabbaaababbbababbabaaabbbaaa +bababaaaaabaaabbbbabbababbbbbaaa +babababbaaaaaaababaababb +bbaaaaaaaabababbabbaabab +abbaaaaabbbbbbaaaababaab +babaababaababbaabbbabbbbbabbabbb +aabbbbbbaababaaaababaabb +aaaababbabababbabbabbabbbbaaababbabbbaab +bbabbaaaaabaaababaabbaabaaaaabab +aaaaaaaabbbbbaaaabbaabab +abaaaabbbabbbabbabaabaabbbaaaaabbbbaabbb +babaaabbabababbabbaaaaba +baaababaabbabaabbaababbb +aababaaaabaaabbaabaababa +bbbabaabbabbbabbbbaaabbb +abaaabbabbaabbaabaaabbaa +bbbababbbbbbbaaabababbbaabbbaabbbaabaaabbabbabbabbaabaaaababbbbbbbbbbababbbabbaa +bbbbaaaaaabbbabbabbaabaababbababaabbabaaaaababbbbaababaa +bababbbbbaabbaababababbbabbbaaab +bbaababbabbbaabbbababbab +baabaabbaabbaabbbaaaabab +aaaaabbbbababaabaabaaaaa +bbbabaababbabaaabbbbabab +bbbabaabaaaaaaaabaabbbababbaaabaaaabbabbaaaaabbbabbaaabb +aabbabaabbbbaabaaababaaaabbbabbbbbbaaaaababbbbab +aaaaaaabbabaaabbababaabb +abaaabaabbabbaaabbbbbaab +aabaabbaabbabaaabbabbabbabbbbbbbaaaabbbb +baabaaaabbbabaabaabbaabbaababbaaaabbaaaaaababaab +baabbaaaaabbbbbbabbabbba +aabbbbbbbbaababbaaabaabaabbbabaababbbabaabbababb +bbabaabbbabbaababbababba +bbbbaabbbbaabbaaabbbbaba +aaababbabaabbabbabaaaaab +aaabaabaaaaaabaaabababab +ababbabaabbbbbabbabbaababababbba +abbaaabbbbbabaabaabbbbbababaababaabaabaabbaabbbaabbbbaaa +baabbaabbbaaabbaabaaaabbbbbbbbaaabaaababababbbba +aaaababaaaaabbabaabbaaaababaabaabaabababababbbbaaabbaaaa +aaabaabbbbbaabaaababaaba +bababaabaabbbabbaaaabbababbabbaa +baabaaaaaabbaababaaababb +baaaabaaaaaaaaaabbabbbaa +babbaabbabaaabaaabbaabaabababbbabaababababaaaaaaabaaaaabaaabbbba +abbaaaaabaabbbbbabaaaaaabbbbbbba +aaabbaaaabaaaabbbaababab +baaabbbbaabbbabbaabbbaab +babbaabbbabbabaaababbbababaababbbabbbbbbbbaabaaaabaaabbbbaabbbbbbaaabbbb +bbabbabaaaaaaaabaaaaaabb +ababbbbbababbabaaabbaababababbbbabbbbaaaaaaaaaaaabbbbbbabbbaabba +aaababbaaabababbababaaba +aaaaababbababbabbaaabbbbbbaaaabaaaabbabb +baabbbbbabbbabbbaaabaaab +babaaababaababbbababbbbabbababababbbbaab +abaabaabbabababbbaababbbbabbbbab +baababbababaaaaaaababaababbaabaaaabaaabaabbbbbbabbbbabaabbbababbaaaabbbabaaaaababbbababaabaaabab +bbbbbbaaabbababaabbbbaab +abbaaaaabbabbabaababbaaa +baaabbbbaabaabbbbbbabbbbbaaaabab +bbbbbbaaaabaabaabaaabbaa +aabaabbabbbabbbaabaaabbb +bbaababbaabbbbabbbababbb +bababaaabbabbbabaaaaabbbaaabbaab +babbabbbbbabaabbbbabbbbaaabbbaaabaabbbbaaabbaaaabbbbabbb +babbababbbabbabaabbbbaab +aaaabbabbbabbbbabbbbaabaabbabababaaabaabbbbbbbbabaaaabba +bbbbaaabaaabaaaaabbaabababaaabbbabbabbbb +bbbabababbbbbbaaabbbbbaa +baababbabaabbabbaabaabbbaabbbbbabbabbbaa +bbaabbbbbbabbababaaabbaa +aaaaaababaabbbbbbaabbabbbababaaaaababababaaabbabaaaabbbbaaaabbabbabbbaab +babbbabbbaaabbbbbbaaaaaaaaabaabbbaabbaaaaababaabababaaba +abababbbaaaababbbbaaabaa +ababbabaaaaababbabaaaaaa +bababaaaabbaaabbbababbab +bbaabbbaabbabbbbaabababa +baabbbbbabbabbabbbbbaaab +abbaaaaaaaaabaaabaaaabba +aabbaabbbbbabbaababbababaaabaabb +bbaababbbbbabbbaaaababbabbaababbabababbabbababaabbaaabaaabaabbaa +abbbbbabaaabbabbababbaab +aaaaabaaaabaaaababbbbaaa +aabaaabbbabbabbbabababaa +aabbbabbaaaaabbbaababaab +abababbbbbaabbaaabbbaabbaaaaabaabaaaabaabbbaaababbaababaabaababaababbbbb +babbaabaabababbbaaabbaab +abbbaabbabbbbbbbbaaababababbbaabbababbab +aaaababbabbaaaaabaabaabbbbabbbaaaaaaabba +bababbbbbbbbaabbaaaabbba +bbaabbbaaaaaabbbbabbbbaa +aabbaabaabbbabaabababbbbbbbbabab +babababbabbbabaabbbabaaaabababaa +babaaababbaaaabbbaabbbba +ababaaaaabbbbbbbbaabbabbbabbaabbaaaabababaababaa +bbaaaaabbaaaabbbbabbaabaababaababaabbaabababbbbaabbabbaa +baabbabbaaabaabbbbbbaabaaaaabaabaabaabab +aaababbbbbaababbabbabbaa +aabbaaabaabbaaabbaababab +abbabaaaaababaaaaaaaaaaabaaabaaabbbbabaa +aaabaabaabbbabaabaabbabbaababaaaabaababa +abbabbabbababbbbbaaaaaab +aabaaabbbbbaaaabbbabababbaaaabbbaaabbbab +bababbaaababbabababbabaabababaababbabaaaaaabaaaabbaaaaaabaabaaab +aababaaabaaaaabbabababaa +aabbabaabbabbaaabbbaaaba +aabbabbbabbabaababbaaaaaaabbbabbaaabbaabaaaabbbbaaaabbba +abababbabbbbaaaababbbbab +aaaabbbbbbbbaabbbaababbaaabbbbbaaababbabbbbaaaaaababaabbababbbaabaababba +abaaabbababababbbabababa +abaaabbaabababbbbaaaaaaabbbbabbb +aabababbbbbabaaababbabbbababaabb +abababbaabbbaabbaabbbbbabbbbbbbb +aabaabbbbbaabbbabaaabbbbbbaaaaaabbbbbbbabababbaabaaaabaa +babaaaabaaababbaaabababa +bbaabbbaababbababbbaaaab +bbbaaaababbbbbaabbbbbababbababbaabbaabababbabbbababbbbababbbabaaaabbabaaabaaaababbbbbaaaabaaabbb +baabaabbbaabbabaaababbba +bbbaabbbbbababbbbbbbaababbaabbaabbbbbaababbaabbabbbbaaabaabaabbabaabbbaa +bbbbbbbababbbbbbaabaababaaaaabbbbbbabbbb +aababbaabbbbaabbbbbaabbbaabaabaaaaaaabbbbabababa +abbbabaaabaaabbabbaaaaba +aaaaabbbaabbbbbbaaababbbbabaabbaababaabbbabaaaaabbaaabbb +babbabbbbbabaaabaaaabbaa +bbbbaabbaaaaabaabbabbaaabbabaaaa +aaababbbaabaaabbbbbaabba +aabbaabbababaaaaabbababbbababbaaabbbbaabbbbaaabbbaaabaab +bbabbabaabbabaabababaaab +bbaaababbbbbaabababbbbaa +aaaababaabbaaabbabbbbbaa +bbaabbbaabaabaabbbaaaaababbabaabbbabbabaaabbabbabbbbabaa +babbababaabaaabababbababbbaaababbbabbbbbbabababa +aababbaaaaabaabbbbaaabaaabbbbabb +bbbaaabbabaabbbbaabbabbbbabbaabbbabaababbbbaaaaaaababaabaaaaaaabbababaaa +abbaaabbbbabbaaaabaabbba +aaaaabaaaaaabbabbbaabaaaabaaaaaa +aaabbbbbbaabaabbabbbaaab +abaabaabbabaabbabbababbb +aabbbaaaabababbababbbabbbabbabababbbbaabbaaaaaaa +baababaababbabbbbbbabbbbababbabaabaaaaba +bbaabbaabbaaaaaaaaabbaba +aaaaabbbbaabbababababbbbbaababbaaaabbaab +abbaabbabaaabbbaaaaaaabbaababbbaaabbbbbbabaaaaabbaabaaaabaaaaaababaabaababbbbbbbbaabbabb +baababbabbabbabaabbabaaababbbaaa +baabbaabaababbabbbbbabbb +aabbaaababbbabbbbaabbaabababbbbb +aabbbabbaaabaabaabbbaaab +abbbbbbbbabababbbbaaaaabaabaabbbbababbaa +bbbbbaaabbabaaabaababbababbababababaabbbbabaaaaa +abbabbabaabbbbbbaabbbbbbbabbabbbabbaaaaaabbbaabababbaaaa +aaaababbaababbabaaaaabaaabbbbbbbbbbbbaba +bbbbabbaabaaabbabbaaabbaaababbaabbabbabaababaababbaaabaa +aaabbbbbbaabaabbbbaababa +baabaaaaaaabbabbbabbbabbbabbaaabbaaaabab \ No newline at end of file diff --git a/2020/inputs/day2 b/2020/inputs/day2 new file mode 100644 index 0000000..6158f52 --- /dev/null +++ b/2020/inputs/day2 @@ -0,0 +1,1000 @@ +13-15 c: cqbhncccjsncqcc +2-3 v: zvdvfd +9-14 b: rbrbnbbbqdfrht +11-12 k: kkkkkkkkkkxqk +4-5 b: bqbbdm +10-12 w: kwwkwwwrwzzwwwwzwswx +1-11 g: grrmgmqgghw +4-5 m: mbmhmvmwdvxmvpw +1-13 n: ndnnnnnnnnnns +11-18 l: lllllllllllllllllll +4-5 c: cccscc +2-4 k: bkfr +9-13 k: lcmsvkknrxtkkksgvkjg +1-2 b: bhwgb +1-4 j: zjjcjj +7-11 g: nnffggdmggr +3-4 z: zzhzz +4-10 g: mggkgvgggmggkggmqg +4-5 n: dcmnl +11-15 s: gzpdvsmnzsshswzs +10-14 x: xmvpxjtlxxhxtpdhsnx +5-15 v: zzhjdpgxlsvphzv +4-8 k: dsfktqchpkk +6-7 j: jzjgjqld +12-16 r: rrrrrrrrrrrhrrrrhrr +1-2 l: lllllll +2-3 q: jqxwtggmgqmzpljdvkt +8-11 p: xpmcppppwvzp +7-8 c: vwcvkcct +4-10 d: lsmdffzdsrk +2-3 p: sxpg +4-11 p: rzlgxshhpbp +1-4 b: qbbbbbbbbbbb +6-11 m: zwmzmmlbmxgphkks +1-4 n: lnnnn +15-16 h: hhbdmbhchhhkhhrw +10-11 k: kkkqtwkkkkkkkkn +2-13 m: mggmmxmrzmwglbmmm +12-14 g: ggggrggggxgwhggggd +7-11 l: llbqsqlkvll +1-3 f: ffff +4-9 h: qvnhvcmpmfdbqhkdsg +3-8 d: ddsdddddd +14-15 j: qjjjzjjjjjbxmjs +3-5 j: jjjjtctjjjs +12-13 q: qqqqqqqqqqqqgqqq +1-8 p: xpppzdpp +13-15 f: lnlnlkcwgnfqgmfhlwm +12-17 g: gfgtgrvcxggggtggjg +6-8 r: rrrrtwrqrrr +9-12 r: ctldssjlrzhvpmqrtxd +1-6 k: qkkkdkkkkkk +17-18 x: bxrxxbxxzpbxnqxcsmn +2-4 c: ccmr +1-7 m: mmmmfrdmmmhl +9-12 d: ddddddddxddhd +13-14 f: ffffffffjffbbff +4-6 c: ccchcc +6-7 r: rrsrrrrcrrjbrrrr +9-15 w: wzfbtqrwwgtmbxn +6-7 q: qqqqqqrq +1-7 l: lgpqzhlkb +6-8 d: dhddkndp +2-5 m: bjxmmmmm +5-16 t: nbgjntfhpwtbrcftxt +5-7 k: kkkkkhbkkkkk +8-19 t: dsdstttfjhnttttvgttt +3-4 t: ttltttt +1-5 l: flfllllllllbhldll +7-10 x: xxxxxxcxxxx +2-7 t: ttttttctttt +3-12 x: vlxfwpdncxzkmkxt +1-5 b: mbbbbbdbbbtbwbhpbt +3-16 q: fpqkkkqfkqdbrxlq +5-6 p: lpcbtppjpt +6-7 w: wcwwhwv +9-13 v: vvvvvvvvvvvvvvv +1-4 g: vgggtggghgggggggg +2-9 p: mppsrrzwxdt +4-5 f: ffffdfffffdf +2-5 x: xkjss +13-14 z: zzzzzzzzzzzzbhzz +2-10 p: xmtkzpbrrj +17-18 t: ttttttttttttttttttt +2-8 j: cjjqbzpd +4-12 z: zzzkzzhzzpzzdzz +1-2 d: rdcdt +2-3 j: wnltj +7-9 r: rlrfbrdrqrbdr +3-4 s: bcsss +12-14 h: hhhhhhhhhhhbhhh +3-5 h: rfhlc +8-15 f: ffffffflffffffff +3-15 s: ssxsssssssssssss +2-4 h: hlbhshhmhhhg +12-13 r: rrrrrrrrmrvrnrr +3-5 p: ppppjp +1-2 z: zqhdkgqqzfsxkjjzg +6-8 k: kkkkkkzd +1-12 h: qhhhhhhhhxhhhhh +9-14 p: ppppppppqppppfp +2-4 t: tsttt +18-19 t: cttttllttttwxtttttt +10-11 t: rkdbpntntttfw +4-14 m: mdmmgtlmmwmbmmmk +4-6 n: xxhnpmnfnn +15-16 g: ggggggsggggggggng +14-15 k: kpjxmkrksskpbwk +15-18 f: fffffsffffffffnfffff +18-19 p: gwpplnpndvpxgzjvhbpp +8-12 l: ldclrkllbgpwllllcxms +14-19 w: pxsjbtwwhdkptwcxwvr +2-17 m: mtmmmmmmmmmmmmmmmm +12-15 b: nbcsplrmvbjbqlc +1-4 z: bzzszzzzz +1-13 t: tttttttttttttttttt +6-7 j: jjjjjmvjjjjjjjjjjj +10-13 l: llclllllljllllll +11-12 c: mzckxzsbbxcq +2-14 k: kkckkkkbkkkkkrkkkkkk +3-5 s: msssvqszssprssss +7-10 f: fffffffffrf +2-4 l: dlwrl +3-7 v: slqgljmrqrwv +4-6 d: pdddddnddddddd +6-9 f: cnfffpfzfffffff +4-17 v: vvvnvvvvvvvvvvvvvv +7-9 q: qqqqqqqqkqqqqqnqq +15-16 q: qqqqqqqqqqqqqqqqqq +10-11 g: cgtrgggggggggg +10-12 x: xxsxxsjxfxxlx +3-12 j: jjljjjjjjjjjjjj +8-9 c: ccbccczccthcc +4-17 h: hhhfhhshhhhhhhhhhhh +1-2 p: prppr +4-12 q: qqqdqqqqqqqqqqq +7-11 b: bbmbqbrtlwb +4-7 l: lllhlllllz +3-4 r: rrqc +5-14 r: rrrrcrrrrrrqrrrrrrr +10-11 d: pxdcxxjsddd +9-11 s: sssssssspssssssss +1-2 j: jfjljjjjjjjjjjjjjj +3-4 v: vqnvvv +2-3 c: wlcntvmsshxcgzc +9-14 t: rbbljpttwwjtbj +10-11 s: gnrdtfzttks +1-4 x: xpxjxhdxx +9-12 c: chccccccmpfccc +14-16 j: jjjjjjjjjjjjjxjjj +5-6 d: rpdndsbddwdd +9-13 x: thpdhlcwxcxxvxbv +4-6 g: nfsgqnvbntgwvlzlmmxg +3-4 d: dttdcdtq +2-4 n: wnntzbr +2-10 j: jtpszbpjfjcgdjg +6-7 b: bdspbvb +10-14 z: vzznzzzwzlzzqzj +7-8 c: cccccccc +7-11 h: hklhdhssfbz +7-8 h: hhhhhhqzhhhhhs +3-5 b: bcgbwbbbbbdb +5-6 q: qqlxqbgtqpkqt +8-9 q: qqqqqhqkq +2-4 q: qshp +8-13 g: gggggggrgggbgghg +1-5 k: ktcpgpk +2-13 v: mvvwnvfkjrhvvdvvtsvk +12-13 k: kxpkkkckjtkkj +12-18 h: xhqngjkxqqzqhnhhhh +11-12 k: kkkkkkkkkkkjk +2-4 r: rdgrrr +3-4 x: xwjx +2-6 c: lcqzflc +13-14 t: smlkctgbsqpftx +4-5 b: fxtdbzbqbd +4-7 s: wmsssznjzsdkgvdsxhd +2-6 z: wpptkhk +14-16 p: pppppzpppppbprppppp +6-7 c: cccccbw +1-6 h: mhhhhhh +2-3 k: cwkgk +3-4 l: llcl +3-4 m: kmmx +14-20 h: hhhhhhhhhhhrhhhhhhhh +8-12 b: bcmbpbffwghcvjb +10-15 f: fffdfqwmzfdfrfdbpf +1-2 l: hlllljl +1-3 g: vgbgg +2-4 n: zgfn +18-20 w: gmbwtzgzpmdwstsffqzw +9-19 j: jjjjjjjjkjjjjjjjjjjj +16-19 f: fffffffffffffrffffzf +8-20 l: htdlzwsllllccwlflstf +3-4 w: wwww +2-4 b: sbbz +4-6 n: nnrzbbnlcrnsbk +7-8 c: wmzjtbvw +5-7 l: cldlljlzzz +5-6 h: hhzhbhhg +4-5 f: scmrfftkc +11-12 m: flfrbmdpdkpm +6-7 v: xvvvcvkbnvvq +4-11 h: qkjphjpfllhpqnbm +2-5 b: bqbwbbwsb +1-8 c: cqcscccbccrccq +1-13 c: cccccccccccckccc +7-8 h: hhhhhhhs +1-3 l: llxl +6-8 h: hhhhsnkv +6-13 m: mmmmmmmmmmhmpmmm +6-9 n: nrnmmnbnmn +7-14 k: whkpphhkxlnnmkbhtnt +4-10 n: nnnnnnnnnhkn +3-4 c: mcnw +8-13 b: bbbbbbbgbbbbbbbbb +8-9 c: lcccdkjcjrqwck +3-13 w: szmnhsmzwpdbkhtbf +4-5 r: prrrz +9-14 m: mmmmmmmmgmmmmmm +7-8 q: kqpgrqqp +16-17 p: fzxxpcpdhmvmrnvjp +7-9 v: vvvvvvqzxs +3-4 w: qwxw +1-2 x: xqkx +9-10 v: vccmlrlhvdtttfvcxwm +11-14 h: mhvthqhvhhgmfhhhkhch +3-4 n: nqzw +2-5 j: jbjjjjjjjjjjjjjj +11-15 g: bcxggqfmgzgfrdg +3-5 v: gvwvvvrzf +6-7 t: ttzdttr +4-9 j: cgqjqdjvjbfjwdlvdgj +5-6 s: hfflrzksshjqsbvsps +1-4 p: pppn +4-5 g: dprggmpfggbkpg +2-3 k: kbhkkkk +13-15 r: srrrtstrwwxzrrzr +2-4 b: lbbnbzbb +1-4 g: fvgz +5-11 q: hxdhqrqqprpq +2-4 z: zzgm +1-13 w: wwwwhwwwwwwwwwwwww +2-3 k: kkkkk +4-8 g: nlgmhplgcv +1-2 j: zncllmvgjnj +11-13 f: fffffffffffflff +2-8 p: bphqpxkr +2-9 b: bbbbbbfbdbhjpbbbjbbb +9-10 s: zpxnstzwsw +7-16 c: ccccccccccccncsvccc +6-8 r: rrwbrqgr +6-12 v: vvvvvvvqvpvvvvzdd +8-9 z: zzzzbzzmzzz +15-16 t: tfttttntxttqtttc +9-16 b: btbrbfplbbbmbbbbkbb +7-8 q: qrqxrlqg +8-12 q: qqqqqqqpqqqw +5-8 v: jrrlpvvcvkjzjvvvv +11-14 d: dddddddddddddq +5-6 f: rfxmfzf +3-4 t: tttqt +10-14 c: bcccccccccrccfc +3-7 n: snnqplvl +5-6 z: kshzfzhlcsbqwqb +6-11 s: sssssssssmsjsgssss +3-7 v: qgcxvxvg +12-17 v: vkvbsvxkvvnjvvrvvvx +2-4 d: ddrrxbd +8-10 x: tvxxtmgbsxpxbl +7-9 r: rzrbgbrrrrrrmhm +2-4 t: ttttt +5-9 x: xxtwxxnssxlxx +3-4 p: ppdp +3-7 g: ggtgggtg +1-2 k: kbbhjdkfvjqffcss +1-2 l: lrlvlll +10-12 x: xjkbqxkxzxxq +7-9 d: dddhdkpdfdf +5-8 m: mmmmmmmwm +3-9 l: sfrjlzhcll +7-18 m: mmmmmmcmmmmmmmmmmmm +1-3 w: mwplxwwww +7-8 t: tgtctbtrtdtttt +3-6 p: lfpbbgfbpdhnqz +5-6 d: ddddrd +1-3 b: llbbbbb +4-7 r: ktbrncrrnnsrr +8-10 r: rrrrrrrfrrbrr +1-8 l: wlklvlllnljlgtzll +2-4 m: mmhmmxsm +10-12 c: cmwkcnczsxmcrmjtc +2-8 q: qmqqqqqzqq +7-9 v: xvvvvwdnzzv +3-7 j: lsjvmbrjjmpcwqnvvdgc +3-9 l: bgmllldjrzhllsclc +1-6 p: ptppfjpqpp +7-8 r: mctrrstrrxrqtmrr +7-8 d: qddddddxddddddddd +4-11 r: rrrrrrrrrrbr +4-8 s: lsfvtfss +4-9 c: zcccccccj +11-12 v: vvvvvvvvvvvm +4-8 g: rggzlfgtm +3-8 j: jjjjjjfhjsgj +3-4 m: fmhmm +15-16 l: ltllhlljtllllbtlllgl +12-13 c: cccccvcccccqccccc +6-7 q: qqnlqqhqqq +1-8 z: znjqzxpz +10-13 k: kxzmkbxnkbkktmkk +8-15 k: bskzvggzsnlnxzz +9-10 v: vbvvgvcwvs +5-8 h: qhsnhhlhwpvzfb +15-16 g: gdcgggggggtgcgtg +8-9 z: fbgdnrzfb +6-7 d: ddkdddh +4-6 w: xzgfwwlbxft +1-3 h: hkjhh +1-3 p: pwprlp +8-12 j: jdjjjjjdjjcjvjjjjjj +11-14 m: bdsfwddfkgxsmrmm +3-10 m: tmmcmfmmjmm +3-4 b: dwhbzfjxl +2-5 n: nnnnjcnnn +16-17 v: vvvfnvvvltsxhrvvm +1-7 v: qvvvvvwvvvdvv +2-14 k: nxqblwwqmhqzkm +3-4 t: ttts +5-6 c: clnnfk +12-13 s: sssssssssssts +7-14 d: ddqdnwdkdmhddg +3-4 t: tmsttm +9-11 x: xxxtxxxxxxqxwntxj +8-14 l: lllqklwlvlllmbslzlln +9-12 n: sdsnnfncxnwnrn +1-5 f: qfffff +6-9 r: rzmphlrgrr +1-4 m: grdm +4-5 s: ssxsg +1-4 n: xhnznnxnnn +2-6 r: mcwldgbqlqsckgzlrd +1-3 l: llmllll +3-4 p: pjtgdnfjfcjtcnpgxpzq +6-7 m: mmvmmmtn +17-19 h: qgmhhhwwwhqhmhhthhch +3-14 s: lhmnsfdrvnngrsfhxd +1-6 p: pppppwp +4-6 l: lzllltrl +3-4 c: rpxccsc +13-16 h: qsdznfqmsftqqthh +2-4 k: wsvkm +1-18 h: chhhhhhhlhhhhhhhhhhh +17-18 d: xddddddddddddddddddd +2-3 t: jtbrhpzjfpzhcmjql +10-11 n: gjngnnncncnn +7-13 r: rrrrrsrrrrrrlwrrr +10-12 l: llldllslbldllwl +17-19 m: mmmmmmmmmmmmmmmmfmm +10-14 n: nnnnnnnnnbnnnnn +17-18 x: xrxcxxxxxxxxxxxxxxwx +3-4 b: lvxb +5-6 r: rrrrrrr +13-18 l: lllllllllllllllllpl +8-12 m: mmmmmmmqmmmmmmmm +7-8 l: llhqlllh +3-8 p: nmrppdvpxcphxgmkpbsl +9-10 v: hvsbttgsdvvj +5-9 k: kgmvzzzckkgldk +15-20 x: xqxxxjxxxxxxxxxxxxxl +5-6 t: bbwpwtwbhwgqttzjv +6-13 n: klzcfnnjqxrhjwpjfxnk +5-8 d: pcnndzddddnsdqh +5-14 k: kblbtvkwltfklk +4-11 q: zxwdkqqkvqq +10-12 s: tsssssssssssss +3-5 r: rddsrrdksfqfrgr +7-16 h: vdvhlsjxgvrbrxnhns +3-4 z: zxtz +4-8 x: xmnxdwmh +11-12 r: gwsnfrnckrrxrx +3-9 q: qqqqqqqqwqb +9-14 f: bfnfffffvfpfffff +6-9 p: pvpppkppcpp +3-4 m: mmmz +3-5 j: jjjjmjsjjrlkjjjjj +4-6 p: jpbpjs +6-9 r: bswdsrksdrzrgrfmjr +8-10 l: lllllllxll +3-7 v: vvhvvvvv +4-11 n: mnjpbldngrrkbthhmdp +2-4 r: frlrfblsrfzrhtpk +16-17 h: nbghhnzshclxhhmkr +2-5 z: zfzvzzzzzzzq +1-5 l: lllzlfl +9-10 d: dddddddddzd +11-12 p: pspppppppbzp +5-9 t: thzttpxrdhttdwqjsg +7-10 w: tfdfwlwwzdvpnww +4-6 z: fvcljzllwhbzscx +14-15 m: mmmmmmmmmmmmmcd +8-11 d: hgdmwgsdkdbghb +13-15 v: vmvdvvqvvvkvqvvv +13-14 f: fffffffclffffffmf +2-5 s: ssscn +11-13 w: wwwwwwwwwwwwww +7-9 l: xnwrlkskll +8-14 g: vggglvcrgscpgggt +4-5 w: wwwww +5-11 w: wwwwswwwwwwwwwww +6-7 g: gggbvjg +14-18 q: wqfqqqqqqnqsqrqqqq +6-7 z: zzzztzqczzzzz +6-12 n: wnnnnnnxftnkznpvvl +10-16 j: jjjjjdjjjrhjjjjj +1-10 l: lllllllllrll +9-13 g: gdgggggggggkggn +6-8 r: rrrrrrrs +16-17 k: kkkkkxkkkkkkkkkck +11-14 b: bbbjbxbfmqscqbdmgg +3-8 d: sjdkmjppbdddhdxd +6-7 g: xhkhwgqpbg +11-12 x: xxxxnxxwgxxbdl +6-8 c: cccscccwcccccccccc +9-16 h: vhhhhhchwnghmkzhr +5-9 v: vvvdnvvvvv +4-16 n: nmqncgnbfhqnnpnbxwrl +3-5 f: fljrf +13-14 m: mmmmmmmmmmmmgfmmmmmm +5-6 g: ggnggd +2-6 w: wlvhvw +13-18 h: hhhhhhhhhhhhhhhhhvh +7-19 m: mmmmmmmmmmmmmmmmmmwm +4-12 k: mcvtrtsdkvkkfjrmkn +1-8 t: qvmrtttn +6-7 f: fffffsf +10-11 m: mmmmmmmmmjl +15-17 v: mvrhvvvvnvrvzrvvfv +10-14 m: mmtmmmnmmmmmmxm +4-16 b: vcscdqcbcxswjfdbrqbx +8-9 z: zzzzzzznzvz +4-6 g: ggnggdpgggg +2-4 d: hddxxnzzw +9-10 g: gggggggggj +4-7 k: kkkvkkkkkk +1-3 r: rrrrj +14-15 w: wwwwwwwwwwwwwwwww +2-4 n: brfmln +18-19 b: bxbbbbbghbbbbbbbbwb +10-12 q: dqqqrqwcqgqqf +2-5 g: sxfzgtrxkrmstdzfmw +3-4 d: pcddq +11-16 w: sbqwlwzwwwwwtwww +2-12 c: wrccqxtccccchcccjcj +16-17 b: bbbtbbbbbbbbbbbqb +3-13 t: tttttttmgktdthtp +1-3 t: ttcg +13-14 z: zczzzzzzdwkzqz +5-6 n: bnjhnjhnnq +2-9 b: bjbgbzmlbbklbwt +4-5 b: dtlbbwtjbkzzbghbghzk +10-16 p: ppppppqpppwnpppppppp +5-6 b: cbbwtbjkm +15-16 p: ppppppppppppppqd +4-8 m: lgmmhgktslzhbvw +2-4 h: hhdlhhhhhhhhhhh +14-18 k: ktmkkkkkwkklkjrkklfk +5-7 x: sfxxsxx +8-9 v: lkvxdpvjv +7-8 r: rrrrrrsr +4-6 b: btcbbv +7-13 n: zhnhjhnmkzdbt +7-9 j: jvjjjjjjjjjjjjxjj +1-4 v: hdvfv +2-5 f: rznpnxqwncmtkwfxcxqh +16-17 x: zxgbhltrdhxkvvxsxf +1-2 h: hkhhh +3-4 h: zhxc +4-9 z: vsmzhzwgjxfg +11-13 x: xxxxxxxtzxxxc +11-12 d: dddddddgddqj +4-11 f: zkdhqnpgbff +2-3 q: qqlqgqqqv +4-9 b: bvnblwhbbkswmrhtf +7-13 t: cztskdtqdtrkt +4-5 f: fffcsf +4-9 f: ctblqrflf +1-2 l: lmllqhlnll +3-6 v: vvqvvvvr +7-9 b: bbrhbkjbb +1-8 p: xpppppppp +7-10 k: ckkpmktkqksgkkk +1-7 m: lmmmmmmmmmmmmmm +11-15 v: vvfvvmvvvvdvkvv +10-11 b: kbbbbbbzbhbb +11-12 l: jltgggtlcggllt +10-13 q: kqnqqqqqqqqqq +6-7 c: cjcccczc +5-11 t: kdtstshrhfkcx +3-12 v: vlvfzvwvxvvhvvsvvcvm +9-10 t: xttttttttttt +8-10 z: hctlkgjzvzh +3-5 g: gtkwgk +16-17 w: wwswwwwwwwwwwwwwwqww +4-11 j: lbmwjzjxjpjhzjjpbj +4-5 c: klbxc +3-5 w: wlhvb +4-8 x: xgxxxxxxxxxxxxdxnxx +2-5 n: nnnkhn +1-2 d: dxfd +11-12 w: wjcqszwqwkcb +6-11 v: sqpgzhnvndtmvvwl +3-4 m: mmmqmmm +1-3 d: mddb +6-7 w: wwwwwnwwwwwwww +12-14 z: zzzzzxzczzzrzzz +5-10 f: mtcmmhfftft +10-14 x: hhgvmxbwgxdcnz +10-16 z: wzfzzmlmxxfhzqcbsnl +3-4 p: ppvkppp +8-11 h: hhhkhhhjhpbhhhh +6-12 f: ffffdwffrsfffrffnfpk +5-11 z: xqwzzzzbzpwk +7-9 c: crccccccscccccc +4-5 b: qpcnz +2-13 m: lmnrrzfhmbwtmqbsg +12-13 k: kkkkkkdkkkkkmk +10-14 q: sdqfbqszdjhqfq +8-13 h: hhhhhjhhhhhhbhh +2-4 g: gfdb +12-19 n: wtrhndnnnbwnnnnjnnn +5-6 n: zdwnpn +3-5 f: ffsffffff +11-16 r: rrrvrrrrrrwrrrrrlrrr +6-8 n: nnnnnfnnn +10-13 b: brnlbblbkbbbjbbhx +7-8 q: ftrfnqgqc +11-12 c: ncccccccccgcccn +3-4 z: tzzctzwzzvz +3-5 t: tzrqg +7-10 m: mmmmmmrmmqmmm +1-2 c: cdccfcccc +10-11 k: kkkkkkkkkwkk +6-18 x: qndxdgmjvpppddwkbt +8-17 c: pxhszsccndlbzkwgvx +3-4 p: qlrvwdxpqtgwjrtqcc +2-4 q: lkjq +17-19 f: pffgflzxrxfdxffffnz +3-11 x: kzsvmhcxnwj +6-7 x: lxxxxxxcm +1-8 n: nnnnnnnrn +2-5 r: rtrrnr +2-4 n: csvhrvhlp +7-8 b: lbbpdbkb +2-8 t: ztcrbvmst +3-4 r: rwrr +7-15 b: tbtrrbbpwsrvklqb +9-13 d: dcfsgddmdsjgg +2-7 d: mvdzscd +6-8 d: jrjjdndq +1-3 m: mhmvhtmmlbztvmsvmtmb +10-12 c: ctwjbpkchccmbqw +2-3 z: jvzwcrbgqbhvzbf +2-7 g: qbwsdbg +4-7 s: jsxpbmsmkhktfdq +11-13 r: rrrrrrrrrrhrqr +9-14 d: zddcdgddddxddntddm +1-15 x: jgrxxxxfxkgbmsxzx +2-17 p: kcppppkppppppppwm +12-19 k: kkkkkkkkkkkmkkkkkkkk +1-4 x: nzpxg +5-12 p: xcbppqnppqgtrm +11-14 h: dlhzhhhsbllcwhh +13-14 q: qqqqqqqqqqqqqcq +11-16 t: ttgnswrltltttjtj +14-15 t: ttttvtttftttttjtc +3-5 s: xssns +9-11 q: mlqqtqnjqfl +3-4 z: nzzhz +2-5 k: skwbwkwgzj +1-3 p: pppppcppppbpp +5-10 r: rrrrlrrrrrr +2-3 l: jlffrztcckl +3-5 t: ttftttttr +3-6 q: qtqtmnlqck +1-4 v: vxfvmvxwvvjbxp +1-5 z: tzzzzszvzzrmzmz +10-11 l: lllllblllcx +1-4 p: vppppp +6-12 v: zvrwvvvrvhzb +2-4 x: xxnv +1-7 w: hwwwwwgwgwwbwqw +3-7 w: wwwwwlfw +5-6 l: kkpltd +4-5 d: ddnrdk +3-6 c: cncvkt +8-9 j: vblczlfjjkj +7-15 d: ddddxdgdddddddjddd +4-7 z: vvmzdspzwptz +5-7 t: cdrtfqt +6-9 j: jjjjjdjjjjjjjj +2-5 j: ljptkvvfl +6-7 l: vhhnllgx +5-6 g: gpcxwvgpvvgg +5-12 q: plzqqnqzrhqgljj +8-13 k: zkckdknkxkgkvmmkd +4-10 s: jkvstssfcsrckjnzzbsl +9-11 n: nlknnnnggnvnnnnn +8-9 s: ssssrsgstk +16-18 r: rrrrrrrrrrtrrrrbrrrr +4-5 f: qxrzfcgfqfp +2-10 p: pphtppppppplwpsp +2-5 q: qqqqsq +6-15 j: xjkxkjxxkjznjjj +9-13 f: fvfvjlfmltfgf +3-6 j: jnsrcj +1-7 h: vhhhhhhh +4-5 q: qrqqqf +2-3 v: mvxb +4-11 l: lllllllllldl +7-17 k: mkcxhcmbcpjckkqznh +7-9 v: vvpgvvvvs +7-11 j: jjjjjjjjjjjs +2-12 v: mlxjljvffxgv +3-4 t: hhfn +14-16 w: kwfwwqwcfcwwfmww +5-6 j: jjjjjg +11-12 n: nnnnnnrdnnmnn +8-9 b: dsbbbfbbbb +3-4 j: jjcjjj +1-3 r: wrnr +10-11 p: pppppppppqppp +12-13 v: vvvvvvvvvwvvvv +7-9 v: vvvqvvxvdvxv +9-14 r: mmrrrrnrrxrrrwrrrrrr +5-6 k: kkkkbkkr +13-17 v: dbvgrchdpnzvxrdfv +4-9 c: ccjbccqcpcclcc +6-8 m: mbjmmxnb +2-6 h: hhdhnvcc +9-16 t: tttttttttttttttgt +12-16 n: nnnnnnnnnnnnnnnwn +3-14 z: zzdzzzzzzzzzzzz +3-8 k: pmktwckzn +9-13 q: gqqqqqqqrqqqqq +3-6 l: lllllddll +7-8 x: slxxzplxsxkcxlxxx +2-5 v: vwvvd +6-7 n: xxnnnmnnn +2-4 z: zczz +2-12 p: pppppppppppvp +2-4 h: bqwhv +5-7 t: btzttjg +4-9 c: sxcskxxbcv +1-6 c: cccccpc +9-13 l: bcsllbvbjhrflt +5-9 c: zprfctdnt +1-5 z: zzzzz +4-8 h: bpshnhxhrbk +4-7 l: bqclvxf +5-6 m: mmmmmgwcmgjj +13-18 m: mmmnmmmmmmmmpmtmmgm +1-5 w: cwwgwwwwwww +14-16 h: hhhhhhhhhhhhhqhhh +6-7 v: bvvjvvbvvv +5-13 b: pbcbbqmbcsfblc +17-18 j: jjjwjsrjjmkjjqjjjj +4-6 t: ntttpt +6-7 v: mvvnvvc +11-12 v: vclgnzbvtvvjvs +8-13 r: rlrzkjkrrxmdvzgt +5-7 n: nnnnnnsnnnnn +3-6 q: qpkjpq +2-7 v: hvgnjfrkvx +6-10 g: xgmrggggpbggfqgdpm +9-10 s: ssssssswfszsdssszss +5-6 p: pppjppwpp +2-5 d: ddddddd +9-13 p: ppjhpbppxpxxt +10-15 t: cgtcnlltzdkbcjtvxs +8-11 m: dkmmvtdmkbhmk +3-4 z: rzzqzw +4-8 z: zcxzswbzzqzxwkzz +3-4 s: jsts +2-7 b: bsbbbbbbbbbbb +11-15 l: jjkslsltvfbqshl +3-14 c: cqtxcgmcgvgfcccmg +1-8 f: fbfwffhfbxffhlx +4-11 r: drrmrrrzcfrj +5-6 p: pwpvjp +11-14 d: pnrddqwdlpdbddwg +9-10 r: rrrwrrrznrrgqsr +3-12 v: vsvvbvvkvvpdrvvv +2-5 t: mtfqjrjlthk +13-17 r: rrrrrrrrrrrrrrrrtr +7-8 n: nnnnnnhnn +3-4 r: wrpr +1-14 p: ppppppppppppppppp +8-9 m: vzkbzwnmwfqmmmmcmmnd +11-14 p: pppnpvpwppvpppppppp +17-19 h: lzhxlhhchxhbxhwvhsx +10-11 n: nnnnznnnnlp +3-12 f: kwflsfqflxpzbgxzdhzv +8-10 x: xxvxxxxvxsxxlxxxx +1-2 c: dclflczlj +4-9 w: wwwtwwwwwww +2-8 t: pfvtlbtxt +4-9 f: pnfkffkfnh +8-10 v: vjvvvvvvvvvvvv +3-13 s: mfshscgmmrvzw +6-10 g: gzggggpggkggzggggg +13-14 n: fnnnnnnnnnwnrnnn +4-14 k: lbvkwrkjkxjskg +9-11 q: qqqqqqqqsqgq +17-18 q: qqqqqqqqqqqqqqqqqd +6-9 s: spsssgsrrssss +8-14 m: qmmqjmmmmtpmnzgmm +1-7 m: bmsrmmmmmmm +14-17 k: kskdbkkkkdkkkktkqkkk +4-5 c: ccccgfc +2-5 k: kkkkzk +2-11 q: qqwqlnqqqhtdvxqrc +4-6 m: fdxkmmd +7-10 j: mjgftcmjmjj +17-18 m: mmmmmmmmmmmmmmmmnm +2-4 v: svvv +6-8 x: jxxhrxlp +4-10 s: dsvdbsssmscs +18-19 k: zwdgknqvqkgdhdhktkmr +2-7 h: jdflgfh +6-8 z: zmpzzzzzzzzgz +3-6 m: mmrmmm +4-8 w: wwtwktws +4-10 k: dkjkqkkzvk +3-7 b: bbbbbbfbbb +4-12 z: zzzzzzzzzzzzz +5-9 z: nmqdzzkzzzbj +4-11 z: fzzgzzzzzztzz +1-7 w: whwwwzrw +5-6 t: tjtttv +9-11 v: vzvhvxvvnvwvvv +2-4 t: pkjtpp +14-15 n: njpwjnsbnnnnngnnvnnn +5-15 k: qtmvkkdjkslkqvk +2-4 s: skszs +2-3 g: zggjhgxzn +16-17 p: ppppmppppppppppnppp +4-10 z: zzzzzzzzzzz +17-18 s: sssgsssskssssssssbs +5-8 m: mmmmmmmbm +1-5 l: llllmlql +3-13 z: bmdwpgvzfdlgzgl +1-4 p: pjplgjr +1-9 v: vvvzvrvvk +6-18 w: whwpwwflbcwwvwwwwst +19-20 n: nnsnnjnnnnnnnnnnnnkx +9-10 m: rlmxrnqrmkmmwmmmmm +15-17 s: lvssssslssfsssksfb +3-4 q: qqqpq +7-13 h: hhhhhhhhhhhhdhhhhhhh +2-6 h: dvkfhhmk +4-6 s: nczssv +10-12 p: pppppppppppdpprp +16-18 s: sssssssssssssssgsg +7-12 h: hhhhhhvhhhhhh +4-12 f: ffftfffffffwff +4-7 s: csqcpssbgvvmwdb +6-10 p: ppppvppppdppd +6-8 h: hxjhthhgzh +3-10 f: fffffffffsf +4-11 g: trggxlrnqrgh +2-15 w: wjxwtvkwwpgwwww +1-4 v: zjxv +7-10 f: fffffflqff +4-6 g: mgwgpbg +1-10 z: vvzzzzzvzz +6-7 f: ffffffnf +11-15 w: wxzwwqdnnwwxjlwplcl +10-11 s: hsslzjgsssvxsshnsc +4-12 n: tlxdnpznjbknt +7-8 k: mkhcvjxk +10-12 j: jjjjjjjjjjnm +2-7 c: fckckdpcksjckwcc +3-8 s: sssdxssw +12-14 t: ttttttttqttxttttpttt +6-7 g: gggggggg +5-10 f: fqffzffffffffgf +6-7 t: ztqhpbt +5-12 w: swwfwwwwwpwbwj +2-4 w: qmww +5-8 v: vvjnvvpv +7-8 p: bcbtnppbxnnwpr +4-12 z: zzkzdxntzlfbkkzzzw +8-9 s: sssssssss +15-18 h: jhvhhhcxwhhhhmhhhj +6-10 w: bwwwwwwwwwwwww +5-9 l: mtqlhlwlh +5-7 l: ljllnllblpl +15-17 h: hpgdkhsjwfnsjmhqxf +3-4 g: gggxgggg +1-2 q: qdqm +6-10 n: hnnnqknnnnnlnnnnp +13-17 q: djstfsmmqlshqqbqnf +6-7 z: qzlzxzw +7-12 g: qhghvbwdcvkgjl +7-15 z: zzzzzznzzzzzzzzzzzzh +3-6 w: zchpwvw +3-4 c: wmbjp +6-9 k: tckbvkkxkkqk +11-13 p: pcppppppppppppbp +5-7 r: rrrrsrxrr +6-10 c: ccccczcccccccccc +7-8 j: jjpjjplj +5-7 m: mjmmmjrmfmmmmmmmm +1-7 t: ttttttnttvpt +6-12 t: tttfwtttttttttttttt +7-17 x: hxwgrqqlxmrxrcwsx +3-8 g: vjcgqrjhlq +13-18 n: nnnfnnngnnnnjnnnhln +13-15 f: ffffffffffffrbff +13-15 x: xmswzjhtthggslslgx +12-13 g: ggggggggggggggg +3-9 f: cxfskjcbmhmmcpwn +5-7 h: jxzbhbh +2-3 m: mhmlmq +1-3 m: rmmmgmzvcghdtgmsmnm +14-15 s: wzssphxtsskpssr +8-14 p: kppjppgfpprftj +2-7 r: prnmlrrbm +2-5 v: vvvvtvv +1-5 n: nnnnzn +2-5 t: xtlnfwhgvltx +3-4 v: gvtv +2-8 k: kvkstkfz +2-6 j: jdjjjnjjjjzjjjj +3-4 s: sshwsssss +2-10 w: mnhkdtwdzwvsq +6-8 b: bbbbkxbbtbbkbt +14-19 h: hhhhhhhhhhhhhhhhhhhh +6-10 d: ddddddddddddddd +10-13 t: ttttttttthttjttt +4-5 c: ctscw +8-9 b: bbbvbbgmb +10-12 s: sxssshsssswsscsx +3-7 r: rdhrrkrkrrrrcrhrrr +8-10 j: wjsslzjjntjjwjs +1-4 q: gqqw +4-6 t: tjlhvrt +2-10 s: ssssssnssssssssx +7-8 x: xxxxxxfw +6-13 r: sxtcgrffrpdprnklbxbw +1-3 p: ppbppppppp +2-3 b: jbfr +1-7 m: cmmmmqm +4-5 t: tttzt +7-9 s: zwbbbssvl +10-13 w: wwwwwwwwwwwwdw +13-14 n: nnnnnnnnnnnnnmkn +5-11 q: jpbzqwqbwttgzn +4-5 k: kkkwkkk +10-17 w: sgtklkflsrfqxfwhjm +6-12 w: wwjqwwlmphwkwwwwwjw +2-13 p: ppppppppppppzp +2-16 h: tslcwztxxtchgqlxsbx +2-9 p: slptvtljpxdkf +10-12 z: tnzzghzzgzfn +3-18 f: ffxfffffffffffffff +1-2 p: prdpdghkckdgpl +6-8 x: fxxnbwrx +7-9 z: zmzkzdpgjzzz +7-14 p: pppppppppppppppb +7-10 l: xltlzllllljzxlll +18-20 n: nnnnnnnqnnnnnnnnnmnb +15-18 p: pxmqxpmqwfntrpppmf +1-15 v: kgmvwvrvmcvtrvvwv +2-8 g: gxggggggg +4-5 f: clfjfqmpffjfff +3-5 r: rpjkf +2-9 h: hhhhhshhrhh +2-5 z: zxzzz +5-11 k: kkkkkkkkkkkk +8-9 n: nnddcfntnrgnnrnnc +1-11 f: dfffffffffff +2-4 x: dzphvg +4-5 w: mnzlr +2-6 f: jhrkfmg +2-17 z: czzvvzzczznzhwzbzz +2-5 r: xrjrg +2-3 g: gggg +7-9 s: ssssssbsssss +17-19 k: kcwktkxkkbkqnwkkkkdz +1-16 f: zmxdffmfgffxrffffqf +7-8 q: qtmrkbqjq +8-9 q: qqqqqqqqx +10-18 n: nnnnnnnnnznnnnnnnnnn +16-18 x: xwxxxxxxxxxxxxxxxrxx +15-18 t: tttttftptttttttcttt +10-11 h: hfxnlbsqxphtmstbhdn +7-13 z: vdzdzmzxvfzzz +2-5 n: nnpqgnnqnb +12-16 v: pvjvvnbqzjnvvvvpjv +4-5 d: ddddk +4-8 l: lxvhlbclhgd +3-12 v: vvkvvvvvvvvvvvvvvvvv +17-18 j: jjjjjjjjjjjjjjjjdj +6-7 b: ckbdbcsbb +9-11 q: qrhxpcjjqbqt +8-14 h: hhhhhhhhhhhhklhhhhn +2-3 b: bzbjb +2-15 w: nnmdgzhsvhpvswltvt +1-5 l: lbclz +15-17 d: wlddgdxsdcdfdcgdd +18-20 q: dqsldgqqfqwsstqlmqtz +1-6 q: qqqqqdq +2-6 j: jpjjjjjj +13-15 p: ztjlhtnsgphgxccpfsp +6-13 m: ghvvmrglmmmcm +3-6 b: nbbrmrfdlbs +1-3 j: fwhjsr +7-10 p: gcppcppzpppp +4-12 r: rrrrrrrrrrrrrr +16-20 d: djdddvdsddddlmddddpm +14-19 x: xzxjxxxxxxxxxxxxxxj +11-16 w: kwclzxjjwxlwkcnwkwv +3-11 b: zhhxsgqxqbbg +10-11 q: trbhqqzhdqw +9-13 l: vcvlvqlwrlfvll +7-9 x: xxxxxxxxgx +5-6 n: nnnngnn +2-5 p: pqpppppppqpxp +4-17 z: zxrmzwwxwhqxxmqrv +5-9 v: vvvvvvvvrvvvj +6-7 x: qkhbxxkxs +3-4 d: fcmd +5-9 f: nsnlxstff +6-9 x: hrtzmhrxxbmcc +3-7 w: wwwwwwsww +5-8 g: ngkdxggg +8-13 r: rrrrphrrrrrrrrrrdrt +2-6 f: rckzvzfrnp +4-6 k: bfrpttcfbwmvhgn +7-9 w: wwwwwwswww +13-15 n: nnnnnnnnnnnnnnn +4-8 j: jjjjjjjwjjj +9-11 h: hhhhhhrhhhhhh +4-7 h: thmhwrhss +1-3 d: ddddddddddddd +10-11 c: ckrcxwcdpqc +2-4 g: kgghg +3-12 s: ssssvwssssgqs +2-7 s: sssssszs +2-10 v: wvpbjqxvzsdpgmq +12-15 n: nnnnnnbnqvrkfnn +3-5 w: wlvdw +11-14 t: pfrbxgcrwndttj +6-7 w: qnnwwpfwwhw +7-10 n: nnnvnnhnnx +3-12 c: mmfcwvxqwpcclwlxfx +2-3 p: lgpxpppp +17-19 k: rfxvmnmfzrnktfpckpr +2-9 k: kkkknkkkkkkk +15-16 t: ttjmtttmttttttwt +9-10 r: rrrrrrrrmrrrr +3-4 p: jppppxf +7-8 k: nkqbvkkt +6-8 d: dddddrdddd +6-7 q: czbqdgnc +3-5 p: rxpppsx +4-6 t: thvtwv +2-13 d: dmdddddddddddd +16-18 n: nnnnnnnnnnnnnnnnnnn +11-12 s: ssfsdsmssswssh +3-5 v: kxnvvvmvrvdvvssvvv +5-8 x: nxxxxbxxxzx +3-5 t: ctttftt +5-7 s: hssvsgj +5-8 r: rrrrrrrcrx +1-13 v: vvvvvvvvvvvvpvvvvvv +5-9 h: gxlrhsgswhchfxbwjd +2-4 w: wgwb +6-12 v: pmxnjtfsvvxvv +1-4 n: vnntn +2-3 w: wwww +3-7 f: xmfbmnvnfkkmsd +10-12 x: xxxxxxjgxxxxx +2-3 l: cllvpbtmgzmrfmq +2-4 l: llrlllnlxll +5-10 h: hdhhhzhvtchhh +8-10 q: lhqmdwcfhqngq +1-5 t: twtfvcmktthtjltqvpwc +6-8 s: sxsghtbs +3-4 m: mmmmmmmmmmmmmmmm +16-17 l: rjdpxhtblvllgvwhl +5-13 s: brhsssnfcndsh +7-13 v: swkfswvmkvjbnsgvwp +1-3 k: wlfpzk +2-4 t: tpttt +2-9 t: cntttttcgtttt +5-6 r: rrrrbh +10-12 j: jjjjjjjjjzjjdj diff --git a/2020/inputs/day20 b/2020/inputs/day20 new file mode 100644 index 0000000..513fac5 --- /dev/null +++ b/2020/inputs/day20 @@ -0,0 +1,1727 @@ +Tile 1049: +###.##.... +####....#. +...#.#.... +....##...# +#...#....# +##...###.. +##..#..... +####...... +##..##...# +.....##..# + +Tile 1217: +.#....#..# +#.#....### +##.#....#. +##...###.. +###..#..#. +.#...##... +#.#..##... +#...#.##.. +#..##....# +.##.#..#.. + +Tile 2357: +.....#.#.# +#....#...# +.......#.. +..#.....## +.......... +#.#.#...## +#.#....### +...#....#. +#.##...... +#..####### + +Tile 1399: +.##.###### +##.......# +#.##...#.. +......#..# +......#... +.#........ +....#.#... +....#.#... +##...#.##. +####.##### + +Tile 3733: +#..#.#.#.# +#...###..# +#..#.####. +...#...... +#.....#..# +...#.#.... +##....#..# +##...#.... +.#....#... +#.#...#..# + +Tile 2503: +#..#..#### +......#.## +#...#...## +.......... +.#.###.#.# +.......#.. +.....#...# +#.....##.# +#......... +#..#.##.#. + +Tile 1511: +#.#.##.##. +#####..#.# +.#........ +###..#.#.. +#..#.##.## +.#....#.## +#....#.... +#....##... +.........# +#..##...## + +Tile 3583: +##.##..#.# +..#.####.. +#......### +#.#..##.## +#.......## +#.#..#.#.. +.#.###..#. +.#.....#.. +#......#.# +#.##.....# + +Tile 1637: +#.###..#.# +#..#.....# +.....#...# +....#....# +...#....#. +....#....# +.....#.#.. +#.##.....# +#..#...#.. +##..#.#### + +Tile 1453: +.##.#..##. +.......... +###.#..#.# +#...###... +..####...# +#.#....... +#...#....# +#..#..##.. +#........# +......###. + +Tile 1153: +#...#..##. +#........# +..#.#...#. +.#....###. +#.#.##...# +#....#..## +##......## +..#....... +#.#......# +#..##.##.. + +Tile 3701: +..###.#.#. +...##....# +#..##....# +#......... +##.###...# +#..####.## +....##.... +#.#.#....# +.......... +.#####.... + +Tile 2179: +.#.#....## +..#..##.## +##..#..##. +###.#..... +..#..##... +#...#...## +......#..# +##...#..#. +..#.#.##.. +#.###....# + +Tile 1999: +.#...#.### +.......... +#......#.. +.#......#. +.#.##..... +###...#... +.......##. +#......... +..##.....# +#..##.##.# + +Tile 2333: +.#.#....#. +..#....... +#..#...#.. +.......#.. +....#...#. +...#.##.#. +.#........ +#.#....#.# +##........ +#..##.#... + +Tile 1733: +.####..#.# +.#..#.#..# +#..##....# +###..###.# +.###.#.### +#.#.##...# +....#....# +#....#.#.. +....#..#.# +.....#.... + +Tile 3217: +#####.##.# +#......#.# +.........# +#.#.....## +##......#. +#..#.#...# +.##....... +#..#.....# +#.#.#..#.. +...#.#...# + +Tile 1471: +...#.....# +#...#...#. +##.#....#. +#.##....## +#.#.##.... +..###...## +#.#...##.. +.#..#...## +#.##....## +..#..#..## + +Tile 2089: +###.##.... +..##...### +........#. +#........# +...#.##.## +......##.. +###...#... +#........# +..#....... +.....#.##. + +Tile 2909: +.....####. +.#..#..### +.##..#.##. +........#. +#....#.... +##.#.###.. +.##..#..## +.......#.. +#......... +#....##### + +Tile 3433: +#.#..#.... +#........# +#.#.#.#.#. +.###.##... +#....#.#.# +.#....#.## +.#....##.. +.#.......# +#.....#... +.###....#. + +Tile 3049: +...#...... +#...##..## +##.....#.# +#.#....#.# +...#....## +......#..# +#.......## +....##...# +.#.#.##... +.######... + +Tile 2143: +.######... +.##.#..### +##.##..#.# +.#....#... +.#.##...#. +#...#....# +##...#.... +##..##.#.. +#....##... +##.#...#.# + +Tile 3299: +#..##.##.. +.......... +#..#.#.... +.......##. +.......... +..#...##.. +.#....#... +#..##....# +#...#....# +.#.#.##### + +Tile 2803: +..#....### +..#.##.#.. +......###. +.....#.... +#..##.#... +.##...#..# +#....#.... +...#...... +......#.## +..###..#.# + +Tile 2311: +#..##....# +.....#.... +.#..##..## +#..###.... +#..#..#.#. +.......... +..#....#.# +#..##.#.## +.###.#.#.. +..##.##.#. + +Tile 1123: +#.####...# +......#### +..#..#...# +..#.#..### +###...#..# +.#.#.....# +.....#.##. +#.#.#..#.# +........## +...##..### + +Tile 1777: +..#######. +##........ +...#..#.## +........## +##......## +##....##.# +#......#.. +.#...#..#. +#..#.####. +..###...#. + +Tile 1321: +.###...##. +#.......#. +###....#.. +.#..##.#.. +#.#..##.## +###.#..### +#....#...# +#.#.#.#### +.........# +.##......# + +Tile 2287: +.....#..#. +.#..###### +..#.#..... +#........# +#..#.#..## +.#....#.#. +#.#.#....# +....#..... +..#.....## +.#.#.#.#.# + +Tile 3727: +.#.#.#..## +##.#..#.#. +##......## +##....##.# +.....#..## +#...#....# +.#....#... +....#.###. +..#......# +.####.##.# + +Tile 1607: +.......#.# +#.....#... +#.....#.#. +.#..#.##.# +#.#.#..... +#.....#..# +.....##..# +.....###.# +....#..... +#..#..#### + +Tile 1327: +.##...#.#. +###...#... +##.......# +.......### +#.#......# +#..#.....# +.....#.#.# +#........# +#.#..#.#.. +#.#..##.## + +Tile 3889: +.#.#.#..#. +..##...#.# +#...#...## +#...#.#.## +#.#....... +###......# +........## +#..#....#. +.....#...# +####...#.. + +Tile 1447: +..###.##.# +...#.#.... +.##......# +.....##... +......#... +#..#.#.#.# +#.#.#.##.# +#..#...#.# +###..##... +#.##.#...# + +Tile 3767: +.#....#... +.......... +##........ +.#.......# +.....#.#.. +.#.....#.. +#......#.# +#.....#.## +.....###.# +...#.####. + +Tile 2957: +##.#....## +#.#.....#. +.#....#... +#....#.#.# +......#... +#.##..#... +.........# +..#.##..## +###....... +.#...#.... + +Tile 3911: +..#.##.##. +#...#...#. +.#.#.##### +#.###..#.# +#..#...#.. +###..#.#.. +...#.#.... +#.##...##. +....#..... +#...#.##.# + +Tile 2683: +#.#####.#. +#..#..##.. +......#### +#..##..#.. +#.##.#...# +#........# +###...#..# +#..#...... +#.###....# +.##.#.#.#. + +Tile 2267: +#.#..#.#.. +...#.#..#. +#..##..#.. +##.#...#.# +..#......# +##....#... +#......... +#..##..... +...#..#... +##..###.## + +Tile 1709: +#..#...#.. +.#.##..#.# +#...###..# +##.##.#..# +##.#...... +#..#..#..# +..##...#.. +#....##..# +#.....#### +#######... + +Tile 2347: +##.##....# +#........# +....#.#... +..#.##.### +##....##.# +...#.#.#.. +#..#...... +.#.......# +....#..... +.###.##.#. + +Tile 1051: +###.#...## +#.#....... +#.......## +.......... +###..###.. +..###..#.. +#..#...#.. +..#....... +....##..#. +.#.#.##.## + +Tile 2903: +...##..... +#..#.#.... +...#...... +#...#..#.# +#..#...... +#...#...## +##........ +#.#....... +#.....##.. +...#####.# + +Tile 1619: +#..###.#.# +#.#......# +#.......## +......#..# +.##......# +#.....#..# +#.##...#.# +#..##....# +.#....#.#. +.####.###. + +Tile 3203: +...#.##.#. +#.###..... +.#..#..#.# +#.#..##... +.....#.#.# +.......... +.##..#...# +.....##.#. +.........# +.#####.##. + +Tile 2269: +.##.#...#. +#....##.#. +#.##.#.##. +#.....#..# +.......... +##......## +.....##.#. +#......... +....#..... +.....##.#. + +Tile 2027: +#..####### +#...##...# +...#..#.## +#...#..... +#....#.... +##...#..## +#...#.#..# +###..###.. +#.#..##### +#..#..#.#. + +Tile 1973: +##.#.##..# +.#.#.#...# +#...#....# +#......#.. +#.....##.. +...#....## +.#.....#.. +#.##.....# +........## +.##.#..... + +Tile 3559: +.######.## +.......#.. +..##....## +#.#.#.##.# +#..#.#.#.# +..#.#.#... +.#.#..#..# +#...#.#... +.#.#..#..# +##....#### + +Tile 3319: +#...#..... +.#..##.#.. +##.#.....# +.......... +..####.... +.##..#.... +...##..... +#..#...#.. +###..#.... +#.#..##### + +Tile 3631: +##....#..# +.#..####.# +##.#...#.# +#....#..#. +.......... +..##.....# +#..#...#.# +.......#.# +#.##..#.#. +.....####. + +Tile 2377: +.....#...# +#....#.... +..#.#..... +.....#..#. +........## +###.....## +#......... +....#...## +.........# +.##.#.#.#. + +Tile 3331: +#..#..#.#. +##.......# +....##.... +...###.#.# +.###.##.#. +###......# +#.#.##.... +#.#...#... +...#.....# +..######.# + +Tile 2473: +#.###....# +#...#.#.#. +#...##...# +.#..#..##. +........#. +.#.#.#...# +#.#.#..#.# +.##....... +.#.......# +##.#..###. + +Tile 1039: +##..#.##.# +#......#.. +###....#.# +..#..#.... +.##....... +####.##..# +##..#..#.. +.....#.... +##....#.#. +#.....##.# + +Tile 2111: +.#..#...#. +#.##.#.... +.####..#.# +#..#.#.#.# +..#...#... +..#.#.#... +......#.#. +#.....#..# +..##..#..# +####....## + +Tile 2039: +#.####.### +..#.#.##.. +..#..#.... +###....... +#.#......# +.........# +.#.......# +#.#...#.#. +####.....# +######.#.. + +Tile 3391: +.####.#.#. +#.#...##.# +.#.#.....# +...##...#. +.#..#..#.. +..#..##... +.....#.#.. +#....#.... +.#..#..#.. +##.##..### + +Tile 1913: +.#.####### +#.#..#..## +.##.#..... +#.#......# +....##.... +###..#.... +........## +#.....##.. +.#..##...# +##....#... + +Tile 2693: +#..##.#..# +.#....#.## +.#...##..# +...##..... +###..#..## +##..#....# +...#.....# +##........ +####...##. +#...#.#.## + +Tile 1033: +#####.#... +#........# +#.#...#.#. +.###...... +..##....#. +#...####.# +....#..#.# +.....##... +.....#..## +##..##.#.. + +Tile 2273: +#.##....## +.......... +#..##...#. +###....... +..#.#.#.## +##.......# +##..##..#. +.......... +.........# +.##..##.## + +Tile 1787: +.#.#.##.## +###.#....# +#...###.#. +..#....#.. +.........# +....#.#... +.##.....#. +.....###.# +.###..#... +.##.####.. + +Tile 2689: +.......### +..#..#.... +#......#.# +#.#.##...# +#.#.#.#... +.##....... +..#..#.#.. +...##....# +#......#.# +.#.######. + +Tile 1933: +######.#.. +..#.#...#. +...#...#.# +###.#....# +..#.....#. +#..####... +##........ +..###....# +....#..... +#####.#### + +Tile 1823: +###.#..#.# +.......... +.#.#...#.. +..#..##.#. +.#..#..##. +#.#.#....# +.#..#....# +........## +###.#.#... +#.......#. + +Tile 1439: +.#.....#.# +...#.#...# +...#.#.... +...##..#.. +#...#..#.. +...#.#...# +.#..#....# +#...###..# +#..#####.. +#.#.#...## + +Tile 1657: +.####.##.# +#....#.... +.#..#..... +..##..#... +##..#....# +.#......#. +#.###...#. +.........# +#.####.... +##....##.# + +Tile 3517: +##.#.##.#. +#..#....## +##......## +#...#..#.. +.##..##... +........#. +..#...##.# +#.#..#.... +##....##.# +####..#... + +Tile 3943: +.#.#..##.# +#........# +#..#...... +#.......## +##..#..... +####...#.# +.###....#. +###....... +.##....... +..#...#### + +Tile 2801: +##.##.###. +##.###.#.. +##.#...... +..###..... +##.#..#... +#......#.. +#.##.....# +##.#.#...# +....#....# +..####..#. + +Tile 2411: +#.#.#.#... +.####.#.## +....#..#.# +........## +....#..#.. +#...##..#. +#.#......# +#.....#... +.#....#..# +..#.....#. + +Tile 3907: +#.....#..# +.##..#.... +##..#..... +.....#.... +.#..#.###. +#......### +......#... +##.......# +........## +####.##.#. + +Tile 2819: +..#.##.#.# +..#..#...# +...#...#.# +..#...#... +#....##.#. +#.##.#.... +.........# +#...#..### +###.#..... +......##.. + +Tile 3307: +.#.##..##. +#..#...#.# +#.#..#.... +#..#....#. +....#...#. +#.#..#...# +...#.....# +..#...##.. +#.#...#..# +#.#.....## + +Tile 3313: +#.##...##. +.......### +....#..#.. +#.###.##.# +###.#.#..# +....##.... +....#.##.# +#..#.##..# +..#.###.#. +#.#.#.#.## + +Tile 3037: +.###.#.... +#..#..##.# +...####... +#.##..#... +#...#..#.. +...#.....# +........#. +###.##.#.. +#.####..#. +###..#.##. + +Tile 2053: +####.#.... +#.#..##..# +.#...###.# +#.####.... +#......... +#.....#..# +#.#.#..... +..#.#...#. +#..#.#...# +..#..#.##. + +Tile 3769: +....#..##. +#..#...... +#...###..# +#..##....# +.#.......# +#......... +.#..#..##. +#.#.#..#.# +#.#....... +#..##..#.. + +Tile 1759: +...##....# +.......... +###......# +##........ +.....#.... +#..##..#.. +......#.#. +###..##..# +.#....#..# +......#.#. + +Tile 1229: +#.##.#.#.. +#..#...### +...#.....# +.#....#..# +#.##..##.# +#..#...### +.......... +.....###.. +..#..#..## +##.#....## + +Tile 3821: +.##.####.# +......#### +......#.#. +#....#.### +.#.##..#.# +.......... +...#.#...# +..#...##.. +##.#.#..## +####...### + +Tile 1319: +#.##..#.## +...#..##.. +..#.#..... +.#..#....# +#..#.#.#.. +#.....#..# +#.#.#..... +...###.... +##.##...#. +.#.##.##.. + +Tile 3167: +#.#.....## +.#...###.# +.#...##.#. +###..#...# +....##..## +.....#..## +..#...#.## +.......### +.........# +##.#.#.### + +Tile 3407: +...##..#.# +.#...##... +.........# +#..#..#.#. +#.#....#.# +...#.#...# +.#.#...... +....#....# +#..#....#. +.####..##. + +Tile 1231: +#...#..### +#........# +##.......# +#.#..#.... +#.#.#..... +.#..#..... +#...#..... +#..#...### +..#.#....# +#.##.###.. + +Tile 3623: +##.##.##.. +#..#.....# +........#. +#........# +....#..... +.......#.. +.....##..# +###...###. +..##..#..# +.#..####.# + +Tile 3541: +#.......#. +##........ +.####...#. +.#..#..#.. +#.....#..# +..#...##.. +#..#...##. +#....##..# +....#...#. +.#..#####. + +Tile 2939: +..#.###..# +......##.. +#...#.#... +#......... +#...#.#... +#....#.... +##.....#.. +.......#.. +###..##### +.#.###..## + +Tile 1847: +.#####.##. +....#.##.# +...#...... +.#..#..... +.....#.#.# +##.##...## +.......#.# +.......### +....#..#.. +...#.##... + +Tile 2887: +####.##.#. +#..##...## +#..#..#... +#........# +##.#.#...# +#.#..##... +...##...#. +#.#..#...# +#.#.##.... +##.##.##.# + +Tile 3697: +.##.....## +#......... +###....... +..##.#.... +##...#.#.. +#...#....# +#........# +.#........ +.#.#...... +#...#...## + +Tile 2081: +.###.#..#. +..#.#....# +......#.## +#..#.#..## +#...##.... +#....#...# +.###...... +..#..#.#.# +..#....### +#...#...## + +Tile 2383: +....##.##. +.##......# +.#.......# +#.##.#...# +#..#..#..# +##.#.....# +..#.#..#.. +#....#.... +.#.#.#.#.. +#..#.#.#.. + +Tile 2557: +##..#.###. +..#....... +.#....##.. +...#.#.... +...##.#... +#.#.#....# +........## +#.....#..# +##.....#.. +.###..#.## + +Tile 3637: +#..#.###.# +...#..###. +#.......#. +.......#.# +...#.#.... +.......... +.........# +.........# +.###..###. +###.#.#..# + +Tile 3989: +...#.#.#.# +..#..###.. +#...#..### +#....##... +#....#.#.# +........## +#.##....## +#.....#.## +#.##..#..# +......#... + +Tile 2221: +#...##.### +.....#..#. +.#..#....# +.....#.##. +..#.##...# +........## +#.....#### +.#.......# +#.##...#.. +##.####... + +Tile 1523: +..#..####. +.#.#...... +#...#.##.# +###..#..#. +......##.. +.........# +...#..##.. +#....#.#.# +#......#.. +.#...#...# + +Tile 1583: +.####.#.## +#...#.#.## +.....#.... +...#...#.# +.###.....# +..##.#...# +#.##...... +#....##... +#..#.....# +.####..#.. + +Tile 3919: +..#..##... +.#...#.... +#.####.#.. +.......... +#..#...... +#........# +...##.#..# +...#...... +#..##....# +.#....#.#. + +Tile 2381: +....###### +..##..##.# +#...####.. +...#...... +###...#.## +#...#..... +#.##....## +....#....# +......#.#. +...##.##.# + +Tile 3923: +#####.#.#. +.#.....#.. +....#..... +#...#....# +##........ +......#..# +.....#...# +#.#...#... +.####....# +####....#. + +Tile 2953: +#.#.###..# +....#.#... +.#.#....## +#...##...# +#...##..#. +###......# +.#.##.#... +.........# +##.#.##.#. +..#...#..# + +Tile 2441: +....#.#.#. +##..#.#... +.....#.#.# +#....#.... +#..#...### +#....#.... +#......### +..#..#.### +.#.......# +.#.#.##... + +Tile 3023: +#.#.#####. +..#.....## +#..#.#...# +.#....#..# +..#.#...## +##.....#.. +.#....#.## +#......... +####.#.... +#..##.#... + +Tile 2659: +...##..#.. +##...##..# +.#...#..## +##....#### +....#.#### +##.#...... +..#.##...# +.#.#..###. +....#.##.# +.##..###.# + +Tile 1069: +.##.##..## +#......... +.#....#... +##........ +..#......# +.###...#.# +##...##..# +#..#.#.... +..#.....#. +.#..###..# + +Tile 1181: +##.##.##.. +#.....#..# +..#...#..# +.##.#..... +#...#....# +#.#......# +...#...#.# +#....##..# +#..###.#.. +..#..#...# + +Tile 1663: +....#..#.. +.###.##### +#..#...#.# +.......... +.........# +.#.##....# +.##....... +.......#.. +##......## +.#.##...#. + +Tile 3779: +.##.##.#.# +#...#....# +#..##....# +.#...#.... +##..#...#. +.........# +#...#...## +#..#...... +###.....#. +..##..#.#. + +Tile 1013: +#.##.#.#.# +.#..#..... +.#.#.##... +###......# +.#.##..#.# +.#..#..##. +.......... +....#....# +#......#.# +#..###.### + +Tile 1747: +.#.#..###. +.......##. +#..##..#.. +..#.#.#... +##......## +#......##. +....##..## +..#.#...## +#...#..#.. +##.###.##. + +Tile 3931: +..###..#.. +#..#...... +##....#... +.##...#... +#........# +....#.#.#. +.###.....# +.#..#..... +##.#...... +##.####..# + +Tile 2593: +#.##..#..# +.##.....## +#.###...## +#..#...... +##..##...# +#.##...... +..#.#.#..# +..#......# +...#..#... +.####.##.. + +Tile 3677: +#.#.#.#.## +....#..... +.#..##.... +.....##..# +..#..#.#.. +.......... +###..##... +##.#####.# +#...#..... +#.#..##### + +Tile 2633: +.#..####.# +.###...#.. +......#..# +....###... +#..#.##... +.#..##.#.# +##.....#.# +#.......## +#...#.#..# +#.#..#.#.. + +Tile 2129: +..##.###.. +##..#...#. +..#...#... +#.....#... +......#..# +..#.##...# +....#..### +##....#... +.......... +.#.#.##... + +Tile 2029: +##.##.###. +#..#...... +##......#. +.#.###.##. +...##...## +#..#....## +...###.#.# +....#...## +..#..#.... +...#.....# + +Tile 1873: +.#...#...# +#...##..## +##.#.....# +#.#..#..## +....#..... +..#..###.. +......#..# +.........# +#...#...#. +##.##....# + +Tile 1567: +##..##..#. +....##..#. +..#.....#. +.#.#.....# +#.#.##...# +....##...# +#....##..# +....#.#..# +.#...##..# +##.#..##.# + +Tile 3571: +####....#. +.##.###.## +.........# +..#.....#. +....##.#.. +.#.#.....# +#......... +#....#...# +#........# +#..#.##.#. + +Tile 2671: +...#..##.. +.......... +#..#..##.. +##....#... +#.......## +###.#..#.# +..##....## +#...#..... +.#...#...# +......##.. + +Tile 3229: +...#.#..#. +#......... +...##..... +...#.....# +#.##...... +..#.#.#.## +...####... +.....##..# +#......... +.#.###.... + +Tile 3083: +##...#.#.# +#.###....# +#..#...#.# +.#...#.... +#...#....# +##...#.#.# +..#......# +#.#....#.# +#..#.#.#.. +.#..#..... + +Tile 2239: +######.#.# +##.##.##.# +.......##. +#..#...... +##.....### +........## +..#....#.. +#...####.. +....####.. +..#.#####. + +Tile 3581: +###.#..### +#.#.#....# +...#.#..## +#..#...### +.#.##.#... +#..#..#... +...#.#.#.# +#...#..##. +##....##.. +##...###.. + +Tile 1061: +.....###.. +###...#... +#.#...###. +........#. +.#.....#.# +##...##.## +.........# +#....##.#. +.#.....#.. +.#...#.##. + +Tile 3967: +..######## +##........ +.##.#...#. +..##.##.## +#.#....#.# +.#.......# +....#..... +#.##...... +##..##.#.. +..#...#.## + +Tile 2749: +.#######.# +#..#..#... +...#...... +....#....# +....#.###. +.#.#.#.... +.#..#..... +...#....#. +#.##.#..#. +#####.###. + +Tile 1811: +#.#.###.#. +#......... +.........# +...#...... +........## +.......... +.#####...# +####.#.... +#.....#... +#.#.#.#..# + +Tile 2477: +####.#..## +..#.##..## +#....##... +#.#...##.. +####....## +#.......#. +#####....# +..#....... +......#... +.#.##.##.# + +Tile 1949: +#.##..#### +#.##..#.#. +###....... +##.#.....# +#..###..## +##......#. +.....#..## +##...##..# +.#........ +##.##.#..# + +Tile 2099: +..##.#..## +....#.#... +#....#.#.# +...#..#... +##.....##. +#..###.### +.#.....#.# +..#......# +......#... +.##..#.#.. + +Tile 2767: +.#.###.#.. +..#.#.#... +...##..... +..#....... +......#..# +.......#.# +.....#.... +#.#.##..## +..#..#.... +##...#.### + +Tile 3251: +..##.#.... +.......#.. +.....#.#.# +.#..##..## +.#.##....# +#.#....#.. +##..#....# +.........# +..#..#..## +....####.. + +Tile 3833: +#..####.## +...#...... +.#.....#.# +##..##...# +.....##..# +#..#.#.... +...##...## +..#.##...# +........## +##....#.#. + +Tile 3089: +..#....... +.....#.... +#####...#. +##..#..#.. +.#.#.##.## +..#.##..#. +.......#.. +##..#....# +...#..#... +..#.###..# + +Tile 2861: +#......#.. +...#.....# +#.....#..# +##.......# +.#....#..# +##..#.#... +........#. +#........# +#.##...### +#.#.###... + +Tile 1489: +##.##.#.## +.#.......# +#..#.##..# +#.#....... +#.#....#.. +#.....##.# +.##..####. +.....#.#.# +.......### +#.#.#..#.# + +Tile 1801: +#....##### +#.#......# +.........# +#.#.....## +#....#...# +.##...#... +##.###.#.# +.#.#..##.# +..#.#.#..# +##..###.#. + +Tile 2677: +#.#...#.## +.......... +#...#.##.# +#.#....#.# +#.....#..# +..#..#..## +#.###..#.# +##.#.....# +........## +##.####.#. + +Tile 3797: +..#####.#. +#.#..#..#. +..#..#.##. +..##.#.#.. +.##..#.... +.##.##..#. +#......### +........#. +.#.##...#. +..#..##### \ No newline at end of file diff --git a/2020/inputs/day20_short b/2020/inputs/day20_short new file mode 100644 index 0000000..b3aed46 --- /dev/null +++ b/2020/inputs/day20_short @@ -0,0 +1,107 @@ +Tile 2311: +..##.#..#. +##..#..... +#...##..#. +####.#...# +##.##.###. +##...#.### +.#.#.#..## +..#....#.. +###...#.#. +..###..### + +Tile 1951: +#.##...##. +#.####...# +.....#..## +#...###### +.##.#....# +.###.##### +###.##.##. +.###....#. +..#.#..#.# +#...##.#.. + +Tile 1171: +####...##. +#..##.#..# +##.#..#.#. +.###.####. +..###.#### +.##....##. +.#...####. +#.##.####. +####..#... +.....##... + +Tile 1427: +###.##.#.. +.#..#.##.. +.#.##.#..# +#.#.#.##.# +....#...## +...##..##. +...#.##### +.#.####.#. +..#..###.# +..##.#..#. + +Tile 1489: +##.#.#.... +..##...#.. +.##..##... +..#...#... +#####...#. +#..#.#.#.# +...#.#.#.. +##.#...##. +..##.##.## +###.##.#.. + +Tile 2473: +#....####. +#..#.##... +#.##..#... +######.#.# +.#...#.#.# +.######### +.###.#..#. +########.# +##...##.#. +..###.#.#. + +Tile 2971: +..#.#....# +#...###... +#.#.###... +##.##..#.. +.#####..## +.#..####.# +#..#.#..#. +..####.### +..#.#.###. +...#.#.#.# + +Tile 2729: +...#.#.#.# +####.#.... +..#.#..... +....#..#.# +.##..##.#. +.#.####... +####.#.#.. +##.####... +##..#.##.. +#.##...##. + +Tile 3079: +#.#.#####. +.#..###### +..#....... +######.... +####.#..#. +.#...#.##. +#.#####.## +..#.###... +..#....... +..#.###... \ No newline at end of file diff --git a/2020/inputs/day21 b/2020/inputs/day21 new file mode 100644 index 0000000..5d2b7ea --- /dev/null +++ b/2020/inputs/day21 @@ -0,0 +1,42 @@ +rgt lmpxcr ssgkt klfp dfpqn scqc vzzxl hphcb pbmhl xrlmvz fvd cpj kxl gpplt jkrsn bhlbm dkxr vrzkz drpxzr bxhsq cvz nvhnsg jtzsqznl fjbjj slglnd qdbq gnrb zpbbvvm bqb mbdksj nlxh gtzp jrlvkz ctmzsr znjp zvmnv lhsgbq pdxhgx jrcczb vrpzss qdbj lsc jhrgz hqlm qlt kh grjf brhfcbt zjsh pkmbk rncjx nmszz fzpds qglps zjsz qfnq ftfx bbkth rkzqs vgp (contains nuts, shellfish) +slmjchql qfnq lqdpl bgdq tjxp rkzqs zjsh znklc qdbj pbtns cpsbgsh qbtpnr nmszz vzzxl vrzkz vtrltkq znfrgvc dksfbk cvz qfvvf cvtj dmpl qnt hbbz zmhnj dfpqn rncjx scqc bccz hdnq zpbbvvm lnpbh pdxhgx nqstv fhpxz ftfx rgt ztrpkb lqtnn dqdn vlqtzzl msvgj dkxr fptpk bbkth jgkp hmshx xrlmvz trlmqn znjp vgp ztlbvp klfp slglnd rmthpj nfzczn hdkc nvhnsg cntfbt rmpnm bqfqcjb tkrr jgxbzks sks pchhkp qsrh kh mbdksj ctmzsr drpxzr xlqj bhlbm (contains soy, eggs, shellfish) +zjdzx cpj bqfqcjb bqb ztlbvp hdkc hphcb zjsh pkgsf qllxhr grjf rgt vfnv gtzp sbsrk hdnq vzzxl httx vgp cntfbt ghfk hmshx rzjcs dbfk xfvtzq nvhnsg znfrgvc bbkth svrx rcv bgdq hqjgzmt rkzqs nmq lqdpl zcxxdp dxpdkp nqstv vrtfrj zhvsdc rsrgmkr nlxh lmpxcr rmpnm kxl qzbzd fzpds sltl cvtj zvmnv jgxbzks vrzkz cpsbgsh zdrlf cqbkj nmszz jrcczb qvhdl dlc sks lvjrbms vfhvp lhb knhvxm qlt dqdn ssgkt slmjchql nvbr cgrcmp pkmbk vllxj spzmvfl rvnfn ctmzsr cvz zqgzlr zmhnj fzgbq bhlbm (contains shellfish) +pznl nmszz vtrltkq qpgj zqgzlr lnpbh gpplt rkzqs gmx bqb jgv hphcb dfpqn zcxxdp tkrr qbtpnr mbdksj hxfrh vfnv hmshx fmkbnr gnrb sltl kh drpxzr vzzxl fptpk ftfx ctmzsr jrnfp dksfbk qsrh rnxl czlpq dpkdp qzbzd dxpdkp fvpj tnjxcf zdrlf bxhsq bhlbm nlxh hqjgzmt qglps cf qllxhr cqbkj jmxpbtk nvdst slmjchql qnt dnzljk ckzdf vrzkz pbmhl ssgkt knhvxm gjvqffm xzhct xvmftv zmf qbnkj ltxqz mxk njcjm knqlqt bccz dbfk dlc vllxj rph frz zmhnj pkmbk (contains soy, sesame, fish) +gbzcv znjp xvmftv pjgxpg bhlbm spzmvfl xfvtzq vrzkz bqb brhfcbt rmthpj hphcb vfnv knqlqt slmjchql vrtfrj fzgbq hxfrh rxzxs cgrcmp dg msvgj xcdb dksfbk zmhnj gjvqffm jsdcr rzjcs jgkp klfp flhzd dnzljk nmszz qbnkj bbkth hdkc vlqtzzl fptpk hmshx jrcczb lhsgbq tcp fvvjp cvz lhb rls rcv pspjgzx gtzp cntfbt ftfx qpgj vzzxl hbbz qfnq ztlbvp dxpdkp lmpxcr frnh qzbzd ctmzsr rkzqs svrx znklc zjsh knhvxm rnxl qbtpnr jmxpbtk zjsz vgp zpbbvvm pkgsf jrnfp rvnfn gpplt sks vtrltkq (contains sesame, fish) +dmpl cpsbgsh msvgj qdbq tqtbd fptpk frnh zjdzx hbvqn rls bhlbm lhsgbq znklc rph bqfqcjb rmthpj dlc tkrr qfvvf xzhct dxpdkp qpgj rkzqs fvd ltxqz sltl zjsh ctmzsr kxl bbkth cvz znfrgvc jgkp zmhnj hphcb qvhdl vrzkz sbsrk jgxbzks qzbzd cgrcmp hqlm jmxpbtk mkpxx drpxzr kh rncjx qbnkj dbfk tjxp fvpj vpl nmszz jsdcr vzzxl dksfbk lqtnn pmhnmxr gnrb vkjggtx gmx cf (contains dairy, peanuts, sesame) +qfvvf cntfbt cvz fvpj hxfrh vrzkz lsc zmf cgrcmp httx qvhdl xvmftv dksfbk zvmnv snxz lvjrbms zcxxdp gjvqffm pdxhgx czlpq spzmvfl knqlqt ctmzsr zhvsdc vzzxl rkzqs zjsh msvgj zmhnj nlxh dxpdkp hphcb dnzljk bqb lqdpl nvdst rcv tqtbd xfvtzq mkpxx (contains soy, eggs, peanuts) +slmjchql zjsh qfnq lqdpl zmf vgp rkzqs cgrcmp snxz drpxzr zqgzlr cpsbgsh zvmnv vzzxl mxk knhvxm lsc dpkdp ltxqz xvmftv dnzljk ctmzsr spzmvfl pmhnmxr kh mbdksj gpplt znjp lvjrbms pkgsf hdkc vrzkz vfhvp znklc dg rcv jgxbzks fhpxz hbvqn qvhdl nqstv qglps dfpqn znfrgvc rncjx bqb gtzp xlqj zjsz pspjgzx zmhnj tjxp lmpxcr (contains nuts, sesame) +zqgzlr hhth scqc jtfnm qdbq cf zcxxdp rxzxs rlxhc zdrlf qfnq slglnd dbfk fzgbq cpj rncjx zjsz pmhnmxr kxl qllxhr bqfqcjb dlc flhzd klfp dpkdp vrzkz zjdzx fptpk vzzxl rkzqs zhvsdc mbdksj snxz jsdcr xlqj qbnkj pznl tqtbd dqdn slmjchql xvmftv fjbjj vkjggtx qlt rnxl gpplt qpgj nvbr nlxh nqhk vfhvp hphcb zjsh qglps rph lhsgbq zvmnv rzjcs pchhkp frz dfpqn kh qbtpnr zmhnj drpxzr bccz cgrcmp msvgj cqbkj hdnq vttzh lsc dmpl pkgsf rmpnm pbtns xfvtzq (contains shellfish, dairy) +hphcb hxfrh fptpk tsnhq ctmzsr qnt xvmftv nvbr zmf sks czlpq dlc cpsbgsh jtfnm znklc bhlbm bgdq qbtpnr nvhnsg slglnd jkrsn ghfk ztrpkb njcjm znjp jrnfp gpplt cpj tcp pdxhgx kxl mbdksj rnxl nvdst bxhsq zjdzx vzzxl rsrgmkr rvnfn rcv zmhnj xrlmvz dbfk tjxp ghtjbp rph zjsh rkzqs spzmvfl vlqtzzl (contains shellfish, soy) +hphcb sbsrk qvhdl hbvqn cpsbgsh nvhnsg mkpxx ssgkt znklc cf jgv vzzxl dnzljk ttr pbtns cgrcmp rnxl cvz znjp fptpk kh zdrlf zmhnj zjsh svrx snxz slglnd lsc pdxhgx rmpnm cqbkj pznl frnh bxhsq bqfqcjb ghfk dxpdkp qbnkj hkzzg hbbz rkzqs grjf dbfk jkrsn zcxxdp ctmzsr nvbr hhth mbdksj lhb vrtfrj brhfcbt flhzd zjdzx hdkc nlxh jrlvkz dfpqn (contains nuts, peanuts, shellfish) +hqjgzmt njcjm rlxhc brhfcbt fvvjp zjsh ghtjbp dnzljk qsrh zmhnj brhns pznl vzzxl jrnfp lnpbh rzjcs svrx pkmbk nfzczn pbtns nvhnsg pmhnmxr hdnq gjvqffm pjgxpg bxhsq vllxj lhb dksfbk tcp ssgkt vrzkz nvbr qzbzd dmpl pbmhl lmpxcr hdkc dpkdp rkzqs zdrlf sbsrk knqlqt pspjgzx qbnkj rph cqbkj drpxzr mbdksj ctmzsr dfpqn bccz kh vlqtzzl hbbz vfhvp (contains sesame, nuts) +pchhkp jkrsn hbvqn vzzxl qsrh ctmzsr rzjcs cgrcmp xzhct zvmnv cntfbt dlc zqgzlr znfrgvc hqjgzmt dqdn pkmbk nmq zmhnj qdbj vrzkz qbnkj fzpds vlqtzzl qvhft bhlbm bccz rvnfn zjsh mbdksj lnpbh pbtns svrx rkzqs zhvsdc qbtpnr ltxqz dksfbk (contains dairy, shellfish) +hkzzg vtrltkq nmszz hhth pjgxpg jgxbzks rcv cgrcmp tsnhq zmhnj dqdn fhpxz ltxqz pdxhgx ssgkt jrnfp gtzp tnjxcf qdbq hphcb dnzljk ghfk znklc nvdst tcp brhfcbt xzhct vzzxl nvhnsg ttr bbkth hdnq nmq rph jtzsqznl czlpq gnrb ctmzsr ftfx pkgsf msvgj zjsh sltl lsc qnt pbmhl cqbkj gztf vrzkz jrcczb zdrlf qfnq jtfnm qbnkj frnh jrlvkz hbbz klfp njcjm rvnfn pmhnmxr qglps sbsrk mbdksj nllks (contains nuts) +spzmvfl fvvjp cvtj qsrh pspjgzx vzzxl svrx rkzqs vfnv xcdb jgv hdkc zmhnj ghtjbp fptpk frz lsc dmpl bhlbm qpgj sbsrk dnzljk vttzh hkzzg tsnhq ctmzsr dpkdp jgkp bxhsq lnpbh ztrpkb zjsh mxk jtzsqznl zpbbvvm vrtfrj rcv rph bgdq lhb bccz rls jhrgz nvdst hhth qnt vpl kh mbdksj zmf rncjx knqlqt flhzd jmxpbtk jrnfp lqtnn tnjxcf cpj fmkbnr tcp dfpqn hdnq vrzkz (contains shellfish, dairy) +nqhk jrlvkz pjgxpg nvbr qvhdl rmthpj nqstv xcdb gpplt rgt vgp tjxp rlxhc rnxl tqtbd hqlm dkxr dbfk knqlqt msvgj scqc klfp httx hdnq hkzzg fmkbnr vllxj nmszz zjsh mkpxx ctmzsr dxpdkp fzpds xfvtzq nvhnsg kh qfvvf fzgbq dpkdp slmjchql knhvxm rcv mbdksj rzjcs vzzxl ghtjbp qzbzd jsdcr cpj pkmbk pdxhgx fptpk nlxh flhzd vrzkz qpgj spzmvfl jrnfp zmf ttr fvvjp qglps lhsgbq rkzqs snxz qfnq fvpj bbkth gztf lqtnn jgxbzks tkrr pbtns gjvqffm jgv nmq drpxzr czlpq kxl svrx hphcb (contains nuts) +rph jkrsn dmpl tcp vrpzss jgkp cntfbt mkpxx spzmvfl dnzljk fvd cpj zmhnj cqbkj ltxqz tsnhq ctmzsr flhzd vtrltkq rkzqs pspjgzx hdnq vzzxl hbbz trlmqn cvtj fjbjj vrzkz gnrb hqjgzmt mbdksj lqdpl xrlmvz lnpbh jrlvkz qpgj kxl nvhnsg sbsrk svrx klfp vllxj slmjchql rncjx hkzzg bqfqcjb xvmftv qdbj dqdn nqhk tnjxcf vlqtzzl zcxxdp hxfrh vkjggtx pznl nmq qfvvf qdbq zjsh scqc (contains sesame, dairy, soy) +rkzqs pchhkp jkrsn hqjgzmt qzbzd hbvqn zpbbvvm rph hphcb gmx njcjm nvbr qllxhr pbmhl ttr gpplt gbzcv vfhvp bccz hbbz nlxh mxk ltxqz vrzkz zjsz httx pmhnmxr fzgbq nvdst lqtnn vzzxl rvnfn pkmbk xzhct zqgzlr ctmzsr pznl bgdq znjp vllxj fvpj fvvjp mkpxx tkrr fhpxz tsnhq zjsh vttzh rmpnm gztf qbtpnr klfp cgrcmp fmkbnr jgv qglps mbdksj knhvxm sks kxl ckzdf cf (contains fish, sesame, nuts) +fjbjj nqstv bqb dg vfnv gmx vzzxl qglps gpplt zjdzx zvmnv ctmzsr bqfqcjb xcdb tjxp gjvqffm hhth jrcczb bgdq cqbkj spzmvfl sltl qfnq vtrltkq dmpl qlt hphcb hdnq flhzd zmhnj vpl msvgj vrzkz dkxr jsdcr hbbz bbkth tsnhq svrx jrnfp lhsgbq slglnd gtzp cvtj ckzdf ztlbvp pspjgzx pbtns lmpxcr jmxpbtk mkpxx bxhsq ghfk rmpnm qllxhr dqdn fvpj ftfx vkjggtx qvhdl klfp qnt hdkc jtfnm zpbbvvm lqtnn nllks dfpqn vlqtzzl hbvqn jgkp hqlm grjf lsc pkgsf kxl qbtpnr qzbzd rkzqs nmszz zjsh (contains eggs, soy, dairy) +knqlqt kh dlc vkjggtx jtfnm dnzljk svrx zmhnj dfpqn gpplt qvhft qsrh qzbzd hqlm kxl lqtnn qglps lvjrbms dmpl spzmvfl slmjchql knhvxm jmxpbtk ztlbvp vfhvp qnt rmthpj mbdksj xfvtzq lqdpl fjbjj vzzxl slglnd fhpxz snxz zhvsdc pbmhl nlxh ssgkt lhsgbq ckzdf tcp znfrgvc rkzqs lhb ctmzsr jrnfp frnh tjxp zjsh cgrcmp ftfx mxk rls vpl hphcb xcdb fptpk rvnfn fzgbq hkzzg vlqtzzl jkrsn ghfk vfnv (contains soy, fish) +vfhvp rmpnm tsnhq sks cntfbt qdbj rzjcs vllxj pjgxpg gpplt mxk brhfcbt qsrh zqgzlr qdbq lhb fjbjj dlc ztlbvp rcv dg dxpdkp tqtbd zjsz pdxhgx zjsh znklc xvmftv rkzqs zcxxdp gmx cqbkj dqdn zmf vrtfrj ckzdf hdkc qpgj jsdcr bccz slglnd brhns bhlbm vrzkz jkrsn zvmnv nmq hbvqn rvnfn qvhft pbtns jrnfp knhvxm dfpqn spzmvfl rgt httx hphcb mbdksj bbkth jrlvkz zmhnj hxfrh rls fhpxz rlxhc jgv vlqtzzl fmkbnr tnjxcf tjxp jhrgz qbnkj svrx jmxpbtk tkrr nfzczn ctmzsr knqlqt qlt kh cvtj (contains dairy, fish) +mbdksj dg hphcb jsdcr qvhdl bgdq pdxhgx vllxj jgxbzks ctmzsr hdkc hbvqn fhpxz znfrgvc cf svrx scqc rvnfn xlqj sks qvhft jrcczb zmf nqstv vzzxl jmxpbtk lvjrbms rcv tkrr vrtfrj nvbr bccz vlqtzzl qglps rkzqs zmhnj qzbzd pznl cpj cntfbt czlpq zjsz lqtnn zqgzlr slglnd jgkp vrzkz dpkdp sltl ztlbvp jrlvkz (contains shellfish, soy, peanuts) +rncjx dg vfnv vzzxl pkgsf mbdksj jrcczb ltxqz zmhnj vtrltkq dfpqn gjvqffm dksfbk qbnkj slglnd nvdst hdnq ckzdf qlt hphcb mxk scqc sltl qfvvf jgxbzks cgrcmp bhlbm ttr njcjm cvz nvbr qglps vpl tcp trlmqn dnzljk pmhnmxr rlxhc zhvsdc lsc nvhnsg fhpxz gnrb brhns cf ctmzsr fzgbq fzpds fvd gztf drpxzr ssgkt pbtns rkzqs rmthpj fjbjj rmpnm bccz brhfcbt jmxpbtk zpbbvvm fvvjp zjsh rzjcs (contains eggs, shellfish) +zmhnj hxfrh scqc tqtbd dqdn zjsh rcv sbsrk ctmzsr slglnd sltl zdrlf pspjgzx qbnkj gztf vrtfrj trlmqn rncjx bhlbm pchhkp qglps tsnhq fvvjp ztlbvp fptpk nvbr lmpxcr pkgsf xvmftv rvnfn qnt spzmvfl jrlvkz dpkdp flhzd ssgkt snxz rph rkzqs fjbjj gpplt vzzxl hphcb gbzcv nfzczn vrzkz jtzsqznl kxl (contains soy) +zjsh scqc vlqtzzl fzgbq xlqj dxpdkp jgv tjxp qdbj jhrgz kh znjp mbdksj jgkp xfvtzq rzjcs hdkc dksfbk jmxpbtk ftfx lvjrbms nmq svrx ztlbvp xvmftv cvtj zhvsdc cpj cvz hmshx zmhnj rkzqs zjsz jtfnm slmjchql zmf vzzxl cf jkrsn lqdpl ctmzsr fmkbnr hdnq mxk dg hphcb gtzp qdbq vrtfrj vfhvp nllks znfrgvc vrpzss ghtjbp bqb fhpxz jtzsqznl (contains sesame, peanuts) +pdxhgx rmthpj jrlvkz lqtnn pmhnmxr jmxpbtk vgp zjsh rncjx fvpj vrzkz rkzqs fptpk pbtns qzbzd bhlbm znfrgvc qbtpnr gtzp dbfk jsdcr pkmbk spzmvfl lhsgbq tqtbd gnrb vzzxl gpplt knqlqt frnh dksfbk qvhft lhb bqfqcjb hkzzg qfvvf scqc klfp cf mbdksj slmjchql dpkdp kh tsnhq ctmzsr rlxhc ssgkt hdnq rph rxzxs jgkp hbbz cqbkj xvmftv cpsbgsh pznl dnzljk zmhnj nvhnsg ztrpkb msvgj brhfcbt pchhkp rcv gmx rvnfn tcp zpbbvvm dlc cvz rzjcs (contains dairy, shellfish) +qbnkj zcxxdp qglps dnzljk dkxr jgkp frnh knhvxm ctmzsr bgdq zhvsdc vrzkz dqdn tqtbd vzzxl xzhct slglnd rkzqs znfrgvc qfvvf snxz fvd cpsbgsh trlmqn gbzcv tsnhq qbtpnr rzjcs pmhnmxr nmq nvhnsg mbdksj knqlqt vgp njcjm brhns zjsh pkgsf zmhnj (contains sesame, nuts) +spzmvfl zjsh fmkbnr qbtpnr pdxhgx fzpds qpgj vrzkz mkpxx jkrsn pchhkp tkrr zvmnv pspjgzx zmhnj hphcb rvnfn cf pmhnmxr nvdst frz qdbq fptpk fhpxz fzgbq nmszz qvhft gtzp vzzxl vlqtzzl dqdn pbmhl vkjggtx hqlm nmq trlmqn vtrltkq dpkdp lqdpl rkzqs ctmzsr qzbzd dksfbk fvvjp lvjrbms dkxr (contains soy, sesame, dairy) +ctmzsr ssgkt msvgj xcdb tqtbd ghtjbp scqc nlxh nqhk vzzxl jrcczb tjxp vrtfrj ckzdf fvpj vfhvp jtzsqznl qpgj zqgzlr jmxpbtk ghfk sks gtzp zmhnj mkpxx vfnv jsdcr frnh zjsh rkzqs vrzkz httx rls qsrh xvmftv knqlqt jhrgz brhns frz qbtpnr njcjm fvd hbvqn rmthpj bxhsq lnpbh cpsbgsh bqb tsnhq rvnfn hqjgzmt slglnd lqdpl hphcb jgv cgrcmp slmjchql xrlmvz jgxbzks cvz qfvvf pbmhl cntfbt pznl rzjcs zvmnv cpj dksfbk gpplt znklc kh qfnq rmpnm tnjxcf dqdn ftfx qvhft ztlbvp jrnfp dfpqn hbbz pbtns bccz ttr (contains dairy) +qbnkj bqb zmf lsc xfvtzq xrlmvz jgxbzks cvtj fvvjp gbzcv zqgzlr zmhnj vtrltkq jkrsn cvz kh lqdpl qzbzd rsrgmkr zjsz gpplt qlt cf fvd bbkth pkmbk pbmhl zhvsdc dmpl xcdb rmpnm rnxl lhb sks ssgkt vrzkz brhfcbt xzhct vzzxl pjgxpg ftfx fhpxz njcjm scqc hqjgzmt rkzqs lnpbh zjsh fzpds ctmzsr brhns trlmqn vlqtzzl lmpxcr jrcczb vllxj hphcb hxfrh rls qdbq znklc tsnhq dxpdkp cpj bhlbm zjdzx czlpq (contains eggs) +hhth vkjggtx nmq zmhnj dmpl spzmvfl qfnq vzzxl pkgsf fjbjj rvnfn pkmbk frnh knhvxm vrzkz ctmzsr xcdb mbdksj nvdst cf fvd flhzd kxl cvz qbnkj hkzzg jtzsqznl rnxl sbsrk klfp cqbkj jsdcr rkzqs jhrgz nmszz slglnd nqstv qdbj zjsh tkrr zmf (contains nuts) +nvbr ghtjbp nvdst fvd mkpxx xlqj dkxr znfrgvc mbdksj vfnv rph zpbbvvm gpplt ctmzsr rsrgmkr cvz ztlbvp rkzqs bbkth nfzczn hphcb httx zjsh zmhnj zhvsdc qsrh jsdcr gztf jrnfp trlmqn bccz pchhkp lhb qbnkj fjbjj dpkdp dxpdkp cgrcmp vlqtzzl zjsz rlxhc jgkp pkgsf jrlvkz nqhk tsnhq czlpq ckzdf vrzkz (contains nuts) +tjxp xvmftv znklc ghfk svrx pbtns rgt fzgbq cgrcmp qvhdl lvjrbms rmpnm zmf cvz vzzxl bhlbm qllxhr pznl dfpqn ltxqz mbdksj bbkth jsdcr dkxr hdnq kxl nfzczn vpl jhrgz snxz trlmqn vrpzss njcjm gpplt zjsh dqdn ftfx zmhnj brhfcbt dmpl ztlbvp ctmzsr xcdb frnh nmszz jrcczb cpsbgsh vkjggtx knhvxm xfvtzq bxhsq xrlmvz rph jrnfp fhpxz cqbkj pdxhgx bqfqcjb lnpbh nmq frz gjvqffm klfp lqdpl rkzqs httx qdbj vrzkz pchhkp fzpds sks ttr gmx tqtbd (contains sesame, soy) +lnpbh czlpq cpsbgsh zjsh rsrgmkr jmxpbtk vtrltkq cqbkj bxhsq vrzkz rnxl znfrgvc hqjgzmt pkgsf rlxhc dmpl lqdpl qbtpnr ghtjbp drpxzr scqc ztlbvp dxpdkp znklc kxl hphcb ctmzsr cgrcmp xlqj tkrr mkpxx rkzqs qvhdl qdbq gjvqffm cf gztf qglps gbzcv zpbbvvm frnh vfnv qbnkj vfhvp sks zvmnv mbdksj jrlvkz qlt rvnfn vkjggtx zmhnj (contains nuts, sesame) +pkgsf rkzqs ckzdf fvvjp lhsgbq tsnhq tkrr qvhft qnt jtfnm vrzkz mkpxx lqtnn nllks qdbj pmhnmxr qdbq httx nmq pjgxpg bqfqcjb lmpxcr vlqtzzl rzjcs rncjx rvnfn cgrcmp ctmzsr rmpnm dmpl gnrb dfpqn jhrgz zjdzx nlxh zvmnv fvpj zjsh drpxzr mxk hbvqn vrtfrj jrnfp ghtjbp trlmqn dlc bccz hbbz nqstv vttzh pkmbk fzgbq bgdq ssgkt vrpzss vzzxl mbdksj hhth zmhnj dxpdkp rmthpj lqdpl (contains soy) +ltxqz vttzh frnh hdkc rmthpj hxfrh bgdq jtfnm qbtpnr rlxhc tnjxcf lvjrbms ttr scqc dxpdkp rncjx hphcb vkjggtx qfvvf qzbzd jrnfp xlqj jrlvkz lsc rvnfn knqlqt zjdzx hqlm gbzcv qbnkj mbdksj qnt qpgj dkxr gjvqffm vllxj hmshx znfrgvc nvhnsg tqtbd hkzzg zpbbvvm cpsbgsh zdrlf sltl pkmbk rzjcs fzgbq trlmqn vzzxl czlpq rkzqs fptpk jgxbzks nqhk slmjchql vrtfrj ftfx ghfk fhpxz ctmzsr fmkbnr rls rcv snxz qlt zqgzlr zmhnj bqb nlxh vrpzss pchhkp vrzkz (contains soy) +jrcczb xfvtzq nmszz sbsrk dpkdp pdxhgx cgrcmp qbnkj mbdksj rkzqs scqc rxzxs xzhct mkpxx ttr qglps vzzxl xlqj jsdcr pbtns qzbzd fvvjp vllxj zjsz frnh gnrb vpl zdrlf gztf vrpzss vrzkz dmpl hphcb gbzcv rgt kxl ctmzsr nlxh zjsh lvjrbms sltl brhfcbt lsc pmhnmxr fhpxz qsrh vkjggtx zcxxdp drpxzr jgxbzks (contains peanuts) +tcp vlqtzzl zjsh rkzqs drpxzr cqbkj ftfx gbzcv xvmftv fptpk rncjx rnxl jtfnm nqstv znfrgvc jsdcr zmhnj jrnfp qfnq hphcb vzzxl bbkth flhzd jgxbzks ssgkt xcdb fvpj rlxhc ztrpkb qsrh qbtpnr bqfqcjb xzhct pznl hdnq qlt tjxp lvjrbms fhpxz cpj dpkdp mbdksj qpgj vrzkz xrlmvz rvnfn snxz hdkc ltxqz zjsz hxfrh pmhnmxr (contains nuts, fish, peanuts) +vrtfrj ctmzsr zpbbvvm nvdst qvhdl rlxhc pbtns tcp lsc vrzkz dqdn hmshx fptpk rph rgt vllxj dbfk dkxr ttr nmszz qvhft znjp fhpxz jgv ftfx zjdzx zjsh znfrgvc qdbj vkjggtx znklc lhsgbq jsdcr frz pspjgzx pkmbk vpl pkgsf vfnv dnzljk hqlm klfp zmhnj njcjm pdxhgx dlc cntfbt ghtjbp qpgj rkzqs vtrltkq jrcczb fzgbq fjbjj vzzxl cgrcmp lvjrbms vlqtzzl hphcb svrx dmpl dxpdkp pjgxpg bbkth ztlbvp rncjx cqbkj (contains shellfish, eggs, soy) +spzmvfl bccz xzhct qdbj qllxhr jgv rkzqs slglnd qlt tjxp rncjx rnxl fvpj fjbjj zhvsdc qnt nvbr mbdksj tkrr hphcb rcv znklc qdbq fzgbq nlxh rph rlxhc msvgj lhsgbq dfpqn cqbkj vrzkz znfrgvc tqtbd cntfbt zmhnj vrpzss xrlmvz flhzd zjsh httx znjp nmszz pbmhl pspjgzx ctmzsr kxl ftfx qzbzd zpbbvvm scqc jtfnm njcjm fvvjp (contains soy, shellfish, fish) +brhns bbkth jtfnm znklc xzhct jrnfp tcp fptpk cqbkj mkpxx vpl ssgkt jgkp rmthpj hxfrh fvvjp zjsh pkgsf fzpds zmhnj tqtbd ltxqz rkzqs pmhnmxr rnxl gztf qvhft rxzxs qsrh ctmzsr fvd sks qbnkj xrlmvz rzjcs zmf hbvqn qbtpnr mbdksj nlxh nvdst ghtjbp slmjchql hphcb lhb zvmnv xcdb vllxj hmshx znjp vrpzss dbfk pchhkp klfp lqtnn bxhsq slglnd vlqtzzl cvz zdrlf vrzkz cpsbgsh nvhnsg pkmbk fzgbq dfpqn dlc fmkbnr cvtj (contains dairy) +jtzsqznl bhlbm lsc lhb zpbbvvm ftfx znjp hphcb nqstv zjsh dksfbk pchhkp fzgbq pmhnmxr vrpzss knhvxm mbdksj pbmhl rkzqs httx bqfqcjb qvhft lqdpl jrlvkz zmhnj sks qbnkj nvdst czlpq pznl tnjxcf tkrr vrzkz hkzzg cf zdrlf nfzczn jrnfp gmx spzmvfl vzzxl rnxl znfrgvc dqdn jgxbzks jtfnm xcdb (contains nuts) diff --git a/2020/inputs/day21_short b/2020/inputs/day21_short new file mode 100644 index 0000000..6940ed2 --- /dev/null +++ b/2020/inputs/day21_short @@ -0,0 +1,4 @@ +mxmxvkd kfcds sqjhc nhms (contains dairy, fish) +trh fvjkl sbzzf mxmxvkd (contains dairy) +sqjhc fvjkl (contains soy) +sqjhc mxmxvkd sbzzf (contains fish) \ No newline at end of file diff --git a/2020/inputs/day22 b/2020/inputs/day22 new file mode 100644 index 0000000..126d35a --- /dev/null +++ b/2020/inputs/day22 @@ -0,0 +1,53 @@ +Player 1: +42 +29 +12 +40 +47 +26 +11 +39 +41 +13 +8 +50 +44 +33 +5 +27 +10 +25 +17 +1 +28 +22 +6 +32 +35 + +Player 2: +19 +34 +38 +21 +43 +14 +23 +46 +16 +3 +36 +31 +37 +45 +30 +15 +49 +48 +24 +9 +2 +18 +4 +7 +20 \ No newline at end of file diff --git a/2020/inputs/day22_short b/2020/inputs/day22_short new file mode 100644 index 0000000..24d78bf --- /dev/null +++ b/2020/inputs/day22_short @@ -0,0 +1,13 @@ +Player 1: +9 +2 +6 +3 +1 + +Player 2: +5 +8 +4 +7 +10 \ No newline at end of file diff --git a/2020/inputs/day23 b/2020/inputs/day23 new file mode 100644 index 0000000..9bab251 --- /dev/null +++ b/2020/inputs/day23 @@ -0,0 +1 @@ +598162734 \ No newline at end of file diff --git a/2020/inputs/day23_short b/2020/inputs/day23_short new file mode 100644 index 0000000..7a64a0a --- /dev/null +++ b/2020/inputs/day23_short @@ -0,0 +1 @@ +389125467 \ No newline at end of file diff --git a/2020/inputs/day24 b/2020/inputs/day24 new file mode 100644 index 0000000..17d4e9e --- /dev/null +++ b/2020/inputs/day24 @@ -0,0 +1,403 @@ +nenwswenweswweenesweeenenwee +nwnwnwnwswenenenwneswneenwnenenwnenwsw +weweeeeneneseswesesweeesenwnw +wnwwwwwnwwnewsewnwenwwnww +enwnwsenwnenwnwseenwswnweseswenwswnwsw +nwseseswsenwseswseseswsenweseeeenwnwsese +senwwwwnweeswewwwewwnenenwswse +swnwneswnweneneneswneneeneswne +ewsenwweneeeenwnwneneswnewwswesene +sesenwsweseseswnenenwnweenwseenewee +seswwwswwnwnwsewneenenenwnwneneseww +nenenenenenenenenwsenewne +swwnwswswswwswswswswswswswe +nenwswnesesesesesesesesesesenwsenwsesesew +wswwneswswswweeswswwwswnwswswseswnew +wwwwwnwwewenwwwwswnwwew +neenwnwnwnenenenenwenenwnwwwnwswswse +swwneswswswswnwseswswswswswsw +seseseenesewnwseseeswwseseeseneesesw +nesenwswseswnwwseswwwseswwnenewswwwse +wwwwwwswewww +seenewewenwneswneneneneneneswnenee +sesewnwsenwnwesesweneswseseseswnwsee +nenwnenenwnwnwswnenwnwsenenwnenwwnwnwne +seseswneeneeseeewwnwseesenwsenwsee +seseeeeseseweesesesewnesesesenwsene +swwswswseswwwswnewe +swwswswswwseneswswseswswwnewswwwsw +neeswneneneenenenene +neeswseseswswnwwseswnwwswswseseseseseswne +ewneneneenewewnenewseneenwneeesw +enwnenwneeeeseeeeswenweeneseese +nwwnwnwnwnwnwnenenenenenenenenwsenwsene +nwseenwnwnwnenwnwwsenwnwne +seseswsenwswseswswswseeseswse +seswneswswswswswswswswwwswsw +enesenenwesesweeweeswseseeseseew +wwswnwweneswneenwsesesenwnwsenwwnw +swnwwnwswwewsenewenwnewseswnwwww +wswewnwwswwnwswswswswswwswsweswesww +swesenwnweeneseseseswswwnwsewwenwswne +wwwswwsewwwwswwwwwnw +neeenwwwswnewnenwnwsenwsewwwww +seneswswsewswneswswseswswseseseseewnwsese +nenenenewneneneneneneneneeseneweese +wswsweeswswwswswswswwswswwswwnwsw +wwwseswnewswswswwwwwwsw +wnwnwnwwnwnwnwnenwenenweneswsewenwnwnw +wwweswewnewwnwswsewwwwwnwnenw +nwnwsweneeeseeseeeseesesesenwseswese +nwwswswswwswwswewwwwsenwswsenwsww +senwnenwnwnwnwnwnwnwnwnwnwnwsw +neswnwseswswswswswswswswswsweswwswe +eeeeeeeseenwnweeseesweeeenw +swseseseswswwnwneswewwnwnwseeswnwswwne +neesenwseesesewwnwseeseseenwnesw +neswswswwwswswsesweswswsw +eeneeewsenweseeeweeeneswee +nwnenweneewnwnwnwwnwwwswnwsenwnwnwnw +newneeneseneneswnenwnenenesenewnwsw +seseneeewsweneneeeneseneeeswwwene +swswswswseswswwsesesesweswswswneneswsww +eeeeswneneeewseewneeseeee +neeeneneneeeneneewneewwwnesenene +eneswnwnenwneeswwswneeeenenwenese +seenwseseseeneeseseeseseseweseswsese +seswnwswswenewnewnwswsw +wwwwwwwwwwwneswswwwnewswse +seeseswseseseswwsesese +nenenewenenewesenesewesenwewnewne +nwneseneeneseneswneneneewneewnee +nenenwneneewewneeseneeneeneeese +eswnwswwswsewweswwnwneswwwswww +neseswnweeeeseeeswee +wwwwnwswwwswswswnwsese +wseseswswwswswswnweswswsesweseesw +nwneneneeewewwneneneeeeeswese +eesesesewnwseenweeeeesenweseswse +neneneneenenwneswneneneneeeneee +wswswsweeseswswswswwnwnwwsw +wseewesenwnwneswnenweewneneswwnw +nwneeswswseswwseseneswesenenwsenesww +nwsewwwwswswwsenw +swswswewswnwswwswswnwewswwseswww +swswwwsewwnenesewwswswswwwwww +nenwnwnwwnwnwnwnwnwnwenwswnwnwnwnwsenwnw +neneneneneneneneneneneneneneswe +nwwwswenwwneenwnwwswewnwwnwsww +eseswseswwnwneswneswsesewswnenesesw +wwwwwnwnwwwe +senwenenewwnewswneewnesewsenenenesene +sewewneewnwneenenenenweneese +swswswewwwewneswswwswswswswwww +swwnwneneenenenenwnwnenewnwseswnwsenenw +swnenwneenenwnwnwnwsenwnwnwnwnwnwnwnwnw +neswsesewswseeeneseswnwwswswsw +ewwwwswwwswwneswwwewnwnewwsene +nwnwnenwnwnwsewnweneswwswnwnwsenewnee +ewneseeeeeeewenweseeeeeee +nwseswwswseewwnwwwnwwnwwwseswene +swswwswweswswewswswswsw +nwnwneswnwneenwnwnwneswnenwnwnwnenenwne +eswweeeeswseenewenwsenwesesese +seswnwneswnenenwnwnwesenesenwswnenenwnene +nenwnenenwwnenwnwnenwnwsenwnwswse +newwwweswswswwswseenewwseseswnwsw +nwwnwsesenwnwnesenwnwswnwewnwnenenwnwnw +nwneneneneneneneeswnwnenenwne +wnwnwsenwnesenenenenenwnenwne +nenenwnenewnesenenewseneneeneneseenenesw +wneneswnwnenwnwswneeseenwseswnesesenww +swseswseseswseswneswseswsewseswsese +weeesweeesenwseeee +nenwswswnenwweswseseseewseneneseswe +neweewneswneenweeneesweewnenene +nesesweenenewneenenenewesenesenew +swswswswseseswseswswswswswnw +neneswwwwwwwwwwsewsenewwswww +nenenenwnenenenewsenenesenenewnenwnwne +neeneeswneeseeseenenwnwwseswewee +swswswswnwseseswneseswseseswswswwnenesw +neeswnenwneeeeweswswsweneneenwe +wsenweswseenwsewsesenwsenesesesesesenesw +seseswseseseswneswswse +swnewswwwsesewswnewwwswwswswswww +senewneneneseneenenenwewenwwnwswsw +weseneneseseseeeweeseswsweenesese +swnewwswnwseswswswseswswwwswswswswne +neneeenenweneneswenenesenwewneenesw +seseseseneseswseseswswsewsenwseseesesese +nenenwnwnwnenwnenenesenenwwneneneene +nwnwnwsenenenwneswwnwnwnesenwnenenenew +neeeeeweneseeweweeneeneenee +wneneeneneenewneneeeeseeneneseeswe +eswwwnwwnwwnwwwwwwwenwswneswe +eseswwsweseeeneenewe +sesesweseseswsesesenwseseseseweseswne +sewseseseseseseseeseseseneseesenesw +swwneewswwwnwwswswwenwewnwnwnww +eneneeeenwsenwnwesesweeeeswee +wwwwwwswwswwnew +swswwwswwnwewwnwneswwnwseneneww +swnewnwnewnwwsweseeseswwswnenenwsee +swewswswwswswswswseswswswswesweswswnw +neswswseswswswswswswswneswswwnweswswe +seeseseneseswswwsewseseenwsesenwseswsw +esewneswnewwesewneswneneneneeenwe +nesewnenesweneeeneneenenenenwnenenese +nwnenwnwwnwnenwnenwnwneeeneswnwnwenww +eeeeeeswwwwnesenenwenwsenewsw +nwswweswsweswsenwneswewswwswnesenwsw +sesenwseseseseesesesesesesesesesesw +nenesenenwnenwnwwnenwneneswnewesenene +swnwwswswwwnenwwseswwwwnewewsee +esesewswswsenwswswswnenewsw +nwnwnwwnwnwnwnwnwse +eeneenenewsenenewwnenenenenenesenwe +sweseswswseneseswswswnwswnwswswseswswse +eeseneeneneneeenenweeeeswnwee +swswwewswwwnenwseswwswswswswswswsww +neswswswnwwswnwseswweswswwswsww +nwswnenwnewnweseneneeswswneswnwnwnesene +ewnenwswwwnwnwnwnwnwwswwwwwwne +wswseseseeseswnwwenenwneswsenesenwse +nwnenenwseneswswsee +nenenenenenwnewswnwnenwswnwnwenenwnwe +neweweweswesenweesesenw +eenwneeeeenwwneeseseseseswwsese +seeseneswseeseeeee +nwneswswnwwweswnenewwnwneseseswwwse +newwwswwnwwnwnww +neneeneseswnwenenesweneeneneweeew +wswswnwneswenesenwnwnewnwsenenwnenesenenw +wneneeneseswnweseseneewswenwnenwsese +nwsweswswswwsweswswsenwwenweswneenw +seneswswswswswseswswswswswswneswswswnwswse +wswswneneneswswswswwsewswwnew +enwsenwsenwswswewnewewnwweseww +wswswseswsewwswwwwwswwwwnwnew +swneswswswewswswswwwseswswswswswwswnw +seeneweseeseeeswseeneseneswnwweswse +eeeseweswseweeeeeswsenwneewe +swnweneneeneeeneeenenewneneeene +eeeeneseeeseneeswsenenweewnwnw +swswswnewwseswseswswswseseneswewnwswe +nwswswneeseswneswnwnwswsesw +wwnwwswwwsewwswwwww +sweeneeeneenwesweseeeneenweee +nwwswsenwnwswnwnwnwswseeseseneenenwse +nwwnenwnwnwswwwwwnwnwww +wwwswnwnesenesewwseneesenwneseewsw +nwnweenwnwnwswnwwnenwwsweswnweswene +nenwnwnwnwneenenewwneswnenese +nenenwnewnwsenwnewsweenene +nwneenwneswsweswneseeswswsenenenenwnw +swswseswseseneseseseseseswswswsenenweswse +senwswwsenwswsenwswswswswswswswswswww +nwnwenwneswnwnwnwnwnenwnwnwnwnwnwnw +nwnwwenewnwnwswswwe +swsweseswseswnwnesesesenesewseswseswne +swseneswswneswwswnenwwswseseswneswswseswsw +swswseswswswswwwseswswneswswwnewswsw +seswseswseneswseeswsenwswseswsesewswswse +nenenenenewnenwnenenesenenesenenenenene +wnwnwsenenwwnwnwnwwnwwnwswnwwwee +nesesesesesesesenwsewseesesesewnesesese +seesesesesenenwsesesesweesesesesese +nwseeesweneswnenweswwwwnwnwnwnwswene +wswwswnenwnenesweswneswswseswswswsesenenw +eesweeeeeeeenw +wnwwwnwsewwnwnwwnwwsenwnenwwewnw +nwswnwsewswnwnewswwneenwnenwsewnenwnw +nenweenwneneneneswswneswsenwnenenenenenwse +nwnenenenenwnenesenewnesenenenenenenwne +seeeeeeseswnweeee +swswwwnwwwwewswwwwwswwewnw +wswwwswswnwwneseswseswwnewwswwnwse +sesesenewseeeseseswe +wswwsewwwwneswswwwwwnewswsew +eneeenweneneswnwneneeeneeeeese +neenenwneeeneeeneneneneneeswnenesw +nwswenwseeseesenenwneswseeesewesw +sewwneswswwsewnwswnwswsewnenewwsww +wseswwsenwnwnewsesenwwsenwneeswwnee +nwswseeeseeesesew +nwwsewnwnenwnwenwswswnwsewwesewe +ewneeeeeeweeeeeesweeenwe +neswswswwswswnwswnwseswswswwswseeseswsw +seseneeseeseneseeeewseseswseseenwse +nwnwnwnwsenwwnwnenwwnenwnwwnwnwswnww +nwseweseseswnwweneseswseneswswswswswnw +swwswwwswswnwwweswswwwewswww +nwnwnwswsenenenwwwseswnwnwnwesenwnwwnww +eeeseeeeseswenwnwee +enewneneeneseeeneeneeeeseeeew +nwwnwnwswseswwnwnewnesewwneswnwesenw +neeseswwwnwswwneeseswnewenwswswswsw +seseswseswnwnwenwsesenwneewwneseee +seseswswswesesenwseswnwswsene +nenwewneswneeeneneneseeeneneneee +sesesesesenwseseswseswsesesewnwsenesesw +nwnwswneswnwseenwnwswneswnwesesenwnwe +nwnwenewsweswnwsesenenewwnwnweswnw +nenwneneswseenenewsenwnwswnwwnwnwnenenew +sewseseseseswseswnesesesesesesese +neweeneeneneeeesenenwswswneneneneee +eneneeswwseneneswnenweeweswnenwswnw +senwswnenwnwnenenenwnewnwnenwsenwwnwnene +neswneswsenwswsewseenweseeeewsesese +seseseswseesewnweseeesenwseseswseenwse +sewwsesewwwwwwwnewwwnwwnwnw +nweneswnenwenwnenenenwnwnenwneswwnwnw +neneeneneneswenwneswnwnenwnwnwnwwswnene +nwwnwnwnwnenwnwnwnwnwswnwnwnwsenw +swwnwewwwsewswsww +eeseeseeeeseseseseswnwwseesesese +enwsenwseswwnwnwnenwnwwnwnwnwsenwnenew +ewneeneseneeseneneenwneneeneenenesw +seseseswnwsenenwseese +wswswwwwwneseww +neewneeswsenwnwnwnenenwnenwswnwnenwnw +neneseseswneswnwnwesenwnweenwnwnwswsenww +wwwnwnwwseenwsewwwwewwnenwnwsw +nwnenwnwwwwnwnwenwnwwnwswwnwenw +swseswwneesesesewseseseesesesenwswsese +swswseeseseseseswswswswswwswswseneswnwsw +senenesweewnweesewweneneseneeene +wwwwnewwwwwsewwsewswwwwnew +ewsesesesesesesenwswsese +swswwswswneeswnwswwseswswsee +sewnwwnewnwnewwwwwnenwsesewwnwww +nenwneneneneneneneneseneeneneneswnw +nwneseseeeswweee +swwnwswwewswwseeswenwswswswswswsw +swswneseswswswswnwswswswseeswswswswnwne +wnwnewneenenesesenesweswneeswenene +nwseseseseseswnwwseeseseeseseseesese +eswnwswwnwwewwwnwnwsewenenwwse +ewwswwwnenwewewwesewewww +swseneseswswswswwswswswnwswswswsweswswnw +swwwswnwwweewnwsew +eeeeseseewnweewsweeeeeee +nwnwnwnwnenwsenwnenwewnenwewnwsewnwnwnw +nwsewnwnwnwneswnenwnenwnenwnwnenwswesw +swnwnwwwewwnwwewwwewwswnwnw +eneeeesweewnenwnenesewewnee +nwnwnwswwnwnwnwwwsenwwwne +eeeseeeseeweseeseseweeesenwse +eswsewswswswswswswswwswswnwswsw +seseeeseeeeeeesenwsw +esweeswsesewseeneseseseneeswnwsenesew +swswswswnweneseeseswseswwswswswswswsw +wwwwswwswwneswswwwsww +swswwsweswnwswswswsw +nenenwsewsenewnenewnenwnwswneseneseswe +seseswseseswswswswswswneswwswsenenwsesw +swsewsenesesenwseseseseenwseesenesesw +enwwwswwnwesweswsenesewwswswwnw +nwswnwnwnwnwnenwnwnwnwnwnwnwnesenweneswnww +swswswewwswseseswswwnwnwnwswneeswnww +wswneenwewnweneswneneneesw +seeeseswwseeneseweeswnenweswsenew +nwnwnewnewnwwwwwsewwnwwswnwwese +eeswnenwswswswswwswswswsw +nwnenwneneneneneswneenenenwnwnwnenwnwsw +seseseeeeseeseseseeswswnenwwe +swwnewnwsewnwwnenenwwnwwsesewwnwnew +nwnwsewnwneenwnwnwnwnenwnwneswsenenwnw +wwwwwswwewwwwewnewwweww +wnwsenwwsewnwwwnwnwnesenewnwswnew +swsenesesenesesesesesesesewswesesesese +seseneswswwseseseseseswneswseswseseesese +enesenenwseneseseswweseeseneswwwsese +sesesesenesewseseesesesewwswneseseesw +eeeseeeeweesenenweeseseswese +swnwnwswnweswenesenwsenwseewneneswsesw +sewswseenesesesenwnwsenenwseesesewnesw +swswswswswsweswnewswswsesenenwswswnwsw +enesweeeneseeseswwseeeenweese +esenwwnwswseneneseswneseesenesewse +swswsesewswnesewsewneseneseswswnesese +eseweeswseeeeseesenenee +newneswswwwswswwwwwwswnewwwwsesw +nenenewswnwswnesenwnwnenenenwnwnwnenwne +wseswnewsewswwnwswnewwwwwswwww +wwwswwwnwwwwenwwnwwnww +weeeeeesweenweswwneeeeeeee +wneswswswnwswswsewswwsewsw +seenwewseseseseseeseeesesesenweesw +neswnenenwwnwenwnwnwnwwenenene +wnewwseeswwnewneswnenwswwwwsww +swswnwneswnweswseswswswswwwwsweswwsw +wswsenwwswswwswwweneswswwswswswnew +nwnwwwenwesenwseswnwnw +seneneeeneenewe +nwwnweenenwwnwnwsenwswnwnweswnenwswnwne +nwnwnwnwsenwnwnwnenenwnwsenwnenwnwenwnww +seswnwseswswseeneswwseseswseswswswseswsw +swswneswwswswnewswwwnweswswnesesenw +seswswseseswswsesenesw +seseneswseseseseseesenesesesewsenenwsw +neneneenenwswnwnwneneswnewnwnewnenwee +seseswsewswnwseseswsesweseseeseswnesesw +wwnenenwswsenwnwneneeswseeswew +swwswnwnwseseseswnwseenenwseswnweswenw +nwswwswswswswswswsweswnewsweseswswnesw +sewwswwwnwwenwwnesenewnwswwswsene +swseswsesesesenwseweseswseseswswsenwseese +seseeseseesesenweeesweweesee +wewswnwnwswenwnwswewseneneswsewwne +esesenwseseenwswnewswenwseseseswnwswnw +neswswseseseseseswseswswwnenwseseseswese +seeeesesesesenwsenesewseesenwsesww +swswseswsweswwswswswseswseswswnwswsw +neeneeeneseeenwsweeeseeenwwne +swwesesesenesenenewsesenewseesewsese +nenwnwnwwwnwswnwnwsenwwwwnewwnwnw +eweneeenweewsweeeeeeseneese +newneswneneneeeseswneneswneneneswnwsw +nweeeeeeeeweweeeeeesese +sewnwwwwwewenwnwnwwwwwwwww +nenewneenenenenwwnenwnenenenenenwe +eswswnesesewneseseswnwwswne +eeseesweeewseseeeneeese +wneswsewwseesesenwneeseseswneswnwsesw +swwswseswsesesweseswseswsw +swswswwswswswsenwswswswswwswseswnenwswsw +seneswweeneswnwneeneeeseweeew +swswsweswnewnenesenwseseswswseseswsww +nwnesewsweswwwsenewwnewwwwww +ewneseseeeenewnenenweeneeswnene +wwwwwwnwwwewseewnenwwwnwwsw +wwwseswwsewswneswwneswwwwwwnw +nenwnesenwnenwneenwnwnwnwnwnenwnwnwwsesw +swneenwwswenwenweseeweeese +nwwnwenwnweseswneewnwenwswnwwnwswnw +nwwnwsenenwnwseneswnwneswnwnwnenwnenenenw +nenenwnwsenenenenenenenwnenwnwnw +nenwwseeneneswwsesenesenwnenenwsenenee +nwwswswenwwnwsenwweneenwnenwnwwwww +wnwswnewwwwwswnwnwwwnewwnwwswne +nwsenwnwswnwnwswnenwnenenwnenwnwnwnwnenw +ewnenenewneneneneenenenenwnenene +nwsesesenwnwseeseseseseeseseesweesesw +seeswnenesewnenwnenenwnenwneneneswenene +seeeswenwseswneeese +swenwenwswswseneswsenw +wnwnwwnwnwsewnwnwnwnenwnwnwnwsewnenw +nwwsenwnwsenenwnwnwnwnwnwnwwnwnenenwnenw +sesesesenenwseeseseswseseseseswe +swwwneseswswnewswwwswswswwnewswswww +wwnwwnwnewnwnwswwnwwnwnw +wsenwswesenwneswswseswswswewsweswswnw +eeseneeeeesweeewwneeseeneesw +ewnenwnwnwswnwnwwsewwwnwnwewsenwnww +nwesewsesesweeseesenenesesewseseesese +seesweewneseseseenwseswneswenwsesenwse +weeneswnesweswenwwnwnewswsenwene +nwnwnwwwnwwwsenwneweswswwenwnwsene +nwnwnwnwwnwnwwnwnwwwswwwnwsewnwe +swneneeswseenwseneswnweenewnweenenw +eweeneswenweneenwsweeeene +nwnwnenwewseseneseneswwnenwnenwnwnwsenew diff --git a/2020/inputs/day24_short b/2020/inputs/day24_short new file mode 100644 index 0000000..55460d5 --- /dev/null +++ b/2020/inputs/day24_short @@ -0,0 +1,20 @@ +sesenwnenenewseeswwswswwnenewsewsw +neeenesenwnwwswnenewnwwsewnenwseswesw +seswneswswsenwwnwse +nwnwneseeswswnenewneswwnewseswneseene +swweswneswnenwsewnwneneseenw +eesenwseswswnenwswnwnwsewwnwsene +sewnenenenesenwsewnenwwwse +wenwwweseeeweswwwnwwe +wsweesenenewnwwnwsenewsenwwsesesenwne +neeswseenwwswnwswswnw +nenwswwsewswnenenewsenwsenwnesesenew +enewnwewneswsewnwswenweswnenwsenwsw +sweneswneswneneenwnewenewwneswswnese +swwesenesewenwneswnwwneseswwne +enesenwswwswneneswsenwnewswseenwsese +wnwnesenesenenwwnenwsewesewsesesew +nenewswnwewswnenesenwnesewesw +eneswnwswnwsenenwnwnwwseeswneewsenese +neswnwewnwnwseenwseesewsenwsweewe +wseweeenwnesenwwwswnew \ No newline at end of file diff --git a/2020/inputs/day25 b/2020/inputs/day25 new file mode 100644 index 0000000..cef9673 --- /dev/null +++ b/2020/inputs/day25 @@ -0,0 +1,2 @@ +19241437 +17346587 diff --git a/2020/inputs/day25_short b/2020/inputs/day25_short new file mode 100644 index 0000000..9cbfc23 --- /dev/null +++ b/2020/inputs/day25_short @@ -0,0 +1,2 @@ +5764801 +17807724 diff --git a/2020/inputs/day3 b/2020/inputs/day3 new file mode 100644 index 0000000..7a7786b --- /dev/null +++ b/2020/inputs/day3 @@ -0,0 +1,323 @@ +.........#....#.###.........##. +..###.#......#......#.......##. +##....#.#.......#.....#........ +#........#..........#.#...#...# +#....###...##.....#........#... +###..............##..#.....#... +.................##.#.......... +.........##......#..###.....#.# +..#..#...#.#.#...#.#.#.##...#.. +..............#.#.#..#..#..#... +.#.#.#....#.........#.........# +..#.#....##..#...#.....#..##..# +............#.....#.........##. +...#.#..#..........#.##.....#.. +#......#...##.......###........ +.....#....#.#..............#... +.....#.......#..##.###.....#.#. +.#.....#....##.#......##......# +..##...##.........#..#.#..#.... +............#.......#.....#.... +.......................#...#### +.#.#.......#..#....#....##..#.# +..#.##.#.#...............#..... +#..##..#...#.....##..#...##.#.. +##...#....#####.....##...#...## +.#..##..#..#.#..##.#.#........# +....#..#........##......#.#.... +..#......#...##.#..##.......#.. +.#.#....#.#..#.....#..#...#.... +.....#.#.................#..... +##.#........#.....#...........# +#............#.....#..#.#...##. +..#.#..#......#.......#......## +....#.#....#...#....#.......... +.........#...#.##..#...#...#... +....#...#...#.................. +..##...#.#....#...#......#..... +#....#.......##..#...#..#...... +.#....##..#.#....#...##...#.... +#.................#...#.#...#.. +.#.....#..........#.......#.... +.#..........#.##....#.##......# +#.#.....##.##..#.......#..#.... +.....#...#............#..##.... +...#.#.##.#..........#.#....#.. +.......#...#............#.....# +..........#...##..#....###....# +............#....#......###.... +...................####..#.##.. +...#.#.##.........#..#.#....... +...........#.........#..###.... +.........#.........#...#...###. +.#.#.##....#.#...........#.#... +..###.....#...#.#.......##..#.. +.....#.#........#.#....#....##. +......#...#........#.........#. +...............#.........#.#... +..#...#...#...#.###..###....#.. +#..#.......#..###.##.......#... +#.#.........##..#.....###..#..# +...#....#....#.#..#............ +..###..##....................#. +..#.......#..........#.##...... +..##........#...###..##.#...... +......#.#...#.....#..##..#..... +#........#......#.............. +........#........#.......#....# +.....#.......#......#........## +#.#......#.#...##.#.......#.... +#...................##...#..... +..#.#...#..#...#..#.....#..#... +.......##..................##.. +.............#..##.#......##..# +###...........##.#....###..#... +.#..........##...#..#......#... +..#.###.#....#........#........ +....#....###.....#.......#..... +.....##....#..##...#..#........ +.##...#..#....#..#.........#... +#.........##....#..##..##...... +.#.#.............#.....##...... +..#.#............#.......##.#.. +..#.##..#.........#......#.#.#. +.#...#...#..#....#...#....#.#.# +....#...#..#.##..##.......##... +.#.....#.....#............#.... +..........#....#..#..#......#.. +.............#....#..#......... +....#.#.#.......#....#.#....... +..##....#.#....#...#........### +#...#..........#..........###.. +...#..#...#...#..##......#...#. +.....................#...#..#.# +#..#............#.........#.##. +..#...#...........#.......#.... +.....##..........#...##.....##. +.#.....#.#........##........... +..#....#..#.#..##...#.........# +.........#.###.##....#..###.... +.........#...##...##.#.#....##. +...#..##.#...........#....#.... +..........#.#...........##..... +...........#..........#...##... +.........#..........#...#.#...# +......#..#.................#... +.....#...........#..#...#..###. +.....#..#....#.#.##...##....##. +...##.###.#.#..#.#....##.#.#... +###.....#.....#........#...#... +.#....#........#.#....#..#...## +##.....#.....#......#.#..#...## +.##....#...............#....... +#.#.....#.#....#.........#..... +..#...............#.......##... +#...#.###..#....#.#.#..#.#..... +##.###....##...#....#.....#.... +.......#................##..... +....#....##..#....#..#......#.. +...#.........#...#........##.## +.#..............#.............. +..##.......#.###..##.#......... +..#...#...#...#...#...#.....##. +.....#..##...#.....##..#.#..... +..#.............#...#.........# +#.........................#..## +.............#..###........#... +......#..#....#.##.......#..#.. +...#..#..#...#....#..#...##...# +.##............#.......###.#... +.#........#..#................. +#.#.#.....##....##...#.....#.#. +...##.......#.#......#...#.#... +#.##....#.........#.....##...#. +#...#..#....#.......#.##...##.. +.................##.#..##.#.#.# +..#.............#.......#.#.##. +#....##..................#...## +..........#.......#..##........ +......#.#..#......#.#.........# +#.#........#####......#.#.#.... +#..#........#.#..#.....#....... +...#.............#............. +.....#.......#......#..#.##..#. +..#.........#..........#.##...# +#.....#.#####......#.......###. +.......#.....#...#.....#.#..#.. +#...#.#........#.#..#..#...#..# +...#....#....##.....#.......... +.#.......##.......##........... +...#.##.#.#..#....#...##....##. +.#...#...#.........#........... +.#.#.##..#.......#.#...#..#.... +.#....##.#.#...#......#......#. +##..#..#..#..#.......#......#.. +.........#.#...........#....#.# +........#....#.#...#.#..#...... +#.......#.#.................##. +.....#..#..#....#.#........#.## +.#..###..#....#..#........#.#.. +#...........#...#........#..... +........#..#.#.#.#.......#....# +....#..#..........#.#..#.....#. +..####..........#.............. +....###.#..#........##..#...... +.#..#......##..........#...#... +.#.....#....#......##.##...#.## +..##.#.#......#.......##....... +....##.......#..............#.. +........#.....##..............# +.#...#....##.....#....#.......# +....#.......###.......#.#.#.... +##.....##........#.....##...... +..........#.....#...##.#..#.#.. +..........#.#......#..........# +..........#...#..#...#...#..... +.#.......#..##................. +.#........##..............#..#. +.##...................#...#.... +.##....#.##.##........#........ +...##.....####.....#..#.......# +...##.#...##...#.##............ +##.......#.....###..#..#...##.. +#.####...#...#...##..#..#....#. +...#........##........#........ +#....#.#....##..#..#.##...#.... +...##....##....#.......#..###.. +..........#..#..........#..#.#. +#..#....#.......#.......#....#. +......#......#.....##..##.#..#. +##.#.....#....#.......#...#...# +..##..#.#...#...#.....###..##.. +....#..#.......#............##. +#..##.#.#.....#####....#....#.. +.#........#...#.#..##.#.####.#. +#...#...#.............#.#...... +.........#.....##..........#... +.##....#....#........#......#.# +#..###...#....#..........#..... +.#...##.........#..#..#.#...#.. +#.#.#.......................#.. +#.....#..#.#............###.... +#...#.....#.....###..#..#.#.##. +............#.........#.#.##... +...#.......###......##......#.. +.#....#.#....##......##.#...#.. +.........#.......#....#...##..# +................#.#.....#....#. +.##......#....#..#..###..#...#. +....##....#..#....#.##..#...... +.......#.#.....#..#............ +..........#....#....#..#..#.... +..#....#.....#.......#......... +......#.........#.##..#....##.# +..#..#.#.......##..#...##...... +...##..#.#.#...............##.. +..#.#.#......#....#.....#.##... +..#.....#.#...........#....##.. +###.....##..................... +.......#..#.................#.. +.#.#..#..#.........#......#...# +##.......#.##.......#.......... +#..#.....#.....#.....#.......#. +#..#.....#.....#..........#.#.. +.#....##....#.....#.......#.##. +.....#.#......##..##.#......... +#....##......#..#....#..##..#.. +#.##..#..#..............#...#.. +.#......#......#..#...........# +..#.......#........#....#..#... +.....##.#.......##....#.#....#. +........#....................#. +........#..#..........#........ +......#.#.....#.#.....#......#. +#......##......###.##......#... +...........###..#...#.......#.. +..#...###...#.....#....#...#..# +.....##......#.#......##..#.#.. +#.#......##...#.....##...#...#. +.#.#........#.......#.........# +....#....#...##..........#.#... +.#..##.#...#.#.....##......##.. +.#.....#..##....#....#....#..#. +..#.......#.#.#..........#..#.. +#.#..#....#.##....#.......#.... +........##.........#..#.#...... +.......#.....#.##..##......#.#. +.........................#.#.#. +..#..............##.........#.. +.......###.#.#.......#......... +#........#.....#.......#..#...# +##....#..#....#...........#.... +..#..#.#.#.....#.#..#....#..... +.#..##....#.##..#.............. +...#....##..#..#.##....#.#..... +...##....#......##..#........#. +....#......#....#....#........# +...#..#...#.#...........#..#..# +....#.#.#.........#...#...#.... +..........#....#......##....#.# +..##..#...##.#...###.#.##...... +#........#.##......##.#........ +..#...#.##...#..........#.#...# +...........#...........#....... +......###....#..###..##........ +...#........#..#.#............. +....#.#.....#.#............#..# +##.#.....#........#....##.....# +.......#.#...#..##.......#.#.#. +#......##..#..#...#.....#..#.#. +.#......###.....#..#.....#...#. +....#.#.............#.##....... +......#....#.....#.......#..#.. +#..#.#.#..#......#...#..#.#.... +#..............#.#....#...#.... +..#......#...##.#......#..#..#. +.......##..#.##..#.#...#.....## +.....#...........#....#.......# +.#.........#..#..........##.... +#..##..#.#......##.......#..#.. +...#....#...........##.#.#.#..# +#..#..#..#...........#....#.#.# +.....##......#......#.#...#.... +.....#..##....###.....#....##.. +........#...##......#.....#..#. +..#.#..#.#....#...#.......#.... +#.....#...#.....#.#.......#.... +......#...#.......#..##....#... +#............#.....#....#...... +..##...#.....#..#......#...#... +...#..#...#..#.......#........# +...##.#.#........#........#.... +#.#..#......##.#..#..#......#.. +#.......#..#................... +#.....#....#......#...........# +.##.#...#.#...#..............## +...###........#........#..##.#. +..##....#.#.#.##..#.#......#... +..#.#........#..............#.. +.......#.................##.... +..................#............ +....#.....#.#..............#.## +......#.....#..#......#...#.... +..#....##......#...####....#.#. +..........#...##...........##.# +...#.#..#....#......#..#....#.. +#.........###...#.....#..#....# +.#.#......##.#.....#........... +...............#.#....##..#..#. +..........#.#.#.#...#....##...# +...#....##.................##.. +#..##..#...##.##.#......#.#.### +#..#...#..#.....#...#.#..##...# +..#................#...##....#. +...#.....#.##.......##....#.#.. +....#.....#..#....##........... +...............#..........#.... +....#...#........##...#........ +...#....#...#.###.............. +#.#....#.......#..#.##.##...... +.#.....#..#..#......#....#.#... +...#..........................# +............#.#..#.##......#... +.....#..........#.#........#.#. diff --git a/2020/inputs/day4 b/2020/inputs/day4 new file mode 100644 index 0000000..8cdfd0a --- /dev/null +++ b/2020/inputs/day4 @@ -0,0 +1,1000 @@ +hcl:#6b5442 ecl:brn iyr:2019 +pid:637485594 hgt:171cm +eyr:2021 byr:1986 + +eyr:2025 iyr:1938 byr:2014 hcl:#341e13 +hgt:66cm +pid:70195175 + +hcl:#efcc98 +iyr:2011 ecl:hzl +eyr:2020 hgt:174cm pid:589700330 + +hcl:#bba027 eyr:2027 cid:54 +ecl:brn pid:153cm +iyr:2028 hgt:173cm +byr:2004 + +hcl:b45cec +iyr:2011 ecl:oth hgt:185cm eyr:2029 pid:178cm + +hgt:185cm iyr:2016 eyr:2029 hcl:#888785 pid:026540921 + +eyr:2025 +hcl:6962f7 byr:2015 ecl:oth iyr:1974 +hgt:191cm +pid:2616015 + +pid:268398556 iyr:2019 ecl:grn +eyr:2027 byr:1951 hcl:#18171d hgt:67cm + +eyr:2029 hgt:153cm ecl:brn pid:183179186 byr:2013 hcl:#623a2f +iyr:1957 + +cid:121 iyr:1922 hcl:752fbc pid:79577560 byr:2025 +hgt:61cm eyr:1971 + +iyr:2016 +eyr:2024 hcl:#18171d hgt:184cm +ecl:hzl byr:1992 pid:751161201 + +eyr:2021 ecl:blu byr:1938 iyr:2016 hcl:#b6652a pid:313406514 hgt:191cm + +hcl:#623a2f eyr:2021 +ecl:brn +pid:145249653 hgt:167cm iyr:2019 byr:1991 + +iyr:2022 pid:175cm +byr:2021 eyr:2027 ecl:#f615b1 +hgt:172in hcl:#ceb3a1 + +hgt:173in +ecl:#0cba5e pid:1885981567 iyr:1968 +byr:1952 +eyr:1942 + +ecl:oth eyr:2023 hgt:65cm pid:521737908 byr:1971 hcl:z iyr:2017 + +byr:1936 +hcl:#cfa07d +ecl:brn iyr:2011 pid:589047874 +eyr:2025 + +hcl:#fffffd +pid:912552538 +cid:159 hgt:160cm iyr:2012 +eyr:2023 ecl:hzl +byr:1946 + +iyr:2015 +ecl:amb hgt:72in +cid:59 pid:782818257 hcl:#18171d eyr:2026 +byr:1952 + +hgt:173cm iyr:2018 cid:96 ecl:amb byr:1986 pid:783160698 eyr:2026 +hcl:#602927 + +hcl:#a97842 cid:199 pid:912273414 eyr:2030 +hgt:171cm ecl:hzl iyr:2011 byr:1960 + +ecl:amb hgt:156cm +iyr:2013 +hcl:#ceb3a1 +cid:116 pid:567057004 byr:1942 +eyr:2029 + +ecl:#cddc40 +pid:045090966 cid:254 +hgt:75in hcl:#733820 eyr:2026 byr:1956 +iyr:2015 + +pid:156cm +eyr:2040 +hgt:176cm ecl:#02e67d hcl:b7c0e6 +iyr:1959 cid:129 byr:2022 + +hgt:160cm byr:1933 +ecl:blu eyr:2029 iyr:2012 hcl:#888785 pid:028571975 + +iyr:2017 +hcl:#390f37 hgt:171cm ecl:brn byr:1931 pid:015365720 eyr:2030 + +iyr:2014 pid:697057757 +eyr:2026 hgt:188cm +ecl:gry byr:1926 + +pid:484310015 hcl:#fffffd hgt:150cm iyr:2018 +cid:53 ecl:gry eyr:2021 byr:1957 + +hgt:156cm +eyr:2026 byr:1963 +pid:063272603 ecl:brn iyr:2011 +hcl:#888785 + +byr:1955 pid:310518398 hgt:191cm iyr:2018 +ecl:oth eyr:2023 cid:132 hcl:#888785 + +byr:1938 hcl:#623a2f eyr:2023 +iyr:2010 +hgt:165cm +pid:170304863 +cid:290 ecl:amb + +eyr:2026 +pid:021468065 hgt:164cm +byr:1996 iyr:2016 hcl:#18171d +ecl:brn + +byr:2027 ecl:oth pid:8258823391 hgt:153in hcl:#733820 eyr:1948 + +byr:2026 ecl:#cd275a iyr:2012 eyr:2036 pid:5917499975 + +byr:2004 +cid:151 +hcl:99ecb1 +eyr:2033 pid:871137711 iyr:1997 +hgt:184cm ecl:oth + +byr:2011 +hcl:z ecl:#eee1d2 hgt:59cm eyr:1925 iyr:2030 pid:#02ee78 + +pid:742658992 +hcl:#888785 +byr:1995 +eyr:2024 hgt:162cm iyr:2013 cid:169 ecl:gry + +hgt:152cm byr:1946 +eyr:2027 iyr:2018 +pid:352799678 +hcl:#238da0 +ecl:amb +cid:71 + +hcl:#623a2f pid:723616064 eyr:2021 +hgt:172cm +byr:1926 iyr:2013 +ecl:grn + +iyr:2019 hgt:94 byr:2028 eyr:1986 +pid:#ee7f00 + +ecl:amb +eyr:2027 pid:188153423 byr:1957 hcl:#d67ae1 +iyr:2011 hgt:183cm + +byr:1950 ecl:#e2495d iyr:2010 hgt:166cm eyr:2034 pid:151457075 + +eyr:1981 +byr:2016 iyr:2029 pid:153cm ecl:#55c2a4 hcl:z +hgt:76cm + +hgt:184cm ecl:amb eyr:2021 +hcl:#623a2f +pid:414607669 iyr:1960 byr:2002 + +eyr:2027 iyr:2020 hgt:179cm byr:1991 +pid:969568248 +ecl:blu + +hgt:175cm pid:536803427 hcl:#a97842 iyr:2012 +ecl:grn byr:1950 eyr:2027 + +eyr:2028 hgt:60in hcl:#733820 iyr:2018 ecl:oth pid:871909483 +byr:1930 + +hgt:155cm iyr:2020 byr:1960 eyr:2021 +pid:515710074 ecl:amb hcl:#341e13 + +byr:1922 hcl:z iyr:1977 ecl:brn +eyr:2023 hgt:119 pid:865700639 + +ecl:gry hcl:959fcd pid:#633ac1 +byr:2011 hgt:68in +eyr:2020 + +iyr:1972 hcl:z cid:149 byr:2020 +hgt:166in pid:4548657 eyr:1960 +ecl:#cc987c + +eyr:2023 hcl:#b6652a iyr:2015 +hgt:187in pid:547953710 byr:1979 ecl:grn + +iyr:2018 +pid:508691429 ecl:oth eyr:2025 hgt:187cm cid:270 +hcl:#888785 byr:1977 + +hgt:168cm eyr:2032 byr:2020 +ecl:gry iyr:1982 +hcl:z pid:648015564 + +hcl:#fffffd pid:911858643 iyr:2016 ecl:gry eyr:2030 byr:1992 hgt:156cm + +pid:241562994 eyr:2026 ecl:grn hgt:164cm +hcl:#c0946f byr:1945 iyr:2015 cid:296 + +byr:1976 pid:269322775 ecl:hzl +hgt:162cm hcl:#b6652a +eyr:2022 cid:335 iyr:2012 + +eyr:2028 +hgt:106 +pid:268626219 hcl:#a97842 +iyr:2011 +ecl:grn byr:1967 + +iyr:2016 hcl:#888785 hgt:193cm ecl:oth +pid:034099334 eyr:2027 +byr:1945 +cid:181 + +pid:248319556 byr:1987 iyr:2010 cid:122 ecl:utc +hcl:z hgt:190cm eyr:2030 + +iyr:2019 hcl:#ceb3a1 +ecl:hzl +cid:281 hgt:73in byr:1992 +eyr:2023 + +hcl:#fffffd +ecl:blu cid:340 hgt:176cm byr:1980 pid:809878309 iyr:2018 + +hgt:167cm hcl:#866857 byr:1973 cid:143 eyr:2030 iyr:2012 +ecl:hzl pid:168618514 + +hcl:c97d76 iyr:2016 pid:8439355994 byr:2013 eyr:2036 hgt:71cm +cid:116 ecl:#055b62 + +hcl:#341e13 pid:961548527 eyr:2027 hgt:192cm byr:1940 iyr:2011 ecl:oth + +byr:1935 hgt:189cm ecl:brn iyr:2012 +eyr:2028 hcl:#602927 + +byr:2024 +eyr:1939 iyr:2020 hgt:140 pid:889951037 +hcl:#b6652a ecl:blu + +ecl:amb byr:1942 +iyr:2012 pid:161703003 hgt:181cm +eyr:2027 hcl:#602927 + +hcl:#18171d +iyr:2015 byr:1935 +cid:204 +ecl:gry +hgt:180cm eyr:2025 pid:988699528 + +eyr:2025 byr:1985 +cid:192 +hcl:#866857 hgt:150cm pid:315179208 iyr:2010 ecl:blu + +hcl:#341e13 iyr:2013 eyr:2021 cid:62 +byr:1928 +hgt:168cm pid:862861470 ecl:hzl + +pid:099158408 +ecl:grn +eyr:2026 iyr:2018 hcl:#b6652a cid:81 +hgt:185cm byr:1964 + +byr:1990 hgt:155cm +ecl:brn +eyr:2023 +hcl:#ceb3a1 iyr:2012 + +ecl:brn +eyr:2026 cid:242 pid:658930205 +hgt:176cm byr:1990 iyr:2016 hcl:#d55f68 + +hcl:#602927 pid:924899781 +eyr:2024 byr:1964 +iyr:2019 +cid:163 +hgt:181cm ecl:gry + +eyr:2026 ecl:blu pid:8812414708 iyr:2017 hcl:#a97842 hgt:190cm +byr:1970 + +hgt:152cm +pid:403682313 iyr:2019 +hcl:#ceb3a1 ecl:oth +eyr:2021 byr:1957 + +pid:23799214 +byr:2030 hgt:66cm +iyr:2022 +hcl:z ecl:#c806fe eyr:2035 + +eyr:2022 hgt:177cm byr:1967 cid:194 +pid:060293594 +ecl:brn +iyr:2016 +hcl:#cfa07d + +hgt:184cm hcl:#6b5442 eyr:2029 +ecl:oth iyr:2013 pid:26983291 byr:1965 +cid:147 + +pid:255519852 byr:1975 hgt:192cm +ecl:lzr +iyr:2015 eyr:2030 +hcl:#623a2f + +iyr:2010 +ecl:blu +hcl:#881267 hgt:162cm pid:121130250 byr:1935 cid:57 eyr:2025 + +hgt:189cm +hcl:#a97842 +iyr:2014 eyr:2024 +ecl:brn +pid:972960330 + +hcl:#623a2f eyr:2026 hgt:193cm cid:87 byr:1982 iyr:2020 pid:158154062 ecl:amb + +eyr:2025 hgt:191cm +ecl:amb +hcl:#341e13 +pid:137048981 iyr:2016 byr:1950 + +byr:1930 eyr:2029 ecl:hzl hgt:75in +pid:464272185 cid:341 +iyr:2012 hcl:#c0946f + +ecl:brn +pid:952709301 byr:1926 hcl:#c0946f +eyr:2028 +hgt:170cm + +pid:578940518 byr:2025 hgt:190in +iyr:2030 cid:52 ecl:amb eyr:2027 + +ecl:amb hgt:185cm cid:237 iyr:2016 pid:490377510 byr:1950 hcl:#18171d +eyr:2025 + +iyr:2014 hgt:156in pid:65952131 +ecl:blu byr:1938 hcl:#7d3b0c +eyr:2023 + +ecl:gry iyr:2016 pid:818347623 hcl:#888785 eyr:2030 hgt:174cm + +ecl:hzl +hcl:#866857 +eyr:2027 +pid:213124752 hgt:179cm +byr:1989 + +pid:024846371 byr:1990 iyr:2018 +eyr:2026 hgt:161cm ecl:oth + +hcl:z hgt:129 iyr:2016 +eyr:2034 +pid:#b85e75 byr:2026 ecl:oth + +hgt:192cm hcl:#602927 ecl:blu iyr:2011 +pid:863613568 byr:1996 eyr:2027 + +hgt:160cm cid:229 byr:1952 +iyr:2019 +ecl:#0ae2d6 eyr:2027 pid:719697407 hcl:z + +pid:040987502 cid:155 iyr:2012 hgt:173cm +byr:2002 +hcl:#fffffd eyr:2023 ecl:hzl + +ecl:oth byr:1993 iyr:2019 pid:319157251 hcl:#733820 hgt:70in eyr:2027 + +hcl:#9d85d4 +hgt:192cm pid:570514935 +cid:238 eyr:2022 ecl:gry byr:1989 +iyr:2016 + +hgt:162cm +cid:201 iyr:2015 eyr:2023 pid:553794028 byr:1922 ecl:amb hcl:#623a2f + +cid:56 +eyr:2024 ecl:amb hgt:179cm hcl:#efcc98 +pid:665225721 +iyr:2012 byr:1963 + +byr:2026 +hcl:#888785 +iyr:1972 eyr:1980 cid:323 pid:153cm +hgt:170cm ecl:blu + +pid:704204892 ecl:gry +eyr:2023 +byr:1920 hgt:168cm iyr:2010 hcl:#3311ec + +pid:#7f3caf eyr:2023 +hcl:z hgt:146 byr:1990 ecl:amb +iyr:2014 cid:270 + +hgt:171cm ecl:blu pid:383695713 +cid:200 iyr:2010 +hcl:#602927 byr:1950 eyr:2024 + +hgt:178cm byr:1935 hcl:#2da7db +pid:597509269 +eyr:2020 iyr:2014 +ecl:blu + +eyr:2034 +ecl:#d4719a +hcl:z hgt:67cm iyr:2023 pid:#268d93 byr:2006 + +eyr:1939 pid:9942171839 +hgt:104 +iyr:1945 +byr:2011 ecl:#f9bafb hcl:#ceb3a1 + +byr:1937 +iyr:2010 pid:979528684 +eyr:2028 hcl:#ceb3a1 ecl:gry hgt:164cm + +iyr:2019 eyr:2022 pid:044485658 hcl:#18171d byr:1996 hgt:169cm +ecl:gry + +pid:031482456 +eyr:2024 +iyr:2015 +hgt:157cm hcl:#7d3b0c byr:1921 +ecl:oth + +pid:399398768 +ecl:lzr +hcl:z +eyr:1983 hgt:68cm +byr:2024 iyr:2027 cid:127 + +hgt:186cm eyr:2026 pid:140032921 ecl:amb cid:278 +byr:1937 iyr:2015 + +hgt:172cm +ecl:amb pid:718725983 hcl:#6b5442 eyr:2024 +iyr:2013 byr:1974 + +ecl:amb iyr:2014 cid:216 hcl:#cfa07d +eyr:2022 pid:442275714 hgt:68in byr:1999 + +hgt:152cm cid:193 +iyr:2015 pid:806672342 hcl:#b6652a byr:1927 ecl:oth + +hcl:#7d3b0c byr:1925 iyr:2015 hgt:174cm pid:888044223 cid:168 ecl:oth eyr:2029 + +ecl:gry byr:2009 hgt:156cm +hcl:#888785 pid:263500722 iyr:2015 eyr:2021 + +cid:103 +hcl:#ba8b89 ecl:hzl hgt:169cm +byr:1929 pid:626102979 iyr:2016 eyr:2028 + +iyr:2016 hgt:188cm cid:133 +byr:1926 ecl:hzl eyr:2023 hcl:#602927 pid:678092780 + +ecl:utc byr:2025 pid:#584dc1 eyr:2037 +hgt:151cm iyr:1950 hcl:#cfa07d + +ecl:oth hgt:140 eyr:1977 hcl:#6b5442 iyr:1955 +byr:1999 +pid:868434068 + +eyr:2029 hcl:#18171d cid:158 iyr:2016 hgt:166cm ecl:hzl +pid:100226690 byr:1942 + +ecl:#806ce8 +cid:153 iyr:2024 byr:1985 hcl:da8a68 +pid:#d9e5b0 eyr:2017 + +eyr:2020 hgt:164cm cid:222 ecl:hzl byr:1945 hcl:#cfa07d +iyr:2011 + +iyr:2018 hgt:165cm +pid:868536448 eyr:2026 byr:1930 +ecl:hzl hcl:#623a2f cid:128 + +ecl:grn iyr:2012 +cid:326 byr:1950 hcl:#efcc98 eyr:2029 hgt:177cm pid:685629972 + +byr:2004 hgt:168cm +ecl:dne iyr:2020 hcl:z + +byr:1964 pid:132604237 ecl:oth hcl:#602927 hgt:188cm +cid:78 +iyr:2012 eyr:2025 + +byr:1945 +iyr:2023 ecl:#1a590c hgt:70in +pid:186cm eyr:2031 hcl:z + +cid:178 +ecl:amb eyr:2024 hgt:162cm +hcl:#18171d iyr:2016 +byr:1945 pid:737813370 + +hcl:#18171d +byr:1949 +pid:064917719 +hgt:176cm ecl:amb +eyr:2034 +iyr:1998 + +hgt:72in +pid:711343766 hcl:#623a2f +iyr:2010 byr:1977 ecl:amb cid:177 eyr:2023 + +byr:1933 hgt:66 pid:22149379 eyr:2040 +ecl:#92d7a7 hcl:#cfa07d + +iyr:2020 byr:1946 eyr:2020 ecl:hzl pid:153cm +hgt:159cm cid:261 hcl:#888785 + +iyr:2013 byr:1931 +ecl:#2ced2e hcl:3c49c1 eyr:1950 +hgt:182cm cid:133 pid:#19fc55 + +hcl:#a9abe6 +iyr:2016 +eyr:2029 ecl:hzl cid:343 pid:691253232 byr:1952 hgt:187cm + +hcl:z +eyr:1964 +ecl:#5995e6 +byr:2021 hgt:72in pid:2103603035 iyr:1951 + +iyr:2024 hgt:151in byr:1988 ecl:blu +eyr:1961 cid:117 +hcl:z pid:5371118784 + +hgt:71cm iyr:2021 +eyr:2033 ecl:amb +hcl:z cid:202 +pid:207141921 byr:1987 + +ecl:gry byr:1927 eyr:2024 +hgt:60in iyr:2014 +pid:847799723 cid:285 +hcl:#733820 + +eyr:2022 hcl:#18171d +pid:847063261 +byr:1926 ecl:grn +iyr:2011 + +pid:647225630 iyr:2016 hcl:#a97842 ecl:oth eyr:2025 +cid:144 hgt:182cm byr:1983 + +hgt:150 byr:1924 +eyr:2024 hcl:1600da +ecl:brn +cid:168 pid:656253964 + +hgt:153in pid:644514788 byr:1956 hcl:#866857 +iyr:2029 +ecl:utc + +cid:57 pid:755541617 byr:1961 +iyr:2019 +ecl:grn +hgt:169cm hcl:#efcc98 eyr:2029 + +iyr:2005 +eyr:2040 hcl:8080a4 byr:2013 pid:145803668 + +iyr:2029 +hcl:z ecl:brn +byr:1948 +hgt:76cm pid:186cm eyr:2031 + +hcl:#888785 ecl:grn byr:1983 cid:268 pid:402246959 iyr:2018 +eyr:2020 + +hgt:175cm eyr:2026 pid:594997236 +byr:1991 hcl:#ceb3a1 iyr:2015 ecl:blu + +byr:1989 +eyr:2027 +iyr:2020 hgt:192cm ecl:blu hcl:#cfa07d cid:61 pid:657979353 + +pid:#a043a3 iyr:2016 byr:1947 +eyr:2031 hgt:191cm ecl:xry + +eyr:2023 ecl:blu byr:1948 cid:128 hgt:74in +pid:966094274 +iyr:2015 + +iyr:2020 ecl:zzz +eyr:1999 hcl:3cf716 byr:2017 cid:343 pid:60198759 +hgt:70cm + +hgt:182 pid:80897411 byr:2014 eyr:2033 iyr:1941 ecl:#9c54e8 cid:107 +hcl:z + +iyr:2015 hcl:#866857 byr:1990 cid:167 pid:588340506 eyr:2030 hgt:168cm ecl:oth + +hcl:676aad hgt:151 cid:192 eyr:1930 ecl:oth byr:2012 +pid:513365039 +iyr:1943 + +cid:119 +ecl:#921980 hgt:70cm +eyr:2024 hcl:4909ee pid:#13fe6c iyr:2022 byr:2014 + +eyr:2036 hcl:02fdbc hgt:155cm +iyr:1946 +pid:508011940 ecl:utc byr:2025 + +pid:#f74bbe eyr:2028 hcl:#c0946f hgt:171cm ecl:#9077c0 +byr:1951 iyr:2010 + +iyr:2017 hgt:125 hcl:#cfa07d pid:731062033 ecl:brn eyr:2028 cid:255 byr:2020 + +ecl:xry eyr:2033 byr:1978 +iyr:2012 hgt:70cm hcl:z +pid:272848084 + +ecl:blu hgt:174cm +eyr:2030 byr:1999 hcl:#ceb3a1 iyr:2015 +pid:322583115 cid:301 + +eyr:2007 byr:2007 +ecl:dne cid:322 pid:182cm iyr:2013 hgt:156in +hcl:680e8c + +hgt:189cm hcl:#18171d +byr:1996 ecl:amb +eyr:2022 iyr:2020 pid:470853813 + +pid:785152983 iyr:2014 eyr:2028 hcl:#d50ced ecl:hzl byr:1998 + +ecl:hzl byr:1945 hcl:#7d3b0c cid:164 hgt:187cm pid:414181589 iyr:2018 + +byr:1936 +hgt:183cm ecl:gry pid:376279728 hcl:#7d3b0c +eyr:2023 iyr:2012 + +byr:2000 hgt:157cm +ecl:hzl +iyr:2020 +pid:203994583 +eyr:2023 hcl:#866857 + +eyr:1992 byr:2009 +iyr:2029 +hcl:dc80b3 hgt:70cm ecl:grn pid:#65c31d + +hcl:#7d3b0c +byr:1945 +hgt:177cm +iyr:2013 eyr:2028 pid:038116668 cid:74 ecl:blu + +pid:700997508 eyr:1970 ecl:zzz hcl:#888785 iyr:2013 byr:1986 cid:219 hgt:76cm + +eyr:2025 hgt:161cm +iyr:2015 cid:188 +hcl:#fffffd +pid:840085402 ecl:gry byr:1988 + +pid:96550914 hcl:#481a3b byr:1997 ecl:#a57167 +cid:274 hgt:174cm + +hcl:#b6652a +ecl:brn eyr:2029 +hgt:157cm iyr:2011 pid:910022061 +byr:1947 cid:273 + +pid:010289131 eyr:2026 +byr:1930 +hcl:#b6652a ecl:grn +cid:220 hgt:187cm iyr:2013 + +hcl:#6b5442 ecl:grt hgt:120 +pid:454504291 eyr:1933 byr:2025 iyr:1930 + +iyr:2016 +hgt:180cm ecl:amb eyr:2028 cid:237 +pid:334803890 byr:1953 hcl:#18171d + +eyr:2020 byr:2002 hcl:#c54f21 +iyr:2019 ecl:blu hgt:180cm cid:138 + +byr:1933 +iyr:2020 +ecl:brn hgt:185cm +hcl:#c0946f +eyr:2020 pid:050791974 + +byr:1933 ecl:brn hgt:186cm +pid:643899463 eyr:2030 iyr:2019 +hcl:#866857 + +iyr:2018 byr:1935 ecl:oth +eyr:2029 +pid:732801213 hcl:#6b5442 hgt:169cm + +eyr:2020 +hcl:z byr:1996 +ecl:#4102ee +pid:890541531 hgt:193cm iyr:2014 + +pid:618379341 ecl:gry hcl:#18171d byr:1991 eyr:2025 hgt:154cm iyr:2019 + +iyr:2013 +pid:912066964 ecl:grn eyr:2040 hgt:192cm byr:1974 +hcl:#18171d + +eyr:2025 cid:167 hgt:192cm +pid:678328147 ecl:gry +hcl:#18171d iyr:2017 + +iyr:2011 byr:2021 hgt:189cm ecl:gmt hcl:z eyr:2035 pid:278839955 + +eyr:2030 hcl:#efcc98 +ecl:blu iyr:2011 +pid:536958012 hgt:192cm byr:2002 + +pid:#1306f2 byr:1976 +hcl:#790688 hgt:158cm ecl:grn eyr:2024 iyr:2019 + +eyr:2030 hcl:#866857 +cid:50 ecl:oth pid:421235317 +iyr:2014 hgt:60in + +iyr:2020 byr:1971 cid:124 +pid:319896110 ecl:oth hcl:#fffffd + +cid:143 +eyr:2021 hgt:190cm pid:366021385 hcl:#18171d ecl:amb byr:1934 +iyr:2016 + +hgt:169cm hcl:#602927 pid:177cm +eyr:2022 byr:2020 ecl:#dd96f4 iyr:2014 + +eyr:2020 hgt:173cm pid:591592395 ecl:oth byr:1966 +hcl:#c0946f iyr:2020 + +pid:282088832 ecl:gmt +hgt:167in byr:2016 hcl:z +iyr:2018 + +iyr:2016 +hgt:62in hcl:#c0946f +pid:306204399 eyr:2020 ecl:brn +byr:1999 + +eyr:1947 byr:1984 pid:595671246 hcl:3d50e7 ecl:xry iyr:1947 + +hgt:187cm +eyr:2024 pid:477011496 +byr:1971 +hcl:#733820 +iyr:2010 +ecl:brn cid:165 + +byr:2023 +pid:173cm +hgt:193in eyr:2019 cid:102 ecl:grt hcl:#c0946f + +pid:195062251 +iyr:2027 +cid:138 byr:2021 ecl:brn eyr:2025 hgt:60in + +hgt:71cm hcl:z +ecl:utc +eyr:2021 iyr:1925 pid:5469028726 byr:2017 + +hcl:#b6652a hgt:168cm +byr:1960 ecl:grn +pid:653140418 +iyr:2014 eyr:2023 + +pid:#afa892 cid:190 hcl:z +hgt:189cm +eyr:2020 ecl:gry +byr:2003 +iyr:1956 + +hcl:e4cddf cid:185 pid:189cm hgt:175cm +byr:2016 iyr:2010 ecl:#fa945d eyr:1947 + +cid:176 +hcl:7752f8 eyr:2039 byr:2019 ecl:hzl iyr:2029 hgt:185cm pid:636534364 + +cid:170 ecl:gmt hcl:ef5177 byr:2021 +eyr:1993 +hgt:71cm pid:2136295 iyr:2013 + +byr:2028 pid:156cm hcl:d74b86 cid:238 +hgt:89 +iyr:1957 eyr:1937 + +eyr:2030 byr:1932 hcl:#c0946f cid:349 +hgt:177cm +ecl:grn iyr:2016 + +hcl:z byr:2003 +ecl:#9b98b2 hgt:81 pid:13338103 eyr:2040 + +iyr:2018 pid:801432704 hgt:73in byr:1964 cid:298 hcl:#fffffd ecl:amb eyr:2030 + +cid:272 +iyr:2019 pid:369160624 byr:1929 hgt:184cm eyr:2025 hcl:#ceb3a1 ecl:blu + +hcl:#7d3b0c pid:525287934 +byr:1998 eyr:2027 +iyr:2017 hgt:168cm ecl:gry + +byr:1975 eyr:2027 +ecl:brn cid:125 hcl:4e319d +hgt:172cm pid:308046532 iyr:2017 + +hcl:b889c0 pid:6699675552 byr:2019 iyr:1968 +ecl:gmt +eyr:2003 +hgt:180in + +byr:2025 +ecl:zzz hgt:162in hcl:z iyr:2002 pid:#87dca4 eyr:1951 + +eyr:2022 +pid:549517742 ecl:hzl +iyr:2026 +byr:2029 hgt:153cm hcl:2993de + +eyr:2024 +pid:755674604 iyr:2018 hcl:#c0946f +ecl:gry byr:1966 +hgt:188cm + +pid:665375893 iyr:2017 +byr:1997 +eyr:2029 hgt:173cm ecl:gry + +hcl:#6b5442 hgt:74cm ecl:#0dc7f6 +pid:451038742 eyr:1982 byr:1939 +iyr:1932 + +hcl:#18171d +byr:1980 ecl:gry +iyr:2019 hgt:167cm +pid:326267989 eyr:2028 + +cid:226 hgt:177cm ecl:hzl hcl:#a97842 eyr:2025 +iyr:2013 +byr:1949 pid:292166795 + +ecl:oth pid:962521763 +iyr:2013 cid:71 eyr:2022 hgt:193cm hcl:#18171d byr:1969 + +ecl:grn iyr:2028 eyr:2024 +hgt:189cm hcl:z byr:1940 pid:032392876 + +iyr:2012 hgt:191cm cid:339 ecl:oth eyr:2028 pid:392810631 hcl:#b6652a byr:1959 + +iyr:2011 byr:1975 +eyr:2027 +hcl:#18171d +hgt:176cm +ecl:gry pid:290432747 + +cid:180 ecl:brn pid:210871734 eyr:2027 +byr:1946 hcl:z hgt:185cm iyr:2011 + +byr:1924 ecl:grt +eyr:2028 hgt:187cm pid:#608f4f + +eyr:2022 ecl:#a05063 byr:1926 hcl:#7d3b0c pid:3292990618 hgt:183in iyr:2021 + +ecl:#a8b66c +iyr:1942 eyr:1960 hgt:60cm byr:2027 pid:#3b6f3f hcl:9fae56 + +hgt:183cm +ecl:oth hcl:#c0946f pid:816986054 eyr:2020 iyr:2014 byr:1935 + +hgt:174 byr:2008 +iyr:2029 hcl:9259e7 pid:85036214 ecl:gmt + +cid:85 +pid:032040868 +byr:2001 eyr:2027 hcl:#c0946f ecl:grn iyr:2020 +hgt:173cm + +hcl:#6b5442 +cid:308 +ecl:grt iyr:1939 byr:2009 +pid:9365125584 eyr:2031 hgt:67cm + +hgt:154cm +byr:1936 +eyr:2030 hcl:491c70 pid:391887956 iyr:2029 ecl:blu + +hcl:#866857 +hgt:161cm cid:76 pid:921202500 eyr:2021 ecl:brn byr:1968 + +iyr:2024 ecl:dne hcl:z pid:8054447805 hgt:154 eyr:2035 byr:2024 + +hcl:#0a524b pid:667928918 +eyr:2025 +cid:245 ecl:brn byr:1973 hgt:179cm + +ecl:gry hgt:68in pid:322837855 eyr:2023 +cid:323 byr:1944 +iyr:2012 + +byr:1940 +hgt:178cm ecl:hzl hcl:#c0946f iyr:2030 +eyr:2020 pid:788531859 + +cid:253 iyr:2012 hgt:163cm +pid:554364568 eyr:2025 byr:1976 ecl:grn hcl:#888785 + +hcl:#efcc98 iyr:2015 ecl:gry eyr:2029 pid:273847553 cid:274 +hgt:68in byr:1933 + +hgt:165cm +pid:209462386 eyr:2024 +byr:1969 hcl:#733820 ecl:grn +iyr:2020 + +byr:1975 hgt:187cm eyr:2027 iyr:2018 hcl:#c0946f ecl:hzl pid:141969110 + +hcl:z pid:534439483 iyr:2022 ecl:grt eyr:2036 hgt:164in cid:324 +byr:2025 + +hcl:#74ca66 +iyr:2011 +pid:253012158 +hgt:188cm +cid:246 ecl:oth eyr:2023 + +byr:2020 pid:56939101 hcl:9f5f65 +eyr:1949 +iyr:2021 hgt:155in + +iyr:2020 hgt:174cm cid:304 +byr:1944 +eyr:2028 hcl:#733820 + +hcl:#866857 ecl:gry eyr:2030 iyr:2014 hgt:63in byr:1997 +pid:371522079 + +ecl:amb +byr:1955 iyr:2013 +hcl:#888785 cid:265 eyr:2026 hgt:190cm pid:311393763 + +eyr:2026 iyr:2019 +pid:721355771 byr:1947 +hcl:#733820 +hgt:71in ecl:gry + +cid:94 eyr:2024 byr:1938 pid:336868233 ecl:hzl +iyr:2012 +hgt:177cm hcl:#7d3b0c + +ecl:brn iyr:2010 +eyr:2027 +pid:379769214 +cid:111 byr:1960 hcl:#cfa07d hgt:169cm + +hgt:179cm +hcl:3f59a6 eyr:2036 byr:2025 ecl:oth pid:217404607 +iyr:2018 + +ecl:amb pid:820370865 hgt:170cm iyr:2012 byr:1967 hcl:#efcc98 cid:309 eyr:2025 + +byr:1940 +pid:008495978 ecl:gry hgt:159cm hcl:#602927 eyr:2024 + +hgt:186cm +byr:1971 pid:556900517 cid:334 hcl:#efcc98 ecl:brn +iyr:2014 + +iyr:2020 byr:1928 +cid:200 hgt:193cm +ecl:grn hcl:#7d3b0c + +cid:233 +hcl:a3046e pid:626863952 ecl:lzr iyr:2029 eyr:2024 byr:2000 hgt:193cm + +cid:244 +hcl:#866857 ecl:amb byr:1931 +eyr:1928 pid:557376401 hgt:182cm iyr:2013 diff --git a/2020/inputs/day5 b/2020/inputs/day5 new file mode 100644 index 0000000..cfb1d3b --- /dev/null +++ b/2020/inputs/day5 @@ -0,0 +1,932 @@ +FFBBFFFLRL +FFBBFBBRRL +FBBBFFBLRL +BBFBFFBLRR +BFBBBFFLLL +BFBBBBBLLR +FBFBFBFLLR +BFBFBBFLLR +FBBFBFBLLL +BBBFBFBRLL +BFBBBFBLRL +FBBFFFBLLR +BFFBFBFLRL +FBBBBFBRLR +FFBBBBBRRL +FBBFBFFLRL +FBBBBBBLLR +FBBFBBBRRL +FBBFFBFRLL +FBFBBBBRRR +BFFBFBFRRL +BFBFBBBLLR +FFFFBFBLRL +FBFFBFFLRL +FFBFBBBRRR +FFBFFFFLRR +FBBBFFFLLR +FFFFFBFLLL +BFFFFFFLRL +FBBBBBFRLR +BBBFFBBRRR +FFFFBBBRLL +FBFFBBBRLR +BFBBBFFRRL +BBFBBFBLRL +BFBFBFFRRR +BBFBFFFLLL +FBFBFBFRRR +BFBFBFFRRL +BBFBBFBR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BRLL +BFFBFBFRLL +BFFFBFFRLL +BFFFBFBRRR +BBBFBFFLRL +BFFBFFFLLL +BBFFFFFRRL +FBFBFFFLLR +FFBFFBBLLL +BBFFBFFLRL +BBFFBBBLLL +FFFFFBBLLL +BFBBFFBLLL +FFFBFFBRLR +FBBFFBBRLL +FBFBFBBRLL +BFFBBBFLRL +FFFBFFBLRR +FBFBBFFRLR +FFFBBFFLLR +FBFBBBFLLR +FBBFFFFRRL +BBFBBBFLRR +BFBBFBFRLR +FFBFFFBLLR +FFBFFBFLRL +BBFFBBBRRR +BBFFFFFLRR +FBFFBFBRRL +FBFFBFFLLR +FBBBFFBLLL +FBBBFFBLRR +BFBBBBBRRR +BBBFFFBRLL +FBFFFFFRRR +BBFBBFFRLR +BBFFBBBLLR +BBBFFBFLRL +BBFFFBFLRR +FFFBFFFLLL +FFBFBBFLLR +BBFFFFFRLL +BBFBBFFRRL +FBBFBBBLLL +FFFBFFBRRR +FBBBBFFLLL +FFFBBFFLRR +BBFFBBBRRL +FFBBBFFLLL +FBBBFBFLRL +BBFBFFFLRL +FFBFFFFRLL +FFFBBBFRLL +FBBBBBFLLL +BFBFFFFLLL diff --git a/2020/inputs/day6 b/2020/inputs/day6 new file mode 100644 index 0000000..22f2281 --- /dev/null +++ b/2020/inputs/day6 @@ -0,0 +1,2197 @@ +rypdeiqkbgacnxwumhtozfjvs +mhrqdwtxcfjuseknozipayvbg +gunjdtebovsyihraczkmqxfpw +pqcnduafgkbzjhvirxtwmesoy + +wmghxlzctojyspn +jtohwzpvkmycs +cuvkjoyheztmqswp + +detmwhk +emklvdf +yemupdxq + +hdxektmfycarwpio +epiamhowxdcktfrvy +octximeakfhrwdzpy + +pxwnzji +jrpoawxiv +wjiqxmp + +ch +loct +wxmtjeup +hfyxktz +birvsdq + +rluz +zlwruq +zlur +lrzu + +omcwsj +sqkjwruc +cwpklf +vtyadxcnwzg + +clfnzvjhpiybwoksxm +snzxvyfopbmhijl +nxymlhjvfzspbio + +jwevzxdhpyrifcuksqgt +fglozbuswkmdr + +jvhgezpqurxalk +qhizygwbtfupljcsmo + +jge +r +l +rg + +icgh +gihc +ghpvdkic +gwhcfi + +woerv +ow +powf + +zhqvdxburfmstkloiypgwj +bpzcnvwudtkhfomsrqayiegjl + +bjhagpqxvnrlsufytz +yjdnqhosbtuzexgpvar +qbksyczativhgprnxmj + +vdmretq +tmrevdq +rdqemgv +jnmqvedrzu +dmgrqve + +namzrqsdlftvyexkopu +fvtneaqyurozkpmxsdl +xpznavflsetruykomdq +sbxdlymekrqanvztfupo + +whjs +hsjw +shwj + +szpqmkodtfgeivxybchnjlr +yzrpefkjichgmvbodxtns +inxafhbszovdtmjgycrepk + +lnixphrqcuszfbtwyeod +doupcibeqshyrfzlx +oprqsdhixfuzyclbe + +ojnv +jnv +vjn +ajnv + +ymtfzirplknbejwucdaqg +eczmygatkuvwiprqjldnfb +ydqbeflnikwjprmzutagc + +gvbithwxzdyfkoep +ixyozwhevbgdftk +fhpozxydktgbewivc +wodpgnvektbqhxyfiz +krxfwoystdgbizevh + +qnp +npfq + +wylxqpgvuafbtjneid +lfjamczetspkwvbdqoih + +hpbjdyiwsg +dipwjhybg +pcubgwmridjyh +dgpyjihwb + +gcbxv +vcbg + +pjgsyzteohwaibnc +ohlwfgdvtczsnpejyxaqi +pzmewhojayscbgint + +foytjxbhiwc +nxfigpqyhuckm + +ta +at +ato +tao +etaf + +tyebulroispdqm +cheqfk +cxnqejfwag +qaze + +xs +mexs +vfxls +sehx + +plvqenkgiwj +eihjplvnwkgq + +bcteiamnzljyrvhqxwpuo +ctleshvprmknxibjyozgqwau +venmchpqjxzwoultriyba +malqychnozbxwtjepirvu + +qlvcexgauwkonr +ysrvfxtigcnqmdjab +nvlpxgzacohrq + +r +r +r +r +r + +sth +tsh +ths +hts +hst + +j +j +c +j + +fptakxrwqzghcid +hwudjvteyqnmsxbzrl + +fj +fj +fj + +qd +e + +dfqagyzoluemikxhr +hmfzegoyikalrbu + +amz +zcwma +zma +zma +zam + +iavezojwpxgf +azxqivwsgufjo +vfwaoguizjx + +vdytwaugpmn +ywgtvdaunp +rdujgtknywpav + +hcjobxdagvtzureimn +egouxjizsrpmatncbv +bovgcisajmzedturxn +ymcauqenrwobtjvxzgk + +z +k +mt +b + +onxdjc +kij +jekrlws +pqmtyjvbz + +lrekpb +cs +f + +miukhetbgpcofnywld +fgypmoutcnewkdlhib +nmegdpfcbtkhuoyliw +iewbnmufpltydcokhg + +fm +zc + +q +g +q +q + +d +qov +u + +vpekhuanwyitdbzq +taivnxwfphzkbueyld + +ivuq +iuqv +viqu +iquv +uviq + +w +x +g + +aqvz +msitp + +epigzysdnhvjwfl +eiwvzspyfnjdghl +ewizvgjnspfdylh +ifpjzlwedysgvhn +shzlefdvpgiynjw + +gfcpvheli +leuizvgcfhpyw +jrolbshdivfg + +nozm +rzbe +rzeb + +i +i +i +i + +l +i +w +xl +cvd + +prezgubljmyq +hdjgxymcrbqutzk +ugsvrjqybzm +rqbmwuzygj +ioqzjaufbgrmy + +lvkwrpiafgehuj +bighyasoqfk + +zjopywe +yceowzjp +qpijoyzew +hbfgusynojvrezxwpadlk +etzywpoj + +lyawqpmirognzstbduc +luieajxqpzokvygftrbns + +xpbjvgmclwyaeui +bmlxpsueqgciyjv +tvcnmrlgybjeuipx +vyeaxbjufomicpltg + +scbpelzjd +qicbopdefs +bescdp +spbcejgd + +izqc +zc +vcz +zc + +zxtpqjousimgwd +ldjvupmykawohsxqf +oupwbjqdexsm + +nldjubr +jlrudbn +ldnujrb +unldbjr + +gvrhtzabkpjwin +iylsvcqftb + +ieurvztojxs +utwrozyhsjpv +djtouzvr +ufznbqkatjvcol + +lauocyjix +oacxleiju +jalucorshi + +y +xyj +yp +y + +tzdopeirawxqj +xfjitporuzwhmka +owkfpxhtiazrj + +xabdw +xcbadw +dprybzwjxa +bcxawdv + +qhmetwcuiagpv +pvcmhigewqau +wvqheiacumgp +unmpjlciwehbgzqav +haevgiqumcpw + +fndv +dik +nmcjhfbs +lxzquaproeyw +msjfgti + +rxcq +cslmqje + +vkl +v +umr + +tgflck +tbmafhgjx +ctgwf +gwtf + +afn +anf +fna +fgan + +kbypmroflcgsijqt +merbsy +yuazxsnwrvmb + +mbqeotcwa +wacbtzme + +ykgwomscpdr +udsmiqophxgazc + +byhgswqf +ziruakpdxenojt +mlhyqcbfgv + +sjcpmgfnqkbtvh +tjhaocknsqgvzmfxb +hvskbjtmfncqg +svgmbtkjfchqwn + +vxnyazclrhigju +tzejprxgiuvnhl + +kfgrnpwahvuzbtdeosxycjl +codeskpxziflhqmtnw +nzpkocwlfexhdts + +amxeu +xuem +muxe +xmue + +nfdekjvaswxhlizumqcr +ahvenfjwmqukxrzslcdi +amzhrqdvknuwfelcjixs +ahzxsfnqcirwdvlejmku +kmivhzfsdxrwueqcajln + +ahutglpcfobw +inbgfhawctlu +glxabyjwdersfhut +glwnbvhtfqua + +tkvnhiguafzpbryomqs +fjuqmyizhtdvrapbgok + +lavnu +anuv +nuva +vnua +avnu + +dsypquzvk +yfvpuwkqxzd +zaqdpkvuhoy + +hztcgilumwfjqvdx +ljdzmfxhwnocukva +wdzxlcphvfmruj +vwtgemuhljsyfrqdxzbpc + +gylhmqsfo +flhgsmqoy +yflgmhosq +yhsomlfqg + +njrtykmqhpsbl +ehrqnbmtpkyloz +tqnydrhcxmbkp +eykmrhnqlpbt + +x +t +t + +xmbzthspyqiwkre +kmertowqzhy +wntlghzqvuaym + +anzmrgh +hvbz +ikcqewfo + +bmhkpvatlxsqe +qhlsvmwkaxtbep +afvyqxopmebkths +kmaqhpbvxsect +smhbqatxvekp + +rhlvqfi +fhqlvir +vlfqihr +frvhqil +hrfwaiyqvl + +kqp +bkpq +qknpb +kfbnqp +tmqlpk + +zamldqftosjchig +sgoltqfzhcmida +ilchsoqyzdafmteg +omtzqschailgdf + +dqtzj +qdzjt +wjqbztd +tqdzj + +f +f + +a +a +e +a + +lthopwunzesadc +agcpuiqwbezrfm + +vecitwkr +evrwktc +twejkvcly +tvweckr + +ivhprtaqxluznd +czhpmktnbarjuqx +hntzuxaqfwpr +ztqfxhunpdagrsw + +yearmjzfvoglksutx +ytxonejacwgkspvbl + +gctxse +cjgetx +xocetga + +uedfocpwivngk +prxuiveon +hpovnuimel +pexivunoj + +cdsqhptunrmgjvfiozl +srvuhlgimntpjfdoqcz +hotpzrcfvsgdinqljum +mtdfnzogrluvhsqjpic +imshvtfzoprnqcjlgdu + +qvitpoadjkfe +fhtwujgxmyvqp +fvqtjp + +igcu +cpzkirmaqeuvyjblt +uwfhcio +ufci + +olpayrzujbxigkmtdwfvs +mnlajiogzfyvxdptbkr +gxkjabvmdptlfyiozr + +ozuitjkyrplmwhx +wqilxmrjzphk +zmpflxwkrjhi + +xklnmyjz +tbywrnecm +qasm + +nmqezcib +bqcine +bqeiwnc + +gfwcuktlovqaxinrmsye +apuxbreclsovh +lrozacsuevxy + +sbirnjalhp +sjlhabinpr +spiyalnhjrb +nlahrzjibspf +phsinblragj + +qshiwtzunymecpkojgf +ycintzem +mtxbzyneicl +ntmzacvdyie +inledacymzt + +zikd +wfrtoc +xd + +b +q + +jtgrvpc +vnpob + +mxa +bgpat +av + +kluxigjtrnsqmbfypw +gilnxrjwumoykbsfpth + +mxufknlzeria +xraflenbiupmk +dxlijrknueacmyf + +rcnby +uhmilk + +feojnrqsdpwclkaiyt +kowqnhfclimjztpybd +xvcptleiwdofqkjnsy + +ugkailsnrj +banglk +unsglka +nlvagkc + +dwgqjpsby +huskprjxgvow + +psd +aspdm +dps +dsp +psd + +thnzwocdrfyeagim +zmfuiecortkbgdyw + +twjeozqfdvsbcyiarmkguh +oqtrmfsavdzwbejihyucgk + +turasdgcevhmxkp +kxmcagstlh +cbhmxkgats + +sxiezthakwvqb +sewmhkiqzfxatvgbu +vqathkezswxib +xwthkbvziseqa + +ewxibk +tpf +rz + +nwztryqmofi +rjyqwhmfzostc +tlvaurxdpkbzfgmyeo + +imzerbtfdn +teifxzny +enytifz + +rcvuafzdqkxweg +cgvaqxewzdyrfuk + +kbmjndsal +adjlbisnm +mdbsklnaj +nbasdljm + +qvolp +qckuzi +qritmn + +lqcejxk +wtxeqkcl +jlxqekc + +vqregkolsbfdx +qkvsoeuxrbf +jkaixwvrqbfose + +ctogmvsxiauy +szuhoqagtwcflikyd +ctoyuagsnvi +utygcranvosi +citoygeusa + +fuwk +yewkljpxi + +zarpyjehu +putzh +ptnkze +zplgbvm +zhstyqip + +hrxfvwopsaymtgc +xfaywpovkgtcsmzunrjh +vxgmrhcowsytafpi + +cipegfjmxbdzutorshn +efvnwuaoipbyrjtgd + +wjtryvx +rtxjbyw +nkrpxjolqeu + +wqjmgluhebv +jsgqirvulf + +hljupxyodbzrg +lakmhpqogvucnxf + +yjuwmvanoxs +swvadnujxm +iwvzrutpsfgjxqnm + +pzdhvwcjekifnmb +vnkmzhboiqdjp + +hqrpeaktlvsjmdcwufnyzbo +qdvruncsmtyhoepwixkzgjf +gqsdzvpmhrjntifcuywkoe + +xwszdpuln +otbha +tjo + +waqvmjecpsyhfztlbgodn +gmaewohbzjnytvcfqp +ofyaizgvhnbtjqmep +odjygheabpfztnqmvk + +ezb +buze +zbe +ebz +zeb + +z +z +z + +vfcjbpaiut +fjagupcio + +my +ym +my +ym + +lhqavgbsef +fvhqbegsla + +p +pfojb + +gyavhelf +plefo + +mirkdqulwbsctjvgxop +bwptsyqrckfjgxliovm +xdswvpuckjlqgibotrm +qcwixtbvkplsjrgom + +lrjt +ltr +trl + +nzuy +noy +jbynz +bn +fkctn + +uxifynkerjas +fxykznugtcj +bfyknzuxchj +qgkfmdjxynwu +jduxknfyh + +rgq +rg +yp + +inbvhkjzegyau +shxbcotnuda + +xtpyoswvjhueimdafcl +odmjlhvepatuysxfbwci + +gfx +f +dfeikvhjqz +f + +nryktcwsaixulom +wusiydlktonmcxra +xtikuqroycnsalwm + +mp +m +ztm +m +m + +lxohyprcwdgfz +ownfhacrlzxydeg +rhofgywdlxc +fhcldyrgboxw +qfhoygdxlcwr + +mrigdkbhzuonxvwtsejcp +xrwnmbzohcteyfdkpisuqgj +ngiobsrhvdzweukmtpxjc +drocwhmseuxgkinbztpj + +xpuchemftsnyakqoljwrd +dksrjfheqmcxuotwnglap +tmjpalxnrswhuekdyocqf + +xftzuvoksbai +ndgmechlpjti + +ygjwtmhqsierucdlkxfv +ufriqgwdtysjevxhmkcl +tokicjvdlmwfzxrasphqeg +iyjtgwmcelhksrdxqvf + +rvzhcsjgd +gdsjcvhrz +hjvdsgczr +vjhzdgcrs +rchvjsgztd + +trezphilc +yzfnqrbli + +qkofmyptcnwjsxlgaivbuzh +vbostfpnwuzagmjirlhqck +vasbchflkwjmngztopuiq +utjikgmorpnfaqwvzchdbls +ultmzaskwionhvgqpbcfj + +aivo +n +i +mqergs +pv + +rjgbw +wjrbg +gjwrb + +hwmxaigndkrvfzslo +hiamrnksowxdgfzlv +hkiornfwlmaxgzuvds +mnvwkdfigshxalorz + +pkygn +pygnzk +kuvynp +yknpg + +itxjom +mtoreix +omidqtgsnpc +eukmyioth + +vdwjtnrsbcm +smjtngvobycrwd +cjtvdanswrmb +bdrmcjtvsnw + +zoays +isyzao +flyzsoh +sziyo + +mth +mx +vpwyd + +gyoarlze +uziptwenxl +aroezlv +eclkz + +cevajtinmwfoukhsdzpyrx +sjtrelpfmgxdzwkbch +pcfjrleqxkzthsdmw + +siwrzbtkpgcy +fpsobikx +xsipkb +pkudsbi +ksbdnmphxi + +rt +it +ptsknv +jt + +zcxwh +rcifke +chz + +jbadzfryviqumgsxcel +vghfzqrxcmebyid +egyzfbmtqrhdixvc + +qundsy +nyquds +snyeduq + +dyxm +y + +xczlmdvehwarin +dmxehrcviazlw + +qhzsntxcl +hewbptlv +trwlihs +kgljmtudha +hloft + +zugp +plugh + +n +n +wen +n + +ajnpdutlwqrm +rkjmqgauwlndotx +umtajnqdlwker + +rkfgeadhcoxzwtbqnjusilymp +fbnrpwixalqzeskytgcmjoud +nuomgcwzbyjqipfkrdaxtlse +ykjbeigafqodmsxwcztlnpru + +sgpxdjumiwhetbl +wagnkvylcmqrzxf + +qpwdnblezgkcas +pzalvqnfebcdgksw +wclkgspdbqnzae +sgebqadzwclnpk + +hsdvxqrbegzpuak +zvaprehkgdqbusx + +trhxk +rokh +uhkr +rkh +htmrkp + +ayjmlkhqefvrgiobswpzxut +kgqdnvslwhpxjmryuaezto + +xdnobmsceipwgyqtvkazlu +jzyougkeavxtmslficqpdrh +aieoyslqxgvhzfdtkupcjm + +oekdcqtvhfsmwylaziubgjx +cseyloawjthviqgudfkbz +agqkrlebidofhtwujzyvscn + +ou +oy +oa +you + +kjrzmptbna +iacpmjzkhulot +pmjanvkzte + +rpdqax +apdrnziqb + +mochksjz +chzskmjo +cmkzhjos +cjkshzom + +braqipxm +pbamxrq +maopqrxb + +sezkqwtljnoy +stlnowkejqzy +kyeljtnaqwdzso +sleznjotwyqk + +a +r +c + +ymuxdtjlsovq +kdomytxrqlhsjun +xoylgbdstzjqmu +spxqoytmujld +lxtsmocuyqjd + +wktsrjxdlizaefqbo +zjbxldwsqfoaertik +lqwktdoesxfijbrza +fkbshvtexolqrimajwd + +rplog +jifvbd +hus +zpaymx + +dljqhy +mshry +iahwgyt +lzhjkebyq +rykph + +o +l +l + +rcxhypj +jxhrcpy +cvjwhxyr + +k +k +k +k +tk + +nckmsaqbyu +amsqutbkcny +qvkausncybm +xkabdomuqyncs +nbmsuzkyqica + +fmykuezs +ymwkzspfrug +isyfuvmknlz +mfyknzivslu + +zjegqtakx +eztjkxgamq +kozgqxjiate +aoegxjztqk +evazknxdgjqpt + +vgsxdnkjbfhiaetcprluo +dtnuvboigfpehkslxrca + +cwomixyvlubhk +oaqsvyfhgxzenjdt + +zfm +mz +hixzmusvwrae +mz +cljzomp + +aimzewnqpdfy +hwqfnrpjymatid +pnweyqagxmifsd + +jagrtqsikbnm +takgijrnmbsq +tqkasinmgrjb +kgrajsmtqbni +njbtigamsqkr + +us +su +su + +oxdmjrcfluiwyz +zqkmrgditwhocxfj + +nmdwq +uwdqkvn +jrneyiwoxat + +o +o +o + +thqpmc +tzlqhbep +qpeth +wnjtdqvashgpo + +forgjwbimycezkaqsuv +evsarxjwikbyguqofczm +kmciyqvrgubsjazefow + +dnzjkpraybifesmgt +gbnpizsfaetdryjmk +tedmfpsajrznbiygk +bjypsrntedmkiagfz +ptugzdvlaeynbrimjkfs + +ahgfxmszervkt +khnfsrdwexgzicm +uoehlpmxyfrgszb + +a +a +qa + +bscjlkuietnfmvhqa +zpmdysghcukrxwql + +ybxngswmtzlv +tlrnfwbsgzxvm + +szdfxgvuiyjkola +yfkgxdzisjlmau +fujmxskalzgidy + +slgcrih +rqhgl +ctrylh +zaholrxk +ldqihr + +c +z +a + +l +ol +l +l +l + +yijuzlomvp +mojpuylivz +ozvmpyjliu +zvjulmpoiy + +inxdohsz +zosindxh +qxnhsizdo + +nwxljyekmazfbh +akwzqbylxdirjomg + +kowimsdrbjcnxtauhpzel +mucayqfvogjwelnhtr + +d +d +d + +spnrxclg +kcnprgsl +lngcvrsp +grnelshcp +gnizpcjsrl + +cshdbjovlfnkaezmwqipt +tkdpzrfiwhcbmveonlaqs +wsmpkrlhvbieaonzdqtfc + +mjlotdgyzucrxnkp +oyxumpbjngrldftkz +lrtzmxjsguknoypd +xmqrugyntjkpdzol +kyojtmrpgudxznl + +cwvpnuyjxelgkabi +ajliexnugckvpbwy +xiebpgvnkwlayucmoj +vlgewuabjkncxpyi + +cngbduwxzsa +vbdjnpaczu +zkjcandobyu +boacduknz +jcnuadbmzvp + +armxudckhoyjqbtli +kcynhliroatmuxbqd +abcroqxklidyhtm +hlcmaxobrktydeifq +lkqxichayojdrbmt + +slthvjp +tsvhp +sjhypgitv +petvzhs +svhipt + +xzmcwdjlnqtyboak +dhwyjfxlqckmtozanb +bczotlnmdkwaqxyj +wqtybjxamkzldhcon +qtnmgwdcyoakrvbzxslj + +gyrolihnftx +ywlhbxfoumigr +dfoihgrapeuxyl + +juredoybhpalsxkmztwvgnicqf +yzuceqoikxgvpaflbrdjmwhstn + +mhwkugfvsr +syicghpunw +snphygwuc +nusgwh + +nxystlabuqzcfwdik +ucyaztnkdm +zgcrndkatyuh +oadutnkzcy + +rftpkiwz +fwkczpt + +kwbpsjlvhrcumifgeaxn +fbxgslwjmnucrpkeiav +evikuwganplzrbxfjcms +mfripxsbvaeckuwlgnj + +xlsekqbnoj +keqjlxsoib +gojbxelqsk + +tduwp +udt + +fyivbg +age +lnpckwdumgoszq + +vtdm +dmtv +mtdv +mtvd + +sxqcuwzdlpter +uzpesxlrqdctw +dcfmszreptwxqolu + +mlbezcfirsxnughtpajvwdq +eswufgarhxmdvcybiznljt +umgbwcadfiovrxknhszlejt + +hoif +wrdvuxj +kgloem +bmngy + +ta +ty +fsgnmtbq + +wzucbvdygxeparqhslomjif +rulbgvdpsmzihjqcwfyoexa +glaicvjyhdwmupsebrozqfx +qloepvwjszdahxbufykmgcri +aqjexmwyuczgdhropibvlsf + +lsdikhoarexcmu +ygdjrhzmku +hkpjdrmub +bhukrdgm + +xyrohb +eg +p +e + +eqnbpzlhmxskrfy +xtguwjadpciv + +k +tb + +ipoyng +phqfxkeyg + +mqfpoj +mojfqp +jpmofq +jqpfmo +mojqfp + +tsjrguiplcqnwxkdhfo +lspukzenrgfhtqxdwoj +ofxgqlduwnptrkjhs + +a +x +u + +bfpdkihjuz +nqvgjyk +olkjy + +zdkwbghexisn +izwngysbdxhe +dsebogwihxnz +zhnxepwgbsdi +snzhwdxegbi + +koupnhmi +spkmut +pgutkm + +qcytokhmwdarzx +pktnxglqrsz +rekxjqbuzsti + +vluoh +abhoulv +vhuodl +uovlh + +xpqhfuimjzstyecvgla +mfcgetpuhyzvljxqska +itlyxguqmfahsecpvjzn +xbgrtoazjulhscypemqf +tjplsvandfzyemqcghux + +oudlrfq +qofrdulz + +cqaxm +mdyibnoxe + +pc +cqm +lrovgwjh +xbzt + +r +r +r +r + +wenypm +tvzkqaihjrldusbcof + +qsjnkitvmogydzul +bzqwxkg +zceakgq +cqkpfgzx +kzqrhg + +xjk +kxj +jxk +xkj +xkj + +rpjwnm +rpwnm + +foixgd +xdgsi + +ldiwcrqgfztuonyespmjh +cendtkpwuzoyfsgjharqi +qztuedonysxfcwghjbrip +cgtijqzbefnpovuhrsydw + +hnuojmr +lmhnuj +urvhjman +gnuxpmchjk +onumtjhy + +mksn +qjsolvyktu + +jixlamkwrcotzfvnyup +uwndpoetkfxzqcvgras + +mlurhwbpezjgayoki +gjwcheubrlpkyozxm +eysbprwjcukldohngmz +oejmghpxkybzurldw +goplbuhrymwekjz + +gdi +v +uao +h +j + +eotq +yrfz + +xf +zxfp +xf + +jvcknhizeyopx +abgfs + +xdhnia +tdhiaxn +xihnda +hdnxia +ahxdni + +cvfuohwdqmsj +usjvqohdcmw +qshwovcumjxd + +ewcxpunrfo +ncfxeupowr +neucwxprfo +onxewrfcup + +h +h +h +h +h + +etqny +tiuoqws +vbfyqtzd +kaqxmthgclp +jrqtu + +tkylicfwajbmqz +aqjwctliysokxfb + +pohmrbxse +rspxeimobh + +topbkx +akoxr +oxbk + +rfixzuqejpco +orecijpuqfx +rixqejofucp +fpurciqoexj +xpqouicejfr + +irvl +lv + +jlbtmhk +tjahe + +fycatxuj +efmsru +vgbzwolufn +fduyp + +qpovf +oupvq +pvobkq +qzoplv + +uvbzsmd +szdrobh + +sohcdqkxlb +kbdoq +qdbkzo +qknodb +qodbk + +wlikpav +plnwzvreak +klwjovpa +ialpwsfvkj + +nzswdxachlvukeyprbqtmo +aulktbvnzwoyehxmfcrqps + +cdbrvskoujqzlyxpfi +pkljysocqvdrbueixfm +ibsyupvkfjxoldqrc +sprcluoxbfkdjqyizv + +dulfhtqpnszabcx +ptibcnahdurlsfqx +dxfaqcpbhstlnru +bdxtfvmhlqasopnuc +satpglqhfbcxudn + +fwmnrayciqxujegtlhzsk +gyakijxmslrzwtqncuef +rilkmgtxfwjszqanyceu +hwmnsizfgqltyarjkcuxe +pxutjdwsclbgfrmnaeyqkzi + +cdgvmqewjhobyt +cibsqlxrk + +vzncysgojwrfqxi +pgivscjroxnqwfyz +zrijfowgsyvxnqc +qygjhbnwfxozlvicsr +oisgwxvnrjycfzq + +bzgdqm +mgdfz +gzmd +dmqkzrg +mstzlidjg + +lqfnedzwckxuamrsbhjip +pzilqrxtfswogecdav + +s +s +z + +wm +wm +wim +twjqm +wim + +lrxagomjwhncfy +hbfdjsolgymarwcx +amuhoclgvfpzwxjryi +nlfmwoahdgrjxcy + +ux +a +mwzc + +xhsapcqjkum +vdkquacsxijpmt +hpajmqklcxsgu + +rymaftlzunxocwhgs +uxtwrncsfzohpgyl +yohwnrtzfkcgsulx + +hzyflavwpnexbgr +lzvfhgrxpebwa +gzphbewafvlxr +evgxhzbrpwlfa + +baygtmsorczixvejfh +zgrjmytxefabishcvo +jyvxgofmarisctwehzb + +ozbwxdfakrthqc +kcxftawdrobqzh +zqxahfdrtcwobk +xczwfkaqdhbort +akxfztqbrohcdw + +cklb +kc + +iaymow +muwoyi +mihywo +yaouikwm + +drtlioynkumajzshbpxcvq +wdovutrflknzbmqchpsygje + +aunct +jtasuf + +otybmvxqkeianrhpsw +zkaphbuqxoywtvrei +hlwkrtifbqyoaevxp +rvkhasoxpebqwtyi + +mqpynkuoteafwcszhdxrg +tuxkcrypafgbqmnohsew +uymgxcnqeakwhfptrso + +nb +k +u + +oacmsvdy + +tlgeajvodcspqmnrzwixkhyubf +lqhrinwycugfopbstjkezmxd + +bajwthnox +phbtjna +kicnbjtfaeh + +upcd +rcuds +cupnd +dcpu + +usodtpgbxrleizwcnfvhakqy +fhungotvpyrxdjkqziemcbla +vlkezrqchjdbagfouityxpn + +enlctogvyz +vczpwdgsoyqljknbrmt +lcnvyotxgzu +flgnvtyozc +tzcyvneolg + +z +t + +kzgwrn +wzrisnk + +fcznyxtwa +wczxnp + +modnyjbvgzck +zncvfomkdbgyj +mbcgyozvkinjd + +lpyvkoawcigmszdhunrtj +oygwlmuhvjptzcrksinda +pudhgtjkwaclsivmnryzfo + +av +ajh +avt + +apondg +ngvef + +ipxhv +wqdivtpxl +irvx +xiemubayv +irxwv + +othvi +vehz +hvxldcez + +gcwksjv +euxzbwgyfkjc +ksjgwc +kjgcw + +vsmpidclexktgoa +xpkdcgmsetloa + +wmbphlzfisxg +tovkbqyzsfpl + +pegjkcnywbhr +lzkgjbenxwaqyc + +vnfgtzw +ouhvagqycpsdtlwikne +vwbzgnt +nwvmbgt + +uzvjphxfcqg +piqjfunmaxvkzes +ufpjzxvq +vzxfjgpuq +puhjfvzwdqx + +gcn +cgn +inegk +nguc + +nrtl +ldthqxi +thl +dhltp + +lqopsckhyjtw +kaqxicgdzywevfbu + +lpodcxkyjevg +dvklycxgwpoeq +pxelgdcoykv +covedbykglpx +brpcyexidgvkol + +tapwumcjxbeok +jvaxthlypumkibce +xipmyuecatk +ectpdamxzquknh +umxarptcgeks + +dhabkrtxyepluofsqn +yfluxizrmepchjndsvak + +j +se + +gahmztkwboqelpiu +tlhqpmugawkoxzif + +tsquf +qstf + +qalg +zcij +wsgvl + +wdbrxt +wltx +wlxt +xwlt + +ovfegbwyxdq +bwxqdmygtevuz +gqxwdyvbe + +ohx +oht +hrzo +hto + +cxfg +jxf +ifx +lfx +xf + +yguq +gqyzu +oqguts +qgu +ugq + +dchajzrwvkptfmsi +zkrhavifwtcdsjmpx +vtfpsckaimwrdhzj +zpmscahjfvkwtrid +dzawcriphmskvjft + +ebmwykdnfpqzlursx +lcfhzqed +vlzfqaed +elfizqd +ofqehzdl + +fhyzodpvjg +dgwjybzov + +pfbzsvrw +vbspwfz +vanuzbpwfds +sbzpvfw +wpvftzbs + +sjtvukw +wscktjuv +ustjkwv +jtwgukvs +uwtvnskj + +ylkne +jetb +reo +lpeor + +sutbnz +dnts +tsn + +riyn +riy +riy + +ygbzxlwfrp +lxpwyfgzrb +wrlzbxpgsyf + +slbkhm +lbmschf + +u +u +u +u +qu + +lmdnixreobwgkz +znigbyrdowxmekl +emolgxwrkidbnz +edbmlonrigkwzx +kdbzworeigxmln + +wbvohcntuzgkiqle +kjzvybxedwnpfrtc +ktjwcmyvnsbez + +bprfjknlqxszmody +nlxfmpzadjosrbqye +fbmsaujxdirztyopwqln +pnxqsmdhgoybzlvjcf +fomtripxnljbdqzys + +kcpygiesudlbvtfzxham +nrdlbxmgeaczitjuoqhw + +dg +xnkt + +bfwdtrizlpheavuyqnjos +ubydfogztjraphnevswilq + +w +w +ew +w +w + +a +xd +aj + +gbdzh +dglqr + +vudclgx +dkjhwel +lrtsydb + +gxzqm +oin + +yzpuwnrosctjgivd +bgwmfkslpden +pmasgdnewq + +nle +en +ne + +hbkdavilf +bloxksadhvi +hvjbudailk +ivhjladbky + +vdscgflymnxubrjqaptwi +tmgphwfsnikcruzbvejqyo + +zbplsicnrh +glczrbps + +brntwcqvh +nbqhctpwvr + +va +prbzmhv + +l +g +q +p + +jfu +qjovgdfmu +fju +ujf +juf + +nhajypktod +hjietodnscxfk + +rxvemgzo +woxmskrgyn + +bgra +egrab +rbga +grmvqba +gabr + +oblcizsupdm +dxuolpbzrmic +lpbucidzom +plbzmodicu + +suivo +v +pnvt +wv + +c +uc +c +c +c + +afu +a + +ow +wo +wo +ow +oewu + +m +iqm + +fatyhbmqngwcepkor +lpixamknzesdvjo + +tgkqb +mikub +kb + +oad +doyafpkh +mshkdco +sowd +qidberovngj + +kaqvlfyijdozbt +rqwsbfhoavzt +atqfszvrnob + +svqrgkwuilhzxcmpyjf +yihumlabkroxzcqswg +xushykmcqzgtilwr +ukwhlqsgirnxmyzc +kgdrwxmlzuyicsqh + +xgcvbqyzdtn +bxzvqdytgcn + +tejri +jte +etj +etj +jte + +ismgw +wigsm +gsdmwpi + +kdhuyt +ypkhd +kdhy +kohdy +hydk + +tseoqvwhuxbr +ldykeurcijnfh + +ab +ba + +ocm +omcp +wzjmfto +mo + +vuzyadlnrgbos +zojynudrsav +dctmqfyevrixhpuzkans + +kwm +k +k +k +k + +sexvtzkumgnrl +wxdfeiocglqnhmsb +mnvaelgxksr + +numlhsatpefgdxrwjc +tpgfejhnrdmlawcxs +xdwracgsthmlfjpne + +jfnlsprcqha +alzqjcnsrhpf +hlfjrqcpna +qacrflhjnp +tcimfrdnhlqwxyjape + +bihwtnofygkmlrasjp +nkmzwhagborfsjipu + +mbh +hmbo +qwjkvhziclput +mrhb +yxhe + +blqgwcin +amxzqdwpbrhonyci +neqcbiw +wcnfiukqvb +ciekwbtnqg + +ezsxhnrctpayukgfl +uhfcxpyltzngksre +xfqcpntyzuglreshk +yxugczlrstkpeafhn +nplzeygrhtskfxcu + +bhu +hm +h +xh + +o +o +o +o +o + +zfeyitdlxj +jeiqgo +gjevqui +eoikrsj + +eci +ice +orwbites + +linomaq +mnqagilo +qimlnoa +nlgmquio +lirmnqvho + +gvqiyfphlxbwcotrszame +iberhzpovmxwytqlcfsga +wzsyatgrmilpfbhocqxve + +qykaloifucdmsxh +dilsfxmyurjqab + +fljib +wuseoqk + +kryuaec +hkuap +ivkzwltojugf + +emrywzsgpkqtjuav +kphozgjyrqsmavwt +vjketymzpawqsgru +zwrhvjyqakgmspt +qkztgyrjavdfspwm + +cufk +juck +wcqkd +kcosr + +wymkfrvugb +brgkwvymu +brukgswmy +pmykbwugr +rugnkmbyw + +cfzsnlvougeb +krhatewdigj + +a +jw +w +vkml +w + +mbzltykicoxgnqjs +jkbyiqcnmzgoaxstef +bpghumytxjizcskqno + +ckq +qkc +ckq + +crygfszhdx +xrzopcyhsd + +eshnuqkyid +fvhdutyzec + +y +y +y +co + +opifqrgwclbka +ugqoibrawck +caqufogmbipkrw +gswcojayirqhbk + +kptv +kprsal +vslga +wi +zfcqhej + +mgxrjbkqpycvodwzsiet +zwqkdbjsmtpeygvc +qewtzbghpydcmvksj + +bnteshjdfwpl +plcrqhdxn + +xezumahpsktiwjylq +sjytilphzaqeuxm +eulximpazqsyjht + +wofatncugil +prd +p +shx +exsj + +rbsyhmqilpuz +hkjaotxcfe + +rvpdqnkbyshltegifxja +vseaxdyqiktjhrbfnlg +lxbtgqjaesyifvkndrhp +laqyivwjmsbnxfdrktzgech + +khmoucji +umkiohc + +axnjc +acsjnx +nxawcj +cxanj +nawjxc + +qhjtuv +uqvjt +jqtvu + +odbruemawlviy +vwgery + +qnlwkidepuh +ldqnkuefhw +lthxdewqjkugaons + +lctym +ycqthox + +moej +ojeuz +joe +djyeo +eoj + +fwdeqrzicj +dcrewjzifqg +qmcjfiezpwrvd +ncwzqrdijfe + +kaczplh +khxaplyc +uhbdnckolaqgjp +vhlrswcapk + +envxjbidtrkq +bdkyrxntvizqme +psrkdftwxqbnevli + +b +b +jg + +j +byt +hfsw +t +iy + +uexapjs +caxdepujs +suapejx +pjsaexu +useajxp + +qiuotlgvewkfbx +eiovbxuwdtkflgq +uwkiqvbrgpflte +gfbvweihkqtlu +kulgiwfqebtv + +ekd +dke +vkde +kemdg +dek + +kmhfyos +fkyhsmo +yosfmkh + +arubwxqszlvmhndtfygpi +dpfvlgsytzqxnhmwabuir +gvaiutxnbydzwqprfslmh +wtgszuandpiyrbfvhmlqx + +prkfqibx +fkrqxbpi +rpixfbqka + +cmthfprlzxvg +chzgaxjkpwrl +dhybeprslocun + +pdrc +rpcd +dcpr + +nsi +vlsig +ins +si diff --git a/2020/inputs/day7 b/2020/inputs/day7 new file mode 100644 index 0000000..0dd7d3a --- /dev/null +++ b/2020/inputs/day7 @@ -0,0 +1,594 @@ +dark maroon bags contain 2 striped silver bags, 4 mirrored maroon bags, 5 shiny gold bags, 1 dotted gold bag. +dark coral bags contain 4 pale blue bags, 3 wavy yellow bags, 4 vibrant tan bags, 3 striped purple bags. +striped aqua bags contain 1 pale aqua bag, 2 muted yellow bags, 4 pale maroon bags, 2 shiny coral bags. +wavy coral bags contain 4 pale purple bags, 2 bright olive bags. +bright aqua bags contain 5 mirrored purple bags, 1 dull maroon bag. +muted plum bags contain 1 dark beige bag. +pale cyan bags contain 5 dull gray bags, 3 posh olive bags, 2 striped silver bags. +muted aqua bags contain 3 muted black bags, 2 posh cyan bags. +wavy fuchsia bags contain 5 light gray bags, 3 wavy beige bags. +plaid orange bags contain 2 vibrant bronze bags, 3 pale silver bags, 1 shiny blue bag, 3 plaid maroon bags. +dotted salmon bags contain 2 clear lavender bags. +dark gray bags contain 3 plaid gray bags, 2 clear yellow bags, 5 posh gray bags. +vibrant aqua bags contain 4 posh salmon bags. +mirrored yellow bags contain 1 drab turquoise bag, 5 drab teal bags, 3 light cyan bags, 5 wavy gray bags. +muted indigo bags contain 2 pale cyan bags, 5 striped brown bags, 3 striped red bags. +striped white bags contain 4 pale maroon bags, 4 dull yellow bags, 3 mirrored white bags. +light beige bags contain 3 clear cyan bags, 5 dull gold bags, 4 dark olive bags. +mirrored turquoise bags contain 3 dull gray bags, 4 muted turquoise bags, 4 dull indigo bags. +clear lime bags contain 2 dotted salmon bags. +dull tomato bags contain 2 dim beige bags, 1 dotted brown bag, 3 faded magenta bags, 4 faded gray bags. +muted red bags contain 4 dark orange bags, 3 light black bags. +bright olive bags contain 4 pale green bags, 2 wavy red bags. +muted cyan bags contain 1 mirrored lavender bag, 1 shiny blue bag. +faded red bags contain 5 bright plum bags, 1 dull violet bag, 4 pale yellow bags, 3 pale coral bags. +shiny white bags contain 2 dark beige bags, 4 clear aqua bags. +dark tomato bags contain 3 pale yellow bags, 2 bright red bags. +clear bronze bags contain 1 dull salmon bag. +dark violet bags contain 4 dark purple bags. +dim indigo bags contain 5 plaid gray bags, 4 pale maroon bags, 2 bright maroon bags, 3 dark fuchsia bags. +striped beige bags contain 1 pale olive bag, 3 shiny purple bags, 1 dull salmon bag. +bright yellow bags contain 1 pale gold bag, 5 shiny maroon bags. +vibrant plum bags contain 5 dotted yellow bags, 2 plaid white bags, 5 drab red bags, 4 clear lavender bags. +clear olive bags contain 3 mirrored magenta bags. +bright lime bags contain 5 mirrored turquoise bags, 1 clear plum bag, 3 dull aqua bags, 1 drab green bag. +bright tan bags contain 1 vibrant lavender bag, 1 vibrant salmon bag, 1 dim green bag. +dull gold bags contain 5 dotted lavender bags. +dull crimson bags contain 5 shiny tomato bags. +dotted tomato bags contain 1 dark coral bag, 5 pale plum bags. +shiny gold bags contain 5 muted orange bags, 2 faded tan bags, 3 faded orange bags, 1 dull brown bag. +bright blue bags contain 1 plaid cyan bag, 4 dim magenta bags, 2 drab magenta bags. +shiny tomato bags contain 5 vibrant aqua bags, 3 clear tan bags. +pale silver bags contain 4 wavy orange bags, 4 dotted green bags, 3 drab silver bags. +faded indigo bags contain 5 striped gold bags, 3 clear olive bags. +faded gray bags contain 2 drab lime bags, 4 clear maroon bags, 1 mirrored silver bag, 1 shiny brown bag. +faded magenta bags contain 3 dim gold bags, 5 wavy lavender bags, 3 posh brown bags. +bright coral bags contain 3 drab tan bags, 4 pale beige bags, 4 clear turquoise bags, 1 faded white bag. +plaid salmon bags contain 1 striped tan bag, 3 pale blue bags. +drab aqua bags contain 3 wavy turquoise bags. +mirrored silver bags contain 1 dull brown bag, 4 pale black bags, 2 mirrored plum bags, 1 dotted red bag. +light salmon bags contain 4 dotted chartreuse bags. +wavy crimson bags contain 2 dim olive bags, 4 mirrored black bags, 4 faded salmon bags. +posh maroon bags contain 2 dark teal bags, 3 dim violet bags, 5 mirrored tan bags. +light lavender bags contain 3 vibrant turquoise bags, 1 pale orange bag, 4 shiny orange bags, 3 drab turquoise bags. +dark lavender bags contain 1 shiny salmon bag, 4 wavy cyan bags, 5 dim lavender bags. +shiny green bags contain 3 shiny brown bags, 5 dim coral bags. +pale violet bags contain 1 faded white bag. +dotted silver bags contain 2 pale blue bags. +posh olive bags contain 1 vibrant chartreuse bag, 4 posh salmon bags, 5 plaid coral bags. +vibrant gray bags contain 5 wavy yellow bags. +wavy brown bags contain 4 vibrant indigo bags, 2 vibrant green bags, 5 wavy blue bags, 3 dim magenta bags. +wavy teal bags contain 4 vibrant indigo bags, 2 vibrant turquoise bags. +mirrored black bags contain 5 vibrant turquoise bags, 1 drab salmon bag, 5 pale tan bags. +faded maroon bags contain 2 wavy crimson bags, 3 faded white bags. +mirrored salmon bags contain 4 striped purple bags, 1 vibrant black bag, 4 drab green bags. +faded brown bags contain 3 wavy turquoise bags. +drab tomato bags contain 3 pale brown bags. +dotted violet bags contain 5 plaid chartreuse bags, 5 shiny beige bags, 2 clear tan bags. +light orange bags contain 1 dull aqua bag, 2 clear silver bags, 3 bright tomato bags, 2 bright teal bags. +drab salmon bags contain 3 dark coral bags, 2 wavy brown bags, 1 striped purple bag, 4 dull gray bags. +dotted maroon bags contain 1 dark orange bag, 1 wavy brown bag. +striped chartreuse bags contain 2 striped yellow bags, 1 shiny orange bag, 1 dotted turquoise bag, 2 pale violet bags. +shiny tan bags contain 4 dim beige bags, 2 pale tomato bags. +plaid purple bags contain 4 light coral bags, 4 faded salmon bags. +wavy tan bags contain 2 vibrant tan bags. +pale lavender bags contain 3 dotted red bags, 1 bright green bag, 1 bright violet bag. +posh crimson bags contain 2 light white bags. +dark lime bags contain 2 plaid white bags, 2 bright gray bags. +light green bags contain 5 bright magenta bags, 1 light chartreuse bag. +light coral bags contain 3 pale black bags, 1 vibrant indigo bag, 1 wavy olive bag. +dark bronze bags contain 2 dim teal bags, 4 dark maroon bags. +light brown bags contain 5 dim white bags, 3 muted green bags, 1 dull white bag. +dim chartreuse bags contain 1 drab bronze bag, 2 mirrored maroon bags, 3 dark salmon bags, 5 light coral bags. +posh tan bags contain 2 plaid tan bags, 5 drab red bags, 5 vibrant salmon bags, 1 plaid salmon bag. +vibrant blue bags contain 2 dim turquoise bags, 4 plaid lime bags, 2 faded turquoise bags, 4 faded gold bags. +dark indigo bags contain 3 pale gray bags, 4 mirrored orange bags, 1 vibrant gray bag. +bright fuchsia bags contain 2 light cyan bags, 3 vibrant chartreuse bags, 4 wavy yellow bags, 2 vibrant olive bags. +posh white bags contain 4 light lime bags, 1 muted teal bag, 1 dull aqua bag. +clear blue bags contain 1 faded tan bag. +drab gold bags contain 5 mirrored beige bags. +posh blue bags contain 2 vibrant brown bags, 3 vibrant salmon bags. +shiny magenta bags contain 2 dotted fuchsia bags. +clear brown bags contain 3 posh olive bags, 1 drab silver bag, 5 dark purple bags. +muted brown bags contain 5 wavy yellow bags. +dim maroon bags contain 1 wavy crimson bag, 2 faded tan bags. +clear gold bags contain 5 dark aqua bags, 1 shiny coral bag, 2 dim fuchsia bags, 1 mirrored blue bag. +dull coral bags contain 4 faded salmon bags, 2 pale aqua bags, 5 dull aqua bags, 4 dull silver bags. +vibrant chartreuse bags contain 5 dull gray bags, 2 bright purple bags. +posh beige bags contain 2 dotted turquoise bags, 3 vibrant tan bags, 4 pale orange bags, 4 bright salmon bags. +bright white bags contain 3 dotted purple bags, 5 bright violet bags. +posh red bags contain 4 vibrant bronze bags, 4 wavy beige bags. +drab tan bags contain 2 dull indigo bags, 3 faded tan bags. +dull blue bags contain 5 dark maroon bags. +wavy plum bags contain 1 clear gray bag, 4 dark teal bags, 5 faded gray bags. +light tomato bags contain 4 muted red bags, 3 muted maroon bags, 1 dim teal bag. +posh purple bags contain 2 wavy black bags, 4 vibrant salmon bags. +dull lavender bags contain 5 posh tomato bags, 4 faded tan bags. +light silver bags contain 3 mirrored salmon bags, 4 pale yellow bags, 4 clear silver bags, 2 dim olive bags. +light black bags contain 2 wavy crimson bags, 1 dull salmon bag, 4 muted black bags. +light purple bags contain 2 vibrant purple bags, 2 vibrant aqua bags. +striped orange bags contain 3 clear aqua bags. +mirrored plum bags contain 3 vibrant aqua bags, 3 vibrant turquoise bags, 5 faded orange bags, 1 bright violet bag. +posh coral bags contain 5 drab yellow bags, 2 faded white bags. +clear tomato bags contain 3 shiny turquoise bags, 1 wavy cyan bag, 1 bright bronze bag, 5 light red bags. +posh bronze bags contain 3 dull orange bags, 4 dull salmon bags, 5 clear blue bags. +shiny crimson bags contain 4 drab green bags, 3 posh lime bags, 2 striped magenta bags, 2 bright teal bags. +drab chartreuse bags contain 1 wavy yellow bag, 4 mirrored beige bags, 4 dull gold bags, 5 dull plum bags. +striped tomato bags contain 3 plaid tan bags, 3 pale bronze bags, 4 dull yellow bags, 3 drab magenta bags. +wavy chartreuse bags contain 3 dim coral bags, 4 bright chartreuse bags, 5 pale plum bags. +posh chartreuse bags contain 4 dark purple bags, 3 muted magenta bags, 2 faded black bags. +dotted aqua bags contain 2 wavy green bags, 5 vibrant tomato bags. +dotted red bags contain 5 bright purple bags, 1 dotted gold bag, 5 mirrored magenta bags, 2 plaid indigo bags. +faded salmon bags contain 1 wavy yellow bag. +vibrant fuchsia bags contain 3 mirrored coral bags. +drab coral bags contain 5 mirrored brown bags, 5 dotted lavender bags, 1 drab bronze bag, 3 dim chartreuse bags. +posh aqua bags contain 3 bright olive bags. +dark chartreuse bags contain 5 plaid silver bags. +vibrant maroon bags contain 5 shiny brown bags, 2 faded black bags, 1 drab silver bag. +striped salmon bags contain 5 dark gray bags, 1 muted tomato bag. +posh gray bags contain 2 clear plum bags. +dotted gray bags contain 3 drab salmon bags, 1 dim coral bag. +clear aqua bags contain 4 dotted lavender bags, 1 striped purple bag, 3 light purple bags. +dark aqua bags contain 2 dark indigo bags, 5 bright bronze bags. +bright brown bags contain 2 plaid salmon bags, 4 faded indigo bags. +clear violet bags contain 3 pale cyan bags, 3 dull aqua bags, 4 pale brown bags, 5 dim plum bags. +wavy salmon bags contain 4 clear tomato bags, 4 bright bronze bags, 5 posh purple bags, 5 faded black bags. +drab green bags contain 4 mirrored maroon bags, 2 vibrant aqua bags, 4 dim olive bags. +posh silver bags contain 4 muted black bags, 5 pale cyan bags, 2 dark plum bags, 1 shiny bronze bag. +dull indigo bags contain 4 striped purple bags. +pale magenta bags contain 1 drab coral bag, 5 plaid blue bags, 1 wavy yellow bag, 5 dark salmon bags. +light olive bags contain 2 pale gold bags. +muted crimson bags contain 1 striped cyan bag, 1 vibrant bronze bag, 1 dull coral bag, 4 vibrant black bags. +plaid yellow bags contain 3 bright silver bags. +vibrant gold bags contain 5 vibrant tan bags. +bright beige bags contain 2 pale beige bags, 2 dark lavender bags, 1 dull teal bag. +faded white bags contain 2 pale brown bags, 3 muted orange bags, 3 dull indigo bags. +striped gray bags contain 5 pale chartreuse bags. +plaid brown bags contain 4 dull teal bags, 2 wavy beige bags. +wavy yellow bags contain no other bags. +dotted green bags contain 5 posh gray bags. +dull turquoise bags contain 3 faded coral bags, 2 bright green bags. +faded plum bags contain 1 dull fuchsia bag. +clear maroon bags contain 2 light purple bags, 2 dim crimson bags, 5 vibrant bronze bags. +posh green bags contain 1 plaid silver bag. +vibrant teal bags contain 5 dotted gold bags. +faded coral bags contain 3 dull aqua bags, 3 wavy orange bags, 3 drab chartreuse bags, 4 muted olive bags. +wavy beige bags contain 1 dark plum bag, 2 dull lavender bags, 2 drab green bags. +dim magenta bags contain 2 plaid coral bags, 2 faded orange bags. +striped teal bags contain 2 bright tan bags. +drab crimson bags contain 2 clear salmon bags, 2 clear orange bags, 1 striped yellow bag. +dotted yellow bags contain 4 dull gray bags. +mirrored tan bags contain 1 dotted fuchsia bag, 2 vibrant lavender bags. +wavy aqua bags contain 4 drab gray bags, 3 muted yellow bags, 5 shiny lavender bags, 2 plaid turquoise bags. +wavy gray bags contain 5 dim green bags, 1 plaid blue bag. +dull teal bags contain 3 mirrored black bags, 4 dark plum bags, 2 drab silver bags, 4 mirrored gray bags. +striped indigo bags contain 4 clear violet bags, 5 dotted yellow bags, 4 clear tomato bags. +dim brown bags contain 1 drab bronze bag, 5 shiny yellow bags, 1 pale olive bag, 2 drab silver bags. +mirrored teal bags contain 3 faded orange bags. +dull salmon bags contain 3 dark indigo bags, 2 striped gray bags. +dark tan bags contain 5 striped lime bags, 1 dark purple bag, 5 faded gold bags. +clear teal bags contain 3 dark crimson bags, 1 bright tomato bag. +dark olive bags contain 4 striped gold bags, 1 striped gray bag, 1 bright tomato bag. +posh indigo bags contain 1 mirrored maroon bag, 4 striped indigo bags. +drab yellow bags contain 5 dull teal bags, 2 plaid turquoise bags. +faded bronze bags contain 3 dull orange bags. +dull chartreuse bags contain 2 dull bronze bags, 3 light gold bags, 2 striped white bags. +posh orange bags contain 5 pale crimson bags, 1 bright blue bag, 5 clear green bags. +striped coral bags contain 4 pale gray bags. +clear tan bags contain 4 dark plum bags, 1 posh olive bag. +dotted tan bags contain 1 faded aqua bag, 3 pale brown bags, 5 dim chartreuse bags. +striped brown bags contain 5 dark black bags. +clear red bags contain 4 faded lime bags, 3 striped blue bags, 3 light fuchsia bags, 4 drab turquoise bags. +plaid gold bags contain 5 dim chartreuse bags. +plaid cyan bags contain no other bags. +muted tomato bags contain 2 pale blue bags, 2 shiny bronze bags, 1 light teal bag. +dotted crimson bags contain 2 dark maroon bags. +light turquoise bags contain 3 wavy orange bags, 5 drab red bags, 5 plaid yellow bags. +wavy cyan bags contain 1 dim magenta bag, 2 shiny blue bags. +dim coral bags contain 3 vibrant indigo bags, 4 vibrant turquoise bags. +dark blue bags contain 3 clear teal bags, 1 dim bronze bag, 4 light tan bags, 4 wavy indigo bags. +faded gold bags contain 2 posh salmon bags, 4 plaid white bags, 2 dull cyan bags. +vibrant turquoise bags contain no other bags. +dim fuchsia bags contain 3 shiny blue bags, 1 dark bronze bag, 2 wavy yellow bags. +muted blue bags contain 4 shiny violet bags, 5 muted tomato bags, 5 light salmon bags. +plaid bronze bags contain 4 dull green bags. +mirrored maroon bags contain 3 dark coral bags, 4 clear plum bags. +muted olive bags contain 2 dark brown bags, 5 bright white bags. +pale crimson bags contain 1 pale blue bag, 4 clear plum bags, 5 wavy yellow bags, 1 dotted purple bag. +striped crimson bags contain 4 muted teal bags. +dark orange bags contain 5 dark maroon bags, 2 drab cyan bags, 1 dotted chartreuse bag, 5 shiny green bags. +light white bags contain 5 faded gray bags, 1 dim beige bag, 5 bright violet bags. +plaid white bags contain 1 pale brown bag. +dim orange bags contain 3 faded blue bags. +vibrant green bags contain 4 posh salmon bags, 4 plaid cyan bags, 3 clear plum bags. +dotted beige bags contain 5 posh black bags, 2 mirrored yellow bags, 3 mirrored salmon bags. +dim black bags contain 2 vibrant cyan bags, 3 shiny turquoise bags, 2 dotted turquoise bags, 1 muted orange bag. +mirrored tomato bags contain 4 dotted plum bags. +dim violet bags contain 1 dotted chartreuse bag. +pale coral bags contain 5 dim silver bags, 3 clear gray bags. +vibrant lavender bags contain 3 dim bronze bags. +dark crimson bags contain 1 shiny brown bag. +bright orange bags contain 3 muted tomato bags, 2 pale black bags. +clear yellow bags contain 4 striped purple bags, 5 mirrored black bags, 4 posh gray bags. +posh violet bags contain 3 clear red bags. +plaid tan bags contain 1 pale cyan bag. +pale gold bags contain 5 striped olive bags. +muted lavender bags contain 1 clear crimson bag, 5 light white bags. +faded crimson bags contain 3 clear coral bags. +wavy blue bags contain no other bags. +faded purple bags contain 5 dark crimson bags. +dim silver bags contain 5 mirrored silver bags, 1 vibrant turquoise bag, 5 wavy turquoise bags. +pale gray bags contain 4 wavy yellow bags, 2 vibrant tan bags, 2 pale tan bags, 1 dark coral bag. +dim purple bags contain 2 striped silver bags, 1 plaid blue bag, 5 pale cyan bags. +striped purple bags contain no other bags. +plaid red bags contain 4 faded coral bags. +dull bronze bags contain 5 bright coral bags. +light teal bags contain 2 dotted green bags, 4 pale purple bags. +mirrored blue bags contain 2 striped silver bags. +muted green bags contain 2 drab red bags, 1 drab tan bag. +muted gray bags contain 2 muted coral bags. +light fuchsia bags contain 2 dim indigo bags. +shiny orange bags contain 2 bright green bags, 4 shiny lime bags, 1 striped red bag, 5 dull turquoise bags. +bright purple bags contain 1 striped purple bag, 3 shiny brown bags, 4 vibrant indigo bags. +dotted brown bags contain 2 faded blue bags, 5 shiny lavender bags, 4 clear lavender bags, 1 bright bronze bag. +light maroon bags contain 4 muted brown bags, 4 striped orange bags, 1 clear plum bag, 3 dull lavender bags. +wavy green bags contain 1 dull brown bag, 1 clear plum bag. +dull fuchsia bags contain 2 dark coral bags, 3 light coral bags. +dotted purple bags contain no other bags. +light plum bags contain 4 muted gold bags, 1 muted crimson bag. +light red bags contain 5 dull magenta bags, 2 wavy olive bags, 3 drab silver bags, 1 dim magenta bag. +faded green bags contain 3 dotted turquoise bags, 2 dull bronze bags, 2 muted green bags. +posh lime bags contain 3 faded brown bags, 4 wavy brown bags. +shiny black bags contain 2 plaid blue bags, 5 drab salmon bags. +muted teal bags contain 5 bright violet bags, 4 pale cyan bags. +light cyan bags contain 2 muted silver bags, 3 faded salmon bags, 5 shiny brown bags, 5 drab magenta bags. +faded beige bags contain 2 muted red bags. +mirrored aqua bags contain 4 faded silver bags, 4 dull maroon bags, 3 dull olive bags, 4 dim bronze bags. +muted silver bags contain 3 dotted cyan bags, 3 muted fuchsia bags, 5 plaid purple bags. +plaid teal bags contain 4 mirrored magenta bags, 3 dotted red bags. +bright teal bags contain 1 shiny brown bag, 4 vibrant tan bags. +dark red bags contain 3 wavy red bags, 4 dotted violet bags, 5 pale tomato bags. +muted maroon bags contain 1 plaid indigo bag. +dark fuchsia bags contain 4 bright teal bags, 4 dim blue bags, 5 vibrant lavender bags, 4 striped yellow bags. +dark white bags contain 1 drab green bag, 4 dotted chartreuse bags. +drab maroon bags contain 1 faded salmon bag, 1 dotted orange bag, 1 faded fuchsia bag. +dull violet bags contain 2 dotted tan bags, 4 pale cyan bags. +shiny violet bags contain 1 dull red bag, 4 wavy indigo bags, 1 clear violet bag, 2 dotted white bags. +posh teal bags contain 5 muted green bags, 1 dotted brown bag. +dotted teal bags contain 4 pale olive bags, 5 mirrored crimson bags. +dim olive bags contain 3 pale white bags, 1 posh olive bag, 3 striped orange bags, 1 striped silver bag. +shiny purple bags contain 3 shiny salmon bags, 5 posh plum bags, 1 striped white bag, 5 shiny black bags. +mirrored white bags contain 3 muted turquoise bags, 5 striped gray bags, 1 faded lime bag. +mirrored indigo bags contain 1 dim teal bag, 3 drab lavender bags, 1 plaid coral bag, 5 posh orange bags. +wavy orange bags contain 2 mirrored maroon bags, 1 striped silver bag, 2 wavy yellow bags, 2 dim crimson bags. +light indigo bags contain 2 vibrant cyan bags, 2 vibrant gray bags. +dark cyan bags contain 3 clear tomato bags. +dim lime bags contain 5 dull indigo bags, 1 wavy olive bag. +pale beige bags contain 2 muted red bags, 2 clear tomato bags, 3 posh olive bags. +plaid silver bags contain 4 dim plum bags, 1 dim beige bag, 3 plaid salmon bags. +wavy silver bags contain 1 plaid indigo bag. +wavy violet bags contain 4 posh chartreuse bags, 2 mirrored tomato bags. +clear beige bags contain 4 dark maroon bags. +vibrant cyan bags contain 1 striped purple bag, 4 muted black bags. +faded teal bags contain 4 dark blue bags, 1 pale brown bag. +drab gray bags contain 3 striped crimson bags, 2 shiny gold bags, 2 shiny magenta bags. +clear turquoise bags contain 5 light crimson bags, 4 dotted cyan bags. +plaid lime bags contain 4 dotted chartreuse bags, 2 plaid orange bags, 4 shiny fuchsia bags. +faded tan bags contain 5 vibrant green bags. +dotted indigo bags contain 3 light violet bags, 4 dull fuchsia bags. +muted turquoise bags contain 5 pale tan bags, 4 dim olive bags, 2 plaid indigo bags. +vibrant orange bags contain 4 dotted yellow bags, 4 plaid cyan bags. +drab fuchsia bags contain 1 dim plum bag, 1 striped red bag, 2 vibrant cyan bags. +clear green bags contain 1 dull magenta bag, 5 wavy blue bags, 1 vibrant olive bag, 1 vibrant tan bag. +light magenta bags contain 3 posh bronze bags. +dull black bags contain 4 drab bronze bags. +dull beige bags contain 3 dull lime bags, 2 wavy coral bags, 1 plaid yellow bag. +dotted plum bags contain 4 posh salmon bags, 3 vibrant chartreuse bags, 5 dim green bags. +vibrant salmon bags contain 4 dim purple bags. +mirrored crimson bags contain 2 faded tomato bags, 1 striped blue bag, 3 vibrant green bags, 3 striped turquoise bags. +dotted fuchsia bags contain 2 plaid coral bags, 5 dull brown bags, 1 dark maroon bag. +posh salmon bags contain no other bags. +dotted cyan bags contain 4 clear aqua bags, 5 plaid gray bags, 3 bright bronze bags. +mirrored bronze bags contain 3 vibrant black bags, 3 faded maroon bags, 1 drab coral bag, 1 muted black bag. +bright magenta bags contain 2 dim magenta bags, 3 dotted gold bags, 4 posh gold bags. +faded violet bags contain 1 light red bag. +dim yellow bags contain 1 dull orange bag, 1 muted purple bag, 2 faded indigo bags, 5 dotted plum bags. +wavy lime bags contain 1 clear blue bag. +mirrored coral bags contain 3 dull maroon bags, 1 striped orange bag. +wavy maroon bags contain 4 dark gold bags. +bright gold bags contain 3 dim orange bags, 5 dark gray bags, 2 clear fuchsia bags, 5 clear maroon bags. +dotted turquoise bags contain 3 dim olive bags, 3 light red bags, 3 dull fuchsia bags. +striped plum bags contain 4 dark tan bags, 2 mirrored teal bags, 1 striped brown bag. +shiny fuchsia bags contain 5 clear green bags, 5 muted tomato bags, 1 dark coral bag, 5 wavy blue bags. +vibrant white bags contain 1 dim olive bag, 2 bright silver bags, 2 muted blue bags. +dull cyan bags contain 2 clear teal bags, 4 plaid blue bags. +drab teal bags contain 4 clear crimson bags, 5 wavy lime bags, 4 plaid turquoise bags. +posh turquoise bags contain 5 plaid fuchsia bags, 5 pale blue bags, 3 vibrant green bags. +bright red bags contain 1 clear magenta bag, 4 striped aqua bags, 2 posh cyan bags, 1 dull salmon bag. +dark teal bags contain 3 dull yellow bags, 3 plaid white bags, 3 clear cyan bags, 4 striped red bags. +vibrant beige bags contain 3 drab silver bags, 4 wavy orange bags, 3 pale brown bags, 2 faded orange bags. +clear purple bags contain 5 faded indigo bags, 3 striped maroon bags, 4 vibrant plum bags, 3 light red bags. +pale lime bags contain 2 plaid blue bags, 1 bright violet bag, 5 faded bronze bags, 1 dotted plum bag. +shiny lavender bags contain 5 mirrored plum bags. +posh brown bags contain 1 drab yellow bag. +dark black bags contain 5 dull salmon bags, 3 pale silver bags, 2 vibrant turquoise bags. +shiny turquoise bags contain 3 plaid blue bags, 3 dim salmon bags, 5 dull gold bags. +dim green bags contain 3 vibrant turquoise bags, 5 faded tan bags. +pale maroon bags contain 3 dull fuchsia bags. +dull purple bags contain 2 vibrant aqua bags, 2 bright blue bags. +dull magenta bags contain 4 pale blue bags, 2 shiny bronze bags, 2 pale lavender bags, 3 pale chartreuse bags. +light gray bags contain 4 bright orange bags, 5 dull gray bags. +faded black bags contain 2 clear crimson bags, 4 posh gray bags. +plaid tomato bags contain 1 light bronze bag, 2 posh plum bags. +faded aqua bags contain 4 shiny gold bags, 5 pale tomato bags, 1 plaid blue bag, 1 faded coral bag. +muted tan bags contain 2 muted tomato bags, 2 light white bags, 4 wavy lavender bags, 2 dim turquoise bags. +dark turquoise bags contain 4 dotted silver bags, 3 vibrant chartreuse bags, 4 striped green bags, 2 dotted black bags. +dim lavender bags contain 3 dark indigo bags, 3 wavy orange bags, 5 faded orange bags, 2 striped orange bags. +plaid black bags contain 3 light violet bags, 3 mirrored bronze bags, 1 clear blue bag, 5 clear olive bags. +clear lavender bags contain 1 dim bronze bag. +pale blue bags contain no other bags. +mirrored magenta bags contain 1 vibrant tan bag, 1 wavy turquoise bag, 4 clear aqua bags. +shiny gray bags contain 3 wavy indigo bags, 5 striped gold bags, 1 drab cyan bag. +light bronze bags contain 3 dark aqua bags, 4 striped gold bags. +muted black bags contain 3 faded white bags, 5 pale crimson bags, 3 muted brown bags, 1 vibrant tan bag. +wavy purple bags contain 3 pale bronze bags, 5 shiny maroon bags, 4 dotted teal bags, 4 pale indigo bags. +muted orange bags contain 1 dotted chartreuse bag, 2 pale blue bags, 3 muted brown bags, 1 posh tomato bag. +wavy turquoise bags contain 2 drab silver bags, 2 vibrant purple bags, 3 faded tan bags. +dull plum bags contain 3 striped silver bags, 4 clear violet bags. +mirrored olive bags contain 4 shiny violet bags. +shiny teal bags contain 5 dim purple bags, 3 faded violet bags, 5 plaid crimson bags. +dotted coral bags contain 4 dull indigo bags, 5 muted silver bags, 1 faded white bag. +striped olive bags contain 5 posh tomato bags, 1 pale purple bag. +shiny beige bags contain 2 wavy red bags. +plaid aqua bags contain 2 muted teal bags. +shiny silver bags contain 1 dotted gold bag, 4 plaid tomato bags. +muted chartreuse bags contain 2 pale crimson bags, 2 mirrored black bags, 5 dark purple bags, 3 wavy tan bags. +shiny lime bags contain 1 light tan bag. +vibrant coral bags contain 1 dotted violet bag, 3 faded gray bags, 3 pale magenta bags. +clear orange bags contain 4 mirrored brown bags, 1 posh turquoise bag. +pale white bags contain 2 dotted gold bags, 3 dotted lavender bags. +dark green bags contain 5 clear tan bags. +pale olive bags contain 4 mirrored black bags, 1 dull magenta bag. +faded blue bags contain 5 dull magenta bags. +dull gray bags contain 4 vibrant indigo bags, 2 pale crimson bags, 2 clear plum bags. +dull lime bags contain 4 dim salmon bags. +bright green bags contain 1 drab silver bag, 5 bright bronze bags. +dim salmon bags contain 3 dotted silver bags. +dim red bags contain 1 vibrant green bag, 2 drab tan bags, 1 mirrored brown bag. +clear magenta bags contain 1 clear cyan bag, 3 light bronze bags. +dotted bronze bags contain 2 striped yellow bags, 3 dark maroon bags. +dotted blue bags contain 3 dotted tan bags, 4 muted violet bags. +bright cyan bags contain 4 pale turquoise bags, 4 dull yellow bags. +drab lavender bags contain 1 shiny green bag. +bright black bags contain 3 mirrored lime bags. +wavy black bags contain 1 faded indigo bag, 4 dim salmon bags, 1 drab aqua bag, 5 dull maroon bags. +clear gray bags contain 2 muted fuchsia bags, 4 clear yellow bags. +bright chartreuse bags contain 2 bright tomato bags. +posh black bags contain 5 dotted tan bags, 3 muted orange bags, 2 dim purple bags, 1 shiny cyan bag. +dull green bags contain 1 striped tan bag, 1 dull magenta bag. +mirrored green bags contain 3 posh salmon bags, 5 mirrored purple bags, 4 vibrant magenta bags. +dull olive bags contain 1 dim maroon bag, 4 striped gold bags, 2 shiny white bags, 3 clear tomato bags. +pale purple bags contain 3 dull salmon bags, 1 drab cyan bag, 5 bright green bags, 5 drab salmon bags. +mirrored lime bags contain 2 posh white bags. +drab blue bags contain 3 pale tomato bags, 1 shiny plum bag. +dim plum bags contain 2 vibrant indigo bags, 4 faded orange bags, 3 wavy cyan bags. +wavy magenta bags contain 1 muted fuchsia bag. +wavy lavender bags contain 3 shiny lime bags. +plaid beige bags contain 5 bright beige bags, 4 pale black bags. +mirrored gold bags contain 4 muted salmon bags, 3 striped black bags, 3 dotted red bags, 3 dim orange bags. +clear salmon bags contain 1 striped turquoise bag, 1 muted silver bag. +vibrant purple bags contain 5 vibrant aqua bags. +pale turquoise bags contain 4 wavy maroon bags. +dull brown bags contain 5 dotted purple bags, 5 vibrant turquoise bags. +drab lime bags contain 3 dim magenta bags. +vibrant black bags contain 1 drab magenta bag. +striped silver bags contain 2 shiny bronze bags, 5 striped purple bags. +dim turquoise bags contain 2 pale brown bags, 4 bright green bags, 1 drab salmon bag. +shiny red bags contain 4 light purple bags, 2 dull orange bags, 4 striped magenta bags, 3 dull red bags. +dotted magenta bags contain 3 faded silver bags, 3 dull purple bags, 5 dotted tan bags. +dotted lavender bags contain 2 vibrant indigo bags, 1 clear plum bag. +shiny indigo bags contain 1 dull lavender bag, 3 vibrant tan bags, 4 faded lime bags, 5 drab tan bags. +striped violet bags contain 1 muted tomato bag. +muted salmon bags contain 2 light cyan bags, 4 dull tomato bags, 2 pale chartreuse bags, 1 dotted gray bag. +mirrored fuchsia bags contain 4 faded silver bags, 4 plaid gray bags, 4 dotted purple bags. +light aqua bags contain 4 striped gold bags, 1 dark blue bag, 3 dim red bags, 2 wavy gold bags. +dark yellow bags contain 2 pale gray bags, 1 shiny blue bag, 4 faded turquoise bags. +striped fuchsia bags contain 4 muted magenta bags. +clear silver bags contain 2 plaid purple bags, 2 plaid indigo bags, 1 muted orange bag, 3 clear plum bags. +posh yellow bags contain 1 posh silver bag, 3 dotted gold bags. +dark magenta bags contain 1 drab violet bag, 2 bright purple bags, 4 shiny coral bags, 5 striped tan bags. +bright tomato bags contain 1 dotted purple bag, 2 dotted chartreuse bags, 2 wavy yellow bags. +bright plum bags contain 1 bright blue bag, 2 faded orange bags, 2 dim coral bags, 3 dotted cyan bags. +shiny maroon bags contain 3 dotted crimson bags, 5 bright teal bags, 5 dotted fuchsia bags, 4 dull green bags. +pale yellow bags contain 4 muted silver bags, 4 dull teal bags, 4 muted purple bags. +plaid fuchsia bags contain 3 dull lavender bags. +clear white bags contain 5 light turquoise bags. +striped lavender bags contain 2 plaid lime bags, 4 dark white bags. +posh cyan bags contain 3 faded coral bags, 5 light maroon bags, 3 faded indigo bags. +faded lime bags contain 2 wavy yellow bags. +striped red bags contain 1 plaid indigo bag. +light tan bags contain 4 wavy blue bags. +vibrant violet bags contain 4 striped purple bags, 4 light cyan bags, 5 faded tan bags, 4 light yellow bags. +dotted gold bags contain 4 vibrant indigo bags, 2 bright bronze bags, 2 drab silver bags, 5 muted brown bags. +shiny plum bags contain 1 faded lime bag, 4 faded orange bags, 2 vibrant beige bags, 2 striped orange bags. +striped cyan bags contain 5 clear beige bags. +striped yellow bags contain 3 dim teal bags, 5 clear maroon bags, 1 light cyan bag. +muted yellow bags contain 3 drab bronze bags, 2 pale gray bags. +clear indigo bags contain 1 clear beige bag, 2 bright silver bags, 1 dim salmon bag. +striped green bags contain 1 mirrored red bag, 3 shiny blue bags. +plaid plum bags contain 1 drab cyan bag, 5 light lime bags, 4 muted lavender bags. +pale green bags contain 2 dotted chartreuse bags, 3 plaid magenta bags. +wavy bronze bags contain 2 pale purple bags, 1 pale teal bag, 1 muted bronze bag, 1 mirrored beige bag. +clear black bags contain 4 vibrant brown bags, 5 pale tomato bags, 4 bright teal bags, 3 wavy brown bags. +pale fuchsia bags contain 3 pale beige bags, 5 plaid blue bags, 3 light violet bags, 3 striped blue bags. +vibrant magenta bags contain 5 posh plum bags, 2 mirrored turquoise bags, 2 light red bags, 2 pale plum bags. +drab olive bags contain 5 vibrant green bags, 4 dull turquoise bags, 4 muted fuchsia bags. +bright salmon bags contain 1 muted silver bag, 1 drab purple bag, 5 pale cyan bags. +shiny coral bags contain 4 wavy magenta bags, 5 dark olive bags. +mirrored cyan bags contain 3 dim chartreuse bags, 4 pale aqua bags. +plaid blue bags contain 5 bright purple bags. +vibrant tomato bags contain 5 faded tomato bags, 3 muted silver bags, 5 dotted turquoise bags. +mirrored brown bags contain 2 pale black bags. +shiny olive bags contain 3 plaid teal bags, 3 vibrant fuchsia bags. +shiny blue bags contain 3 dark coral bags, 4 bright purple bags, 2 pale cyan bags, 5 plaid indigo bags. +plaid crimson bags contain 5 wavy crimson bags, 5 clear crimson bags, 4 vibrant red bags. +striped black bags contain 1 faded chartreuse bag, 2 dull brown bags, 4 clear cyan bags, 1 light teal bag. +wavy gold bags contain 2 dull gray bags, 1 dark lavender bag, 3 pale gray bags. +faded turquoise bags contain 3 bright white bags, 4 pale bronze bags, 5 pale lavender bags. +dull maroon bags contain 2 bright orange bags, 5 vibrant bronze bags, 4 drab chartreuse bags. +striped bronze bags contain 2 pale lavender bags, 1 dull brown bag. +plaid violet bags contain 5 mirrored plum bags. +light violet bags contain 4 drab blue bags, 2 plaid beige bags, 3 pale crimson bags. +posh lavender bags contain 2 faded tomato bags, 4 dim crimson bags. +dark salmon bags contain 1 pale crimson bag. +dotted black bags contain 4 wavy lime bags, 1 faded salmon bag, 3 pale blue bags, 5 wavy blue bags. +shiny aqua bags contain 1 bright blue bag, 4 drab green bags, 2 light teal bags, 2 dotted green bags. +shiny salmon bags contain 3 dim magenta bags. +dark silver bags contain 1 shiny tan bag, 3 wavy yellow bags, 4 drab violet bags. +pale red bags contain 4 mirrored cyan bags, 4 clear gray bags, 2 dotted tan bags. +dark brown bags contain 1 plaid indigo bag. +drab cyan bags contain 2 wavy green bags, 2 pale gray bags, 2 dotted purple bags, 3 dark beige bags. +dim gray bags contain 2 bright salmon bags, 2 clear silver bags, 2 light turquoise bags, 4 drab plum bags. +pale black bags contain 1 plaid coral bag, 4 vibrant turquoise bags, 1 pale brown bag. +dotted olive bags contain 2 faded blue bags, 2 dull maroon bags, 3 dim fuchsia bags, 5 light fuchsia bags. +posh fuchsia bags contain 5 dark lavender bags. +pale orange bags contain 2 vibrant aqua bags, 2 vibrant green bags, 1 bright coral bag. +faded cyan bags contain 4 clear orange bags, 5 dull orange bags, 4 dotted bronze bags. +dim tan bags contain 2 dim chartreuse bags, 3 vibrant turquoise bags, 2 faded coral bags, 2 dim coral bags. +dim gold bags contain 2 wavy magenta bags. +dull aqua bags contain 2 wavy yellow bags. +posh tomato bags contain 1 muted brown bag. +dark gold bags contain 4 muted fuchsia bags, 4 light salmon bags. +clear chartreuse bags contain 3 light coral bags. +plaid chartreuse bags contain 1 light silver bag, 5 vibrant green bags, 3 wavy lavender bags, 4 vibrant turquoise bags. +mirrored red bags contain 5 plaid aqua bags, 4 clear cyan bags, 1 mirrored magenta bag. +dim beige bags contain 4 dull green bags, 2 dim green bags. +mirrored beige bags contain 1 drab magenta bag, 4 clear tan bags, 5 mirrored turquoise bags, 4 drab tan bags. +bright maroon bags contain 3 vibrant green bags, 5 shiny gold bags. +dim aqua bags contain 4 faded coral bags. +dim blue bags contain 3 posh silver bags. +drab silver bags contain 1 vibrant aqua bag, 5 vibrant tan bags. +drab turquoise bags contain 3 light gold bags, 1 striped blue bag, 2 dark maroon bags. +posh gold bags contain 5 dotted red bags. +muted violet bags contain 3 bright fuchsia bags, 1 muted tomato bag, 4 drab lime bags, 2 dim olive bags. +drab orange bags contain 5 vibrant brown bags, 5 striped bronze bags. +faded orange bags contain 4 bright bronze bags. +clear plum bags contain no other bags. +drab black bags contain 3 mirrored bronze bags, 1 dotted bronze bag, 5 light gray bags. +pale salmon bags contain 4 plaid coral bags, 5 wavy yellow bags, 2 light coral bags. +dim teal bags contain 5 dark brown bags, 5 dark crimson bags, 5 dull aqua bags. +bright silver bags contain 3 pale beige bags, 4 bright beige bags, 3 wavy maroon bags, 1 drab chartreuse bag. +dull white bags contain 4 dim chartreuse bags, 5 vibrant coral bags, 2 muted indigo bags. +wavy tomato bags contain 3 bright fuchsia bags, 2 dull fuchsia bags, 4 pale brown bags. +striped magenta bags contain 2 shiny white bags, 1 shiny brown bag, 2 bright tomato bags. +shiny chartreuse bags contain 3 mirrored green bags, 3 dark salmon bags. +vibrant silver bags contain 2 faded gray bags, 3 mirrored orange bags, 4 clear black bags, 2 pale lavender bags. +dull tan bags contain 3 light black bags, 4 faded brown bags, 2 pale bronze bags, 3 shiny lavender bags. +light gold bags contain 2 wavy beige bags, 5 plaid salmon bags, 3 shiny cyan bags. +posh plum bags contain 3 dim beige bags, 1 wavy magenta bag, 3 dull fuchsia bags, 4 dull gold bags. +dull red bags contain 1 striped teal bag, 2 dark violet bags, 1 shiny tomato bag, 1 striped yellow bag. +plaid lavender bags contain 2 light purple bags. +faded chartreuse bags contain 4 vibrant yellow bags. +shiny brown bags contain no other bags. +light crimson bags contain 3 wavy orange bags, 3 pale white bags, 4 vibrant turquoise bags. +mirrored chartreuse bags contain 2 muted maroon bags. +wavy white bags contain 3 striped maroon bags, 5 striped aqua bags, 4 dull fuchsia bags, 1 wavy orange bag. +plaid gray bags contain 1 muted brown bag, 3 shiny brown bags. +drab white bags contain 5 muted yellow bags. +mirrored gray bags contain 3 light tan bags. +bright lavender bags contain 1 drab lime bag, 4 plaid olive bags, 3 pale blue bags. +shiny yellow bags contain 5 muted orange bags. +pale bronze bags contain 4 mirrored coral bags, 2 muted red bags. +drab beige bags contain 2 plaid purple bags, 5 clear magenta bags, 3 faded coral bags, 2 clear beige bags. +vibrant yellow bags contain 2 mirrored lavender bags, 1 light orange bag. +vibrant red bags contain 3 vibrant salmon bags, 2 plaid teal bags, 2 dull gray bags, 2 vibrant gray bags. +wavy olive bags contain 1 shiny bronze bag, 5 plaid coral bags, 3 dotted gold bags, 1 pale brown bag. +muted white bags contain 3 plaid violet bags, 1 dim black bag. +faded olive bags contain 4 mirrored chartreuse bags. +muted gold bags contain 1 dim orange bag. +mirrored orange bags contain 3 light purple bags, 4 dull lavender bags, 1 bright bronze bag, 4 pale black bags. +light chartreuse bags contain 3 muted red bags, 3 bright violet bags. +pale teal bags contain 4 dim lime bags, 4 pale crimson bags, 2 clear lavender bags. +muted coral bags contain 3 dark green bags. +shiny bronze bags contain 1 pale blue bag. +dim crimson bags contain 1 vibrant indigo bag, 4 pale crimson bags. +striped gold bags contain 3 dotted gray bags. +light lime bags contain 4 mirrored teal bags, 4 dotted cyan bags. +posh magenta bags contain 3 posh salmon bags, 5 bright bronze bags, 5 mirrored maroon bags, 2 vibrant purple bags. +pale chartreuse bags contain 4 bright purple bags, 1 posh salmon bag. +mirrored violet bags contain 2 mirrored magenta bags, 1 dotted cyan bag, 2 dark beige bags, 1 mirrored plum bag. +shiny cyan bags contain 4 bright violet bags. +bright indigo bags contain 1 muted teal bag, 4 faded silver bags, 3 dim indigo bags. +striped maroon bags contain 5 shiny magenta bags. +muted bronze bags contain 2 drab salmon bags, 1 mirrored orange bag, 2 light coral bags, 4 clear plum bags. +dotted white bags contain 2 bright plum bags, 3 pale lavender bags, 2 muted red bags. +pale indigo bags contain 1 dull green bag, 5 drab olive bags, 5 dull salmon bags, 5 dark cyan bags. +dark plum bags contain 2 pale white bags, 5 dim plum bags. +clear crimson bags contain 4 wavy blue bags, 5 dim chartreuse bags, 1 plaid maroon bag, 4 dull cyan bags. +striped lime bags contain 2 bright chartreuse bags, 2 striped orange bags. +dark beige bags contain 5 mirrored black bags, 3 dim purple bags, 5 light purple bags, 5 dark brown bags. +clear cyan bags contain 4 mirrored plum bags, 3 dotted purple bags, 1 dull fuchsia bag, 5 bright teal bags. +plaid olive bags contain 5 posh tomato bags, 3 faded bronze bags, 4 pale white bags. +plaid indigo bags contain 4 drab silver bags, 2 dotted purple bags, 3 vibrant green bags, 2 vibrant aqua bags. +drab purple bags contain 1 shiny green bag, 5 wavy gray bags. +bright violet bags contain 4 posh salmon bags, 1 shiny bronze bag, 1 vibrant indigo bag. +dark purple bags contain 4 dotted purple bags, 3 striped yellow bags, 5 vibrant purple bags, 3 mirrored lavender bags. +dull silver bags contain 3 clear turquoise bags, 3 dim salmon bags. +drab red bags contain 2 muted tomato bags, 3 dim bronze bags, 2 mirrored black bags, 4 faded salmon bags. +light yellow bags contain 2 mirrored orange bags, 4 vibrant fuchsia bags, 5 drab purple bags. +dim white bags contain 5 mirrored white bags. +dotted lime bags contain 5 dotted magenta bags, 5 dark maroon bags. +striped blue bags contain 3 pale white bags. +pale tomato bags contain 3 dull teal bags, 4 vibrant green bags, 1 bright crimson bag. +mirrored lavender bags contain 1 wavy cyan bag, 2 drab cyan bags, 1 striped olive bag. +dull orange bags contain 2 pale salmon bags, 2 posh olive bags, 2 dark coral bags, 1 plaid coral bag. +pale tan bags contain 1 shiny bronze bag, 4 dim coral bags, 4 vibrant green bags, 4 dotted gold bags. +drab brown bags contain 3 striped teal bags. +dim bronze bags contain 1 drab magenta bag, 1 mirrored gray bag, 2 striped purple bags. +clear fuchsia bags contain 4 plaid brown bags, 4 dim bronze bags, 1 posh lime bag. +faded lavender bags contain 2 posh gray bags, 3 dark cyan bags, 4 muted tan bags. +bright turquoise bags contain 3 pale white bags. +muted lime bags contain 5 plaid olive bags, 4 muted orange bags. +vibrant bronze bags contain 5 dim silver bags, 4 dotted fuchsia bags, 1 vibrant gray bag, 1 muted brown bag. +drab violet bags contain 3 bright turquoise bags, 1 posh olive bag, 2 wavy olive bags. +drab plum bags contain 2 clear turquoise bags, 5 striped violet bags, 5 muted black bags. +vibrant tan bags contain 2 dull brown bags, 1 vibrant indigo bag, 1 dim crimson bag. +bright gray bags contain 2 wavy gray bags, 4 clear maroon bags. +faded fuchsia bags contain 4 faded tan bags, 1 clear silver bag, 1 faded tomato bag. +muted magenta bags contain 3 shiny green bags, 4 pale aqua bags. +plaid green bags contain 2 wavy red bags, 1 pale yellow bag, 5 posh black bags. +dotted orange bags contain 5 clear crimson bags, 2 bright gold bags, 2 dim violet bags, 3 faded gray bags. +faded tomato bags contain 4 drab coral bags, 5 bright lime bags, 2 light black bags, 2 muted olive bags. +pale aqua bags contain 3 light bronze bags. +wavy indigo bags contain 4 bright crimson bags. +drab magenta bags contain 1 plaid coral bag. +dim tomato bags contain 4 clear gold bags, 4 bright crimson bags, 4 light beige bags, 4 striped white bags. +striped turquoise bags contain 5 bright green bags, 5 dark bronze bags, 3 pale crimson bags. +vibrant lime bags contain 4 shiny maroon bags, 2 shiny plum bags, 3 dull green bags. +muted fuchsia bags contain 3 dim purple bags, 2 pale cyan bags, 4 pale gray bags, 3 drab salmon bags. +dim cyan bags contain 4 shiny salmon bags, 3 striped white bags, 3 plaid chartreuse bags. +mirrored purple bags contain 5 posh plum bags, 1 light purple bag, 2 plaid aqua bags, 5 striped gold bags. +plaid coral bags contain 4 vibrant indigo bags, 3 bright bronze bags, 1 dotted purple bag. +plaid maroon bags contain 3 wavy olive bags, 5 pale plum bags, 2 dark beige bags, 4 striped white bags. +plaid turquoise bags contain 2 pale tomato bags, 4 faded white bags, 4 bright teal bags. +drab bronze bags contain 1 mirrored brown bag. +clear coral bags contain 5 plaid maroon bags. +vibrant indigo bags contain 2 striped purple bags, 4 vibrant green bags, 3 dotted purple bags, 1 vibrant turquoise bag. +bright bronze bags contain 5 dotted purple bags, 4 shiny brown bags. +striped tan bags contain 2 light purple bags, 3 mirrored blue bags, 5 dim magenta bags. +pale brown bags contain 4 wavy green bags, 1 wavy yellow bag. +faded yellow bags contain 4 dotted red bags. +plaid magenta bags contain 5 striped magenta bags. +bright crimson bags contain 4 vibrant tan bags, 2 dotted gold bags, 5 striped purple bags. +dull yellow bags contain 3 clear cyan bags. +dotted chartreuse bags contain 5 dim coral bags, 1 dull gray bag, 2 posh tomato bags. +vibrant crimson bags contain 2 pale black bags, 5 mirrored silver bags, 1 clear beige bag, 5 drab yellow bags. +wavy red bags contain 2 drab silver bags, 3 shiny salmon bags. +light blue bags contain 4 posh black bags, 2 clear magenta bags. +vibrant brown bags contain 4 dim red bags. +drab indigo bags contain 3 shiny aqua bags, 4 dotted lavender bags, 4 dim brown bags, 2 faded purple bags. +pale plum bags contain 4 wavy blue bags, 3 posh bronze bags, 4 pale lime bags. +muted beige bags contain 5 bright bronze bags, 3 dull olive bags. +muted purple bags contain 4 striped purple bags. +faded silver bags contain 1 light purple bag, 3 bright tomato bags, 1 mirrored magenta bag. +vibrant olive bags contain 3 muted turquoise bags, 5 wavy blue bags, 1 dotted silver bag, 5 striped tan bags. diff --git a/2020/inputs/day8 b/2020/inputs/day8 new file mode 100644 index 0000000..62e61dd --- /dev/null +++ b/2020/inputs/day8 @@ -0,0 +1,634 @@ +acc +15 +acc +2 +acc -14 +jmp +362 +acc +22 +nop +236 +jmp +474 +acc +10 +jmp +1 +acc +0 +jmp +236 +acc +10 +acc +14 +jmp +334 +acc +12 +acc -1 +jmp +478 +jmp +90 +jmp +208 +acc +49 +jmp +94 +acc +2 +acc -8 +jmp +375 +nop +21 +acc +0 +acc +10 +nop +25 +jmp +492 +nop +182 +acc +49 +acc -12 +jmp -14 +acc -16 +jmp +140 +acc -3 +acc -18 +acc +28 +acc -6 +jmp +558 +acc +2 +acc +27 +nop +438 +acc +41 +jmp +508 +acc +13 +jmp +117 +acc +21 +acc -13 +acc +34 +jmp +1 +jmp +1 +nop +451 +acc +28 +acc +31 +acc +31 +jmp +280 +acc +32 +acc +35 +acc -18 +jmp +509 +acc -15 +acc -8 +nop +288 +acc -16 +jmp +376 +acc -19 +acc -8 +acc +11 +acc +10 +jmp +50 +acc +19 +nop -58 +acc -9 +jmp +43 +acc +10 +acc +2 +nop -63 +jmp +280 +acc -7 +jmp +175 +jmp +69 +acc +16 +acc +9 +acc -2 +acc -5 +jmp +276 +nop +195 +acc +50 +acc -8 +jmp -55 +nop +1 +nop -78 +acc +31 +jmp +535 +acc +9 +acc +33 +acc +4 +acc +48 +jmp +8 +acc +30 +acc +42 +acc +18 +acc +37 +jmp -69 +nop +121 +jmp +44 +acc +3 +acc +33 +acc -6 +acc +37 +jmp +403 +acc -6 +jmp +245 +jmp -93 +acc +5 +jmp +406 +jmp -26 +nop -47 +jmp +239 +acc +7 +acc +31 +acc +14 +acc +0 +jmp +291 +acc +46 +jmp +394 +acc +44 +acc +36 +nop +45 +jmp +137 +acc -16 +acc +10 +acc -4 +acc +7 +jmp +76 +acc +24 +jmp +93 +acc +17 +acc +0 +acc +6 +acc +4 +jmp +385 +acc -8 +acc +49 +acc +28 +jmp +95 +nop +12 +acc +33 +jmp +153 +nop +254 +acc +18 +acc -16 +acc +50 +jmp +299 +acc +27 +acc +47 +acc -17 +jmp -15 +acc +35 +acc +14 +jmp +204 +jmp +93 +acc +46 +nop -5 +nop -158 +jmp +221 +jmp +321 +acc -2 +acc +49 +acc +3 +acc -17 +jmp -52 +jmp +7 +nop +52 +acc +25 +jmp +376 +acc -3 +nop -133 +jmp +32 +jmp +328 +nop +374 +acc +37 +acc +6 +jmp +92 +acc +47 +nop +394 +jmp -13 +jmp -170 +acc +9 +jmp -47 +acc -18 +acc +27 +jmp +1 +acc +3 +acc -5 +jmp +337 +acc +21 +jmp +364 +acc +24 +acc +43 +acc +50 +jmp +58 +jmp -18 +acc +30 +jmp +144 +nop +5 +acc +50 +nop +245 +nop +133 +jmp +270 +jmp -22 +nop -76 +jmp +398 +acc +40 +acc +30 +jmp +361 +acc +36 +acc +30 +jmp +392 +acc -17 +nop +71 +acc -12 +jmp +102 +acc +17 +jmp +283 +acc -16 +jmp +65 +nop -2 +jmp +149 +jmp -103 +jmp -179 +acc +46 +jmp +289 +acc +48 +jmp +114 +acc +13 +jmp +114 +nop +215 +nop -89 +jmp +337 +acc -2 +acc +2 +acc -7 +jmp -18 +jmp -51 +acc +30 +acc +43 +acc +28 +jmp -188 +acc +36 +acc +7 +acc -5 +acc +38 +jmp +88 +jmp +225 +acc -14 +acc -3 +acc -15 +jmp +66 +acc +7 +acc +43 +nop -210 +acc -9 +jmp +109 +acc -10 +jmp +242 +acc -5 +acc +15 +acc +8 +jmp +310 +acc +31 +acc -2 +acc +11 +acc -15 +jmp +103 +acc +32 +jmp -92 +acc -10 +acc +6 +acc -1 +jmp -131 +acc +43 +acc +30 +acc +13 +acc +33 +jmp +25 +acc +9 +acc -14 +acc +19 +acc +44 +jmp -50 +acc -8 +acc +9 +jmp +312 +jmp -96 +acc -3 +acc -3 +acc +24 +jmp +94 +acc -15 +jmp +61 +acc +19 +nop -89 +acc +24 +nop -94 +jmp +5 +acc -13 +acc +25 +acc +42 +jmp +1 +jmp +137 +acc +44 +acc +44 +acc +41 +jmp +152 +jmp +144 +acc -1 +nop +293 +jmp -120 +acc -17 +nop -171 +acc +27 +jmp -173 +jmp +231 +acc +3 +jmp +109 +acc +18 +acc +32 +acc -14 +acc -8 +jmp +177 +acc +28 +jmp -134 +nop +277 +jmp -124 +jmp +167 +nop +274 +acc +6 +acc +43 +acc +10 +jmp -320 +acc +28 +acc -9 +acc +22 +jmp -90 +jmp -203 +jmp -133 +jmp -6 +jmp -181 +jmp +170 +acc +40 +acc +5 +jmp -274 +acc +36 +acc +24 +nop +6 +jmp -339 +jmp -251 +acc +10 +acc +10 +jmp -347 +jmp +263 +acc +37 +jmp -201 +acc -11 +acc +42 +jmp +153 +nop -179 +acc -9 +jmp +8 +jmp -289 +jmp -25 +acc +45 +jmp -142 +acc +42 +acc -10 +jmp +83 +acc +43 +acc +3 +acc -6 +jmp -222 +acc +41 +acc +14 +acc +7 +acc +2 +jmp -35 +jmp +168 +acc +11 +acc +18 +acc +8 +acc -4 +jmp -203 +acc +44 +jmp +10 +nop -184 +acc +0 +jmp +91 +acc -5 +nop +226 +acc +46 +acc -10 +jmp -15 +jmp -321 +acc +0 +acc +33 +jmp +82 +jmp +1 +acc -12 +acc +30 +jmp +152 +acc +6 +jmp -208 +acc +43 +jmp +39 +acc +23 +acc +23 +acc +24 +acc +26 +jmp -390 +acc +15 +acc +3 +acc +14 +acc +46 +jmp -239 +acc -10 +acc +19 +jmp +167 +acc +46 +acc +0 +jmp -280 +acc -7 +jmp -107 +acc +13 +jmp -76 +acc +48 +jmp -65 +nop +23 +nop -89 +acc +47 +jmp -304 +acc -5 +jmp +1 +acc +50 +acc +37 +jmp -129 +acc +27 +jmp +1 +jmp -212 +acc +18 +acc +29 +acc +1 +jmp -74 +acc +24 +acc -12 +jmp -173 +acc -18 +acc -6 +nop -156 +jmp -309 +acc +46 +acc -13 +acc +41 +acc +11 +jmp -188 +acc +32 +jmp -190 +acc +31 +acc +30 +jmp -122 +acc -7 +jmp +37 +acc +2 +acc +16 +acc +45 +acc +44 +jmp -376 +acc +47 +jmp +1 +jmp -147 +acc +47 +acc -18 +acc -1 +acc +2 +jmp -152 +acc +12 +acc -8 +jmp +90 +nop +67 +acc +9 +jmp +1 +jmp -377 +jmp +1 +jmp -238 +jmp +1 +acc +47 +acc +7 +acc +31 +jmp -427 +acc +10 +acc +13 +nop +13 +jmp -8 +nop -292 +acc +11 +nop -203 +jmp -164 +jmp -19 +acc +31 +jmp -289 +acc -7 +acc -16 +acc +35 +jmp -333 +jmp -500 +acc +32 +acc +29 +acc +18 +acc +14 +jmp -161 +jmp -60 +jmp +6 +acc +4 +nop -108 +acc +27 +jmp +2 +jmp -133 +acc +2 +jmp -103 +acc +40 +nop -512 +acc +48 +jmp -196 +acc +47 +acc +40 +nop -346 +acc -2 +jmp -530 +acc +17 +nop -31 +acc +1 +jmp -74 +acc -15 +acc +4 +nop -330 +acc +32 +jmp -115 +acc -3 +jmp +1 +acc +14 +acc +31 +jmp -352 +jmp -10 +acc +18 +jmp -322 +acc +41 +jmp +59 +acc -16 +nop -359 +acc +29 +acc +26 +jmp -418 +acc +10 +acc +47 +jmp -519 +acc -5 +nop +40 +acc +30 +jmp -195 +acc +31 +acc +3 +acc +8 +jmp -10 +acc -12 +acc +21 +acc -1 +jmp +30 +jmp -341 +acc -5 +jmp -405 +acc -13 +jmp -170 +acc +24 +acc -16 +acc +20 +acc +17 +jmp -145 +acc +42 +acc +33 +jmp -395 +nop -142 +acc +45 +acc +15 +jmp -399 +nop -223 +jmp -299 +jmp -453 +acc -6 +nop -498 +acc +42 +jmp -112 +acc +39 +acc +46 +acc +4 +acc +27 +jmp -234 +jmp +1 +acc +45 +acc +47 +jmp -307 +jmp -378 +jmp -431 +acc +13 +acc +29 +jmp -282 +acc +4 +acc -3 +acc +37 +acc +40 +jmp -32 +nop -148 +acc +38 +acc +40 +acc +18 +jmp -171 +nop -546 +jmp -490 +acc +36 +jmp -514 +acc +27 +acc -10 +nop -560 +acc +44 +jmp +1 diff --git a/2020/inputs/day8_patch b/2020/inputs/day8_patch new file mode 100644 index 0000000..2ce31b8 --- /dev/null +++ b/2020/inputs/day8_patch @@ -0,0 +1,634 @@ +acc +15 +acc +2 +acc -14 +jmp +362 +acc +22 +nop +236 +jmp +474 +acc +10 +jmp +1 +acc +0 +jmp +236 +acc +10 +acc +14 +jmp +334 +acc +12 +acc -1 +jmp +478 +jmp +90 +jmp +208 +acc +49 +jmp +94 +acc +2 +acc -8 +jmp +375 +nop +21 +acc +0 +acc +10 +nop +25 +jmp +492 +nop +182 +acc +49 +acc -12 +jmp -14 +acc -16 +jmp +140 +acc -3 +acc -18 +acc +28 +acc -6 +jmp +558 +acc +2 +acc +27 +nop +438 +acc +41 +jmp +508 +acc +13 +jmp +117 +acc +21 +acc -13 +acc +34 +jmp +1 +jmp +1 +nop +451 +acc +28 +acc +31 +acc +31 +jmp +280 +acc +32 +acc +35 +acc -18 +jmp +509 +acc -15 +acc -8 +nop +288 +acc -16 +jmp +376 +acc -19 +acc -8 +acc +11 +acc +10 +jmp +50 +acc +19 +nop -58 +acc -9 +jmp +43 +acc +10 +acc +2 +nop -63 +jmp +280 +acc -7 +jmp +175 +jmp +69 +acc +16 +acc +9 +acc -2 +acc -5 +jmp +276 +nop +195 +acc +50 +acc -8 +jmp -55 +nop +1 +nop -78 +acc +31 +jmp +535 +acc +9 +acc +33 +acc +4 +acc +48 +jmp +8 +acc +30 +acc +42 +acc +18 +acc +37 +jmp -69 +nop +121 +jmp +44 +acc +3 +acc +33 +acc -6 +acc +37 +jmp +403 +acc -6 +jmp +245 +jmp -93 +acc +5 +jmp +406 +jmp -26 +nop -47 +jmp +239 +acc +7 +acc +31 +acc +14 +acc +0 +jmp +291 +acc +46 +jmp +394 +acc +44 +acc +36 +nop +45 +jmp +137 +acc -16 +acc +10 +acc -4 +acc +7 +jmp +76 +acc +24 +jmp +93 +acc +17 +acc +0 +acc +6 +acc +4 +jmp +385 +acc -8 +acc +49 +acc +28 +jmp +95 +nop +12 +acc +33 +jmp +153 +nop +254 +acc +18 +acc -16 +acc +50 +jmp +299 +acc +27 +acc +47 +acc -17 +jmp -15 +acc +35 +acc +14 +jmp +204 +jmp +93 +acc +46 +nop -5 +nop -158 +jmp +221 +jmp +321 +acc -2 +acc +49 +acc +3 +acc -17 +jmp -52 +jmp +7 +nop +52 +acc +25 +jmp +376 +acc -3 +nop -133 +jmp +32 +jmp +328 +nop +374 +acc +37 +acc +6 +jmp +92 +acc +47 +nop +394 +jmp -13 +jmp -170 +acc +9 +jmp -47 +acc -18 +acc +27 +jmp +1 +acc +3 +acc -5 +jmp +337 +acc +21 +jmp +364 +acc +24 +acc +43 +acc +50 +jmp +58 +jmp -18 +acc +30 +jmp +144 +nop +5 +acc +50 +nop +245 +nop +133 +jmp +270 +jmp -22 +nop -76 +jmp +398 +acc +40 +acc +30 +jmp +361 +acc +36 +acc +30 +jmp +392 +acc -17 +nop +71 +acc -12 +jmp +102 +acc +17 +jmp +283 +acc -16 +jmp +65 +nop -2 +jmp +149 +jmp -103 +jmp -179 +acc +46 +jmp +289 +acc +48 +jmp +114 +acc +13 +jmp +114 +nop +215 +nop -89 +jmp +337 +acc -2 +acc +2 +acc -7 +jmp -18 +jmp -51 +acc +30 +acc +43 +acc +28 +jmp -188 +acc +36 +acc +7 +acc -5 +acc +38 +jmp +88 +jmp +225 +acc -14 +acc -3 +acc -15 +jmp +66 +acc +7 +acc +43 +nop -210 +acc -9 +jmp +109 +acc -10 +jmp +242 +acc -5 +acc +15 +acc +8 +jmp +310 +acc +31 +acc -2 +acc +11 +acc -15 +jmp +103 +acc +32 +jmp -92 +acc -10 +acc +6 +acc -1 +jmp -131 +acc +43 +acc +30 +acc +13 +acc +33 +jmp +25 +acc +9 +acc -14 +acc +19 +acc +44 +jmp -50 +acc -8 +acc +9 +jmp +312 +jmp -96 +acc -3 +acc -3 +acc +24 +jmp +94 +acc -15 +jmp +61 +acc +19 +nop -89 +acc +24 +nop -94 +jmp +5 +acc -13 +acc +25 +acc +42 +jmp +1 +jmp +137 +acc +44 +acc +44 +acc +41 +jmp +152 +jmp +144 +acc -1 +nop +293 +jmp -120 +acc -17 +nop -171 +acc +27 +jmp -173 +jmp +231 +acc +3 +jmp +109 +acc +18 +acc +32 +acc -14 +acc -8 +jmp +177 +acc +28 +jmp -134 +nop +277 +jmp -124 +jmp +167 +nop +274 +acc +6 +acc +43 +acc +10 +jmp -320 +acc +28 +acc -9 +acc +22 +jmp -90 +jmp -203 +jmp -133 +jmp -6 +jmp -181 +jmp +170 +acc +40 +acc +5 +jmp -274 +acc +36 +acc +24 +nop +6 +jmp -339 +jmp -251 +acc +10 +acc +10 +jmp -347 +jmp +263 +acc +37 +jmp -201 +acc -11 +acc +42 +jmp +153 +nop -179 +acc -9 +jmp +8 +jmp -289 +jmp -25 +acc +45 +jmp -142 +acc +42 +acc -10 +jmp +83 +acc +43 +acc +3 +acc -6 +jmp -222 +acc +41 +acc +14 +acc +7 +acc +2 +jmp -35 +jmp +168 +acc +11 +acc +18 +acc +8 +acc -4 +jmp -203 +acc +44 +jmp +10 +nop -184 +acc +0 +jmp +91 +acc -5 +nop +226 +acc +46 +acc -10 +jmp -15 +jmp -321 +acc +0 +acc +33 +jmp +82 +jmp +1 +acc -12 +acc +30 +jmp +152 +acc +6 +jmp -208 +acc +43 +jmp +39 +acc +23 +acc +23 +acc +24 +acc +26 +jmp -390 +acc +15 +acc +3 +acc +14 +acc +46 +jmp -239 +acc -10 +acc +19 +jmp +167 +acc +46 +acc +0 +jmp -280 +acc -7 +nop -107 +acc +13 +jmp -76 +acc +48 +jmp -65 +nop +23 +nop -89 +acc +47 +jmp -304 +acc -5 +jmp +1 +acc +50 +acc +37 +jmp -129 +acc +27 +jmp +1 +jmp -212 +acc +18 +acc +29 +acc +1 +jmp -74 +acc +24 +acc -12 +jmp -173 +acc -18 +acc -6 +nop -156 +jmp -309 +acc +46 +acc -13 +acc +41 +acc +11 +jmp -188 +acc +32 +jmp -190 +acc +31 +acc +30 +jmp -122 +acc -7 +jmp +37 +acc +2 +acc +16 +acc +45 +acc +44 +jmp -376 +acc +47 +jmp +1 +jmp -147 +acc +47 +acc -18 +acc -1 +acc +2 +jmp -152 +acc +12 +acc -8 +jmp +90 +nop +67 +acc +9 +jmp +1 +jmp -377 +jmp +1 +jmp -238 +jmp +1 +acc +47 +acc +7 +acc +31 +jmp -427 +acc +10 +acc +13 +nop +13 +jmp -8 +nop -292 +acc +11 +nop -203 +jmp -164 +jmp -19 +acc +31 +jmp -289 +acc -7 +acc -16 +acc +35 +jmp -333 +jmp -500 +acc +32 +acc +29 +acc +18 +acc +14 +jmp -161 +jmp -60 +jmp +6 +acc +4 +nop -108 +acc +27 +jmp +2 +jmp -133 +acc +2 +jmp -103 +acc +40 +nop -512 +acc +48 +jmp -196 +acc +47 +acc +40 +nop -346 +acc -2 +jmp -530 +acc +17 +nop -31 +acc +1 +jmp -74 +acc -15 +acc +4 +nop -330 +acc +32 +jmp -115 +acc -3 +jmp +1 +acc +14 +acc +31 +jmp -352 +jmp -10 +acc +18 +jmp -322 +acc +41 +jmp +59 +acc -16 +nop -359 +acc +29 +acc +26 +jmp -418 +acc +10 +acc +47 +jmp -519 +acc -5 +nop +40 +acc +30 +jmp -195 +acc +31 +acc +3 +acc +8 +jmp -10 +acc -12 +acc +21 +acc -1 +jmp +30 +jmp -341 +acc -5 +jmp -405 +acc -13 +jmp -170 +acc +24 +acc -16 +acc +20 +acc +17 +jmp -145 +acc +42 +acc +33 +jmp -395 +nop -142 +acc +45 +acc +15 +jmp -399 +nop -223 +jmp -299 +jmp -453 +acc -6 +nop -498 +acc +42 +jmp -112 +acc +39 +acc +46 +acc +4 +acc +27 +jmp -234 +jmp +1 +acc +45 +acc +47 +jmp -307 +jmp -378 +jmp -431 +acc +13 +acc +29 +jmp -282 +acc +4 +acc -3 +acc +37 +acc +40 +jmp -32 +nop -148 +acc +38 +acc +40 +acc +18 +jmp -171 +nop -546 +jmp -490 +acc +36 +jmp -514 +acc +27 +acc -10 +nop -560 +acc +44 +jmp +1 diff --git a/2020/inputs/day9 b/2020/inputs/day9 new file mode 100644 index 0000000..e31938e --- /dev/null +++ b/2020/inputs/day9 @@ -0,0 +1,1000 @@ +18 +19 +46 +14 +29 +45 +40 +47 +25 +43 +36 +22 +21 +4 +32 +33 +37 +38 +26 +2 +42 +15 +5 +13 +31 +9 +6 +30 +7 +14 +10 +8 +69 +11 +12 +25 +16 +17 +22 +19 +18 +20 +51 +21 +24 +23 +26 +15 +60 +13 +29 +27 +44 +42 +28 +38 +30 +36 +31 +32 +33 +34 +35 +37 +55 +39 +40 +70 +41 +43 +78 +58 +73 +101 +60 +56 +57 +75 +59 +67 +71 +61 +68 +110 +69 +80 +72 +112 +76 +79 +144 +129 +114 +84 +99 +113 +132 +115 +148 +116 +118 +120 +128 +126 +187 +130 +190 +152 +229 +141 +151 +155 +299 +209 +163 +239 +183 +197 +331 +212 +228 +270 +231 +234 +236 +244 +246 +355 +256 +392 +271 +342 +292 +360 +296 +306 +318 +346 +602 +375 +380 +395 +534 +456 +440 +459 +470 +502 +478 +480 +490 +517 +527 +548 +563 +1082 +1136 +896 +1044 +614 +693 +698 +988 +755 +1065 +1352 +835 +899 +915 +942 +929 +1173 +958 +1043 +970 +1007 +1075 +1090 +1529 +1750 +1663 +1307 +1312 +1533 +1369 +1391 +1705 +1590 +1654 +1734 +1764 +1805 +2923 +2649 +1936 +1899 +2633 +1928 +2681 +1977 +3956 +2165 +2981 +2619 +3926 +2676 +2840 +2703 +4292 +4547 +4383 +4628 +3244 +3388 +3539 +6659 +6602 +5143 +3827 +5316 +8558 +3905 +5322 +4142 +4817 +4784 +9069 +5379 +11206 +5516 +7536 +10701 +6242 +7293 +6632 +15190 +11260 +7366 +7732 +7681 +7969 +8959 +9521 +8611 +8047 +10139 +8689 +16605 +8926 +10300 +10163 +10895 +15262 +12148 +13925 +12874 +15025 +13974 +19229 +14313 +15047 +15098 +15335 +15413 +16370 +16016 +16658 +27899 +16736 +18852 +35245 +17615 +19089 +19821 +29984 +23769 +23043 +30309 +31705 +26799 +26848 +35105 +28287 +30382 +42183 +30748 +30433 +31351 +31429 +32386 +32674 +33394 +44635 +34351 +50281 +36704 +60293 +69456 +42864 +49891 +46812 +49842 +53647 +55086 +85047 +119298 +60961 +75099 +62099 +73297 +94916 +61784 +62780 +63815 +75250 +96654 +67745 +104928 +71055 +111242 +133358 +89676 +92706 +151460 +134938 +101898 +158753 +108733 +122831 +122745 +123060 +293691 +126595 +165971 +142995 +125599 +130525 +146305 +194115 +402424 +179788 +138800 +226064 +160731 +182382 +235256 +191574 +194604 +210631 +224643 +269464 +231478 +231564 +245576 +253585 +248659 +252194 +276830 +256124 +411266 +371362 +299531 +354846 +654618 +340519 +330374 +459212 +343113 +695365 +431041 +386178 +402205 +405235 +435274 +456121 +633683 +504783 +477140 +586095 +701736 +500853 +508318 +654377 +555655 +640050 +741024 +642644 +673487 +1288060 +802325 +716552 +729291 +1497690 +1073685 +1273733 +821452 +807440 +891395 +912414 +933261 +977993 +1117190 +1140903 +1210054 +1009171 +1143497 +1063973 +1445843 +1195705 +1282694 +2428963 +1316131 +1390039 +1518877 +2095183 +2337706 +1536731 +1628892 +1698835 +2076758 +1712847 +1803809 +1824656 +1845675 +2962865 +1987164 +2073144 +2150074 +2152668 +2204876 +2207470 +2981529 +2478399 +3128369 +2908916 +4192040 +2706170 +2926770 +3055608 +3790973 +3165623 +3235566 +3327727 +3502644 +5835686 +3516656 +3628465 +3670331 +7131109 +5941736 +5116386 +4278020 +4913640 +4412346 +5186405 +4685869 +7293617 +5834539 +5615086 +6383335 +5632940 +9001309 +5982378 +6221231 +6401189 +6493350 +6563293 +6830371 +8188513 +7145121 +10907100 +10354082 +7948351 +11998421 +8690366 +9528732 +8963889 +15987022 +10318809 +9872274 +13376235 +16136864 +11248026 +12016275 +14983687 +17469257 +12203609 +12383567 +26433146 +12894539 +13056643 +13393664 +13975492 +15093472 +26270774 +16638717 +16912240 +18492621 +17654255 +22066601 +25440210 +18836163 +20191083 +21120300 +23264301 +26870031 +33085622 +23451635 +24399842 +24587176 +25098148 +51578243 +35095792 +34176943 +37980840 +35460265 +27369156 +29068964 +37160073 +33550957 +36146876 +62568016 +47164749 +41311383 +44778259 +45631293 +39027246 +52333265 +55938995 +48549783 +50321666 +77431413 +47851477 +48987018 +65898559 +52467304 +83311625 +68646749 +74487511 +69011222 +80925135 +76187319 +62619921 +115214565 +167547830 +136864130 +91943008 +131266670 +80338629 +83805505 +86878723 +87577029 +100184742 +117561005 +139346027 +116498226 +96838495 +129912153 +101454322 +115087225 +213051449 +150674830 +246410379 +154562929 +216668887 +138807240 +195425854 +142958550 +164144134 +267732572 +167217352 +167915658 +170684228 +185259827 +171382534 +244412872 +184415524 +265598456 +198292817 +211925720 +213336721 +334233094 +216541547 +240261562 +253894465 +369675351 +281765790 +335133010 +323222764 +505860018 +328218377 +354884270 +307102684 +331361486 +337901580 +379143072 +338599886 +342066762 +456803109 +355798058 +382708341 +594634061 +410218537 +536559485 +425262441 +429878268 +547903033 +523644231 +535660255 +585255951 +753480818 +588868474 +630325448 +662900742 +788164595 +635321061 +638464170 +645004264 +669263066 +734941130 +680666648 +694397944 +1055587889 +1363661010 +738506399 +792926878 +945878792 +1277125049 +1108900182 +1357298686 +1298221803 +776203571 +1275329712 +1124528729 +1174124425 +1343567390 +1219193922 +1310992096 +1759849790 +1527868008 +1428247939 +1283468434 +1314267330 +1349929714 +1375064592 +1917455607 +2517415725 +1531433277 +1514709970 +2328094104 +2959681216 +1722082363 +2811336442 +1885103753 +1900732300 +2126133285 +1950327996 +2884378519 +2552776668 +2549189017 +2502662356 +2530186018 +2594460530 +2633398148 +2597735764 +2658533026 +5542911545 +2664197044 +2724994306 +4032125695 +3046143247 +4048849002 +3236792333 +3399813723 +3607186116 +6636606056 +3622814663 +6048128775 +6109848472 +3851060296 +4076461281 +7094992249 +5032848374 +5051851373 +5079375035 +5097122886 +5124646548 +5192196294 +5231133912 +6843978449 +5322730070 +5771137553 +7268918028 +7448662725 +6445956970 +7122604528 +6859606996 +7006999839 +7022628386 +10068771633 +14029628225 +7473874959 +10514926364 +13866606835 +7927521577 +9109309655 +10084699747 +12705008871 +12219727414 +10176497921 +10316842842 +10355780460 +12253762298 +10553863982 +19522680326 +21340481794 +12630744549 +13305563966 +13452956809 +13468585356 +13882235382 +14480874798 +14934521416 +17199126307 +19663173637 +15401396536 +16583184614 +17036831232 +23021851713 +18104019498 +32584894296 +24022449338 +37475406147 +30076544308 +20672623302 +37709454534 +20909644442 +22807626280 +23184608531 +25936308515 +26083701358 +27187799348 +28240085382 +26921542165 +28403106772 +28363110180 +29415396214 +46507126270 +48026283817 +35140850730 +40058682945 +41059280570 +43480249582 +43694475015 +38776642800 +49268309889 +46993345800 +41582267744 +43717270722 +55590906120 +49272754622 +44094252973 +71720334964 +49120917046 +92815392061 +53005243523 +54109341513 +91506533399 +55284652345 +79835923370 +104405569391 +76408742014 +91720758832 +73917493530 +78835325745 +85769988600 +80358910544 +140841675878 +124053385559 +113302602708 +120126012736 +85299538466 +123190248152 +142088146683 +125529659060 +93367007595 +236492850860 +107114585036 +102126160569 +108289895868 +130518083527 +174235354249 +165424026929 +140584190811 +170556084577 +150326235544 +161708280480 +192137928453 +180961486314 +205425551202 +166128899144 +165658449010 +178666546061 +200481592631 +233951198406 +307551711771 +187425699035 +306713089955 +201656903463 +195493168164 +209240745605 +366092245096 +238807979395 +210416056437 +366610491775 +302292471291 +290910426355 +374535389217 +311140275388 +312034516024 +331787348154 +327366729490 +402138496094 +344324995071 +344795445205 +353084148045 +387907291666 +374159714225 +491392018986 +434301147559 +382918867199 +389082602498 +503949374754 +397150071627 +715274021156 +419656802042 +449224035832 +512708527728 +612554552531 +593202897646 +776673885311 +685675664605 +623174791412 +638507004878 +736003015244 +659154077644 +886868241953 +733878047703 +763981797113 +1269787109152 +750234219672 +763242316723 +1248711542972 +780068938826 +1048236680142 +1862990006798 +1418575943704 +1620746289656 +2003665156855 +2198644882530 +868880837874 +2005790124396 +1205757450177 +1216377689058 +1297661082522 +1324182669483 +3868780131194 +1261681796290 +1372385052581 +1393032125347 +1409388297316 +1497120364426 +1484112267375 +1513476536395 +1530303158498 +1543311255549 +1632123154597 +1648949776700 +1828305618968 +2532348947517 +2241265890455 +2946610859222 +2074638288051 +2193063507357 +2517830614574 +2085258526932 +2422135139235 +2585864465773 +2514038771580 +2654713921637 +2893804950887 +2634066848871 +2745794063665 +2765417177928 +4424108109385 +2893500564691 +2981232631801 +7009972575158 +3043779694893 +3073614414047 +3175434410146 +6249048824193 +4606987235568 +4250440758203 +4827130356228 +4159896814983 +7588219867369 +4599297298512 +7672911712559 +4507393666167 +10418705776224 +5076849060872 +5099903237353 +5689473181726 +5527871799758 +5399484026799 +14682884287717 +5511211241593 +5658917742619 +7497722523432 +5874733196492 +6025012326694 +6117394108940 +7425875168349 +7233511229030 +7335331225129 +8410337573186 +9327289819075 +10127169098270 +8987027171211 +12734815251928 +19190277953884 +9906877692966 +22180606811149 +9584242727039 +12825359195148 +10176752298225 +15596350874692 +10910695268392 +11170128984212 +11058401769418 +11385944438085 +11533650939111 +11683930069313 +14435349899880 +13210064421621 +28298000920089 +13350905337970 +21660820037381 +16560801048105 +16919573952168 +20713234257160 +18314316990286 +18571269898250 +24120759690013 +19491120420005 +19760995025264 +20083629991191 +20494937995431 +20642644496457 +29372718759704 +21235154067643 +31146939463349 +31469574429276 +39831651859200 +31553339764849 +23069874507398 +26560969759591 +45904924329156 +50681729449604 +32842025757975 +30270479290138 +31665222328256 +33480375000273 +34875118038391 +55785982018269 +40255933020695 +36885586888536 +38062390318255 +39252115445269 +39844625016455 +40403639521721 +47055907755022 +67698552251479 +41877798564100 +53340353797536 +59297544385898 +49630844266989 +54539448936674 +62321989952667 +54623214272247 +83941494643558 +72686650774430 +63112505048113 +113794234497717 +123786119660013 +68355493038664 +88215471835927 +98549659831167 +71760704926927 -- cgit v1.2.3