remove unnecessary prints
This commit is contained in:
5 files changed
+18
-18
No files matched your search
@@ -6,6 +6,7 @@ use std::{
|
||||
use aoc_runner_derive::{aoc, aoc_generator};
|
||||
use indicatif::{ProgressBar, ProgressStyle};
|
||||
use itertools::Itertools;
|
||||
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
|
||||
use regex::Regex;
|
||||
use wide::{CmpGt, i16x16};
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ fn part1(input: &[Coord2d]) -> u64 {
|
||||
input
|
||||
.iter()
|
||||
.tuple_combinations()
|
||||
.inspect(|(a, b)| println!("{a} vs {b} = {}", a.x().abs_diff(b.x()) * a.y().abs_diff(b.y())))
|
||||
// .inspect(|(a, b)| println!("{a} vs {b} = {}", a.x().abs_diff(b.x()) * a.y().abs_diff(b.y())))
|
||||
.map(|(a, b)| (a.x().abs_diff(b.x()) + 1) * (a.y().abs_diff(b.y()) + 1))
|
||||
.sorted_unstable()
|
||||
.next_back()
|
||||
|
||||
Reference in new issue
Block a user