[TASK] Solved day 2

This commit is contained in:
2020-12-02 09:18:39 +01:00
parent 5c8e1324e9
commit 4cc35ef3e5
8 changed files with 1130 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
use std::time::Instant;
#[macro_use] extern crate lazy_static;
mod util;
mod day1;
mod day2;
fn main() {
@@ -13,11 +15,13 @@ fn main() {
if day_arg_idx.is_some() {
match args[day_arg_idx.unwrap() + 1].parse::<u8>().unwrap() {
1 => day1::solve(),
2 => day2::solve(),
_ => println!("This day is not yet implemented")
}
} else {
// Solve all days:
day1::solve();
day2::solve();
}
println!("Execution took {} μs", now.elapsed().as_micros());