day1: Extract input parsing to lib
This commit is contained in:
8
src/bin/d1p1.rs
Normal file
8
src/bin/d1p1.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use aoc22::day1;
|
||||
|
||||
fn main() {
|
||||
let elves = day1::read_elves();
|
||||
|
||||
let max = elves.iter().max().unwrap();
|
||||
println!("The elf with the most calories is carrying {} cal", max);
|
||||
}
|
||||
Reference in New Issue
Block a user