day 19 part 1 (ugly, many useless code)

This commit is contained in:
2022-01-22 13:22:39 +01:00
parent 1caa102c23
commit 858258770b
2 changed files with 209 additions and 52 deletions

View File

@@ -363,3 +363,14 @@ The full list of beacons (relative to scanner 0) is:
In total, there are 79 beacons.
Assemble the full map of beacons. How many beacons are there?
Your puzzle answer was 318.
The first half of this puzzle is complete! It provides one gold star: *
--- Part Two ---
Sometimes, it's a good idea to appreciate just how big the ocean is. Using the Manhattan distance, how far apart do the scanners get?
In the above example, scanners 2 (1105,-1205,1229) and 3 (-92,-2380,-20) are the largest Manhattan distance apart. In total, they are 1197 + 1175 + 1249 = 3621 units apart.
What is the largest Manhattan distance between any two scanners?