diff --git a/src/bin/day13.rs b/src/bin/day13.rs index 7fdbd81..3bba81c 100644 --- a/src/bin/day13.rs +++ b/src/bin/day13.rs @@ -42,14 +42,14 @@ impl Pattern { .count() == allowed_error }) - .map(|y| 100 * (y + 1) as i32) + .map(|y| (y + 1) as i32) } fn score(&self, allowed_error: usize) -> i32 { if let Some(s) = self.check_vertically(allowed_error) { s } else if let Some(s) = self.check_horizontally(allowed_error) { - s + 100 * s } else { unreachable!() }