Boilerplate day 10
This commit is contained in:
parent
2f467ae7d7
commit
bf4760a83c
0
input/10.txt
Normal file
0
input/10.txt
Normal file
19
src/day10/mod.rs
Normal file
19
src/day10/mod.rs
Normal 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");
|
||||
}
|
||||
}
|
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user