y2015d24 pretty easy also but had to use itertools instead of my own combinations/permutations impl because of an overflow

This commit is contained in:
2024-12-03 15:28:12 +01:00
parent 0b4e2449a1
commit eae352413b
7 changed files with 177 additions and 2 deletions

20
y2015/src/bin/d24.rs Normal file
View File

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