Added Solution for 2023 day 21
Added Solution for 2023 day 21
This commit is contained in:
parent
e341db7a22
commit
b992be36c8
5 changed files with 499 additions and 0 deletions
131
2023/day21_step_counter/tests/challenge_input
Normal file
131
2023/day21_step_counter/tests/challenge_input
Normal file
|
@ -0,0 +1,131 @@
|
|||
...................................................................................................................................
|
||||
...##..##......#...###.....###...#..............#.......................#....................#.#.#........#.............#..........
|
||||
.#..........#...#.#..#....#.#........#.....#..#...........#..................................#.....#.............#..#.#.#.....##...
|
||||
..#....#...................#..........#....#..........#.#..........................#.............#.#.#..............#.#............
|
||||
....#...#............#....#.#.#..#.........#..#......#..#....................#..#.#.............##............#.............##.....
|
||||
..........#............##..#....#.#.............................#.................#....##.##.##....#...##..#.....#.....#.....#.....
|
||||
......#..#...#.#..............#.#......#.#.......#....#........##..#.......#.#.#.....#......#..#.#..#.......#.........##...........
|
||||
...#..#..............#....#.#.......#......#....#.....#.............#........................#.......#..#........#..........##.....
|
||||
...#....#...#..#..#.....#..#....#.#...#.....#...................#.............#...#.....#..#..#..#.........#.....#.......#.........
|
||||
....#....#.......##..........#............#..#.......................................#.#......#.#...#.....#...#........#...#.......
|
||||
.....#...###....#....#...#..............#.........................#.##......................##..#..#.#.##.........#...#............
|
||||
...........#.......#.......#.....#...............#................#.#..##...........##..#.......###.#.#..#...#.#..........#........
|
||||
..#......###..........#.#.......#..#..#..##....#...................#....#........###..#.#.....#...........#..............#..#....#.
|
||||
....#.........#.#....#.........#..#.#.....#...#.........#..#........#...................#....#.#....#..#.#.....#....#...##..#.##...
|
||||
....#..#....#.............#.......#.#...#..............#..........#....#...#........##...#.......#.........#.##............##......
|
||||
.......#.#...........#....#...................................#....#........#...........#.#.###...#.........#.##.#....#...#.#..##..
|
||||
....#..#........#..#..#.#..#.........#......#.............#..............#..................#.....#.#.....#..#.........#...#.......
|
||||
........##...##..#......##...........#.................#.....###..#....#...#..........#.#..............#..#......................#.
|
||||
.#............#.......##...........#.....................#.........#.........................##.....#..###.....#...#..###........#.
|
||||
...........##...#............#......#.................#.....#..#...#...#.......#.........#..##.........#....###.....#.#......##..#.
|
||||
.#....##.......#.......#...#..##..#.#...#............#.#...#......#...........................#.........#........#.........##......
|
||||
..#...#...##.#.......................##...........#..#........#.#.....##..#.##.#..#.......#..#.....#.####.#.......#......#.........
|
||||
.....#.##.#...##.#...........#.................#.....#....#.#..#.......#.........................#.#......#.##..#....#.#........#..
|
||||
.....##.###..#...................#.........................#..#....#..#....................................#..##..#.#...#..#..#.#..
|
||||
.#......#.#......#.............#.##..#.........##...##..........#.........#..#...#.#...........#.....##.......#.............##.#...
|
||||
....#..........#.#....#...#.#....................#.###.........#......##...#.........#............#........#....#..#....##.#...##..
|
||||
.............##.....#...#...#......#.............#............##.....#.......#.#........................#..#..........#...#........
|
||||
..#......##............#...#.........................##..##..............#..#......#.................##........#...............##..
|
||||
..#.......#...#......#...................#........#..#...##............##..#.....#..........................#.#..........#.........
|
||||
...##..#...##..........##....###.........#.......##..................#.......#....................#...........#.#........#.........
|
||||
......#....#......#.......#...#....................#..#........#..#......#..#.#....##.........................#.#....#.#....#....#.
|
||||
.....#......................#................#......##......##.#.........#..##.........#...............##.......#.........#........
|
||||
.#.#......#.#....#..#...#..............#......#..#.#.....#..........##.....#..#........#...#.#.........#..#.....................#..
|
||||
...#.##.#..#..#...#.#................###....................##.....#.#....#.........#......#..#..........##.#....#......#..#.......
|
||||
...#.................#.............#................#.................###..............#.................#..#......#.....#......##.
|
||||
.#.#.....#..#..........#...........#.#............#.##..#......#..##....#.#..###.......##.#.....#.........##...#.#...........#.....
|
||||
..#...#................#....................#..#..........#...............#.....#..#..####................#...............#........
|
||||
..........#..........#..............#........#...##...............#.....#...#...#..##.....#...#...........##.#.....##.#......#.....
|
||||
....#......#.......#...#.......#........#....#.....#..............#....#..##..#......#........#...............#.................#..
|
||||
.#.............#...............#...............#..#...#..#.#...#..#.......#....................#....#........#..##........#........
|
||||
.....................................#....###....#...#.....##.#.......#.........#.#.....#........#...........#...........##......#.
|
||||
.......#.##...#..............#..##..#...#...........#.##..##..#....#..#.........#........#.#.....................#.......#.......#.
|
||||
..#......##...................#..........#........##.....#..........#...#.#....#.#....#............##..............#...#.#.#.......
|
||||
...#.#.##.#.#.......................##......#.......#.........#.........#..........#........#.#.....#.#.............#.........#....
|
||||
.#.#...........#..................#....#......#.#............#....#.#..#...#..#..##.#............................#.#........#.##...
|
||||
..#...#....#...................#....#..........#.......................#.....##..#...#.#.#.......#...#..#.........#......##........
|
||||
.......#.................#...#........#....#.................#......................#...#.........##..................#......#.....
|
||||
..#..#....#..#...............#................#..#.#.....#.#..#.........###.......................#.#..#....#..........#...........
|
||||
......#...#..#...........#......................#..#............................#.....#........#.....##...#............#...........
|
||||
...........................##..#....#....#.....#....#....#...#........#.......#.........#.#..........##...#..................#..#..
|
||||
......#.....................#.....#.......#.#.....#.............#....#...#......#....#..#..........#........#...........#..........
|
||||
..#...#.............#..............#.#....#....#.....#....#...#.#......#.....#.#...........#.#.........#.#..................#..###.
|
||||
..#..............#....##......#.##..................#...##.........#..........#.................#..........#...................#...
|
||||
................#.##...#......##.........#.#...#..####.#.............#...#....#.........#.................................#........
|
||||
....#..........................#.......#...............#......#.......#...###.##.....#.#.#....#..###....#...#...##...........##....
|
||||
...#.#...............#..................#.........#...#.#..............#.....#.......#...#.##...#..#.......#.....#...........#.....
|
||||
.....#.....................#.#.#.....#.#.....#..#..##...#.....#...........#...##........#..#.......#.#...#....#..#............#....
|
||||
..#..........#....##..#.....###.#...............................#.#.##.#...#....##........#...#.....#....#............#.......#....
|
||||
.#...........#...#..#.....#..........#............#.......##......#.................#.#...#..##........#...............#...........
|
||||
.#................#........##.#.#.....#.#.............#.....#..#..##...............#..#................#.......#...#...##.......##.
|
||||
.#........#.##........##..#.#.##.....#..###..#......##...#......#..........#...............#.....#....#......#.....................
|
||||
............#.........#..............#.....#..#......................#...#.##.##...###..#..........###........###..................
|
||||
...........#...##.............#......#.....#.#...#...#.#..#....#..#............#....#..#.....#.#.........#.....#..#.###....#.......
|
||||
.........#........#.......#..#..##..#........#.#.#...........#....................##..#....#..#.....##.......##...##...............
|
||||
.......#....##..........##.....#...##....#.........#..#...................#......###.....#........#.....................#.#.#......
|
||||
.................................................................S.................................................................
|
||||
.....#...........#...#....#...#..#.........#.......##.#.............................#...#....#......#......#...#.#......#....#.....
|
||||
........###...#.......................#...........#.....#.#.........#.#......#...#.....#..#...###.....#.#....#..........#..........
|
||||
...............#.#............#.#......#...#..#.......#..#.#..#....##.#..#....#...............#.##.#..#...#...#..#.................
|
||||
.............#.##..........#........#.#........###.....#..............#.......#..........##...........#........#...#...............
|
||||
...........#.#.#........#......###.....#.#......#.#..##..#..#...#...##.#.#...##.......#........#..#.#.##...###...........#.........
|
||||
..........##..............#......#.............#..#.#....#..#.....#.#...#..........##............#...#.##.....#.#..#...............
|
||||
.#.#...............#.#............##.......#...#..#....#.....#........#.#..###...#.....#.........#................#..#.............
|
||||
.............#...#........#....#....#..........##.#....#......#.....#.........#..#........#.......###....#.#....#....##............
|
||||
...#............#.#......#...#....#..............#.....#..##....#.....#....#.....#...#...#.#..#.........#.#.........#..............
|
||||
..............#.......#...........#..............#.#.......#..#.#......#...##.......#................#...#.....#...#...............
|
||||
...##...........................#...#...#.......#............#.#.....#...#....#..#......#..#.##....#.#...#...#.................#.#.
|
||||
...#....#...........#.........##...#............#...............#...................................##..#......#..#..............#.
|
||||
...##.#.#.............#....#.##.#........#.....#.#...#.....##...........#.....................#...#..#......#............##.....#..
|
||||
...#..#...#...............#.#......#....#.#.#......#...................#......#.....##....#....#....##...#......#..............#...
|
||||
......#..#.........#.................#...#................#.........#..................................................#....#......
|
||||
.#..........#..........#..................#.#...#....#....#.#.........#..#...#........#......#.............#....................#..
|
||||
........#............#........#.......##......##....#................#.......#....#.#.....#............#.#.#...............###.....
|
||||
.##........#..........#...#......##..#.##.#.....##.........................#.....##.#...#......#.#......#..#..........#............
|
||||
....#....................#...#.......#...#.......#.....#......#...#..#...#......#.#..#...##.##..#.....##...........#..#.###........
|
||||
.#.....#........#..............#...#...#.........#.#................#.#.............##.#....#..#.....................#.....#..###..
|
||||
......#...#.#..#.............##.#........#.....................#........#....#...........#....##......................#............
|
||||
..#.....##...#..#.#.........#.#.......#.#..#......#..........#.##....#..#..................#.........#..#........#....##...........
|
||||
..#...#.#....#.#...................##......##...........#...#.............#..........#.##..#.#......#..................#..#.#...##.
|
||||
...##...#........#.#.........#...#.....#.#...##...#...#..#.#.........#.....#..#....#.###...#........#.............#.........#....#.
|
||||
.........#...#.#...#.#.................#............#........................#.#.....#.........#................#.....#..#......#..
|
||||
...........#.#..#.............##........#..........#....#...........#....#.....#....#....#.#......##.........#..##....#..##........
|
||||
.........#..................................#..#...............#...#..#...#...#..#......#.#..#.............#...........#.#..#...##.
|
||||
.#.#......#..#.......#.##........#......#....#................#...#...##..##....#.....#..........#.........#....#..#.#.........#...
|
||||
.....#.....#.........#............#....#.....................#....#.##...#......................#................#.#.#...#.........
|
||||
.....#.............##..#..........#..#..............##..#.................##........###.....#.#.........#.#.#...............#......
|
||||
.#.#.#...#.#..............#...............#...............#..#.....#......#..............................#.......#.#...#.#...#.....
|
||||
.................#........#...............#.........................................#......................#....#............#...#.
|
||||
.#...#.###...........#...#..##...............#.........#...##....................#...........#...............#....##...........#.#.
|
||||
..###...#.#.........##.................#.#.....#..##...........#....##........#...#...................##..##...#................#..
|
||||
...#.................#.....#...........#....#...##...#.......#............#.....#.#........#........#...#...##...#.##..............
|
||||
.......#....#.........#.#.....#.#.......#.....#....#...#.............#.....#.....#.##.....................#.###...........#........
|
||||
................#....#..#.......#.............#......#.......#.................#.#................#..........#.....##...#..#....#..
|
||||
........#...#...#.#......##......#.........#.......................#.........#...#.....................#..........#.#..#...#.......
|
||||
....#.......##......##....##.................#.....#.#.#....#...#...........#.......................#........#....#....#.....#...#.
|
||||
.#..##..##.........#......#.........#.......#....#....#...#.....#..#.....#.#............................#...#..................#.#.
|
||||
...#......#............##.....##.............##.................#..#....#.#...#....#......................##....#.....#........#...
|
||||
........#....#....#..........#.###....#................#..##......#..#...#..#......#..........##...............#..#.........#...#..
|
||||
.....#...#.##.....#....#.##.........#............##....#..#.#.....#.............#...................#..#............#..#..#.#....#.
|
||||
.....#..#.........##..#...........#....#............#.#...........#..............##.......#.#...........#..####.....##.#.##........
|
||||
...#.#.#.##.#.#..#.....#........###..#............#........##......##.#..........................####........##.#.....#......#.....
|
||||
.##.#.#...##..#........##....#........#............#...#...#......#....#....##..#...........#.#.........#.##...#...#...#...#.#.....
|
||||
......#.#..#.#........##.#....#.#...#.###..#...........#...................#.................#.#.#............##.#...#.#.........#.
|
||||
........#.#....#...#...#..........#.#..#..#...........#..#...#.....##......#.....................##..#........#.....#.#.....#....#.
|
||||
..#.......##....##............##...............................#......#.#..#.............#..........................#....#.........
|
||||
.......#....#................#...........#...##................#...#.#....#...............#....##.......................#.#.....#..
|
||||
..........#...........#..#..#.....#...........##...........#......#.#.#.#..........#..........#.....#......................###.....
|
||||
....#.......##...........#..........#..###.#.........................#....#..........#.#.........#......#............#..#.....#..#.
|
||||
...#.#...#...#.............#.......#...#.##..............................#........##.......##..#...#......................#........
|
||||
...........##.............#....##....#.#...#.#..............#..#..................#.......#......#.......#.................#..#....
|
||||
.#.##..#......#...#..#........#.......#.#.#....#...............#........................#..........#...............................
|
||||
........#...........#....#...#...##..#.#....###................#...#.................#..................#.......#....#........#..#.
|
||||
.........#.###.#....#..#..##..........#.#.......#............................#..##....#.....#....#....#.#...##......##.............
|
||||
..#.#..##.#........#..#.#...#........#...#...#.....................##...........#.....#...#.#.#...#.......#..#..#.........#..#..#..
|
||||
.....#..........####....##..##......#.............#...#...........#........#..........#.............###...#.#.#...#................
|
||||
..#.....#...#....#.#.........#....#..#.......##.....#.............#........#............#...###.........#...#......................
|
||||
.##..............#..#....#..#......#....##..#......#.###.#..................#...............#.#..#..#.##..........#............#.#.
|
||||
..#..#..#.....................#.#..............##...#.....#....................#..##...#.........#...........#..##.........#....#..
|
||||
....#...............#.......#.#....##....#..#..........................#.......#.##...........#.......#....#.#........#..#.........
|
||||
.....##.......#.................................#........#..................#..#.#......#....#..#....#...#.........................
|
||||
...................................................................................................................................
|
Loading…
Add table
Add a link
Reference in a new issue