diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2021-12-16 21:36:40 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2021-12-16 21:36:40 +0200 |
commit | 1d780f776c1fd43604dac79691b6753fb69f2359 (patch) | |
tree | d2e26ccce0d2517e87266e10076a78d3d9f451e4 /src/bin/day_14.rs | |
parent | ce3032977e12d21c54cefb3e0323ef9276d15b89 (diff) |
Day 16
Diffstat (limited to 'src/bin/day_14.rs')
-rw-r--r-- | src/bin/day_14.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/day_14.rs b/src/bin/day_14.rs index c534b8c..4814855 100644 --- a/src/bin/day_14.rs +++ b/src/bin/day_14.rs @@ -13,10 +13,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { let mut polymer = parse_polymer_expansion(&input).unwrap().1; for _ in 0..10 { polymer.expand(); + dbg!(&polymer.element_counts); } dbg!(polymer.most_common_element_count() - polymer.least_common_element_count()); - for _ in 0..30 { + for _ in 10..40 { polymer.expand(); + dbg!(&polymer.element_counts); } dbg!(polymer.most_common_element_count() - polymer.least_common_element_count()); |