master
Raw Download raw file
 1--- Day 1: Report Repair ---
 2After saving Christmas five years in a row, you've decided to take a vacation 
 3at a nice resort on a tropical island. Surely, Christmas will go on without you.
 4
 5The tropical island has its own currency and is entirely cash-only. The gold 
 6coins used there have a little picture of a starfish; the locals just call them 
 7stars. None of the currency exchanges seem to have heard of them, but somehow, 
 8you'll need to find fifty of these coins by the time you arrive so you can pay 
 9the deposit on your room.
10
11To save your vacation, you need to get all fifty stars by December 25th.
12
13Collect stars by solving puzzles. Two puzzles will be made available on each day
14in the Advent calendar; the second puzzle is unlocked when you complete the 
15first. Each puzzle grants one star. Good luck!
16
17Before you leave, the Elves in accounting just need you to fix your expense
18report (your puzzle input); apparently, something isn't quite adding up.
19
20Specifically, they need you to find the two entries that sum to 2020 and then
21multiply those two numbers together.
22
23For example, suppose your expense report contained the following:
24
251721
26979
27366
28299
29675
301456
31
32In this list, the two entries that sum to 2020 are 1721 and 299. Multiplying 
33them together produces 1721 * 299 = 514579, so the correct answer is 514579.
34
35Of course, your expense report is much larger. Find the two entries that sum to
362020; what do you get if you multiply them together?
37
38Your puzzle answer was 485739.
39
40--- Part Two ---
41The Elves in accounting are thankful for your help; one of them even offers you
42a starfish coin they had left over from a past vacation. They offer you a second
43one if you can find three numbers in your expense report that meet the same
44criteria.
45
46Using the above example again, the three entries that sum to 2020 are 979, 366,
47and 675. Multiplying them together produces the answer, 241861950.
48
49In your expense report, what is the product of the three entries that sum to 
502020?
51
52Your puzzle answer was 161109702.