Update template.
This commit is contained in:
parent
45f780c1ca
commit
5f6aded243
@ -1,21 +1,29 @@
|
|||||||
|
use std::{
|
||||||
|
fmt::{Debug, Error, Formatter},
|
||||||
|
num::ParseIntError,
|
||||||
|
ops::{Index, IndexMut},
|
||||||
|
str::FromStr,
|
||||||
|
};
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use aoc_runner_derive::{aoc, aoc_generator};
|
use aoc_runner_derive::{aoc, aoc_generator};
|
||||||
|
use thiserror::Error;
|
||||||
|
|
||||||
#[aoc_generator(dayX)]
|
#[aoc_generator(dayX)]
|
||||||
fn parse(input: &str) -> Result<Vec<u32>> {
|
fn parse(input: &str) -> Result<Vec<u64>> {
|
||||||
todo!("parse");
|
todo!("parse");
|
||||||
Ok(Vec::new())
|
Ok(Vec::new())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[aoc(dayX, part1)]
|
#[aoc(dayX, part1)]
|
||||||
fn part1(depths: &[u32]) -> Result<u32> {
|
fn part1(input: &[u64]) -> Result<u64> {
|
||||||
todo!("part1");
|
todo!("part1");
|
||||||
Ok(())
|
Ok(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#[aoc(dayX, part2)]
|
#[aoc(dayX, part2)]
|
||||||
fn part2(depths: &[u32]) -> Result<u32> {
|
fn part2(depths: &[u64]) -> Result<u64> {
|
||||||
todo!("part2")
|
todo!("part2")
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@ -30,7 +38,7 @@ mod tests {
|
|||||||
let input = r#"
|
let input = r#"
|
||||||
"#
|
"#
|
||||||
.trim();
|
.trim();
|
||||||
assert_eq!(part1(&parse(input)?)?, TODO);
|
assert_eq!(part1(&parse(input)?)?, u64::MAX);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +48,7 @@ mod tests {
|
|||||||
let input = r#"
|
let input = r#"
|
||||||
"#
|
"#
|
||||||
.trim();
|
.trim();
|
||||||
assert_eq!(part2(&parse(input)?)?, TODO);
|
assert_eq!(part2(&parse(input)?)?, u64::MAX);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user