mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-16 10:35:02 +01:00
2022 day01
This commit is contained in:
parent
fd2ea0612b
commit
e153ec51cd
20 changed files with 3180 additions and 82 deletions
48
2022/day00/src/lib.rs
Normal file
48
2022/day00/src/lib.rs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
use helper::{Day, Variants};
|
||||
|
||||
pub fn main() {
|
||||
helper::main::<Day00>(include_str!("../input.txt"));
|
||||
}
|
||||
|
||||
struct Day00;
|
||||
|
||||
helper::define_variants! {
|
||||
day => crate::Day00;
|
||||
part1 {
|
||||
basic => crate::part1;
|
||||
}
|
||||
part2 {
|
||||
basic => crate::part2;
|
||||
}
|
||||
}
|
||||
|
||||
impl Day for Day00 {
|
||||
fn part1() -> Variants {
|
||||
part1_variants!(construct_variants)
|
||||
}
|
||||
|
||||
fn part2() -> Variants {
|
||||
part2_variants!(construct_variants)
|
||||
}
|
||||
}
|
||||
|
||||
fn part1(_input: &str) -> u64 {
|
||||
0
|
||||
}
|
||||
|
||||
fn part2(_input: &str) -> u64 {
|
||||
0
|
||||
}
|
||||
|
||||
helper::tests! {
|
||||
day00 Day00;
|
||||
part1 {
|
||||
small => 0;
|
||||
default => 0;
|
||||
}
|
||||
part2 {
|
||||
small => 0;
|
||||
default => 0;
|
||||
}
|
||||
}
|
||||
helper::benchmarks! {}
|
||||
3
2022/day00/src/main.rs
Normal file
3
2022/day00/src/main.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
day00::main();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue