summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/day15.rs8
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