LOADING: An error occurred. Update Chrome, try Firefox, or visit this post for more details.

⚠️Reddit changed how removals work, which breaks Reveddit's website. Install the extension to track removed content:Add to chromeAdd to firefoxWhat changed?
✖︎
about reveddit
⚙F.A.Q.add-ons
r/
status
copy sharelink
[+] show filters
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)
1036 commentsredditother-discussionssubreddit-indexmessage modsop-focus

WIKI NEWS

  • The FAQ section of the wiki on [Code Formatting](https://www.reddit.com/r/adventofco...

... view full text

since 3 years, 1 month ago
5 of 5

Tip Reveddit Real-Time can notify you when your content is removed.

your account history
(check your username's removed content. why?)
Tip Check if your account has any removed comments.
view my removed comments
you are viewing a single comment's thread.
view all comments
[–][deleted]6 points3 years, 1 month ago* (edited 1 hour, 12 minutes after)
[removed] mod/auto

[removed]

(check your username's removed content. why?)
Restore
(1 users left)
Restore AllHide Unarchived
permalinkhide replies (4)as-ofmessage mods
[–]pier4r2 points3 years, 1 month ago

the heart of part 2 was that we could no longer work with Ints, but would need to work with longs

I 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.

permalinkparentcontextauthor-focusas-ofpreserve
[–]olavafar2 points3 years, 1 month ago

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...

permalinkparentcontextauthor-focusas-ofpreserve
[–]daggerdragon1 point3 years, 1 month ago

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.

permalinkparentcontextauthor-focusas-ofpreserve
[–]1234abcdcba43211 point3 years, 1 month ago

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.

permalinkparentcontextauthor-focusas-ofpreserve
r/revedditremoved.substack.com
🚨 NEWS 🚨
✖︎

Important: Reddit Changed How Removals Work

A recent Reddit update makes mod-removed content disappear from profile pages, which breaks Reveddit's website.

Install the browser extension to receive removal alerts.

Add to chromeAdd to firefox

What changed?

r/revedditremoved.substack.com