day02 finished
This commit is contained in:
parent
68fefd064a
commit
eb1ce68486
9 changed files with 2758 additions and 30 deletions
|
|
@ -31,10 +31,10 @@ fn output(day: usize, part: usize, result: ResultType) -> () {
|
|||
fn run(day: Box<dyn DayTrait>, part1: bool, part2: bool) -> Result<()> {
|
||||
let lines = read_data(day.get_day_number(), "input.txt")?;
|
||||
if part1 {
|
||||
output(1, 1, day.part1(&lines)?);
|
||||
output(day.get_day_number(), 1, day.part1(&lines)?);
|
||||
}
|
||||
if part2 {
|
||||
output(1, 2, day.part2(&lines)?);
|
||||
output(day.get_day_number(), 2, day.part2(&lines)?);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue