Boilerplate day 6
This commit is contained in:
parent
8a2f37c67f
commit
8ca945007b
18
src/day06/mod.rs
Normal file
18
src/day06/mod.rs
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
@ -6,6 +6,7 @@ mod day02;
|
|||||||
mod day03;
|
mod day03;
|
||||||
mod day04;
|
mod day04;
|
||||||
mod day05;
|
mod day05;
|
||||||
|
mod day06;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let today = Local::now().day();
|
let today = Local::now().day();
|
||||||
@ -25,6 +26,9 @@ fn main() {
|
|||||||
if cfg!(feature = "day05") || (cfg!(feature = "today") && today == 5) {
|
if cfg!(feature = "day05") || (cfg!(feature = "today") && today == 5) {
|
||||||
day05::run();
|
day05::run();
|
||||||
}
|
}
|
||||||
|
if cfg!(feature = "day06") || (cfg!(feature = "today") && today == 6) {
|
||||||
|
day06::run();
|
||||||
|
}
|
||||||
println!("Finished, time taken: {:?}", now.elapsed())
|
println!("Finished, time taken: {:?}", now.elapsed())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user