Skip to content

Latest commit

 

History

History

Day-01-Report-Repair

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Day-01-Report-Repair

https://adventofcode.com/2020/day/1

You need to find the two entries that sum to 2020 and then multiply those two numbers together.

For example, suppose your expense report contained the following:

1721
979
366
299
675
1456

In this list, the two entries that sum to 2020 are 1721 and 299. Multiplying them together produces 1721 * 299 = 514579, so the correct answer is 514579.

Run

From this path (./advent-code-2020/Day-01-Report-Repair) just:

make run

Run test

From this path (./advent-code-2020/Day-01-Report-Repair) just:

make test