Compare commits

...

1 commit
main ... day12

Author SHA1 Message Date
Samae
da7ad767b0 tmp 2024-12-24 13:30:11 +02:00
5 changed files with 215 additions and 16 deletions

View file

@ -13,6 +13,7 @@ import Day8
import Day9
import Day10
import Day11
import Day12
main :: IO ()
main = do
@ -37,5 +38,7 @@ main = do
-- Day9.main
-- putStrLn "Day 10"
-- Day10.main
putStrLn "Day 11"
Day11.main
-- putStrLn "Day 11"
-- Day11.main
putStrLn "Day 12"
Day12.main

140
inputs/day12.input Normal file
View file

@ -0,0 +1,140 @@
WWWWWWWWWWWWWWWWWWHHHHHHHHHHHBYYYYYYYYYYYJJJJJJJJJJJJJJZLLLLLLLLLLLLLLLLLLLLLLBBYBBBBBBBBTTTTKKKKKKKKKKKKKOOOUUUUUUUUUUUSSSSSSSSSSSSSSSSSSSO
WWWWWWWWWWWWWWWWWWHEHEHHHHHHBBBYYYYYYYYYYJJJJJJJWJJZJZZZZLLLLLLLLLLLLLLLLLLLLLBBBBBBBBBBBBTTTKKKKKKKKKKKKKOOOUUUUUUUUUUUUSSSSSSSSSSSSSSSSSHH
WWWWWWWWWWWWWWWWWWWEEEHHHHHBBBBBYYYYYYYYYJYJJJJWWJJZZZZZZLLLFFFLLLFLLLHHHHHHHLBBBBBBBBBBBBTTTKKKKKKKKKKKKKOOOOUUUUUUUUUSSSSSSSSSSSSSSSSSSSHH
WWWWWWWWWWWWWWWWWEEEEEEEEHHBBBSSYYYYYYYYYYYWWWWWWJJZZZZZZLFLFFFFFLFFFLHHHNHHHHABBBBBBBBBBBTTKKKKKKKKKKKKKKOOOUUUUUUUUUUSSSSSSSSSSSSSSSSSHHHH
WWWWWWWWWWWWWWGEEEEEEEEHEHHHHHHSYYYYYYYYYYYYWWWWWWZZZZZZFFFFFFFFFFFFLLLHHNHHHHABBBBBBBBBBBTTKKKKKKKKKKKKKKKOOUUUUUUUSSSSSSSSSSSSSSSSSSSSHHHH
WWWWWWWWWWWWWWWEEEEEEEEHHHHHHHHSSSYYYYYYYY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VVVPPPPPPPONAAAAAHHHHHHHXXXHHXXUDDDZZDDZZDDDDSSSSSSSSSSSSJJJJYYYSSSPPPPPPPPPPPPPIIPIIIMMMMMXXXXXOOOOOOOXXXXXXTTTTTTTTTTTTTTTTSSSSSSSS
VVVFFVVVVVVPPPPPPPPPAAAAAAAAAAXXXXHXXXXZZZZZZZZZZDDDSSSSSSSSSSSSJJJJYYSSSSPPPPPPPPPPPPPPIPPIIMMMMXXXXXXXXOOXOXXXXXXTTTTTTTTTTTTTTTTTSSSSSSSS
VVVVVVVVVVVVPPPPPNPKAAAAAAAAJAXXXXXXXXXXZZZZZZZZZDDSSSSSSSSSSSSZZZZZYYYSSPPPPPJPEPPPPPIIIIIIMMMMMXXXXXXXXXXXXXXXXXXXXXTTTTTTTTTTTTTTSSSSSSSS

View file

@ -53,7 +53,7 @@ library:
- Day9
- Day10
- Day11
# - Day12
- Day12
# - Day13
# - Day14
# - Day15

62
src/Day12.hs Normal file
View file

@ -0,0 +1,62 @@
{-# LANGUAGE OverloadedStrings #-}
module Day12 where
-- import Debug.Trace
import Data.Attoparsec.Text (Parser)
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.IO as T
parseInput :: Parser a
parseInput = undefined
solveA :: (Show a) => a -> a
solveA = undefined
solveB :: (Show a) => a -> a
solveB = undefined
inputEx :: Text
inputEx =
T.unlines
[ "AAAA"
, "BBCD"
, "BBCC"
, "EEEC"
]
inputEx2 :: Text
inputEx2 =
T.unlines
[ "OOOOO"
, "OXOXO"
, "OOOOO"
, "OXOXO"
, "OOOOO"
]
inputEx3 :: Text
inputEx3 =
T.unlines
[ "RRRRIICCFF"
, "RRRRIICCCF"
, "VVRRRCCFFF"
, "VVRCCCJFFF"
, "VVVVCJJCFE"
, "VVIVCCJJEE"
, "VVIIICJJEE"
, "MIIIIIJJEE"
, "MIIISIJEEE"
, "MMMISSJEEE"
]
main :: IO ()
main = do
input <- T.readFile "inputs/day12.input"
putStrLn "Part 1"
print $ solveA inputEx
print $ solveA input
putStrLn "Part 2"
print $ solveB input

View file

@ -5,33 +5,27 @@ module Template where
-- import Debug.Trace
import Data.Attoparsec.Text (Parser)
-- import Data.Either (fromRight)
-- import Data.List.HT (shearTranspose)
-- import Data.List (find)
-- import Data.Maybe (catMaybes)
import Data.String (IsString)
-- import Data.Text (Text)
-- import qualified Data.Attoparsec.Text as P
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.IO as T
parseInput :: Parser a
parseInput = undefined
solveA :: Show a => a -> a
solveA :: (Show a) => a -> a
solveA = undefined
solveB :: Show a => a -> a
solveB :: (Show a) => a -> a
solveB = undefined
inputEx :: IsString s => [s]
inputEx = ["a"]
inputEx :: Text
inputEx = T.unlines ["a"]
main :: IO ()
main = do
input <- T.readFile "inputs/template.input"
input <- T.readFile "inputs/dayXX.input"
putStrLn "Part 1"
print $ solveA $ T.unlines inputEx
print $ solveA inputEx
print $ solveA input
putStrLn "Part 2"
print $ solveB input