2021: setup boilerplate
This commit is contained in:
parent
ebc57d58b6
commit
d5c85d4a17
9 changed files with 98 additions and 1 deletions
17
aoc2021/src/day00.rs
Normal file
17
aoc2021/src/day00.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use std::fmt::Write;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
const INPUT: &str = include_str!("../input/day00.txt");
|
||||
|
||||
pub fn run() -> Result<String> {
|
||||
let mut res = String::with_capacity(128);
|
||||
|
||||
writeln!(res, "part 1: {}", part1(INPUT)?)?;
|
||||
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
fn part1(input: &str) -> Result<&str> {
|
||||
Ok(input)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue