Implementation day 7

This commit is contained in:
2020-12-07 09:35:41 +01:00
parent 4cb74e742b
commit 10f123bf04
6 changed files with 751 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ fn compute_answers(group: &str) -> Answers {
fn count_answers_all(group: &str) -> u32 {
let combined = group
.split('\n')
.lines()
.map(compute_answers)
.fold(0xffff_ffff, |a, b| a & b);