diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-27 15:18:13 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-27 15:18:13 +0200 |
| commit | b5d2f5d1958923f9645b242037d9b3c6682e0430 (patch) | |
| tree | f9e344d4c41f9e9dd031a5814a8ca1c61eca39e6 /2022/12/a.rs | |
| parent | 65d5cf556a4c7a0e4d62bc259f1a3654adb4734d (diff) | |
| download | aoc-b5d2f5d1958923f9645b242037d9b3c6682e0430.tar.gz aoc-b5d2f5d1958923f9645b242037d9b3c6682e0430.zip | |
Day 12 2022
Diffstat (limited to '2022/12/a.rs')
| -rw-r--r-- | 2022/12/a.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/2022/12/a.rs b/2022/12/a.rs new file mode 100644 index 0000000..cf12ba3 --- /dev/null +++ b/2022/12/a.rs | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | mod common; | ||
| 2 | use common::*; | ||
| 3 | |||
| 4 | fn main() { | ||
| 5 | let mut map = read_input(); | ||
| 6 | let end = |c: &Cell| c.is_start; | ||
| 7 | println!("{}", shortest_path_back(&mut map, end)); | ||
| 8 | } | ||
