2024-11-04 11:32:48 +01:00
|
|
|
use std::fs;
|
|
|
|
|
|
|
|
use y2015::days::d18;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
part1();
|
|
|
|
part2();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn part1() {
|
|
|
|
let root = env!("CARGO_MANIFEST_DIR");
|
|
|
|
let content = fs::read_to_string(format!("{root}/resources/18_input.txt")).unwrap();
|
2024-11-04 12:44:22 +01:00
|
|
|
println!("{}", d18::process_part1(&content, 100));
|
2024-11-04 11:32:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fn part2() {
|
|
|
|
let root = env!("CARGO_MANIFEST_DIR");
|
|
|
|
let content = fs::read_to_string(format!("{root}/resources/18_input.txt")).unwrap();
|
2024-11-04 12:44:22 +01:00
|
|
|
println!("{}", d18::process_part2(&content, 100));
|
2024-11-04 11:32:48 +01:00
|
|
|
}
|