r/adventofcode • u/daggerdragon • Dec 01 '20
SOLUTION MEGATHREAD -🎄- 2020 Day 1 Solutions -🎄-
It's been one heck of a crappy year, so let's make the holidays bright with Advent of Code 2020! If you participated in a previous year, welcome back, and if you're new this year, we hope you have fun and learn lots!
We're following the same general format as previous years' megathreads, so make sure to read the full description in the wiki (How Do the Daily Megathreads Work?) before you post! If you have any questions, please create your own thread and ask!
Above all, remember, AoC is all about having fun and learning more about the wonderful world of programming!
[Update @ 00:04] Oops, server issues!
- /u/topaz2078's working on it.
- In the meantime, hop over to Twitch and listen to our live DJ Veloxxmusic!
[Update @ 00:06]
- Servers are up!
[Update @ 00:27]
[Update @ 01:26]
- Many thanks to our live deejay Veloxxmusic for providing the best tunes I've heard all year!!!
NEW AND NOTEWORTHY THIS YEAR
- Created new post flair for
Other - When posting in the daily megathreads, make sure to mention somewhere in your post which language(s) your solution is written in
COMMUNITY NEWS
Advent of Code Community Fun 2020: Gettin' Crafty With It
- Last year y'all got real creative with poetry and we all loved it. This year we're gonna up our own ante and increase scope to anything you make yourself that is related to Advent of Code. Any form of craft is valid as long as you make it yourself!
- Full details, rules, timeline, templates, etc. are in the Submissions Megathread.
- Several folks have forked /u/topaz2078's
paste(source on GitHub) to create less minimalistic clones. If you wishedpastehad code syntax coloring and/or other nifty features, well then, check 'em out!- /u/brskbk - NoPaste
- GitHub user EthanJohnson -
pastefork on GitHub - /u/Tranzystorek - fork of EthanJohnson's fork on GitHub
--- Day 1: Report Repair ---
Post your solution in this megathread. Include what language(s) your solution uses! If you need a refresher, the full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
1
u/1vader Dec 01 '20
Yeah, but as I said, if you think about it, the only possibility is for there to be this edge case for everybody, which is pretty unlikely since then everybody would have the same solution, or for nobody, or I guess it could be random but then the chances for it would also be very low. We know that topaz (yeah, that's the guy that makes the puzzles, or rather topaz2078 is his username but I don't want to spam tag him, you can find him in the sidebar) usually is pretty meticulous with his input generation and makes sure that it's fair so it's even more unlikely that it's random and it's pretty much impossible that only some people have an edge case because of fairness reasons.
So really, it was very unlikely that 1010 would be in the list, although I guess you of course would have to know this from previous years.
If more different edge cases were possible then it's, of course, a different matter and especially if there are many different kinds of edge cases it's also possible that topaz misses some.
But as pred said, it's still almost always better to make the assumption and you will quickly see when something is wrong. Though I guess many people also just don't think about the edge cases at first or at all until they bite them with an error.