This commit is contained in:
2024-12-08 16:35:33 +01:00
parent 2a91587ae5
commit 0dec0bbf82
6 changed files with 301 additions and 0 deletions

20
y2024/src/bin/d8.rs Normal file
View File

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