Day 8, puzzle 1

This commit is contained in:
jazzpi
2022-12-14 16:17:38 +01:00
parent 1156bc2e75
commit 03a8692162
3 changed files with 68 additions and 0 deletions

10
src/bin/d8p1.rs Normal file
View File

@ -0,0 +1,10 @@
use aoc22::{
day8::{self, find_visible},
util,
};
pub fn main() {
let grid = day8::parse_grid(&util::parse_input());
println!("There are {} visible trees", find_visible(&grid).len());
}