cargo fmt
This commit is contained in:
parent
3a72256177
commit
a22fbfbaee
2 changed files with 3 additions and 2 deletions
|
@ -55,7 +55,7 @@ pub fn solve_part2(input: &Data) -> i64 {
|
|||
let target: i64 = b.iter().map(|(_, b)| b).product();
|
||||
loop {
|
||||
let mut cnt = 0;
|
||||
let dt: i64= b
|
||||
let dt: i64 = b
|
||||
.iter()
|
||||
.filter_map(|(i, n)| {
|
||||
if (t + i) % n == 0 {
|
||||
|
|
|
@ -24,6 +24,7 @@ impl Data {
|
|||
}
|
||||
ret
|
||||
}
|
||||
|
||||
pub fn update(&mut self) {
|
||||
let mut checked = HashSet::new();
|
||||
let mut next_active = HashSet::new();
|
||||
|
|
Loading…
Reference in a new issue