This commit is contained in:
Fabian Schmidt
2024-11-02 13:35:50 +01:00
parent a687f18918
commit 7f93abc07d
4 changed files with 596 additions and 0 deletions

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

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