From f458030577996692d987339670c621fb246de241 Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Fri, 15 Dec 2023 13:18:24 -0500 Subject: [PATCH] day 12 part 2 --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 88b1e61..2e963c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,7 +80,10 @@ fn main() -> Result<()> { .map_while(Result::ok) .collect(); - let a = arrangements(conditions, &groups); + let conditions = [conditions].repeat(5).join("?"); + let groups = groups.repeat(5); + + let a = arrangements(&conditions, &groups); sum += a; } println!("{sum}");