advent-of-code/2021/src/bin/day21.rs

39 lines
678 B
Rust
Raw Normal View History

2021-12-21 09:38:17 +01:00
#![feature(test)]
extern crate test;
use aoc2021::common::*;
const DAY: usize = 21;
type Parsed = Vec<usize>;
fn parse_input(raw: &str) -> Parsed {
unimplemented!()
}
fn part1(parsed: &Parsed) -> usize {
unimplemented!()
}
fn part2(parsed: &Parsed) -> usize {
unimplemented!()
}
fn main() {
let input = parse_input(&read_file(DAY));
println!("Part 1: {}", part1(&input));
println!("Part 2: {}", part2(&input));
}
#[cfg(test)]
mod tests {
use super::*;
use aoc2021::*;
const TEST_INPUT: &str = "";
test!(part1() == 0);
test!(part2() == 0);
bench!(part1() == 0);
bench!(part2() == 0);
bench_input!(Vec::len => 0);
}