aoc-2020-zig

Advent of Code 2020 Solutions in Zig
git clone https://git.sinitax.com/sinitax/aoc-2020-zig
Log | Files | Refs | README | sfeed.txt

part2 (709B)


      1--- Part Two ---
      2
      3Time to check the rest of the slopes - you need to minimize the probability of a sudden arboreal
      4stop, after all.
      5
      6Determine the number of trees you would encounter if, for each of the following slopes, you start at
      7the top-left corner and traverse the map all the way to the bottom:
      8
      9- Right 1, down 1. - Right 3, down 1. (This is the slope you already checked.) - Right 5, down 1. -
     10Right 7, down 1. - Right 1, down 2.
     11
     12In the above example, these slopes would find 2, 7, 3, 4, and 2 tree(s) respectively; multiplied
     13together, these produce the answer 336.
     14
     15What do you get if you multiply together the number of trees encountered on each of the
     16listed slopes?
     17
     18