2022-11-27 02:39:02 +00:00
|
|
|
mod day1;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let day = std::env::args().skip(1).next();
|
|
|
|
|
|
|
|
let result = match day.as_ref().map(|v| v.as_ref()) {
|
2022-12-01 14:46:04 +00:00
|
|
|
Some("1a") => day1::part1(),
|
|
|
|
Some("1b") => day1::part2(),
|
2022-11-27 02:39:02 +00:00
|
|
|
_ => panic!("unrecognized day"),
|
|
|
|
};
|
|
|
|
|
2022-12-01 14:46:04 +00:00
|
|
|
println!("[{}] {}", day.unwrap(), result);
|
2022-11-27 02:39:02 +00:00
|
|
|
}
|