day1: Extract input parsing to lib

This commit is contained in:
jazzpi
2022-12-12 20:05:28 +01:00
parent f7fe704a12
commit 84ee26264b
4 changed files with 11 additions and 4 deletions

8
src/bin/d1p1.rs Normal file
View 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);
}