From 768013f6a304ae044465f1d9d32fd720114afa1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Mon, 16 Dec 2019 10:28:42 -0500 Subject: stricter limit --- advent/src/12_2.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'advent/src/12_2.rs') diff --git a/advent/src/12_2.rs b/advent/src/12_2.rs index c6e34bd..dffeae5 100644 --- a/advent/src/12_2.rs +++ b/advent/src/12_2.rs @@ -81,9 +81,9 @@ fn main() { let moon_y = Moons(vec!(-10, 5, -7, -8).into_iter().map(Moon::new).collect()); let moon_z = Moons(vec!(0, 10, 3, -3).into_iter().map(Moon::new).collect()); - let cycle_x = find_cycle(moon_x, 1 << 30); - let cycle_y = find_cycle(moon_y, 1 << 30); - let cycle_z = find_cycle(moon_z, 1 << 30); + let cycle_x = find_cycle(moon_x, 10 << 20); + let cycle_y = find_cycle(moon_y, 10 << 20); + let cycle_z = find_cycle(moon_z, 10 << 20); if let (Some(cx), Some(cy), Some(cz)) = (cycle_x, cycle_y, cycle_z) { println!("cycles:\n{:?}\n{:?}\n{:?}", cx, cy, cz); -- cgit v1.2.3