summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorArne Dußin2021-12-04 12:31:11 +0100
committerArne Dußin2021-12-04 12:31:11 +0100
commit15b00050c8bd1f8792a78cf88b8840d1b32fa4cb (patch)
tree1a766ff737ecf31743858cf168f92606ef7d4028 /src/main.rs
parent611c7dd5f55aab79c03dace3a022f87b68a3d012 (diff)
downloadaoc2021-15b00050c8bd1f8792a78cf88b8840d1b32fa4cb.tar.gz
aoc2021-15b00050c8bd1f8792a78cf88b8840d1b32fa4cb.zip
Add solution to day 3
It's horrible, but that's what happens when you design something for the first part and then use the scraps for the second.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 0c3f0a7..094d48b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,5 +1,6 @@
mod day_1;
mod day_2;
+mod day_3;
use std::fs::File;
use std::io::{BufRead, BufReader};
@@ -28,6 +29,7 @@ fn run(day: u8, input: Vec<String>)
match day {
1 => day_1::run(input),
2 => day_2::run(input),
+ 3 => day_3::run(input),
o => panic!("Day {} is not implemented (yet)", o),
}
}