Day 12, puzzle 1

This commit is contained in:
jazzpi
2022-12-15 22:41:50 +01:00
parent 876ebfcfe3
commit 3bdd5472aa
3 changed files with 109 additions and 0 deletions

9
src/bin/d12p1.rs Normal file
View File

@ -0,0 +1,9 @@
use aoc22::{day12, util};
pub fn main() {
let heightmap = day12::parse_heightmap(&util::parse_input());
let dist = day12::path_steps(&heightmap).expect("No path found!?");
println!("Distance to target is {}", dist);
}