aboutsummaryrefslogtreecommitdiff
path: root/2022/18/b.rs
diff options
context:
space:
mode:
Diffstat (limited to '2022/18/b.rs')
-rw-r--r--2022/18/b.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/2022/18/b.rs b/2022/18/b.rs
new file mode 100644
index 0000000..a82c213
--- /dev/null
+++ b/2022/18/b.rs
@@ -0,0 +1,10 @@
1mod common;
2use common::*;
3
4fn main() {
5 let mut map = Map::from_stdin();
6 let total_free = map.total_free_area();
7 map.fill_exterior();
8 let interior_free = map.total_free_area() - 6*MAX_LEN*MAX_LEN;
9 println!("{}", total_free - interior_free);
10}

Generated with cgit - Back to sebastiano.tronto.net