not working y2015d12p2

This commit is contained in:
2024-10-29 16:00:39 +01:00
parent d002880b83
commit 19f50f48d6
4 changed files with 163 additions and 0 deletions

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

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