File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,9 +112,9 @@ pub fn part_two(input: &str) -> Option<u64> {
112112 stones. iter ( ) . enumerate ( ) . for_each ( |( i, hs) | {
113113 let t_intercept = Int :: new_const ( format ! ( "t_{}" , i) ) ;
114114
115- solver. assert ( & ( & x + & vx * & t_intercept) . eq ( & ( hs. point . 0 + hs. velocity . 0 * & t_intercept) ) ) ;
116- solver. assert ( & ( & y + & vy * & t_intercept) . eq ( & ( hs. point . 1 + hs. velocity . 1 * & t_intercept) ) ) ;
117- solver. assert ( & ( & z + & vz * & t_intercept) . eq ( & ( hs. point . 2 + hs. velocity . 2 * & t_intercept) ) ) ;
115+ solver. assert ( ( & x + & vx * & t_intercept) . eq ( & ( hs. point . 0 + hs. velocity . 0 * & t_intercept) ) ) ;
116+ solver. assert ( ( & y + & vy * & t_intercept) . eq ( & ( hs. point . 1 + hs. velocity . 1 * & t_intercept) ) ) ;
117+ solver. assert ( ( & z + & vz * & t_intercept) . eq ( & ( hs. point . 2 + hs. velocity . 2 * & t_intercept) ) ) ;
118118 } ) ;
119119
120120 let res = solver. check ( ) ;
You can’t perform that action at this time.
0 commit comments