Commit dc78319

bryfry <bryon.fryer@gmail.com>
2021-01-05 15:26:49
add d01 prompt
1 parent c364b7c
2020/input/d01p0.txt
@@ -0,0 +1,6 @@
+1721
+979
+366
+299
+675
+1456
2020/input/d01p1.txt
@@ -0,0 +1,200 @@
+1788
+1627
+1883
+1828
+1924
+1993
+972
+1840
+1866
+1762
+1781
+1782
+1520
+1971
+1660
+1857
+1867
+1564
+1983
+1391
+2002
+494
+1500
+1967
+1702
+1958
+1886
+1910
+1838
+1985
+1836
+2009
+2005
+1602
+1939
+1945
+1609
+1582
+1647
+1737
+1982
+1931
+790
+745
+1598
+1586
+1547
+1951
+1264
+1382
+1776
+1499
+1977
+1766
+1360
+1807
+1991
+1981
+1693
+634
+1847
+1774
+1990
+1409
+1410
+1974
+1862
+1744
+1827
+1978
+1980
+2003
+1491
+1595
+1640
+1576
+1887
+1746
+1617
+1923
+1706
+1964
+60
+1620
+1959
+257
+1395
+1854
+1843
+1682
+1667
+1639
+279
+1911
+1986
+1575
+1232
+1919
+1852
+1509
+1976
+1465
+2008
+1953
+1518
+1795
+1912
+1269
+1835
+1984
+1538
+2001
+1954
+1365
+1569
+1418
+1844
+1580
+1875
+1551
+1861
+1946
+1810
+1655
+1987
+1549
+1301
+1859
+1929
+1254
+1604
+1933
+1998
+1661
+1899
+1411
+1975
+1707
+1966
+1601
+1936
+1440
+1942
+1937
+1851
+1731
+1257
+1533
+1405
+1890
+1600
+1970
+1626
+1824
+1442
+2006
+1796
+1658
+1930
+646
+1904
+1489
+2004
+1922
+1424
+1802
+1623
+1870
+1242
+1591
+1338
+754
+1826
+1305
+1825
+1793
+1872
+1741
+1979
+107
+1833
+1856
+1952
+1791
+1728
+2010
+1965
+1646
+1522
+1671
+1624
+1876
+1537
+1759
+1962
+1773
+1907
+1573
+1908
+1903
2020/input/d01p2.txt
@@ -0,0 +1,1 @@
+d01p1.txt
\ No newline at end of file
2020/input/d02p2.txt
@@ -0,0 +1,1 @@
+d02p1.txt
\ No newline at end of file
2020/d01.txt
@@ -0,0 +1,52 @@
+--- Day 1: Report Repair ---
+After saving Christmas five years in a row, you've decided to take a vacation 
+at a nice resort on a tropical island. Surely, Christmas will go on without you.
+
+The tropical island has its own currency and is entirely cash-only. The gold 
+coins used there have a little picture of a starfish; the locals just call them 
+stars. None of the currency exchanges seem to have heard of them, but somehow, 
+you'll need to find fifty of these coins by the time you arrive so you can pay 
+the deposit on your room.
+
+To save your vacation, you need to get all fifty stars by December 25th.
+
+Collect stars by solving puzzles. Two puzzles will be made available on each day
+in the Advent calendar; the second puzzle is unlocked when you complete the 
+first. Each puzzle grants one star. Good luck!
+
+Before you leave, the Elves in accounting just need you to fix your expense
+report (your puzzle input); apparently, something isn't quite adding up.
+
+Specifically, they need you 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.
+
+Of course, your expense report is much larger. Find the two entries that sum to
+2020; what do you get if you multiply them together?
+
+Your puzzle answer was 485739.
+
+--- Part Two ---
+The Elves in accounting are thankful for your help; one of them even offers you
+a starfish coin they had left over from a past vacation. They offer you a second
+one if you can find three numbers in your expense report that meet the same
+criteria.
+
+Using the above example again, the three entries that sum to 2020 are 979, 366,
+and 675. Multiplying them together produces the answer, 241861950.
+
+In your expense report, what is the product of the three entries that sum to 
+2020?
+
+Your puzzle answer was 161109702.
2020/d02.ts
@@ -0,0 +1,4 @@
+
+const input = Deno.readTextFileSync("input/d02p0.txt");
+const lines = input.split('\n');
+console.log(lines);