Boilerplate day 12
This commit is contained in:
parent
052d21f132
commit
8a2aa96881
20
src/day12/mod.rs
Normal file
20
src/day12/mod.rs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
use crate::read;
|
||||||
|
use itertools::Itertools;
|
||||||
|
|
||||||
|
//#[derive(Debug, PartialEq, Eq, Clone, Hash)]
|
||||||
|
|
||||||
|
pub fn run() {
|
||||||
|
let input = read("12");
|
||||||
|
let lines = input.lines();
|
||||||
|
let lines = input.split("\n\n");
|
||||||
|
|
||||||
|
#[cfg(feature = "part1")]
|
||||||
|
{
|
||||||
|
println!("Day 12, Part 01: {}", "TODO");
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "part2")]
|
||||||
|
{
|
||||||
|
println!("Day 12, Part 02: {}", "TODO");
|
||||||
|
}
|
||||||
|
}
|
@ -12,6 +12,7 @@ mod day08;
|
|||||||
mod day09;
|
mod day09;
|
||||||
mod day10;
|
mod day10;
|
||||||
mod day11;
|
mod day11;
|
||||||
|
mod day12;
|
||||||
mod puter;
|
mod puter;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
@ -50,6 +51,9 @@ fn main() {
|
|||||||
if cfg!(feature = "day11") || (cfg!(feature = "today") && today == 11) {
|
if cfg!(feature = "day11") || (cfg!(feature = "today") && today == 11) {
|
||||||
day11::run();
|
day11::run();
|
||||||
}
|
}
|
||||||
|
if cfg!(feature = "day12") || (cfg!(feature = "today") && today == 12) {
|
||||||
|
day12::run();
|
||||||
|
}
|
||||||
println!("Finished, time taken: {:?}", now.elapsed())
|
println!("Finished, time taken: {:?}", now.elapsed())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user