mirror of
https://github.com/parnic/advent-of-code-2022.git
synced 2025-06-16 13:40:13 -05:00
Day 23 solution
Part 2 takes 7 seconds on my macbook, which I'd like to improve, but this gets the answer.
This commit is contained in:
@ -1,5 +1,74 @@
|
||||
#############
|
||||
#...........#
|
||||
###A#D#B#C###
|
||||
#B#C#D#A#
|
||||
#########
|
||||
.##.#.#####..##.#.#...#.##....#.######.##.#.#.##..#.#.##.#.######.#.###.##
|
||||
.#.#..#####....###.####.###..##.....#####..#.#####.##...#.##.#.##....####.
|
||||
........##..#.###.#.#..#..#.######..#.##.#.#####.#..##...#.#.##...###.#...
|
||||
.#..#....#.......#..#...##.#.##.#..##..#.###.######.#.#.#####....#...####.
|
||||
##......##.####...##.###....##.#.####..###...#..#.#...#..#.##..###.#.####.
|
||||
#...#..##.######.#...##...#.#........##...#.###..#.##..##.##...#######.##.
|
||||
#....#.#..###...####.....#..##.##......#.....###.##.....#.####..##..#..#..
|
||||
...##.#.##.#.#...##....#.#.###.###.##..#.##.###...#..#..##..#....#.##.##.#
|
||||
#....#########.####..#....##.###.##.....###.#..##...##.#####.###..##.....#
|
||||
###.######.###.#####..####.#....#.###..#..###.#.####.###..#.##...##.#..#..
|
||||
.##....#..##..#....######.##..###.#.#.#...###...#.###.##.#....#.##.#.####.
|
||||
.......##...##..#..####.##........##...##.#.###.#####.####.##...####.#....
|
||||
###.#......#..#.#.#.####...#####.#.####.#.####....#.....#.######....##.##.
|
||||
###...#.##.####..#..##.#.#.#...#.###..##..##.###....##.....##..#.##..#.#..
|
||||
#########.#.####..##.#.#...##.##....####..#####..#....#.#...######.###....
|
||||
#.##....###..####.#..#####.#..##.###....#.#.###..##.#....###.#.#.#.#..##..
|
||||
##.###....###..##..###..#.#..##.#.##.#..#.......#.##.######.#...#...#.####
|
||||
##.......#.....####...#...#.##.#..##.##........####..#.....#...##.#...#.##
|
||||
.##..#.#....##.....##.##.#.#.###...##...#..####...#.#.#..######.#...##....
|
||||
.#....##.#.#.#..#.#.#....#....###.##.###....#.....###.#...#.##..#..####..#
|
||||
..##...##..###..#####.########.##....#.#...##.##..#.#.##...##..#...##.##.#
|
||||
#.#...##....#...###....#...#.##.#.##.######.##...#####...##.##...#######..
|
||||
.#.#.######.##..#.####.#.##.##.##.#...####......##.....##...####..##.####.
|
||||
.###.###..##.....#####...####..##...##.##.##..##...#..#.#..##.....###.#.##
|
||||
#.#.####.##.#.###.###.#..#.#....#######.###......#.##.....######.....##...
|
||||
##..#.#.#..#....##.....#.###.#..##.....##############.#.#.####.##..#.##.##
|
||||
#.....#.#..#.##..##..##..##...###....###..##.##...##.##....#..#######..##.
|
||||
##.##..###.#..###.##.####.#.#.........##.#......#.###.#..##..#...##..#.##.
|
||||
..#.###.##.####.####.#..#.###...#.#.###.#.##..#....#.#.#...#....###....###
|
||||
#..#...##.#....###.#.###..#...###.##.#.######......#.##.#..#..#.###.######
|
||||
#.#...#.##..#....###....#.#.#.....########.#..##...#.#..############.#####
|
||||
..####.#....#####.#.#.#....#..#.##....#..#..###.####.#....##.##...#.#.##.#
|
||||
.##...#.#..#.###..#...#..#.#.#....#..#.###.##.#.####.#.###..#..#.....##..#
|
||||
###..#.##...#.###.###...##..#.####....#.####......#..###...#...#.#....#.##
|
||||
...#.######...#.########..######...##.....###.####.#.###...#.###.###.#....
|
||||
##.#####...###.##.#.####..#...#.#####.##.....#....####.#####.####.###..#.#
|
||||
....###...#.#..#.##.#...#....#.#.#..##########.....#..##..##..##.##.##.#..
|
||||
#....#..##.#...###..####.#......########.#.......###..#...##.#.#..#.....#.
|
||||
....#.......###.##.##.###.#.####.#...##.#.#..#.#.#.#.....##.#.#...#.#.#.##
|
||||
###.#.##..##..####.#####.#.##.###..#.#######.##...#.#####.##.##.###..#...#
|
||||
####.#.#..#..##.##..#.#.##.#.###.#...#.#..##.######.#.###.#..#..####..#..#
|
||||
#......#.###.#.##...##..##...#.#..#.#.###...#..##..##.###.#.#..#.####.#..#
|
||||
.###.#.#.....#.#####.....#.#..#...#...####...#.####....#..#.#...#.#.#..###
|
||||
##....######.#.....##.....#.###...#..###.#.##...##..#.###.....#..#..#.#...
|
||||
##..#.#.##....#.#...##.##.##.##.#.#.##..#.#..#..##.##..##..#.##..#....##.#
|
||||
#.##.#.#.###...######...##.#.#.##.#.#..#...#.###..##.##.#....#..#..#.#...#
|
||||
..##...#....#.##.##..##...##.......#..#####...#.#...###..#.#.##...#..#....
|
||||
#.#.....##.##.#.#.#...##.#....#...#.#.##..#.####.#.#.##..#.##.##.###....##
|
||||
..#.##..#.#..##.#..##....###.##...#.##...#.#....##.###.#.#.##...##.##..#.#
|
||||
.######.###........#.#.....#.#.......#.##.########.#...#.#..##.##.##..####
|
||||
#..##.....##....###.###.#.#..##..##..#.#.#.##.#.....##.###.#.##.##.#.#...#
|
||||
.......###..##.##.####.#.#####.#..#...#####...#...#..#.##.####..##.##..##.
|
||||
##....#####.##....#..###.####.###.###..#.#.#..#.#.##..#..###.#########.#..
|
||||
#.###..###...#.#..#.#...#.#.##.#.######.####..#..##..##.#......###.#..#...
|
||||
.##..#####..#.#....###.###.##.....##..#.##....#..##.#...####...##.#.......
|
||||
##.####..##...##.#...######.###.###.#.###..####.####.##..###.##.##..######
|
||||
##.#.####.#.#..#.#.###.......###......####.#.#.##.#...##..##..##.....#.#.#
|
||||
.###....####.#...#.#......#####.##.##.#...###..##...##...#####....##.#..##
|
||||
#..###..##....#...##.###..##.##.##########..#..##...#....##....#.......##.
|
||||
###.###..#.#..#....##.#......#.###.#.#.#.#.##...#..#..##......###.##..#.#.
|
||||
....##......#......#....#.##.####.####.##.###.#.##.#..#.#.#..........#.#.#
|
||||
#...####...#.###..##....##..##.#####.###.#...#..#.....##.#.###.##.#...#.##
|
||||
.###..##.#.###.#....#..#.###.######.##.#####..#..#.#..##.#..######.##....#
|
||||
.#....###..#.#.###....##.#...###.#.#...##.#.##.##.#.#.##.#.#...#.#........
|
||||
..#.##...#....##.#..#.#.#.......#..#......#..#..#..#.#.##....#.#.#...###..
|
||||
##.#.#..##.##.#....#.#...........###....#..##.##.######.##.##..####.#.....
|
||||
..##...###....###.#####..###......###.#..##...##....##.#.#.###....#..##..#
|
||||
.#....#.#.#.###..##.##.#....#.##.##....#.#.##..###..##...###.#...#....##..
|
||||
#...#...####...####...#.#.#.#####....####..#..##.###.#.#....##...#.##..##.
|
||||
###..#####..#.#.#...#.#.#...#...###.####.###..#...###.####.####..##.#..#..
|
||||
#...#####...##..#.###.#.#.#.#..####..##......#####....#####.####.####...##
|
||||
..........#..#..#..##.#.##...##...#..#.#...#####.....#####..#...##.##.#..#
|
||||
.#.##.###...#.##.#....###.#.##.##.#.####.#..##.#..#..#.#.##........#.#####
|
||||
.###########.##.###.#..#.###....#......#.##.....####.####..##.....#####.#.
|
7
inputs/23a.txt
Normal file
7
inputs/23a.txt
Normal file
@ -0,0 +1,7 @@
|
||||
....#..
|
||||
..###.#
|
||||
#...#.#
|
||||
.#...##
|
||||
#.###..
|
||||
##.#.##
|
||||
.#..#..
|
6
inputs/23b.txt
Normal file
6
inputs/23b.txt
Normal file
@ -0,0 +1,6 @@
|
||||
.....
|
||||
..##.
|
||||
..#..
|
||||
.....
|
||||
..##.
|
||||
.....
|
Reference in New Issue
Block a user