Pulled the wrong instructions for the first five days - ope

This commit is contained in:
rain
2023-12-05 18:51:29 -06:00
parent e3c7f24aa0
commit 0452e0d727
4 changed files with 116 additions and 4 deletions
+29 -1
View File
@@ -1,4 +1,4 @@
--- Day 1: Trebuchet?! --- [--- Day 1: Trebuchet?! ---
-------------------------- --------------------------
Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems. Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems.
@@ -37,3 +37,31 @@ In this example, the calibration values of these four lines are `12`, `38`, `15`
Consider your entire calibration document. *What is the sum of all of the calibration values?* Consider your entire calibration document. *What is the sum of all of the calibration values?*
, --- Part Two ---
----------------
Your calculation isn't quite right. It looks like some of the digits are actually *spelled out with letters*: `one`, `two`, `three`, `four`, `five`, `six`, `seven`, `eight`, and `nine` *also* count as valid "digits".
Equipped with this new information, you now need to find the real first and last digit on each line. For example:
```
two1nine
eightwothree
abcone2threexyz
xtwone3four
4nineeightseven2
zoneight234
7pqrstsixteen
```
In this example, the calibration values are `29`, `83`, `13`, `24`, `42`, `14`, and `76`. Adding these together produces `*281*`.
*What is the sum of all of the calibration values?*
]
+29 -1
View File
@@ -1,4 +1,4 @@
--- Day 1: Trebuchet?! --- [--- Day 1: Trebuchet?! ---
-------------------------- --------------------------
Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems. Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems.
@@ -37,3 +37,31 @@ In this example, the calibration values of these four lines are `12`, `38`, `15`
Consider your entire calibration document. *What is the sum of all of the calibration values?* Consider your entire calibration document. *What is the sum of all of the calibration values?*
, --- Part Two ---
----------------
Your calculation isn't quite right. It looks like some of the digits are actually *spelled out with letters*: `one`, `two`, `three`, `four`, `five`, `six`, `seven`, `eight`, and `nine` *also* count as valid "digits".
Equipped with this new information, you now need to find the real first and last digit on each line. For example:
```
two1nine
eightwothree
abcone2threexyz
xtwone3four
4nineeightseven2
zoneight234
7pqrstsixteen
```
In this example, the calibration values are `29`, `83`, `13`, `24`, `42`, `14`, and `76`. Adding these together produces `*281*`.
*What is the sum of all of the calibration values?*
]
+29 -1
View File
@@ -1,4 +1,4 @@
--- Day 1: Trebuchet?! --- [--- Day 1: Trebuchet?! ---
-------------------------- --------------------------
Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems. Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems.
@@ -37,3 +37,31 @@ In this example, the calibration values of these four lines are `12`, `38`, `15`
Consider your entire calibration document. *What is the sum of all of the calibration values?* Consider your entire calibration document. *What is the sum of all of the calibration values?*
, --- Part Two ---
----------------
Your calculation isn't quite right. It looks like some of the digits are actually *spelled out with letters*: `one`, `two`, `three`, `four`, `five`, `six`, `seven`, `eight`, and `nine` *also* count as valid "digits".
Equipped with this new information, you now need to find the real first and last digit on each line. For example:
```
two1nine
eightwothree
abcone2threexyz
xtwone3four
4nineeightseven2
zoneight234
7pqrstsixteen
```
In this example, the calibration values are `29`, `83`, `13`, `24`, `42`, `14`, and `76`. Adding these together produces `*281*`.
*What is the sum of all of the calibration values?*
]
+29 -1
View File
@@ -1,4 +1,4 @@
--- Day 1: Trebuchet?! --- [--- Day 1: Trebuchet?! ---
-------------------------- --------------------------
Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems. Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems.
@@ -37,3 +37,31 @@ In this example, the calibration values of these four lines are `12`, `38`, `15`
Consider your entire calibration document. *What is the sum of all of the calibration values?* Consider your entire calibration document. *What is the sum of all of the calibration values?*
, --- Part Two ---
----------------
Your calculation isn't quite right. It looks like some of the digits are actually *spelled out with letters*: `one`, `two`, `three`, `four`, `five`, `six`, `seven`, `eight`, and `nine` *also* count as valid "digits".
Equipped with this new information, you now need to find the real first and last digit on each line. For example:
```
two1nine
eightwothree
abcone2threexyz
xtwone3four
4nineeightseven2
zoneight234
7pqrstsixteen
```
In this example, the calibration values are `29`, `83`, `13`, `24`, `42`, `14`, and `76`. Adding these together produces `*281*`.
*What is the sum of all of the calibration values?*
]