Boilerplate day 06

This commit is contained in:
max.nuding 2022-12-05 09:03:12 +01:00
parent 8a2f37c67f
commit 7b45a4748c
Failed to extract signature
2 changed files with 22 additions and 0 deletions

18
src/day06/mod.rs Normal file
View File

@ -0,0 +1,18 @@
use crate::read;
pub fn run() {
let input = read("06");
//let lines = input.split_once("\n\n").unwrap();
//let lines = input.lines();
#[cfg(feature = "part1")]
{
println!("Day 6, Part 01: {}", "TODO");
}
#[cfg(feature = "part2")]
{
println!("Day 6, Part 02: {}", "TODO");
}
}

View File

@ -6,6 +6,7 @@ mod day02;
mod day03;
mod day04;
mod day05;
mod day06;
fn main() {
let today = Local::now().day();
@ -25,6 +26,9 @@ fn main() {
if cfg!(feature = "day05") || (cfg!(feature = "today") && today == 5) {
day05::run();
}
if cfg!(feature = "day06") || (cfg!(feature = "today") && today == 6) {
day06::run();
}
println!("Finished, time taken: {:?}", now.elapsed())
}