As every location is checked, it’s starred on the record. They suppose they have to be in one of many first 50 locations the Chief Historian seems, so to save lots of Christmas they should get 50 stars on the record earlier than Santa takes off on December twenty fifth. I need assistance including it.
Clear up puzzles and acquire stars. Two puzzles might be out there every day within the Creation Calendar. Finishing the primary puzzle will unlock the second puzzle. Every puzzle is awarded one star. Good luck!
You have not even left but, and a gaggle of senior elven historians are already in hassle. Their record of locations to test is presently empty. In the long run, somebody determined the very best place to test first was the Chief Historian’s workplace.
Streaming into the workplace, everybody confirms that the Chief Historian is certainly nowhere to be discovered. As an alternative, the elves found numerous notes and lists of locations of historic significance. This appears to have been the plan the Chief Historian had earlier than leaving. Maybe these notes can be utilized to resolve which areas to look?
All through the Commissioner’s Workplace, traditionally vital areas are listed with distinctive numbers known as location IDs, reasonably than names. To ensure they did not miss something, the historians cut up into two teams, every looking out workplaces and attempting to create their very own full record of location IDs.
There’s only one drawback. If you happen to maintain two lists aspect by aspect (puzzle enter), you’ll rapidly discover that the lists are usually not very related. Are you able to assist me manage the record of historians?
for instance:
3 4
4 3
twenty 5
1 3
3 9
3 3
Possibly the record is just a bit off. To test this, pair the numbers and measure how far aside they’re. Mix the smallest quantity from the left record with the smallest quantity from the suitable record, then the second smallest quantity from the left and the second smallest quantity from the suitable.
Learn how far aside the 2 numbers are inside every pair. We have to add up all these distances. For instance, in case you mix 3 from the record on the left with 7 from the record on the suitable, their distance is 4. If you happen to mix 9 and three, the gap is 6.
Within the instance record above, the pairs and distances can be:
The minimal quantity for the record on the left is 1, and the minimal quantity for the record on the suitable is 3. The gap between them is 2.
The second lowest quantity within the record on the left is 2, and the second lowest quantity within the record on the suitable is one other 3. The gap between them is 1.
The third smallest quantity in each lists is 3, so the gap between them is 0.
The following pairs of numbers are 3 and 4, and the gap is 1.
The fifth lowest numbers in every record are 3 and 5, and the gap is 2.
Lastly, the utmost quantity for the record on the left is 4, whereas the utmost quantity for the record on the suitable is 9. These are at a distance of 5.
To search out the full distance between the record on the left and the record on the suitable, sum the distances between all pairs discovered. Within the instance above, 2 + 1 + 0 + 1 + 2 + 5, for a complete distance of 11.
The precise left and proper lists comprise many location IDs. What’s the whole distance between the lists?
### Resolution: 1666427