1
0

day 2 part 1

This commit is contained in:
2024-12-02 19:01:49 +01:00
parent 8884e46983
commit 1bcd38be17
2 changed files with 38 additions and 5 deletions

View File

@@ -1,11 +1,12 @@
use std::env::args;
use advent_of_rust_2024::day01;
use advent_of_rust_2024::{day01, day02};
fn main() {
let day: Option<u8> = args().nth(1).and_then(|a| a.parse().ok());
match day {
Some(1) => day01::day_main(),
Some(2) => day02::day_main(),
_ => println!("hi"),
}
}