summaryrefslogtreecommitdiff
path: root/2024_rust/src/main.rs
diff options
context:
space:
mode:
authorGuillermo Ramos2024-12-04 10:28:51 +0100
committerGuillermo Ramos2024-12-04 10:51:41 +0100
commit1c9620d4666fdf41ef751f100dfb17f14133dd35 (patch)
treeece2ef499492b2426b13bd9b48f98f35a60123c2 /2024_rust/src/main.rs
parenta42dc9c3efb52a74fc581835f585679e8a5e2bb1 (diff)
downloadAoC-1c9620d4666fdf41ef751f100dfb17f14133dd35.tar.gz
2024: move to single Rust crate
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));
+}