[TASK] Solved day 2
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user