Ammended Challenge for 2023 day 01
This commit is contained in:
parent
8352f52039
commit
6064f7d71b
2 changed files with 26 additions and 53 deletions
|
@ -24,4 +24,29 @@ 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?*
|
||||
|
||||
To play, please identify yourself via one of these services:
|
||||
Your puzzle answer was 54644.
|
||||
|
||||
--- 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?
|
||||
|
||||
Your puzzle answer was 53348.
|
||||
|
||||
Both parts of this puzzle are complete! They provide two gold stars: **
|
||||
|
||||
At this point, you should return to your Advent calendar and try another puzzle.
|
||||
|
||||
If you still want to see it, you can get your puzzle input.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue