Boilerplate day 10

This commit is contained in:
max.nuding 2022-12-09 12:50:14 +01:00
parent 2f467ae7d7
commit bf4760a83c
Failed to extract signature
3 changed files with 23 additions and 0 deletions

0
input/10.txt Normal file
View File

19
src/day10/mod.rs Normal file
View File

@ -0,0 +1,19 @@
use crate::read;
use std::collections::HashSet;
use itertools::Itertools;
//#[derive(Debug, PartialEq, Eq, Default, Clone, Hash)]
pub fn run() {
let input = read("10");
let lines = input.lines();
#[cfg(feature = "part1")]
{
println!("Day 10, Part 01: {}", "TODO");
}
#[cfg(feature = "part2")]
{
println!("Day 10, Part 02: {}", "TODO");
}
}

View File

@ -10,6 +10,7 @@ mod day06;
mod day07;
mod day08;
mod day09;
mod day10;
fn main() {
let today = Local::now().day();
@ -41,6 +42,9 @@ fn main() {
if cfg!(feature = "day09") || (cfg!(feature = "today") && today == 9) {
day09::run();
}
if cfg!(feature = "day10") || (cfg!(feature = "today") && today == 10) {
day10::run();
}
println!("Finished, time taken: {:?}", now.elapsed())
}