commit 627266fdf043443de2d45783b800563299d6a899
parent c6eb3867cfb339f9ba035cb917a2278d821c0bc7
Author: Martin Ashby <martin@ashbysoft.com>
Date: Fri, 16 Dec 2022 22:00:19 +0000
Remove logging
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git 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<LineSeg> = 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