From 627266fdf043443de2d45783b800563299d6a899 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 16 Dec 2022 22:00:19 +0000 Subject: Remove logging --- src/day15.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/day15.rs b/src/day15.rs index 57a5dab..9986d15 100644 --- a/src/day15.rs +++ b/src/day15.rs @@ -50,9 +50,9 @@ pub fn run(input: String) { }).collect(); let (x, y) = search_y.into_iter().filter_map(|y| { - if y % 10_000 == 0 { - println!("checking y {}", y); - } + // if y % 10_000 == 0 { + // println!("checking y {}", y); + // } let mut line_segments: Vec = sens.iter().flat_map(|sen| { // Map it to a line segment on the target line let target_y_dist = sen.sensor_pos.y.abs_diff(y); @@ -83,5 +83,5 @@ pub fn run(input: String) { } None }).next().expect("no point found!"); - println!("x {} y {} ans {}", x, y, (x as i64)*4_000_000 + (y as i64)); + println!("Day 15: {}", (x as i64)*4_000_000 + (y as i64)); } \ No newline at end of file -- cgit v1.2.3-ZIG