y2024d3 first try part 2

This commit is contained in:
2024-12-03 10:11:59 +01:00
parent 9329c9f77a
commit 5bd059970e
10 changed files with 298 additions and 0 deletions

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

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