Day 17, part 1

This commit is contained in:
jazzpi
2022-12-20 14:31:23 +01:00
parent 06786817f3
commit 1e7eb12da9
5 changed files with 268 additions and 0 deletions

13
src/bin/d17p1.rs Normal file
View File

@ -0,0 +1,13 @@
use aoc22::{day17, util};
const BLOCKS: usize = 2022;
pub fn main() {
let jets = day17::parse_jets(&util::parse_input());
println!(
"Height after {} blocks: {}",
BLOCKS,
day17::do_moves(&jets, BLOCKS)
);
}