Skip to content

Commit 1300aab

Browse files
committed
Somes, i hate programming
1 parent d0fc512 commit 1300aab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2015/day14/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ fn main() -> io::Result<()> {
8484
let result = race(&mut reindeers, 2503);
8585
println!("P1> Max distance: {}", result);
8686

87-
//let winner = reindeers.iter().max_by_key(|r| r.current_position).unwrap();
88-
//println!("P2> Winner is: {} wit {} pts", winner.name, winner.points);
87+
let winner = reindeers.iter().max_by_key(|r| r.points).unwrap();
88+
println!("P2> Winner is: {} wit {} pts", winner.name, winner.points);
8989

9090
// println!("{:?}", winner);
9191
// println!("{:?}", reindeers);

0 commit comments

Comments
 (0)