add 2022 day1 (p1 and 2) and 2024 day1 (p1 and 2)
This commit is contained in:
@@ -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}");
|
||||
|
||||
|
Reference in New Issue
Block a user