.. | ||
day-1.py | ||
input | ||
readme.md |
- Combine the first and last digit on each line to create a single two-digit number.
- Get the sum of all of those
Input:
1abc2
pqr3stu8vwx
a1b2c3d4e5f
treb7uchet
(12, 38, 15, 77)
Output:
142
.. | ||
day-1.py | ||
input | ||
readme.md |
Input:
1abc2
pqr3stu8vwx
a1b2c3d4e5f
treb7uchet
(12, 38, 15, 77)
Output:
142