This commit is contained in:
Spectre 2024-12-03 02:06:24 +01:00
parent 19fe0a53ff
commit 2c9790a690
7 changed files with 48 additions and 26 deletions

View file

@ -22,7 +22,7 @@ impl Solution for Day01 {
}
}
sum += 10 * first.unwrap() + last.unwrap()
sum += 10 * first.expect(word) + last.expect(word)
}
Answer::from(sum)