diff --git a/2021/4/src/main.rs b/2021/4/src/main.rs index 962dc2a..aa9235b 100644 --- a/2021/4/src/main.rs +++ b/2021/4/src/main.rs @@ -69,7 +69,7 @@ fn main() { .len() > 0 ).collect(); - if winning_boards.len() == 1 { + if last_winning_boards.len() == 0 && winning_boards.len() == 1 { let sum: i32 = winning_boards .iter() .map(|(_, x)| x)