/AOC2022

Primary LanguageHaskell

Here are my solutions to https://adventofcode.com/2022 up to the 22nd. The 16th part 2, and the 22nd part 2 through the 25th are not complete.

Below is the output from cabal run. Alternatively cabal install ghcid; ghcid -Tmain Day01.hs will re-run that file whenever you change it. Day16 needs to be compiled to have acceptable memory use.

Day01.hs
part 1
(34,66186)
part 2
196804
Day02.hs
12458
12683
Day03.hs
8493
2552
Day04.hs
part1
462
part2
835
Day05.hs
"RLFNRTNFB"
"MHQTLJRLB"
Day06.hs
Just 1757
Just 2950
Day07.hs
1118405
Just 12545514
Day08.hs
("part 1",1703)
("part 2",496650)
Day09b.hs
6464
2604
Day10.hs
14320
.##...##..###..###..#..#..##..###....##.
...#.#..#.#..#.#..#.#.#..#..#.#..#....#.
...#.#....#..#.###..##...#..#.#..#....#.
.##..#....###..#..#.#.#..####.###.....#.
.....#..#.#....#..#.#.#..#..#.#....#..#.
......##..#....###..#..#.#..#.#.....##..

Day11b.hs
11741456163
Day11.hs
51075
Day12.hs
449
443
Day13.hs
5938
29025
Day14.hs
808
26625
Day15.hs
4811413
13171855019123
Day16.hs
part 1
2250
part2 not completed
Day17b.hs
 input for 17.Rmd/hand calculation in comments
ht,nJ,nB
3987,14700,2500
6658,24791,4195
9329,34882,5890
12000,44973,7585
14671,55064,9280
17342,65155,10975
20013,75246,12670
22684,85337,14365
25355,95428,16060
28026,105519,17755
30697,115610,19450
Day17.hs
Just 3215
Day18.hs
4636
2572
Day19.hs
30780
Day20.hs
Just 5498
Just 3390007892081
Day21.hs
31017034894002
Satisfiable. Model:
  humn = 3555057453229 :: Integer
Day22.hs
(73,86,2,73346)
part 2 not done
Day23.hs
134
...............
...............
.......#.......
.....#...#.....
...#..#.#......
.......#..#....
....#.#.##.....
..#..#.#.......
..#.#.#.##.....
...............
....#..#.......
...............
...............
...............
...............

...............
...............
.......#.......
....#.....#....
...#..#.#......
.......#...#...
...#..#.#......
...#.#.#.#.....
..#.#..........
......#.##.....
....#..#.......
...............
...............
...............
...............

27