[1]Advent of Code

     • [2][About]
     • [3][Events]
     • [4][Shop]
     • [5][Settings]
     • [6][Log Out]

   br0xen [7](AoC++) 4*

                                  <y>[8]2024</y>

     • [9][Calendar]
     • [10][AoC++]
     • [11][Sponsors]
     • [12][Leaderboard]
     • [13][Stats]

   Our [14]sponsors help make Advent of Code possible:
   [15]Lightricks - Are you nerdy but also creative? Do you love AI, but
   truly believe the human hand doesn’t have six fingers? If you answered yes
   and want to help the future of creation, we’re hiring software engineers,
   developers, and more.

--- Day 3: Mull It Over ---

   "Our computers are having issues, so I have no idea if we have any Chief
   Historians in stock! You're welcome to check the warehouse, though," says
   the mildly flustered shopkeeper at the [16]North Pole Toboggan Rental
   Shop. The Historians head out to take a look.

   The shopkeeper turns to you. "Any chance you can see why our computers are
   having issues again?"

   The computer appears to be trying to run a program, but its memory (your
   puzzle input) is corrupted. All of the instructions have been jumbled up!

   It seems like the goal of the program is just to multiply some numbers. It
   does that with instructions like mul(X,Y), where X and Y are each 1-3
   digit numbers. For instance, mul(44,46) multiplies 44 by 46 to get a
   result of 2024. Similarly, mul(123,4) would multiply 123 by 4.

   However, because the program's memory has been corrupted, there are also
   many invalid characters that should be ignored, even if they look like
   part of a mul instruction. Sequences like mul(4*, mul(6,9!, ?(12,34), or
   mul ( 2 , 4 ) do nothing.

   For example, consider the following section of corrupted memory:

 xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))

   Only the four highlighted sections are real mul instructions. Adding up
   the result of each instruction produces 161 (2*4 + 5*5 + 11*8 + 8*5).

   Scan the corrupted memory for uncorrupted mul instructions. What do you
   get if you add up all of the results of the multiplications?

   To begin, [17]get your puzzle input.

   Answer: [18]_____________________ [19][ [Submit] ]

   You can also [Shareon [20]Bluesky [21]Twitter [22]Mastodon] this puzzle.

References

   Visible links
   1. https://adventofcode.com/
   2. https://adventofcode.com/2024/about
   3. https://adventofcode.com/2024/events
   4. https://cottonbureau.com/people/advent-of-code
   5. https://adventofcode.com/2024/settings
   6. https://adventofcode.com/2024/auth/logout
   7. Advent of Code Supporter
	https://adventofcode.com/2024/support
   8. https://adventofcode.com/2024
   9. https://adventofcode.com/2024
  10. https://adventofcode.com/2024/support
  11. https://adventofcode.com/2024/sponsors
  12. https://adventofcode.com/2024/leaderboard
  13. https://adventofcode.com/2024/stats
  14. https://adventofcode.com/2024/sponsors
  15. https://adventofcode.com/2024/sponsors/redirect?url=https%3A%2F%2Fwww%2Elightricks%2Ecom%2Fltxv
  16. https://adventofcode.com/2020/day/2
  17. https://adventofcode.com/2024/day/3/input
  20. https://bsky.app/intent/compose?text=%22Mull+It+Over%22+%2D+Day+3+%2D+Advent+of+Code+2024+%23AdventOfCode+https%3A%2F%2Fadventofcode%2Ecom%2F2024%2Fday%2F3
  21. https://twitter.com/intent/tweet?text=%22Mull+It+Over%22+%2D+Day+3+%2D+Advent+of+Code+2024&url=https%3A%2F%2Fadventofcode%2Ecom%2F2024%2Fday%2F3&related=ericwastl&hashtags=AdventOfCode
  22. javascript:void(0);