76
SOLUTION MEGATHREAD-🎄- 2022 Day 11 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 17 minutes after) by daggerdragon to /r/adventofcode (134.8k)
WIKI NEWS
- The FAQ section of the wiki on [Code Formatting](https://www.reddit.com/r/adventofco...
since 3 years, 1 month ago
5 of 5
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


[removed]
Restore AllHide UnarchivedI only partially agree. If you inspect the input you see that one monkey has the square operation (
old*old) , after 1000 rounds it will be computed many times.knowing how large a 64 unsigned bit integer could be, should be clear in a short time that 1000 rounds are going to break that, because every square operation adds so many digits as the magnitude of the number squared.
So it is not exactly black magic.
I had exactly the same issue. I realized/guessed it was 'another operation' but why I should multiply the random prime numbers was just not a suggestion I'd come up with. I had many other ideas that I tried that produced good but incorrect results...
Post removed. Top-level posts in
Solution Megathreads are for code solutions only.This type of comment does not belong in a
Solution Megathread. If you have feedback about the puzzles, create your own post in the main subreddit.There are multiple solutions. They're both pretty much the same thing and can be mathematically shown to be equivalent, but there still are multiple solutions.
There's already complaints about people thinking that that line means you're supposed to find an operation that like, magically matches the sample input, or something of that sort, which obviously isn't the case but your suggested rewording would lead even farther in that direction.