diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-12-16 22:00:19 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-12-16 22:00:19 +0000 |
commit | 627266fdf043443de2d45783b800563299d6a899 (patch) | |
tree | e4f695c3dc6d892b33a6c0b26fc01acb3850e820 /src | |
parent | c6eb3867cfb339f9ba035cb917a2278d821c0bc7 (diff) | |
download | aoc2022-627266fdf043443de2d45783b800563299d6a899.tar.gz aoc2022-627266fdf043443de2d45783b800563299d6a899.tar.bz2 aoc2022-627266fdf043443de2d45783b800563299d6a899.tar.xz aoc2022-627266fdf043443de2d45783b800563299d6a899.zip |
Remove logging
Diffstat (limited to 'src')
-rw-r--r-- | src/day15.rs | 8 |
1 files 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<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 |