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 (910B)


      1--- Part Two ---
      2
      3The light turns green and the door unlocks. As you collapse onto the bed in your room, your pager
      4goes off!
      5
      6"It's an emergency!" the Elf calling you explains. "The soft serve machine in the cafeteria on
      7sub-basement 7 just failed and you're the only one that knows how to fix it! We've already
      8dispatched a reindeer to your location to pick you up."
      9
     10You hear the sound of hooves landing on your balcony.
     11
     12The reindeer carefully explores the contents of your room while you figure out how you're going to
     13pay the 50 stars you owe the resort before you leave. Noticing that you look concerned,
     14the reindeer wanders over to you; you see that it's carrying a small pouch.
     15
     16"Sorry for the trouble," a note in the pouch reads. Sitting at the bottom of the pouch is a gold
     17coin with a little picture of a starfish on it.
     18
     19Looks like you only needed 49 stars after all.
     20
     21