y2015d19 I should look at the input more

This commit is contained in:
2024-11-04 14:41:15 +01:00
parent 16ed2a8cae
commit 261a2e89c9
4 changed files with 177 additions and 0 deletions

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

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