Added Solution for 2023 day 21

Added Solution for 2023 day 21
This commit is contained in:
Burnus 2023-12-21 14:28:22 +01:00
parent e341db7a22
commit b992be36c8
5 changed files with 499 additions and 0 deletions

View file

@ -0,0 +1,131 @@
...................................................................................................................................
...##..##......#...###.....###...#..............#.......................#....................#.#.#........#.............#..........
.#..........#...#.#..#....#.#........#.....#..#...........#..................................#.....#.............#..#.#.#.....##...
..#....#...................#..........#....#..........#.#..........................#.............#.#.#..............#.#............
....#...#............#....#.#.#..#.........#..#......#..#....................#..#.#.............##............#.............##.....
..........#............##..#....#.#.............................#.................#....##.##.##....#...##..#.....#.....#.....#.....
......#..#...#.#..............#.#......#.#.......#....#........##..#.......#.#.#.....#......#..#.#..#.......#.........##...........
...#..#..............#....#.#.......#......#....#.....#.............#........................#.......#..#........#..........##.....
...#....#...#..#..#.....#..#....#.#...#.....#...................#.............#...#.....#..#..#..#.........#.....#.......#.........
....#....#.......##..........#............#..#.......................................#.#......#.#...#.....#...#........#...#.......
.....#...###....#....#...#..............#.........................#.##......................##..#..#.#.##.........#...#............
...........#.......#.......#.....#...............#................#.#..##...........##..#.......###.#.#..#...#.#..........#........
..#......###..........#.#.......#..#..#..##....#...................#....#........###..#.#.....#...........#..............#..#....#.
....#.........#.#....#.........#..#.#.....#...#.........#..#........#...................#....#.#....#..#.#.....#....#...##..#.##...
....#..#....#.............#.......#.#...#..............#..........#....#...#........##...#.......#.........#.##............##......
.......#.#...........#....#...................................#....#........#...........#.#.###...#.........#.##.#....#...#.#..##..
....#..#........#..#..#.#..#.........#......#.............#..............#..................#.....#.#.....#..#.........#...#.......
........##...##..#......##...........#.................#.....###..#....#...#..........#.#..............#..#......................#.
.#............#.......##...........#.....................#.........#.........................##.....#..###.....#...#..###........#.
...........##...#............#......#.................#.....#..#...#...#.......#.........#..##.........#....###.....#.#......##..#.
.#....##.......#.......#...#..##..#.#...#............#.#...#......#...........................#.........#........#.........##......
..#...#...##.#.......................##...........#..#........#.#.....##..#.##.#..#.......#..#.....#.####.#.......#......#.........
.....#.##.#...##.#...........#.................#.....#....#.#..#.......#.........................#.#......#.##..#....#.#........#..
.....##.###..#...................#.........................#..#....#..#....................................#..##..#.#...#..#..#.#..
.#......#.#......#.............#.##..#.........##...##..........#.........#..#...#.#...........#.....##.......#.............##.#...
....#..........#.#....#...#.#....................#.###.........#......##...#.........#............#........#....#..#....##.#...##..
.............##.....#...#...#......#.............#............##.....#.......#.#........................#..#..........#...#........
..#......##............#...#.........................##..##..............#..#......#.................##........#...............##..
..#.......#...#......#...................#........#..#...##............##..#.....#..........................#.#..........#.........
...##..#...##..........##....###.........#.......##..................#.......#....................#...........#.#........#.........
......#....#......#.......#...#....................#..#........#..#......#..#.#....##.........................#.#....#.#....#....#.
.....#......................#................#......##......##.#.........#..##.........#...............##.......#.........#........
.#.#......#.#....#..#...#..............#......#..#.#.....#..........##.....#..#........#...#.#.........#..#.....................#..
...#.##.#..#..#...#.#................###....................##.....#.#....#.........#......#..#..........##.#....#......#..#.......
...#.................#.............#................#.................###..............#.................#..#......#.....#......##.
.#.#.....#..#..........#...........#.#............#.##..#......#..##....#.#..###.......##.#.....#.........##...#.#...........#.....
..#...#................#....................#..#..........#...............#.....#..#..####................#...............#........
..........#..........#..............#........#...##...............#.....#...#...#..##.....#...#...........##.#.....##.#......#.....
....#......#.......#...#.......#........#....#.....#..............#....#..##..#......#........#...............#.................#..
.#.............#...............#...............#..#...#..#.#...#..#.......#....................#....#........#..##........#........
.....................................#....###....#...#.....##.#.......#.........#.#.....#........#...........#...........##......#.
.......#.##...#..............#..##..#...#...........#.##..##..#....#..#.........#........#.#.....................#.......#.......#.
..#......##...................#..........#........##.....#..........#...#.#....#.#....#............##..............#...#.#.#.......
...#.#.##.#.#.......................##......#.......#.........#.........#..........#........#.#.....#.#.............#.........#....
.#.#...........#..................#....#......#.#............#....#.#..#...#..#..##.#............................#.#........#.##...
..#...#....#...................#....#..........#.......................#.....##..#...#.#.#.......#...#..#.........#......##........
.......#.................#...#........#....#.................#......................#...#.........##..................#......#.....
..#..#....#..#...............#................#..#.#.....#.#..#.........###.......................#.#..#....#..........#...........
......#...#..#...........#......................#..#............................#.....#........#.....##...#............#...........
...........................##..#....#....#.....#....#....#...#........#.......#.........#.#..........##...#..................#..#..
......#.....................#.....#.......#.#.....#.............#....#...#......#....#..#..........#........#...........#..........
..#...#.............#..............#.#....#....#.....#....#...#.#......#.....#.#...........#.#.........#.#..................#..###.
..#..............#....##......#.##..................#...##.........#..........#.................#..........#...................#...
................#.##...#......##.........#.#...#..####.#.............#...#....#.........#.................................#........
....#..........................#.......#...............#......#.......#...###.##.....#.#.#....#..###....#...#...##...........##....
...#.#...............#..................#.........#...#.#..............#.....#.......#...#.##...#..#.......#.....#...........#.....
.....#.....................#.#.#.....#.#.....#..#..##...#.....#...........#...##........#..#.......#.#...#....#..#............#....
..#..........#....##..#.....###.#...............................#.#.##.#...#....##........#...#.....#....#............#.......#....
.#...........#...#..#.....#..........#............#.......##......#.................#.#...#..##........#...............#...........
.#................#........##.#.#.....#.#.............#.....#..#..##...............#..#................#.......#...#...##.......##.
.#........#.##........##..#.#.##.....#..###..#......##...#......#..........#...............#.....#....#......#.....................
............#.........#..............#.....#..#......................#...#.##.##...###..#..........###........###..................
...........#...##.............#......#.....#.#...#...#.#..#....#..#............#....#..#.....#.#.........#.....#..#.###....#.......
.........#........#.......#..#..##..#........#.#.#...........#....................##..#....#..#.....##.......##...##...............
.......#....##..........##.....#...##....#.........#..#...................#......###.....#........#.....................#.#.#......
.................................................................S.................................................................
.....#...........#...#....#...#..#.........#.......##.#.............................#...#....#......#......#...#.#......#....#.....
........###...#.......................#...........#.....#.#.........#.#......#...#.....#..#...###.....#.#....#..........#..........
...............#.#............#.#......#...#..#.......#..#.#..#....##.#..#....#...............#.##.#..#...#...#..#.................
.............#.##..........#........#.#........###.....#..............#.......#..........##...........#........#...#...............
...........#.#.#........#......###.....#.#......#.#..##..#..#...#...##.#.#...##.......#........#..#.#.##...###...........#.........
..........##..............#......#.............#..#.#....#..#.....#.#...#..........##............#...#.##.....#.#..#...............
.#.#...............#.#............##.......#...#..#....#.....#........#.#..###...#.....#.........#................#..#.............
.............#...#........#....#....#..........##.#....#......#.....#.........#..#........#.......###....#.#....#....##............
...#............#.#......#...#....#..............#.....#..##....#.....#....#.....#...#...#.#..#.........#.#.........#..............
..............#.......#...........#..............#.#.......#..#.#......#...##.......#................#...#.....#...#...............
...##...........................#...#...#.......#............#.#.....#...#....#..#......#..#.##....#.#...#...#.................#.#.
...#....#...........#.........##...#............#...............#...................................##..#......#..#..............#.
...##.#.#.............#....#.##.#........#.....#.#...#.....##...........#.....................#...#..#......#............##.....#..
...#..#...#...............#.#......#....#.#.#......#...................#......#.....##....#....#....##...#......#..............#...
......#..#.........#.................#...#................#.........#..................................................#....#......
.#..........#..........#..................#.#...#....#....#.#.........#..#...#........#......#.............#....................#..
........#............#........#.......##......##....#................#.......#....#.#.....#............#.#.#...............###.....
.##........#..........#...#......##..#.##.#.....##.........................#.....##.#...#......#.#......#..#..........#............
....#....................#...#.......#...#.......#.....#......#...#..#...#......#.#..#...##.##..#.....##...........#..#.###........
.#.....#........#..............#...#...#.........#.#................#.#.............##.#....#..#.....................#.....#..###..
......#...#.#..#.............##.#........#.....................#........#....#...........#....##......................#............
..#.....##...#..#.#.........#.#.......#.#..#......#..........#.##....#..#..................#.........#..#........#....##...........
..#...#.#....#.#...................##......##...........#...#.............#..........#.##..#.#......#..................#..#.#...##.
...##...#........#.#.........#...#.....#.#...##...#...#..#.#.........#.....#..#....#.###...#........#.............#.........#....#.
.........#...#.#...#.#.................#............#........................#.#.....#.........#................#.....#..#......#..
...........#.#..#.............##........#..........#....#...........#....#.....#....#....#.#......##.........#..##....#..##........
.........#..................................#..#...............#...#..#...#...#..#......#.#..#.............#...........#.#..#...##.
.#.#......#..#.......#.##........#......#....#................#...#...##..##....#.....#..........#.........#....#..#.#.........#...
.....#.....#.........#............#....#.....................#....#.##...#......................#................#.#.#...#.........
.....#.............##..#..........#..#..............##..#.................##........###.....#.#.........#.#.#...............#......
.#.#.#...#.#..............#...............#...............#..#.....#......#..............................#.......#.#...#.#...#.....
.................#........#...............#.........................................#......................#....#............#...#.
.#...#.###...........#...#..##...............#.........#...##....................#...........#...............#....##...........#.#.
..###...#.#.........##.................#.#.....#..##...........#....##........#...#...................##..##...#................#..
...#.................#.....#...........#....#...##...#.......#............#.....#.#........#........#...#...##...#.##..............
.......#....#.........#.#.....#.#.......#.....#....#...#.............#.....#.....#.##.....................#.###...........#........
................#....#..#.......#.............#......#.......#.................#.#................#..........#.....##...#..#....#..
........#...#...#.#......##......#.........#.......................#.........#...#.....................#..........#.#..#...#.......
....#.......##......##....##.................#.....#.#.#....#...#...........#.......................#........#....#....#.....#...#.
.#..##..##.........#......#.........#.......#....#....#...#.....#..#.....#.#............................#...#..................#.#.
...#......#............##.....##.............##.................#..#....#.#...#....#......................##....#.....#........#...
........#....#....#..........#.###....#................#..##......#..#...#..#......#..........##...............#..#.........#...#..
.....#...#.##.....#....#.##.........#............##....#..#.#.....#.............#...................#..#............#..#..#.#....#.
.....#..#.........##..#...........#....#............#.#...........#..............##.......#.#...........#..####.....##.#.##........
...#.#.#.##.#.#..#.....#........###..#............#........##......##.#..........................####........##.#.....#......#.....
.##.#.#...##..#........##....#........#............#...#...#......#....#....##..#...........#.#.........#.##...#...#...#...#.#.....
......#.#..#.#........##.#....#.#...#.###..#...........#...................#.................#.#.#............##.#...#.#.........#.
........#.#....#...#...#..........#.#..#..#...........#..#...#.....##......#.....................##..#........#.....#.#.....#....#.
..#.......##....##............##...............................#......#.#..#.............#..........................#....#.........
.......#....#................#...........#...##................#...#.#....#...............#....##.......................#.#.....#..
..........#...........#..#..#.....#...........##...........#......#.#.#.#..........#..........#.....#......................###.....
....#.......##...........#..........#..###.#.........................#....#..........#.#.........#......#............#..#.....#..#.
...#.#...#...#.............#.......#...#.##..............................#........##.......##..#...#......................#........
...........##.............#....##....#.#...#.#..............#..#..................#.......#......#.......#.................#..#....
.#.##..#......#...#..#........#.......#.#.#....#...............#........................#..........#...............................
........#...........#....#...#...##..#.#....###................#...#.................#..................#.......#....#........#..#.
.........#.###.#....#..#..##..........#.#.......#............................#..##....#.....#....#....#.#...##......##.............
..#.#..##.#........#..#.#...#........#...#...#.....................##...........#.....#...#.#.#...#.......#..#..#.........#..#..#..
.....#..........####....##..##......#.............#...#...........#........#..........#.............###...#.#.#...#................
..#.....#...#....#.#.........#....#..#.......##.....#.............#........#............#...###.........#...#......................
.##..............#..#....#..#......#....##..#......#.###.#..................#...............#.#..#..#.##..........#............#.#.
..#..#..#.....................#.#..............##...#.....#....................#..##...#.........#...........#..##.........#....#..
....#...............#.......#.#....##....#..#..........................#.......#.##...........#.......#....#.#........#..#.........
.....##.......#.................................#........#..................#..#.#......#....#..#....#...#.........................
...................................................................................................................................