2024-12-10 11:45:53 +01:00
|
|
|
use std::time::Instant;
|
|
|
|
|
|
|
|
use utils::time::get_elapsed_string;
|
2024-10-29 14:00:12 +01:00
|
|
|
use y2015::days::d10;
|
|
|
|
|
|
|
|
fn main() {
|
2024-12-10 11:45:53 +01:00
|
|
|
let now = Instant::now();
|
|
|
|
println!("Part 1:");
|
2024-10-29 14:00:12 +01:00
|
|
|
part1();
|
2024-12-10 11:45:53 +01:00
|
|
|
println!("Ran in {}", get_elapsed_string(now.elapsed()));
|
|
|
|
let now = Instant::now();
|
|
|
|
println!("Part 2:");
|
2024-10-29 14:00:12 +01:00
|
|
|
part2();
|
2024-12-10 11:45:53 +01:00
|
|
|
println!("Ran in {}", get_elapsed_string(now.elapsed()));
|
2024-10-29 14:00:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fn part1() {
|
|
|
|
println!("{}", d10::process_part1("1321131112"));
|
|
|
|
}
|
|
|
|
|
|
|
|
fn part2() {
|
|
|
|
println!("{}", d10::process_part2("1321131112"));
|
|
|
|
}
|