aoc

My solutions for the Advent of Code
git clone https://git.tronto.net/aoc
Download | Log | Files | Refs | README

b.rs (263B)


      1 mod common;
      2 use common::*;
      3 
      4 fn 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 }