This commit is contained in:
Fabian Schmidt
2024-12-01 20:24:01 +01:00
parent 5531e8aa7a
commit a1183f8ef4
5 changed files with 1085 additions and 1 deletions

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

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