From b5d2f5d1958923f9645b242037d9b3c6682e0430 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 27 Jun 2025 15:18:13 +0200 Subject: Day 12 2022 --- 2022/12/b.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 2022/12/b.rs (limited to '2022/12/b.rs') diff --git a/2022/12/b.rs b/2022/12/b.rs new file mode 100644 index 0000000..62f34a5 --- /dev/null +++ b/2022/12/b.rs @@ -0,0 +1,8 @@ +mod common; +use common::*; + +fn main() { + let mut map = read_input(); + let end = |c: &Cell| c.h == 0; + println!("{}", shortest_path_back(&mut map, end)); +} -- cgit v1.3