summaryrefslogtreecommitdiff
path: root/src/bin/day_14.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2021-12-16 21:36:40 +0200
committerJustin Wernick <justin@worthe-it.co.za>2021-12-16 21:36:40 +0200
commit1d780f776c1fd43604dac79691b6753fb69f2359 (patch)
treed2e26ccce0d2517e87266e10076a78d3d9f451e4 /src/bin/day_14.rs
parentce3032977e12d21c54cefb3e0323ef9276d15b89 (diff)
Day 16
Diffstat (limited to 'src/bin/day_14.rs')
-rw-r--r--src/bin/day_14.rs4
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());