This commit is contained in:
2024-12-09 13:00:45 +01:00
parent 0dec0bbf82
commit 99430e8e26
8 changed files with 844 additions and 7 deletions

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

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