summaryrefslogtreecommitdiff
path: root/src/bin/day_14.rs
diff options
context:
space:
mode:
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());