Read input from file

This commit is contained in:
jazzpi
2022-12-13 13:47:31 +01:00
parent 108ef47eb5
commit 4c040d67b3
5 changed files with 21 additions and 17 deletions

View File

@ -1,7 +1,8 @@
use aoc22::day1;
use aoc22::util;
fn main() {
let elves = day1::read_elves();
let elves = day1::parse_elves(&util::parse_input());
let max = elves.iter().max().unwrap();
println!("The elf with the most calories is carrying {} cal", max);