summaryrefslogtreecommitdiff
path: root/2024_rust/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '2024_rust/src/main.rs')
-rw-r--r--2024_rust/src/main.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/2024_rust/src/main.rs b/2024_rust/src/main.rs
new file mode 100644
index 0000000..ed94ec2
--- /dev/null
+++ b/2024_rust/src/main.rs
@@ -0,0 +1,10 @@
+mod day3;
+use day3 as current_day;
+const INPUT_FILE: &str = "inputs/3";
+
+fn main() {
+ let input = std::fs::read_to_string(INPUT_FILE).unwrap();
+
+ println!("Result (P1): {}", current_day::p1(&input));
+ println!("Result (P2): {}", current_day::p2(&input));
+}