add 2022 day1 (p1 and 2) and 2024 day1 (p1 and 2)

This commit is contained in:
2024-12-01 02:00:22 -05:00
parent 5b7a6edbfb
commit 4f75e45108
17 changed files with 6752 additions and 0 deletions

View File

@@ -42,7 +42,9 @@ fn main() {
let blue_largest = blue.iter().max();
let green_largest = green.iter().max();
let temp = red_largest.unwrap() * blue_largest.unwrap() * green_largest.unwrap();
let before_sum = sum;
sum += temp;
println!("{red_largest:?} * {blue_largest:?} * {green_largest:?} + {before_sum:?} = {sum:?}")
}
println!("{sum}");