1
0

clippy and cleanup

This commit is contained in:
2024-12-12 18:47:22 +01:00
parent 6621a5a71a
commit dce8b1d2d5
2 changed files with 5 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ fn solve(input: &str, blinks: i32) -> usize {
next.entry(1).and_modify(|count| *count += v).or_insert(v);
} else if (k.ilog10() + 1) % 2 == 0 {
let l = (k.ilog10() + 1) / 2;
let z: usize = 10usize.pow(l as u32);
let z: usize = 10usize.pow(l);
let a = k / z;
let b = k % z;
next.entry(a).and_modify(|count| *count += v).or_insert(v);