y2015d17 + fix some warnings

This commit is contained in:
2024-11-04 10:16:20 +01:00
parent 7f93abc07d
commit 9438245d84
6 changed files with 155 additions and 17 deletions

20
y2015/src/bin/d17.rs Normal file
View File

@@ -0,0 +1,20 @@
use std::fs;
use y2015::days::d17;
fn main() {
part1();
part2();
}
fn part1() {
let root = env!("CARGO_MANIFEST_DIR");
let content = fs::read_to_string(format!("{root}/resources/17_input.txt")).unwrap();
println!("{}", d17::process_part1(&content, 150));
}
fn part2() {
let root = env!("CARGO_MANIFEST_DIR");
let content = fs::read_to_string(format!("{root}/resources/17_input.txt")).unwrap();
println!("{}", d17::process_part2(&content, 150));
}