mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Prepare remaining days.
This commit is contained in:
12
2020/src/day11.rs
Normal file
12
2020/src/day11.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day11;
|
||||||
|
|
||||||
|
impl Solution for Day11 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day12.rs
Normal file
12
2020/src/day12.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day12;
|
||||||
|
|
||||||
|
impl Solution for Day12 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day13.rs
Normal file
12
2020/src/day13.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day13;
|
||||||
|
|
||||||
|
impl Solution for Day13 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day14.rs
Normal file
12
2020/src/day14.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day14;
|
||||||
|
|
||||||
|
impl Solution for Day14 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day15.rs
Normal file
12
2020/src/day15.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day15;
|
||||||
|
|
||||||
|
impl Solution for Day15 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day16.rs
Normal file
12
2020/src/day16.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day16;
|
||||||
|
|
||||||
|
impl Solution for Day16 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day17.rs
Normal file
12
2020/src/day17.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day17;
|
||||||
|
|
||||||
|
impl Solution for Day17 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day18.rs
Normal file
12
2020/src/day18.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day18;
|
||||||
|
|
||||||
|
impl Solution for Day18 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day19.rs
Normal file
12
2020/src/day19.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day19;
|
||||||
|
|
||||||
|
impl Solution for Day19 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day20.rs
Normal file
12
2020/src/day20.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day20;
|
||||||
|
|
||||||
|
impl Solution for Day20 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day21.rs
Normal file
12
2020/src/day21.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day21;
|
||||||
|
|
||||||
|
impl Solution for Day21 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day22.rs
Normal file
12
2020/src/day22.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day22;
|
||||||
|
|
||||||
|
impl Solution for Day22 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day23.rs
Normal file
12
2020/src/day23.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day23;
|
||||||
|
|
||||||
|
impl Solution for Day23 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day24.rs
Normal file
12
2020/src/day24.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day24;
|
||||||
|
|
||||||
|
impl Solution for Day24 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
12
2020/src/day25.rs
Normal file
12
2020/src/day25.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use std::io::Read;
|
||||||
|
|
||||||
|
use crate::Solution;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct Day25;
|
||||||
|
|
||||||
|
impl Solution for Day25 {
|
||||||
|
fn part1(&mut self, _input: &mut dyn Read) -> String {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,6 +11,21 @@ mod day07;
|
|||||||
mod day08;
|
mod day08;
|
||||||
mod day09;
|
mod day09;
|
||||||
mod day10;
|
mod day10;
|
||||||
|
mod day11;
|
||||||
|
mod day12;
|
||||||
|
mod day13;
|
||||||
|
mod day14;
|
||||||
|
mod day15;
|
||||||
|
mod day16;
|
||||||
|
mod day17;
|
||||||
|
mod day18;
|
||||||
|
mod day19;
|
||||||
|
mod day20;
|
||||||
|
mod day21;
|
||||||
|
mod day22;
|
||||||
|
mod day23;
|
||||||
|
mod day24;
|
||||||
|
mod day25;
|
||||||
|
|
||||||
pub trait Solution {
|
pub trait Solution {
|
||||||
fn part1(&mut self, input: &mut dyn Read) -> String;
|
fn part1(&mut self, input: &mut dyn Read) -> String;
|
||||||
@@ -32,6 +47,21 @@ pub fn get_implementation(day: usize) -> Box<dyn Solution> {
|
|||||||
8 => Box::new(day08::Day08::default()),
|
8 => Box::new(day08::Day08::default()),
|
||||||
9 => Box::new(day09::Day09::default()),
|
9 => Box::new(day09::Day09::default()),
|
||||||
10 => Box::new(day10::Day10::default()),
|
10 => Box::new(day10::Day10::default()),
|
||||||
|
11 => Box::new(day11::Day11::default()),
|
||||||
|
12 => Box::new(day12::Day12::default()),
|
||||||
|
13 => Box::new(day13::Day13::default()),
|
||||||
|
14 => Box::new(day14::Day14::default()),
|
||||||
|
15 => Box::new(day15::Day15::default()),
|
||||||
|
16 => Box::new(day16::Day16::default()),
|
||||||
|
17 => Box::new(day17::Day17::default()),
|
||||||
|
18 => Box::new(day18::Day18::default()),
|
||||||
|
19 => Box::new(day19::Day19::default()),
|
||||||
|
20 => Box::new(day20::Day20::default()),
|
||||||
|
21 => Box::new(day21::Day21::default()),
|
||||||
|
22 => Box::new(day22::Day22::default()),
|
||||||
|
23 => Box::new(day23::Day23::default()),
|
||||||
|
24 => Box::new(day24::Day24::default()),
|
||||||
|
25 => Box::new(day25::Day25::default()),
|
||||||
_ => panic!("Unsupported day {}", day),
|
_ => panic!("Unsupported day {}", day),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user