#advent-of-code
1 messages Β· Page 27 of 1
glhf
<@&518565788744024082> Good morning! Day 9 is ready to be attempted. View it online now at https://adventofcode.com/2024/day/9. Good luck!
is aoc python only
p2 ain''t workingbfor mw
Yeah
π
HAHAHAHA
This one tricked me smh
13/338.
FML
what the sigma
why does it work on given case but not tc theres no room for edge cases?? smh
oh ru "Michael"
the 13 is for pt1
oops
no π
global 58
what's that?
the lb here
how many ppl here are on global
adavya, you, tesseract, oliver
tessAract. (I've intentionally misspelled it)
naruhodo
just to annoy people
if you really wanna annoy me then you should get to #1 on global
ryuichi?
and we'll need adavya or oliver to get #3
that ain't happening any time soon.
dw you have like 2 weeks to get there
and my ranking is going to drop even further since I may not even be able to work on AoC for 3-4 days straight since I'm going into a no internet area :/
need full pydis podium
how do you add yourself there? is there a bot/commands?
no i meant need top 3 on global to be pydis
i don't remember at this point
||are we supposed to handle file ids >= 10||
||yes, they move around just like single digit #s||
||but you also have to take into account the length of the id right||
||so like id 10 will take up 2 indexes of space||
||no, actually!||
||did I read the problem statement wrong or something lol||
||so if I take the example input and add another file at the end, and make the first free block larger: 273313312141413140203, I get the string 00.......111...2...333.44.5555.6666.777.888899101010. So after the first swap should it be 00101010.111...2...333.44.5555.6666.777.888899......?||
why doesn't the problem specify how to handle >two-digit ids?
what the sigma
||ah||
what is ||AAA||
||ok time to rewrite lmao||
it's merely representation for visual clarity, it's not like you're actually building the string
gdi
i crashed vsc for 5 minutes because i forgot to remove a print in the loop before running it on the actual input
literally look at the preceding message
#aoc-solution-hints shoo
whoops
||how did 10 - > A||
i unfortunately don't feel like figuring out how to explain
||A is a way to represent the next number after 9 using a single character||
^
I had a stroke while doing part2 bro
.
The part 2 example has this at the end ||00992111777.44.333....5555.6666.....8888..|| this isnt the end result, is it? coz ||there are free spaces left like 4 spaces before 5555 so 8888 will be placed there right?||
||You tried to move 8888 right after 99 there is no spaces at the left for 8888 at that moment||
could have got better ranks for part2 if I am not struggling so hard and refuse to just move the numbers around
oh thank god
Can anyone help me with day 5 part 2? I wanted to optimise my sol...
cute mascot
I'm confused how this is the io module
https://hexdocs.pm/gleam_stdlib/gleam/io.html
I only see o
@magic oxide does gleam really not have a get_line?
i'm still doing today in python π
I saw that, but it makes me sad to have to reach into erlang π₯΄
read the problem wrong and solved a harder one
I guess it makes some sense since it can be compiled to js or whatever
anyone??
Im thinking || toposort|| but not sure
||yeah it is toposort||
first day left unsolved 
what did bro do
p2 if ||moving a block could clear up space for other blocks to move into||
how would that even work
very slowly
i just ||kept iterating over each file and empty slot until there was nothing to be changed||
that is so much work
yikes
I skimmed today's part 1 and implemented part 2 instead
Can you help me to understand it
like how it's working here
well, for starters you can use ||kahn's algorithm to topologically sort the indexes you want||
god damn it
for this AoC, I'd do
for (from, len, id) in <censored>:
...
one of these is a keyword.
two shadow builtins.
WHY, Python?
i wouldnt feel too bad about shadowing id tbh
still
Then?
How long does your Day 9 solution take to run
it takes ||6s||
but I also operate ||on sequences of n blocks at once, not on each individual block||
and its wrong
classic
both parts take roughly ||24s||
about ||3s|| both parts
why spoil anyways-
idk tbh
i found it easier to ||just work on the numbers and use arithmetic sequences|| than deal with the performance problems later
π₯΄
first attempt took 2min, got it down to 2s now
I think in python part 1 should be fairly trivial to do efficiently
part 1 was fairly fast even at first yeah
only slow thing was 2
||walk with two indices from either end and swap things||
||did someone use bisect_left for p2 for optimization's sake||
||TIL insort_left exists , i couldnt make it work with bisect_left, although the ans is pretty close but still not correct , tuple comparator smh||
yes simple ||two pointers||
fml, i finally did part2, worst code i have ever written probably, very ugly, but im not touching it again
sadly I had to write in a functional language π₯΄
0.02s for part 1
1.64s for part 2
That's nothin. My p2 takes 40 sec
Gotta get your money's worth outta that CPU
Thank you to whoever showed import tqdm the other day. Otherwise i would have given up halfway through running and worked on optimization
why is my re.findall returning an empty list? for day 3
Might be a better question for #aoc-solution-hints
oh ok also i go the answer i was missing an escape sequence \
Remember that this channel should not have any spoilers or hints! People might not appreciate the information you're putting here
Tbf the question is fine but answer should be spoiler
||nvm, that's was the one that you should use regex without a doubt||
||when I was solving it regex didn't even occur to me until I had already finished without it||
Oops
challenge: day 3 part 3 - allow muls to be nested
regexers in shambles
recursive descent parser believers in profits
i just signed into the website now lol that was alr too much effort i think i leave the programming tommorow
well that makes me think im totally fucked now
i understand it now
i havent even seen what the problem is yet
Start with day 1 if you haven't yet
im tired for this tbh i need my last year motivation
Guys, someone help because I am losing my mind
Isn't this what we are supposed to do in part two of day 9 ?
Probably better for #aoc-solution-hints, but ||I don't quite get the math of what you are doing for the checksum. You need to multiple the block's current position by the ID of the file occupying that block. So 0's and 9's would be 0*0 + 0*1 + 9*2 + 9*3||
For day 9 will I have to account for numbers more than two digits and if so do I have to keep them the same double digit
treat them as one digit
So 17 turns into 71? Or stays as 17?
stays as 17, also avoid building the string, it will cause unnecessary bugs like this one
Yeah, i was gonna treat it as a list after getting that info
<@&518565788744024082> Good morning! Day 10 is ready to be attempted. View it online now at https://adventofcode.com/2024/day/10. Good luck!
thanks
the question refused to open for me today! :/
there's a certain peace in knowing there's nothing you can do about it
24/45
bro still beat me p1
yeah, meh
at least everyone knows they're llming lol
at least you got a point
ffs hyper neutrino isn't on lb
OMG, I'm up to global rank #34 π₯Ή
bikatr7 called out in the reddit https://www.reddit.com/r/adventofcode/comments/1ha7p80/the_bullshit_explanation_of_the_current/
sheesh
also i love how #1 and #2 both bought aoc++ today
they certainly didn't have it yesterday
wdym bought aoc?
like sponsored it?
the yellow thing
ah!
all of top 3 bought it π
yeah both of top 2 bought it today
let's just say my interpretation is cynical
the cynic in me believes that eric throttles speeds of opening questions for those who don't pay π
π
i can't believe AoC is p2w smh
i somehow solved part 2 before part 1
completely misread what it was asking for
π
advent of reading comprehension strikes again
WHY DO I WAKE UP LATE ON EASY DAYS
also my ||soul died on omitting the visited set for p2 then i was like yeah its fine||
smh I accidentally did part 2 for part 1 again
still beat my time
same
accidentally solve part 2 first LOL
wait u play amq?
Feels like this year there's a way higher number of people convinced there's an error in the puzzle text. I know it happens every year, but this year feels inordinately higher.
9.5 minute solve -> rank 500.
maybe it's just me, but this years times seem faster than previous years, and I can't help but think there's a lot of people ai coding it, and not just in the top 100
you made a difficulty chart last year, I follow your way to check this year's difficulty but wonder it may lost its accuracy this year
I mean i would agree. None of them where that hard yet
part1 is harder than part2 smh
Today?
i accidentally did part 2 first before i even knew what it was
i fixed my code for part 1, then realized and un-fixed my code for part 2 πΏ
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
extreme demons are harder than insane demons smh π
I'm sure it has. I wonder if I can find the link for the guy that made a live version of it.
the 2024 numbers seem reasonable so far. I think we might have had another medium in there a few days ago. But overall 2024 hasn't been too bad so far.
I've been in the middle of moving, I've only started 1 day on time so far. And that day they had an issue with the website. lol
why didn't eric invalidate scores πΏ
Does mean I've been much more relaxed about solving though. Which is nice.
too few people impacted by too small an amount.
It's hard to tell, times have been getting easier as more people started doing aoc as well. So it's not just that aoc looks easier over time, it's also that aoc coder quantity has improved over time.
The future is grim, the graph day finally arrived ```
d p time abs rel
...
10 1 376ms 38% 41%
10 2 366ms 37% 40%
sum 922ms 92% 100%
||you dped right||
i see
At least better than my initial solution which used || A* with edge goal and estimate cost both set to permanent 0 since I don't understand them||.
part 2 today, ||which was for me literally change 1 character,|| still took me 60 seconds to submit. Which shows how slow I am. =/
it's monotonic so ||we know there won't be any cycles||, thus it's just ||memoized recursion||
Yes but graphs make my head hurt, and ||rust doesn't have a nice @cache built-in||. I'll probably optimize it tomorrow once I'm less tired since that is untenably long, and I want to keep going no deps.
π«‘
you could easily make a struct to deal with the caching
struct with a hashmap from argument tuple to result, impl the function and just do the caching manually
in python it would be something like
if args not in cache:
...compute value...
cache[args] = value
return cache[args]
@mossy basin just wanna say that I love your visuals and I'm going to try myself something, thanks for sharing your library β€οΈ
β€οΈ show me your visuals
as soon as II understand how to start with your library, I will surely! (this day should be easy... should.. HAHAHA noob me!)
currently playing around with today:
@minor cave congrats on picking fortran on the same day of the calendar and on another grid problem
so I could re-use my input reading code from last year
wtf is that 4.998873919248581e-07
smol number
Hi everyone!
I made Advent of Code 2024 animations with Manim.
Kinda did this for fun at first(i was dared to and well, it's still fun), but I'm just going to see if I can animate all 25 days:
https://www.youtube.com/playlist?list=PLpBOB0SsPa0QpUTDXfHvPrsP1QJe5e8xB
I need your feedback to improve this : )
Eg: In the earlier days, the animation was quite slow but i've improved the speed XD
smooooth, very nice!
to not bother everyone on my problems with your lib, where can I ask for help? XD
Thanks : )
I think day 6 would've looked a little more polished with actual arrows instead of ASCII ^<>v
but great otherwise! you should post it in https://discord.com/channels/267624335836053506/1047673173447020564/threads/1312647387495534632 !
Yh, now that I think of it...
I'm a noob : )
Thanks!
hol up i missed something
how did you || END UP USING A*, FOR WHAT JOY ||
which problem statement
Nope. Are you doing it in Python?
Ok, just checking you didnβt overflow an int in another lang
Have you tested against the example input?
#aoc-solution-hints
Do it there with spoiler tags
after seen people code i found that my code also right
but the output is wrong i don't understand
Then your code isnβt right :)
i did this line for get total distance
@modest sand don't post code here. #aoc-solution-hints
easy day today
still stuck on yesterdays part 2 though, works for example not for input 
Yeah Day 9 Part 2 might just be a skip for me
SKIP βοΈ
My ego won't allow me to skip a day that comes before the day I reached last year
it's not that bad
if you handle things like ||(type, size) tuples|| it should mainly just be ||a nested loop||
My brain just doesn't grok it very well
wait that was ||disk defrag 2||?
I just used ||2 separate lists, one for files (start, size, id) and one for space (start, size)||
Man batgrl is fucking amazing
That is sweet! You should also check out #1312647387495534632
Did you guys see that ?
https://www.reddit.com/r/adventofcode/comments/1hawiif/yup_that_will_be_anniversary_theme_everywhere/
I really hope it's just a 10 year anniversary and not the last AoC
wow hope not, this is my first year trying it out π₯Ή
This is the first year I can actually commit to it
I ended up with ||two lists, files and space and only files||
the latter for ||picking what I was trying to insert||
This is so good π
daym
i think you gave the guard some extra features πΉ
very cool stuff!
insane use of the shadow caster
Thanks
Insane library you built there
yo thatβs really cool
I've figured out how to implement ||flood fill||. I still don't understand how ||caching paths|| could ever work, but this is fast enough for me. ||https://paste.rs/GmKm9.rs|| New times: ```
d p time abs rel
10 1 7ms .65% 3.2%
10 2 6ms .56% 2.7%
sum 206ms 21% 100%
you were the one complaining about no cache decorator 
Anyone working on day 3
I can help with day 3 if you need it
I solved part 2 day before part 1 because of a bug in my code that made it act like part 2 XD
Fixed the bug only to realize that I need to add it back
Ctrl-Z was the theme for today
Tomorrow will probably be Chinese remainder theorem or something like that.
(I kid, it's a bit early in the month for that.)
you never know, maybe we'll be thrown the mid-week difficult curveball just to keep us on our toes
Heaven forbid, maybe it'll be Beverage Bandits again.
days 4, 6, 8, and 10 have involved maps or grids of some kind, so following the pattern, tomorrow will not involve any sort of grid, that's the only prediction i'm confident enough to make π
I would be curious how the LLM folks do against a Beverage Bandits type of problem, though.
oh dang what problem was that
One of the longest leaderboard times of all problems. Top 3 I think?
2h 23m to fill the leaderboard
It was a day 15 too
I missed the leaderboards that day π₯Ή
What year?
If we have a 60+ minute leaderboard fill this year, I'm just gonna open the thread and trust y'all to only post when the global has filled. Ya girl needs sleep
there's only like 6 people here who'd get onto that leaderboard π
Hope I am not too sleepy that I can complete it and then go back to sleep for a while
hopefully it's not too hard so i can focus on catching up with roulette
oh today is C##
Good luck everyone
also hoping it is not too hard, im a few days behind
<@&518565788744024082> Good morning! Day 11 is ready to be attempted. View it online now at https://adventofcode.com/2024/day/11. Good luck!
made a post in #1315547415381807114 for help
I was using a ||deque|| which was hellishly slow π¦
lol nah i'm too burnt out to fix my brute force
lol
i don't think it'll matter for you anymore. You'll still be top #15 at the very least even if you stop solving from today lol
||Oh f, part 2 bf gonna take forever||
I think the puzzle creator is getting a bit lazy
lol yeah
aaaaaaaaaaaaaaaaaaa
sorry my keyboard spazzed out
we power on
it literally might
Just 39
me submitting the demo output :|
Took 7 minutes from 39->41
everytime theres "after X amount of times" in the question, p2 most surely will be just "iterate more times"
i swear
ggs
p1 to p2 took quite a bit of time for me too!
ok king
Today is one of the days I was dreading. Part 1, simple, trivial even. Now I have to somehow figure out the pattern for part two, or wait several years for my existing code to finish
can someone help with this? no one in the channel is actually helping when i asked
#1316269903363440690 message
its the day 11
part 1
you would probably run out of memory before it finished
We'll see about that, time to get on the campus cluster
mine ran out of memory around round ||40||. 75 was not going to happen even as an experiment
Mine has made it to ||45||, but I now have to force close my computer since itβs completely frozen.
Does AWS still do free trial months 
part 2 is going to take approximately 4 * 10^17 years to brute force...
several years is a bit of an understatement lol
Well theyβre the same for me since I canβt wait several years or several universes. I wonder if the needed memory would fit in the universe.
I want to see someone run the brute force version on amazon
Also since I had to restart my computer windows finally got to install updates π
quite easily actually
we're only talking about like ||petabytes, and google has way more than that||
AoC scorns independent coders; new challenges heavily biased towards tech giants
can't wait for day 12 to be "solve the TSP for this graph with 1 million nodes
dont they have like yotabytes of storage
1billion rows typeshit
chat can i make it
I stupidly run both a python and c# version simultaneously (and also c# version is wrong) and my raspberry pi froze and I need to restart it
Btw the math is wrong, you cannot have 2.79Γ10^16 seconds then become 4.25Γ10^17 year,
You should divide by (60*60*24*365.25)
not divide by 60/(60/(24/365.25))
= 60*((24/365.25)/60)
=24/365.25
This would be amount of year if g is correct
years is a vast understatement I think
Today reminds me ||of the fishes challenge||
yo same
||Will solve it the same way||
.
Are you thinking of the ||Lanternfish one from 2021? I thought the same. My pt2 solution felt very similar to that.||
Absolutely yeap
Start it from today
d4\
You don't have a botnet to help you bruteforce your solution? Amateur
yea i know it's gonna make number ten
ten for ten years
why haven't I realized this sooner lol
bro is cooking
||Solved day 11 exactly like day 6 of 2021 and part 2 was just about changing the amount of blinks
||
i am more curious about this expression derivation
oops i didn't even notice my formula was wrong, thanks
honestly i would've written some GPU code to see if i could brute force this, but unfortunately this problem can't really run in parallel super effectively
i made this excel sheet (spoiler-ed because it has my answers to different blink iterations) but essentially i fit an exponential function to the time between each blink iteration (graph not shown in the image, but the data is column B), then found the integral of that exponential function to get the total time for a given iteration
I want to try find a value that can cause all code that use long or ulong for storing the number break (or eq.)
damn manual exponential regression
slight issue, your 2, would have already compute 1 and 3 would have compute both 3 and 2? or I misunderstand
because the next interation taking more double of the last doesn't sound reasonable
oh, the time for anything under iteration 11 is filler data because it was so fast it was read as 0 seconds exactly. but you can't do exponential regression when there's a 0 in the data since k^x cannot equal 0 (where k is a constant > 0). so instead i just put the function 2^x * 0.0000001
it's probably not the most rigorous way to do this and would probably give incorrect results, but i'm not trying to get a super accurate time estimate anyway
i'm not sure what you mean
excel does all the regression math for me
Im talking about 26->27->28
it each take like 2.5* the last time, which don't make sence because data could only maximum double in size
is anyone doing aoc in mojo
got released now?
i really dont want to drag myself into this i have no motivation lol
You keep talking about not starting yet and not having motivation to do it. What do you want from us? What do you have to lose to just start?
first step is click on the 1 and reading the problem
writing and sending the comment is most of the fun, I don't think there's something expected from us
oh yeah that is weird
honestly i have no idea why that happens
I think you count the whole time from 1->28 instead of just 28, for what I meant
actually i think i copy the stones list before working on it, so maybe that adds to the extra time when n is large
Could be
that can't be since the time for 13 was less than the time for 12
it could just be that my processor was also doing other stuff during that time (e.g., another application was open)
You did count the 1->28, which mean that you don't need the integral, just the point on the equation
It can because you count:
1->13 and 1->12 seperately, and they just too quick that cpu allocation time is more important then the actual time at that time
||```py
def blink_n(stones: list[int], n: int, verbose=False) -> list[int]:
stones = list(stones)
for i in range(n):
start = time.time()
blink(stones)
end = time.time()
print(end - start)
return stones
this measures and prints the time for each iteration, no?
you need to do the whole process once,
like for having 13, it won't take the previous result of 12 and calculate 13, but it need to calculate 12, 11, 10 etc.
<@&831776746206265384>
!rule 5 We cannot assist with malicious projects, nor direct you to them. I'd strongly advise you against engaging with these, please do not ask for help on this or related matters.
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
Also this channel is for advent of code
if you don't want to do the AoC, I'd recommend doing the (in my opinion) more interesting Advent(2) instead
Tbf that sound fun, would check it out after AOC probably
i wanna do aoc in assembly. the older the language the better
assembly is interesting for AOC, but quite painful when it comes to parsing the input.
you can solve all of them by hand. the oldest method of all
I solve every problem with an abacus and a chalk board
Is it related to aoc?
Just came backfrom a little hiatus to the rust discord and god the unsafe + SIMD war crimes they're throwing around are amazing
Take day 10 for example, people are actually hitting 58 microseconds??
Time to solve or execution time?
I guess it must be execution time since it's Rust
Nah it took me 58us to read the problem and come up with a solution
Well there are people out there solving puzzles with AI and solving in seconds but microseconds would be a bit much I guess
you don't necessarily solve it everytime, but we can cache the results ongoing
Handwritten aoc with mathematical proofs sprinkled on top. Paper and pencil π
there are commercial apis for hcaptcha available out there
GLHF!
good luck have
good luck have?
Good luck have factorial
<@&518565788744024082> Good morning! Day 12 is ready to be attempted. View it online now at https://adventofcode.com/2024/day/12. Good luck!
why's this one so tedious πΏ
That's not the right answer. If you're stuck, make sure you're using the full input data; there are also some general tips on the about page, or you can ask for hints on the subreddit. Please wait five minute before trying again. [Return to Day 12]
π¦
so many edge cases bruh
finally lb position...
WTH was this question?! 91/230 
but still would've ranked above me
||just trace the edge and record direction changes||
also funnily enough i think this would've been trivialized with ||shapely||
could've gotten #1 if i remembered that existed in time
actually not that many if you store them ni a good way
yeah i realized that a bit later π
i'd hope so
the whole puzzle is counting edges :]
π
how many of the global lb people are on this server?
is there like a private leaderboard for that?
It seems llms are struggling a bit more with part 2 today
although this one is like 20 minutes old
Seeing some more reasonable times and names I sort of recognise
lol yea
MFW I'm opening my phone so early the advent of code ghost ping isn't a ghost ping anymore
i enjoyed today
masochist
i didn't do that well
but i got to use my favourite data structure
so it was worth
what's your favorite
||dsu extra whitespace||
whitespace 
is the text not white
lol wait a sec, am I reading this right? So 98 of the "people" who got lb for pt1 failed to make it on the lb for pt2? Haha, that must really get their knickers in a knot π
todays problem fells hard 
wtf is purescript?
PureScript is a strongly-typed, purely-functional programming language that transpiles to JavaScript, C++11, Erlang, and Go.
huh
file extension .purs
do you actually need it? at least for p1 it seems overkill
i mean ||i just prefer to work with a dsu myself than do a bunch of bfs/dfs||
||works very nicely with my usual dict[complex, ...] approach as well||
now I need to figure out how to do graphs in a functional language π₯΄
please have some hash map type
or some mutable random access type
mfw we have a purescript coredev in pydis staff
you get normal JS arrays
and objects, of course.
E
D was yesterday, so today logically should be E
Part two today surprised me..
I can't say I was surprised by P2 today. But it was a bit of a pain to write
yeah
looks like I'm 21 on PyDis's 2024 leaderboard
yet I'm no where near the top 100 in the total lb
what should i do with day 12
im not doing official but im doing just ideas
im doin next years
ignore day 7
--- Day 12: Garden Groups ---
which is
The official name for the day's problem
That's what you're asking for right? A good name for the solution?
Another good one might be ElfZoningCommittee.py
AbnormalFencePricing
any helpers out there feeling helpy? My day 12 part 2 code works for every example given, but not my input. I've tried coming up with my own examples, and it works for those too
Try this one
||
XYX
YXY
XYX
||
That's the one that got me
oh wtf.. my code thinks one of the X's has zero sides
my code actually super failed all of these plants i think. weird
oh
damn
that is crazy
||yeah. mine was not detecting the corners when the diagonal was the same char||
good test examples can lead to exposing what you're doing wrong. π nice testcase.
appreciate it @unique osprey
My code only checked ||orthogonal directions|| so I didn't run into that edge case.
How did you find ||inside corners||?
answering in the spoiler channel
And I got 1306/18722 . The strategy of "sleep on the problem then come back in the morning" was successful eventually, but wasn't good in terms of leaderboard placement.
The problems release at 10pm my time. Last couple of years i tried staying up until i solved it, then i tried what you said and just reading the problems then go to bed, but that would always keep me up thinking about it haha
so this year i just do the whole thing when i get to my desk in the morning
Leaderboard seems worse this year. Even the more hardcore aoc's are down a bit this year. JP was around top 10 the last 6 years in a row, and is currently 83rd (although annoyingly number 1 on the private leaderboard we're on). It feels like there are a ton of people gaming the system, possibly with AI this year.
Getting '*'s and finishing the puzzles is an accomplishment in of itself. Be proud of what you've done and worry less about when you get it done. π
yeah, apparently llms struggled with p2 today and there was practically no overlap between top 100 first star and top 100 two stars
good. π
coincidentally i had my best rank so far this year on p2
nice!
hahastinkypoop
i spent a lot of time trying to figure out how to trace edges from a batgrl.region
I had a hard to track error in my code (had the wrong variable listed in an equality check). Code looked fine, but it wasn't until I debugged line by line I saw it.
but i couldn't figure it out
whats a batgrl
I was already planning on starting at least one puzzle over 24 hours late, due to spending time with family. I'll be glad if I can just get all 50 stars before 2025 (and finish my backlog of other years before Dec 2025)
Hi, I just joined the meeting and this is first meeting, what are guys working on and how often do you do this
Pretty much every year. And welcome. Have you been keeping up with the first 12 days ?
9 hours until new puzzle!
/happy dance
after today's p2...
i was like "ah, simple enough". Then had to code it and was like: "nah, nvm"
Could not match type
Int
with type
Number
```
mfw
spago install integers
classic
any rouletters who can tell me how to read strings from stdin in purescript?
all things I've seen has been mildly cursed
cefqrn had this commented at the top of his sol https://stackoverflow.com/questions/35705155/how-to-read-a-file-in-purescript-readfile
ah, yes
readTextFile UTF8 "/dev/stdin"
want to elaborate how I mutate Array? 
oh, that you don't get (outside of ST), which is a shame.
AAAAAAA
I just want a visited set π
with not absolutely horrible performance characteristics
I don't want to be linear searching through a list for this
god i love discord's markdown parsing
you can't send a spoilered codeblock that contains ||
which is an operator used by quite some languages
||```
left || right
π¦§
this day sure is a day
somehow we've avoided graph problems in functional languages previously
Yeah, the both parts:part1 ratio is the highest it's been this year so far. Still not as bad as 2013/day 21, but we've got 2 weeks left still.
like, I know what I want to implement
but mutable state in functional languages is...not fun
oh no
this is not what I want to see in a functional language
RangeError: Maximum call stack size exceeded
oh, it was an actual bug
apparently trailing newline blows my code up π₯΄
fun bug actually
bug: ||I fill the outside of the grid with ? and the zero width last row is incorrect, but my code things it's a full length row, so it traverses into infinity chomping up ?s||
GLHF
<@&518565788744024082> Good morning! Day 13 is ready to be attempted. View it online now at https://adventofcode.com/2024/day/13. Good luck!
Wow, I think Iβve solved a lower dimensional equivalent of todays problem in APL before
i spent a while on pt2 to ||look up documentation for z3||
lol ye it was slow
98/215 π¦
pretty much same
haha thank god i ||converted everything to fractions||
lmao nice
my ranks keep dropping. I'm without internet for the next 3 days. I'll likely be out of global leaderboard
wtf i beat you for once for p2
i think the #1 stopped aoc so i should be able to get to #2 tomorrow
i hadn't used z3 pretty much since one of the questions in last year's AoC
i didn't use ||z3 either||
causally getting screwed by floating point imprecision
well, at least you know you aren't time traveling
Why would you need floating point π
This is my first project
#python-discussion
This channel is for only advent of code discussion only
hi
hmmm
i think i see the solution to today but don't have the time to sit down & solve it π
I used z3 but I think it might be a pretty simple ||pair of linear equations||
that's basically what i was thinking the solution was :P
||it is||
@umbral vortex hey remember me
||it was, implementing cramer's rule made it a breeze||
i do wish part 2 showed the correct output for the example, though... would've made debugging easier
was wondering why my code stopped working. hmmmm
accidental backspace
yeah swapped the example input to the real input
Replit it's not good
Pls user VSC or Pycharm or Github for Development code
Okay, man
Thanks
How can you take part in the advent calendar?
I don't really understand
you can read through #aoc-faq
I hate that I've once again reached the point with AOC this year where between work and other stuff I don't have the time to keep up. π¦
You cant spare 30mins in a day to save Christmas?
There are other, faster advent calendars, like a 4x6-square bar of chocolate
Just sleep less, simple
<- Wake up at 5am, hopefully complete in an hour and hopefully can go back to sleep
bold of you to assume I get it done in 30 minutes. because usually i don't
Less? π
I could speedrun a whole chocolate advent calendar, like one of those Tony's Chocolonely calendars π€€
I wish these took me less than 30 minutes. π
At least one of them is solvable in less than 30 minutes
Some of them take more time than others, but if you feel you're taking too long, time box yourself and then ask for ideas or start googling general methods. Maybe there's just something you don't know yet.
That's a good idea. I'll hopefully get a little caught up over the weekend and finish more this year than I did last year.
Another problem I have is when the problems start piling up in my backlog it's hard to go back and pick one.
just spent an embarrassingly long amount of time trying to debug my code only to realize i was using the sample input for day 12 part 2
Good luck everyone
what is roulette today
i just rolled out of bed
<@&518565788744024082> Good morning! Day 14 is ready to be attempted. View it online now at https://adventofcode.com/2024/day/14. Good luck!
this one looks familiar
time to bring out the regex
What am I missing?!
Wtaf is this part 2
tf is p2
could you possibly tell me what it is
or would that count as spoilers
it's supposed to form a picture but idk what the picture is supposed to look like
(Spoilers for p2, obviously)
??????
Yeah exactly
what does it mean by this
because goddamn it sure as hell is a human repellant as well
can someone send me a pic of what it's supposed to look like π
wtf is p2
p2 aint' working for me
WTF even was today.... 8/228 π
i still don't know what they mean by christmas tree
christmas tree was all the friends we made along the way
π¦
what is p2
I posted it in the spoilered image above
It's ridiculous is what it is (image in spoiler chat)
bro really expects me to sit through 8k cycles
?? i still don't understand with the image
what exactly is a christmas tree
HUGE spoilers for p2
||gur vzntr nccrnef jura gurer'f bayl bar ebobg va rnpu gvyr||
This statement is 100% true π
wild
i was literally just spamming return
waiting for it to show up
π
(it comes at roughly t=||8000|| you're gonna be there a while)
can we spoiiler a bit more in this chat?
my finger is tired
nah, around ||6400|| for me
thanks <3
My flight got delayed so I just started π©
i've solve it and if this is actually a hint, idk what you're insinuating π
can i have a question answered to see if i'm on the right track: ||does this christmas tree include the base of the tree||
Luckily I caught that while I was still trying to figure out what on earth p2 meant lmao
either sit through everything or guess what eric wanted
||yes||
You're not on the right track
you ain't detecting it
???
actually best advice
It is a hint (it basically gives away the entire puzzle) which is why I didn't put it in plaintext lol
how do people figure this out in 2 minutes TT
what if they just have ||an ASCII text image recognition library...||
oh well
lol ikr
what language is this
probably the one used in import this or something similar
rot13
Genuinely I don't think that would help
omw to rank grids by embedding cosine similarity to christmas trees
technology isn't that far yet?? or is it just not as obvious to machines as it is to humans
Without already knowing ||what the image used is|| you kinda just have to make the assumption Eric is expecting you to
i'm not an eric expert so
if you had the money then it'd probably work
oh my god i didn't even realize ||it looked like it had a snowy or starry background||
I'm surprised it manages that but you should probably spoiler it lol
chat what is part 2
thanks
||I'm trying this but only getting christmas trees out? is there some other condition I need to look for for the easter egg or am I missing somethingelse||
how did you figure thatt out
intuition
??? ||that is the easter egg??||
wtf
Throwing stuff at the wall to see what sticks
||Bruh I thought I was supposed to be looking for an image of an easter egg||
Lmao
orz
It's the kind of assumption you've had to make before
Reading the problem explains the problem
||it does form an image, but finding it out programatically is the hardest part :p||
idk if im just really dumb but i dont get it lol
wait
dw
Man
||you see that 2 there? that's a no-no for part 2||
||so i need to find how long it takes for none of them to overlap?||
||basically, yes||
eric must've been in a trollish mood when he wrote this
i think that's just how he makes the inputs lol
im going insane
||I mean, he probably built it in reverse starting from the tree, so It makes sense why it doesn't overlap||
I'm having a lot of trouble getting the right answer on day 6 part 2 - is something off with my code here? ||I'm recording all of the visited spots along with directions and iterating through putting a barrier on each. Maybe I'm brute forcing it too hard or something, or am I just missing something? It works correctly for the examplehttps://paste.pythondiscord.com/EGRQ||
||what is the trouble, time? Or the answer wrong||
||omfg i feel so stupid. i manually looked through 6,285 permutations until i found mine...||
1935/2960
personal second best so far, nice
if it's stupid and it works, it's not stupid. join the spoiler channel to see my stupid idea. π
I'm wondering if he thinks this is something humans will do better at than an AI.
honestly? not a bad idea
for aoc*
Eric has said he doesn't consider LLM-deterrence at all when creating puzzles... but this one would definitely do the trick.
for actual swe if it's stupid and it works it's probably still stupid
this was a me-deterrence
:clueless:
may i ask where you got this?
tysm!
Is there a reason why the ||check for a state with no overlaps|| is a valid strategy, and can it be inferred from the puzzle? my strategy was ||look at every possible state and find the state where the total distance between robots is minimized, and assume that's the solution or within a few seconds of the solution||, which worked but had a runtime of ~1 minute (in rust release mode even) since my solution had a time complexity of ||O(n^2) per state, and with n=500 and there's lots of states||
might be better to discuss this in the spoiler thread
The problem is, that "most" people using AI are just using AI, not asking AI to interpret the puzzle. So it's going to be almost impossible to stop everyone.
I always use ai to Interpret and break down most my projects because it's actually really really good at it and more people shod do it to be honest
As Stickie said, probably best discussed in a spoiler channel. But that's not the way I solved it, and the puzzle wording does not seem to indicate any specific strategy at all.
for actual swe if it's stupid, it was the manager's idea. π
||i made this assumption because if the robots had some unique arrangement, probably each robot had their own unique location in the arrangement... dunno, i had to make some assumption and this seemed like a reasonable first||
interns:
debatably actual swe ig
i'm not swe i wouldn't know
well now that that's out of the way, what would you all say is the hardest day so far for you personally?
12p2 because of all the edge cases
day 1 coz that's all I did ππ
anyone doing day 14
on part 2 is there an output easter egg or am i just looking for a time metricin seconds
you're looking for an actual tree lol
at some point in the input therell be a tree showing up
you might wanna check #1047673173447020564 for how it looks
do you mean like your answer?
mb
your answer should just be the timestamp when the robots make the tree
ill check spoilers thx thx
your answer is the elapsed time in seconds at which point a tree shows up
me staring at my bruteforced terminal animation waiting for the f---ing tree to appear:
(i won the staring contest)
||I hope you don't miss it!||
|| didn't miss it, gold star for me ||
||good to see i'm not the only one who did this LOL||
lmao part 2 is the funniest ive seen in a while
I'm gonna hope day 12 purescript isn't too hard
would be good to catch up tonight
and then i can stop spending my entire day reading language documentation
are we allowed to commit aoc code solutions to github? Is adding input.txt in .gitignore enough?
yes, yes
how i felt ||after putting 10k numbered iterations in a text file and somehow getting the correct answer from scrolling it||
no shot
do most people generally use one python file for each day of advent of code, or one python file for each part of each day?
a poll would be perfect for that
my laziness knows no bounds : 3
i have both in my repo
depends on the puzzle
because i started off doing 2 files and then switched to 1 file
day 4 I split into two files because of how different my methods were :p
i generally try to calculate both p1 p2 in same function call, using flags and shit
strong
But I would copy the solution to a 2024.py at the end of the day
function name:
solution\d+[ab]
Do we all get AoC tshirts after 
my gosh i'm running day 14 part 2 really slow
I will open staff application if my server will be complete 30 members dm me to join and get a chance to become a staff
this isn't the place for that
idk why, but this years challenges seem significantly easier than the last time i got this far (2021)
you may have just improved
Just started the advent of code today at day 14 π
The fact that day 1 is two one liners is wild
solutions should be posted in the respective #1047673173447020564 thread for that day, please.
yes, you can share your solutions, just don't share your input file.
Just wait for day 25 finish that puzzle and then say you completed aoc 2024 π
heh. those that know...
π
Gonna be honest it's my sixth year doing aoc and I've never made it to 25
You can always go back and finish ones you missed later.
hey does anyone know if i can access adventofcode in china
<@&518565788744024082> Good morning! Day 15 is ready to be attempted. View it online now at https://adventofcode.com/2024/day/15. Good luck!
Alright I think this is outside the scope of what I can do on mobile
glhf everyone else
can't solve p1. i think i'm missing some weird edge cases
try not to make a grid based challenge challenge (impossible)
Hey doesn't today remind of sokoban?
Was getting myself back into AOC then realized my brainpower is low, took considerable amount of shifting gears.
i'm out of ideas on what i'm missing
or dont know π
make sure you submit an int. I spent too much time after I submited xxx.0 and it said it was wrong, only to try xxx later.
reminds me of Robo Rally!
https://en.wikipedia.org/wiki/RoboRally
okay tf is p2
Eh, not enough pits to fall down
hmm
the way it's programmed does resemble it
but I'd say it's more or so || sokoban || since the problem literally says,
|| elaborate warehouse complexes operated by robots ||
Idk what wrongs with my code but the example (which is smaller than puzzle input) take comparable longer to run π₯΄
Spoiler
Still, someone might reading the chat that haven't even open the question yet
So put a spoiler is always a great habit
bruh i got #2 on lb for day 15 part 2 sheesh
yea my part two just isnt working lol. Idk what to do abt it
ok
im guessing a lot of people's sols dont either
me: who haven't even started on p1
what doe the percentages mean here: Day β ββ | %β %ββ
- 395 389 | 33.00% 32.50%
% completed out of everyone on the board, I would assume
oof
what is the oof far what happened
...bearing in mind today's problem has only been out for an hour
That happens every year
yea the leaderboards are subjective. it doesnt account for difficulty of programming language or ease of
ik im usually one of the ones who drop out lol
decided to stick it out this year atleast
HAHAHAHA
:P
i started 10 mins late im coming for you 0o31 π
'I'm coming for you'
most of my p1 solves being less than 10 minutes
they dont account for hardware too some may have old old laptops or computers
To be fair those people are probably not trying to compete for global
ehh the bottleneck is dev time not runtime
After the first week or so, yeah well actually it's kinda both for the first week
well software is also subjective too ive been doing aoc on command line
yeh dev time
i have a headache need agua
Tbh persistence is how I won the pydis board (and got 78th global) in 2019 lol
in retrospect intcode seems fun
at the time it was awful
i still think that network design spec was really vague
honestly it's somewhat nice to have just gotten home
i can take my time instead of trying to rush and not getting leaderboard anyways
I enjoyed it at the time too
Β―_(γ)_/Β―
Also I liked both the lockstep and delayed networking specs
damn i took a nap and missed it
Iβll take a nap over aoc any day you won pretty much
937/2499
personal best for p1, nice
My best is this:
3 00:05:21 1671 0 00:09:05 883 0
ik not great
<1000 for p2 is great
that was just typing speed probably
e


