AdventOfCode/y2015/src/bin/d14.rs

21 lines
485 B
Rust
Raw Normal View History

2024-10-30 11:34:40 +01:00
use std::fs;
use y2015::days::d14;
fn main() {
part1();
part2();
}
fn part1() {
let root = env!("CARGO_MANIFEST_DIR");
let content = fs::read_to_string(format!("{root}/resources/14_input.txt")).unwrap();
2024-10-30 13:05:13 +01:00
println!("{}", d14::process_part1(&content, 2503));
2024-10-30 11:34:40 +01:00
}
fn part2() {
let root = env!("CARGO_MANIFEST_DIR");
let content = fs::read_to_string(format!("{root}/resources/14_input.txt")).unwrap();
2024-10-30 13:05:13 +01:00
println!("{}", d14::process_part2(&content, 2503));
2024-10-30 11:34:40 +01:00
}