#advent-of-code
1 messages Β· Page 39 of 1
lol for day 1 i started a bit late
Only a bit late
yeah me too
hell yeah!
Okay things are going well and nothing's on fire. Good night y'all 
Leaderboards are on a 30 minute cooldown and please keep all spoiler talk in the spoiler channel.
Good night~
and who can read faster haha
check the aoc lb in #aoc-bot-commands
Good night π
Good night!
was not updated lol, so i checked site.
good night
Night kat!
ye gotta wait a while for the overall board to update
Great job!
thanks!
nicee
yeah lol thats why i checked site.
but the site doesn't have all people
cuz the leaderboard is split into 7
i was #10 in my leaderboard
now im #62
me too
lmao
hm? for private too?
yeah
aw sad!
I am 12th now :(. From 4th to 10th to 12th
the time
yes very 
day 1 was me unprepared and site getting timeout
altho sorting by stars brings me back to #4
my AOC setup:
- computer
- bindows terminal
- google chrome
- alt-tab```
how do i join the lb?
.aoc join
wait does our yesterdays time elapsed affect the current π’
.aoc join
alt-tab be OP
in lb I went up so high
private lb
sadly yeas
why isn't there an AOC CLI
i am 9th in this server
I am proud!
noice
really cool. I am 14th
yeah #9
i am kinda a kiddo here
wait i thought i was 14th
me?
now I am apparently
me
lol so i got the number right but put a negative sign for part one
@ivory ravine @ripe ingot There are multiple leaderboards that the bot compiles, you should be looking at this one. https://paste.pythondiscord.com/raw/afuxiherum (fetched by .aoc lb)
ahh okay
idk why but lb on site and lb on the link are different
they are different
this hasnt updated yet.
one is global lb
indeed, it only updates every 30 minutes
58 | Arnav-2004 | 2898 | (2, 2)
Basically, each site lb can only have 100(?) people, so the bot takes scores and combines them to a single list
ah
I think it might be 200, not sure
Iirc it's 200
anyways cya off to study
Oh, maybe
.aoc join
#aoc-bot-commands would be recommended for this
Where do you find this?
oh cool i got up from 83 to 68
Leaderboard > personal stats
Sorry was trying to join this leaderboard
.aoc join
The winner's the one with max score?
yes
So i have 0 score right now
oh my
ye
is day 2 is easier than day 1? i think it is
ye
same difficulty
surely
yep but for most people this one was easier
People were more prepared on day 2 π
OK so I will submit both today
https://adventofcode.com/2021/events for reference
how can you tell where you are on the global leaderboard if you aren't top 100
or can you just not tell
you can see https://adventofcode.com/2021/leaderboard/self
if your rank is 100 or less you're in
(at least I assume that's global rank)
I'm higher on the ranking now, but starting day 1 near the end of the day probably set me way too far back
only hope is that everyone above me can't solve some problems
does back still do what it did?
:x: Please use #aoc-bot-commands for aoc commands instead.
lol just realised there are no backs
The problems are released at like 5am where I live
quite upset
the python ver on my phone is less than 3.10
couldnt use match case
π©
the fact that you did this on your phone gives you 300 more points automatically
ooo, so it detects the os on web?
π adventof"code"
hmm, you are too smart, i couldve do this instead
import numpy as flask
ok
Bruh lol
Do more things like AOC to train your skill for example
so currently if i do .aoc lb it does not give me my name like in some people it does, how did they connect?
Alr
i can do .aoc lb my_username which works but how does it work for them in just .aoc lb
uhm just do aoc? take your time to do it, if you can do it, you are already improving.
also yeah leetcode
You need to click the little hastebin link in the bottom of the embed I think
keep doing them, read the answers for the ones you can't do, and then try again, keep doing this until you don't need to read the answers.
I did almost complete last year
Alr
which?
Some people are really good at this
(and live in the right timezone)
(no way I'm standing up that early lol)
"Python Discord Leaderboard"
i did that sire but that just gives me full leaderboard
Oliver ni is actually #27 on day 2
Impressive
though it was pretty easy to do fast if u tried
Oh wait. Are you trying to find your name on the full lb, someone else's with the command, or what?
i want to see my name on lb by doing .aoc lb which some people can do, of course it's not a big deal but I'm not sure why it does on theirs and not mine.
Did you run .aoc join and follow the instructions in the DM that lance sends?
see that's the precise example
#aoc-bot-commands message
i did. yeah.
Use your AOC name
@strange zinc read this.
.
Oh. I dunno, hm
doesn't show up for me either 
Well, your name is the first passed one. Placement is 127
dev tools -> storage -> cookies -> session
i used requests, if you want the code.
I don't think I missed anything there
how do i open dev tools? im on firefox
F12
just press F12
or CTRL+SHIFT+I
Looks right though I don't recommend sharing it
ohh i didnt know this was called dev tools hahah
In firefox it's under Storage -> Cookies
yep found it, the cookies dont change right?
Session should change relatively frequently if done right
Not sure how adventofcode handles it to be honest
oh ok
Should stay for 25+ days according to kat
i think kat mentioned they don't cahnge it for 25 days or something, lemme find refs.
I mean that makes sense for adventofcode I suppose
this ^
oh then i shouldnt have to change it for the duration of aoc
thanks!
I have written Semantic Codeβ’οΈ
very proud of myself
probably nicer than my day 1 solution actually
though tbf my day 1 solution was hot garbage
#aoc-bot-commands message works noww
noi bruh the last arg when not given on that time.
I think prashant wants it without having to type out the name
Which I don't really know how that would work, accounts don't get linked
but it looks like it worked for someone
hmm, i remember that yyou could link your gh acc using a command
last year
no mb
that was for hacktoberfest
Could link your AOC to discord if they stored it in DB
What if
this was opened a couple hours ago https://github.com/python-discord/sir-lancebot/pull/964
Lul
Did somebody here ghost ping me?
Not that simple but someone has a weird name
message link? (dont bother if you're busy or wtv)
Or was there an @ everyone or something
the one prashant linked earlier: #aoc-bot-commands message
@nimble furnace ^ that, perhaps
Yeah
the person is named β
which looks like nothing
If you do .aoc lb β it shows up the person that has "no name"
Seems to be a LTR mark
aw shit yeah that seems like case
Yep that seems to be it, thanks!
Mobile app should really get the inbox feature
\u002e : FULL STOP - .
\u0061 : LATIN SMALL LETTER A - a
\u006f : LATIN SMALL LETTER O - o
\u0063 : LATIN SMALL LETTER C - c
\u0020 : SPACE -
\u006c : LATIN SMALL LETTER L - l
\u0062 : LATIN SMALL LETTER B - b
\u0020 : SPACE -
\u0020 : SPACE -
\u200e : LEFT-TO-RIGHT MARK - β
\u002e\u0061\u006f\u0063\u0020\u006c\u0062\u0020\u0020\u200e
whats a left to right mark
i get 400 error trying to wget :/
It tells your computer that the text goes from left to right
and how do we write that?
You usually don't write that at all
Yeah, I tried the same thing as well. Using curl will tell you why - the data is tied to your account.
I did last year and now I'm doing this year
maybe it's time to actually get the input programmatically
instead of just pasting it at the start of my file

I mean it does work though

guys
if the question was the example, the answer would be 150?
they phrased it weirdly
Calculate the horizontal position and depth you would have after following the planned course. What do you get if you multiply your final horizontal position by your final depth?
The short example given in the question results in 150 yes
yep. find the multiple
they always give a short example with a solution to it
.aoc lb
:x: Please use #aoc-bot-commands for aoc commands instead.
nop i got a massive one too
eh i got it right anyway
That's usually how these tend to go, massive number is no indicator that it's wrong.
could someone in theory brute force the answer of will aoc block the user?
isnt everyone using brute force?
yes thats true
I am just traversing through the list of input. No fancy data structure or optimisation
that only worked for 2020 day 20
but
every time you post a wrong answer, you cant post another answer for a small period of time
oh no i ment something like manually inputting say 50, then 50000 then doing binary search
which increments every time you post another wrong answer immediatelly
up to 10 minutes
i didnt get through the bags problem in 2020 and just rage quit
at some point they dont even tell you whether youre too low or too high (if youre kidna close)
so that wont work
in 2020 day 20 it worked cause the space of valid answers was realllly small
The tile puzzle
ahh i didnt think about that but thats a good measure
theres only so many monsters you can fit into the image
and you can make an assumption there will be at least a certain amount of monsters
so
Phew it was aaaaaaaaaaaa
oh you mean that. Even if you try, after each trial you have to wait 5 mins so you have to be very lucky
Yeah
Considering my number had >7 digits
Very lucky
Pretty sure they try to make answers big
its quicker to actually solve the puzzle tho
You often multiply stuff to make huge numbers
Does the cooldown cap at 5 minutes?
Took me forever
Was a ride that one
oh i realised there is a part 2 of day 1
oof
Is day 2 available yet
Thanks
day 2?
part 2 of day 1
what the question wants you to do is, say we have input
100
200
300
400
500
600
what it wants us to do is, in simple terms devide this in sections of 3 for each element in input for ex
section 1
100
200
300
section 2
200
300
400
then it wants us to check if section 1 is less than section 2 repeat this for whole input and check how many times section 2 is greater than section 1
i wonder whats the art for this year's aoc
day 2 was much easier than day 1 
A sideways view of under the sea, I imagine.
yea actually
i found day to be more a hint of what to come
yea, the part two took me a little long tho because I made a typo and debug it
Btw how long do y'all take to complete these challenges?
It took me more than I want to admint for first day
probably around 20min? Because I made a typo and then debugged for 15m
day 2 (both) took me around 2min
First part of day 1 took a bit more than 5 mins. Part two took an embarrassing 20+ mins lol.
I hate when my code's logic is correct but something unexpected happens :/
it looks like I am in 9500th place LOL
took me so long on the second day
cos i kept messing up my variables
im doing my first advent of code this year
Do you know how scores are calculated?'
i don't know actually
why was day2 so much easier then day1
also who was pinging me in this channel... they deleted their messages but
part 2 took me so long to just understand, i laughed when i actually got it
i just read the actual points
and ignored everything below
so was fairly simple
looking at non-code examples like that only confuses me atleast :x
I have a quick question regarding the Day 1 challenge. It says "There is no measurement before the first measurement." - does that mean that my first measurement is larger than before and counts into the total amount of larger measurements?
Because I'm comparing to 0?
Or N/A?
it means that you consider the first measurement as starting point, that is it is not compared to anything
second measurement compared with first, third with second and so on
The first measurement is the baseline
Thank you
For a given leaderboard, if you are the first person to solve a puzzle, and there are N people in the leaderboard, you get N points. If you are second, you get N - 1 points. Your total score is the sum of points for all the puzzles you solved.
So, let's say there are 100 people in the leaderboard. Say you were the last person to solve a puzzle yesterday, so you got 1 point then, but you were the first today, so you got 100 points, so now you have 101 points.
Say another person was the first to solve the puzzle yesterday, but they haven't solved today's puzzle yet, so they still have only 100 points. This means you're first on the leaderboard with 101, and they are second with 100.
But, now they decide to finally solve today's puzzle, and they are kinda slow but not super slow so they get 50 points. Now they suddenly have 150 points and they are way past you in the ranking.
So, the order of the ranking can change quite a lot even after you solved all your puzzles.
But, if you solve all puzzles, and another person has also solved all puzzles, you can at least be sure that that person won't pass you, or that you won't pass them, because there are no more points to be had for either one of you.
wow day 2 was easier then day 1 in my opinion, shame I cant wake up earlier :D
Is there a way to curl the input files? It requires login, so presumably I have to get cookies from google or something first. Anyone gotten it to work?
I think they got their API or something
there should be some docs
theres no doc for the API, you can just curl it directly from the endpoint tho
are the sample same for everyone?
no, there are different inputs for different people
!pypi aoc-helper You can use this to do that, among other things.
but the problems themselves are the same
lmao same
The example in the problem description is the same, I think.
i literally
ignored the bulletpoints
π€¦ββοΈ
and tried to script based on the examples
alight cool, thanks

I should really go to bed one hour earlier and wake up one hour earlier so I can do the AOC
There's no time limit is there?
No, but I want to grind the leaderboards a bit
No upper time limit
But the quicker you are, the better you place on the leaderboard
You can still do it, even the problems from the last years (2015:)
does anyone know the answer to day 2 part 1 ?
Sure, I just wanna see how far I can get
please help me
I think everyone gets a different input
no problem, what was your answer ?
Everyone gets a different input, and therefore a different answer.
ok
Have you tested your code with the example given?
Hah, didnt know that
Yeah, technically speaking the inputs/answers come from a big pool so they're well-tested and not generated on-the-fly for the more complex problems, but it's enough that two people likely don't have the same input
As many as u want ig
But you have to wait one minute.
Yep, there's no limit but there is a cooldown.
Feel free to share your code so far in #advent-of-code-spoilers-archive and someone might be able to help.
im just a beginner and im trying with lists and strings, so it's terribly long
but still if anyone is ok to check it, i can share it there
might be, in these two days we got submarine themed puzzles tho
Nice username
lmaoo
can anyone please help me ?
this is aoc channel, try going to py general or the help channels
oh lol i thought you were searching for help about general lists and strings
ooo thanks
How could I avoid "\n" when using readlines()?
file.read().splitlines() Is what I do
ok, thanks a lot
wdym?
If you mean how big the number at the end is, it was technically not specified but it looks like they only gave out single digit numbers excluding 0
Like the number given after the positional change
Like after each directional command (forward, down, up) it looks like they use numers 1-9 inclusive.
Im thinking of doing it in an extremely unoptimal but simple to understand way
Ok
||its not like im gonna right 27 while loops for each positional change||
hm looks like we should go to #advent-of-code-spoilers-archive if we finna talk about the answer
Maybe shoulda spoilered part 2
how should I read from an iso if I wanted to alter .dat files inside of it?
Hello @devout monolith , this is the wrong channel for that. Please go to #βο½how-to-get-help
oh mb
? that's just the question
and those are public so i didn't think it was a problem
it if is tell me and i'd remove it π
I'd consider part 2 of any day spoiler material. Knowing the second half would influence how you code the first half, potentially.
Part 2 is a spoiler, yes.
You can't access it without solving part 1.
removed
can you still join advent of code?
Yes!
this year looks a lot like last year already - where I'm in nearly-last-place among the people who have completed both parts :p
today took me <10 minutes but I guess y'all all woke up early :p
This is so fun
Advent of Code is such a good time honestly~
I have mixed feelings for when it gets difficult lol
I finished todays in like 10 minutes before I left for school lol
Where are you on the leaderboard?
Same, knocked them out while catching up on emails. For the PyDis leaderboard I'm 243 currently
Is this PyDis or is there another one?
This is the Python Discord (PyDis)
guilty haha it is afternoon for me when the challenges are released
oh okay, I figured that's what the abbreviation was but there's no reason there couldn't be "PyDis" server and "Python" server :p
.aoc lb kronifer
:x: Please use #aoc-bot-commands for aoc commands instead.
luckyyyyyyyy :p
Goddamnit, 269th
it's opposite day, so people at the bottom of the leaderboard are coolest
I really need to move to a better timezone hahaha
B)
That makes me cool 
nice.
What I like the most about it is that unless you are super serious about "competing" the rest of the event is really whimsical and fun
lol the leaderboard did its refresh between my part 1 and part 2 XD
For some extra motivation for folks in non-ideal timezones or those with non-compatible sleep schedules, people who finish every single star by some point in January will get a cute role + role icon in this server for the month of January!
It's all fun and games till like day 7-9 after than I can't solve em
Wowie I can be cool
Ohh nice
This is only my second one - I know I completed 20 before tapping out last year? Just got to the point where I couldn't catch up on weekends if needed
I've been trying to stay up (midnight here) to solve them when they come out. I'm not nearly as fast as some of the others here. They are very impressive.
There was someone using SQL last year lol.
I used SQL for day one. π
Well, I used python first, then moved to SQL to see if I could.
neat
Hi, I just finished day2. Can anyone give me some tips on how to improve the code by any chance?
Do we have a private leaderboard?
.aoc join
That depends on what you mean by improve. I suggest you head over to #advent-of-code-spoilers-archive to see what others have done.
if id known day 2 was gonna be easy like this i wouldve done it before school
so about 7hrs ago π
I was preparing for tomorrow since the past 2 hours..
I'm new on this advent of code, I just completed day 2, the time on the day 3 is the time remaining or the time until the challenge starts?
time until day3 is posted
I see, thanks :)
Basically a load of programming challenges that are gradually released every day up to christmas
I personally think it's pretty fun since it has a story
ohh
so its not a big deal if i start from day 3?
also cool, thank you so muchh
aa i am just trying out things ; - ;
just got into uni so yay me
Also you can code the solutions in whatever language you like
though here in the python server we ofc only talk about python solutions π
I'm pretty sure though some will be more than helpful to talk about other languages
ahh ofc, i main python but uni decided to throw c++ on me LMFAO but they have python for data science too
(sort of ... a lot of our staff are attempting it in other languages so the spoilers channels tends be to half python half other languages)
:O
we've been posting solutions in rust and haskell... and i think ruby
Anyone doing Python one liners?
I may or may not have done day 2 in PowerShell. But don't tell the mods. π€«
many people are trying to golf π
several in #advent-of-code-spoilers-archive. I know @void ocean had a pretty golfed solution
Golf?
Doing it in as short a manner as possible
Ohhh
you try to get the solution to be as small as possible. It's usually measured in the size of the file/script in bytes.
Others like to try to get it in one line specifically, even if it means a bigger file size
do the website have like previous events questions? or something
Is there a purpose to it or just for fun?
yup! You can do previous years. This link should let you select which year you want to do: https://adventofcode.com/2021/events
usually just for fun. you sometimes get yelled at if you try it in a professional setting lolol
entirely for fun, esoteric and golfed code is NSFW
alr, thank you so muchh
When you don't write a single comment in your code π΅
It's nice to start at the beginning because the puzzles get more difficult over time
ahh i see
I've left comments before for future me. future me hates past me and the crap I do. π
hi
idk if the creater allows share solutions?
Yes, you can share solutions. As long as the global leaderboard is full, which happened at about 3 minutes in
You mean the advent of code creator? I think they're fine with sharing solutions as long as it's after the global leaderboard has filled, they say a bit about it on the website
Can I stream my solution?
Please try to avoid giving away the solution while people are competing. If a puzzle's global daily leaderboard isn't full yet and you're likely to get points, please wait to stream/post your solution until after that leaderboard is full. If you are unlikely to get points or the daily leaderboard is already full for the puzzle you're working on, streaming is fine.
And we follow that here, no sending solutions (or hints) while the global leaderboard isn't full, but after it's ok as long as you send it in the correct channel
oh ok!
If you check the official subreddit, every puzzle has a solutions thread unlocked where people post solutions in a wide variety of languages.
oh alr! sry I had misunderstood some stuff
Here we share them in #advent-of-code-spoilers-archive
wohooo
it was a bit later today π but i finally got time to sit down after work and 1 and half hour workout π
Yes. Go to [EVENTS]
.aoc join
.aoc join
.aoc join
I'm working on yesterday's advent calendar problem. So I got my data ready in a clean list. I know I can use enumerate to find the item's index and thus find out if there is a proceeding item. But I want to actually iterate each item in a list and see if there's a proceeding element. I've done several google searches and can't find exactly what I'm looking for. Maybe I'm doing it the harder way but I just want to iterate through my list. Can someone point me the right direction?
just check if index is > 1
there's a handy premade function called itertools.pairwise
π±οΈ
using the index and checking whether its in-bounds is another approach
you could also create your own by zipping together the list with itself offset by 1
π
So for the part 1 for today my program calculated as -1989265 the answer and the website said no. why?
the depth is -955
and forward was 2083
oh wait
its up is decrees
no problem then π
Why did the challenges seem easier today than yesterday?
Both days seemed quite easy tbf, I'm hoping it gets harder as it goes on
Yeah, me too b
I like advent, even though I am doing the tasks after more than half day of the task released I am still in the mix hehe
The mix?
so is advent of code still goin?
Yea
Finally this time I'm not too late
hiho, how to use this command? trying to get https://libraries.io/pypi/aoctools working
I wrote a program for yesterday's problem. It works perfectly on the sample but when I run it on the long list it tells me my number is off.
I wonder if I am one off
can I see it?
Mine did the same, I'd made a silly mistake. (I'm a beginner so won't try to guess without seeing yours though π )
Finally got a nice dev environment set up :D
lsp is working, and I have a nice multi-executable setup with my toolchain so I can run each day independently
meanwhile i had to rewrite te bash function for submitting in python
The trick is not doing it in Python :P
bash good
bash alright
yes, i know that its awful for complicated stuff but, even so, i like it a lot
also I got AoC++ π
nice
yeah. I should set up a curl script to grab my puzzle input
but I'm not really trying to go especially fast so eh
who gives a shit
Yeah, maybe you can show the code , we could check out what could be the problem. I put my code to github as soon as I do the task. Just to practice some more.
Yeah, I meant I can see my self in the leaderboard π
what leaderboard how mcuh did you have to work
to have to be in
that leaderboard
Check #911684406605930496 it says how to receive ID to add it to your private leaderboard
You only need to join the private leaderboard of this server and that is it, and your score will be marked for your self, just interesting to see your self in the mix with all other players π
I love the advent of code
One reason why is that if you do every day and since theres 2 parts you basically get 50 programs you can put in your portfolio for a job
Since I only recently joined this server, I only got to know about advent-of-code maybe a week ago, so also enjoying the advent task. Looks interesting and put a lot of thought into making those task. Since I have not participated in previous years of advent-of-code, when I have free time I am doin last year task just because it is fun π
Yea ok, but nice
Can someone help me understand the second part of yesterday's challenge it's very confusing
.aoc join
And the way you find depth is by taking the aim value and multiplying it by the foward value
So say your aim is at 4 and you get a foward value of 5, 4*5 is 20 thats your depth
And horizontal stays the same
where do the aim and forward value come from
day 2 seems like a fun puzzle, getting to work :D
but first of all, updating my virtual environment to 3.10 interpreter
so i can use that sweet pattern matching
Curious to know the localisation repartition of this discord server. I was thinking that Europeans had disadvantage for leaderboard because of the timezone but it depends if Americans like to code after 12AM
yeah, part 2 of day 1
well basically you add chunks of three values and then you take the next chunk of three values and add them and then you subtract those sums to get the difference
did you read the problem
so I just take the first three numbers from the input, add them up, then do the same to the second three and subtract?
yeah
To clarify, add numbers: 1, 2, 3 then 2, 3, 4 etc
yeah
tysm
Day 2 visualization!
:o
d a a a a n g
now part 2 π
it would look the same, but the boat would tilt
how did you do that tho
now replace the graphics with subnatutica graphics.
Hiya, .aoc lb now handles usernames with spaces nicely :D
insane
how do u do that in POWERSHELL
wha-
like how do u do stuff in terminalss like that
most i can do is print text
libraries
[expletive deleted]
this is nurses_2 and a fluid solver a wrote a week or two ago
Salt is a god
Itβs something that has been well established here already
But he does have a set of libraries that do a lot of the heavy lifting meaning for him itβs a lot simpler to make it
wow
docs pls
salt is not good, salt is [explicitive removed] g o d
bro this is cool
sick fluid visuals!
huh, i don't understand how 5 minutes made that much of a difference, given that it was 7 hours after the challenge came out... ? 
probably means a lot of people didn't finish part 2
oh, i meant the difference bteween my times for the first day and my times for the second day
.aoc subscribe
Okay! You have been subscribed to notifications about new Advent of Code tasks. You can run .adventofcode unsubscribe to disable them again for you.
.aoc leaderboard
:x: Please use #aoc-bot-commands for aoc commands instead.
.aoc subscribe
Okay! You have been subscribed to notifications about new Advent of Code tasks. You can run .adventofcode unsubscribe to disable them again for you.
had a bug in my fluid solver for vorticity that was creating line artifacts, i think i fixed it though. downside, is it's less swirly:
palindrome date uwu
salt-die more like salt-god
.aoc subscribe
Okay! You have been subscribed to notifications about new Advent of Code tasks. You can run .adventofcode unsubscribe to disable them again for you.
why do people do anything
Because it's fun?

No, I meant is it necessary? I didn't do it...
yes, you get bonus stars
:o how?
you caught me, i lied
ahh, okay, that makes sense
How do we get helpers role? not an aoc question
you get bonus karma though
well regardless, you get +150 internet points from me
See #roles
see #roles
Oi sir make it more yellow!!
We all live in a yellow submarine π
Yellow submarine with Christmas lights
i'm looking for an animated sub somewhere though for future visuals
the LEDS caught water
Noi they're salt-y, nothing happens to them.
isn't salt and minerals the one who cause havoc to electronics not water
insane
aight i shall take my time for today's
what if i do visualization on my phone π
one up, visualization on paper 
do the challenge with pen and paper
its just a few thousands of number
wouldnt be a hard job
if anyone draws me a submarine with christmas lights, i'll use it for future visuals
send the submarine here :)
any art style, but the resolution will be adjusted to work in a console
i predict that it is a puzzle
wait, will it be dangerous if you put christmas light on the submarine
like it is in water and you are giving it electricity
no, the magic of christmas protects the submarine
e.e i havnt touched any of the past year aoc stuff
interesting
i asked a physicist, so we know it's true
AI generated image.
sick
underwater treeS?
damn ai is getting smart
the art style is pretty cool too
is the whole event about submarines btw
So far, yeah
i would like to say it looks surrealist but it isnt
Probably not.
We'll see hows day 3 in a few mins
finally i can have a good timezone
day 25: crack USA's submarine codes
sadly, the time aoc resets is the time I'll be @ school. Today is an exception tho.
which is why I'll never make it to the leaderboards
sadge.
day 24: make nasa's rocket turn to submarine
day 23: make elon musk's rocket into submarines
day 22 turn subway to subwarines
.aoc countdown
Day 3 starts <t:1638507600:R>.
If a rocket is submarine that usually means it crashed
wait thats illegal
π§
nothing is illegal if you change the law
what if a submarine becomes a rocket
btw talking about subwarines @mossy basin theres this super mario subwarine art
Submarines are rockets if you're upside down
The Subwarine is a submarine utilized by Wario in Wario Land: Shake It! In underwater levels, Wario himself is not controlled, but the Subwarine is used instead. It can shoot missiles, which is done by pressing the 1 button - however, only 3 can be on-screen at a time. To move up and down, the Wii Remote must be titled diagonally - bottom-right ...
do submarines actually use spinny fans to propel forward
yes
aw thats kinda cute
even the nuclear ones, as far as i know
@mossy basin what's the helper you made?
ah i saw a rewritten version
it's not a package, just a module included in my 2021 repo
yeah, starwort has a version that's a package
got 10 mins to set up aoc-helper
you okay with that one?
help where do i get it
updated 27 minutes ago so lmao
!pip aoc-helper
do i just run setup.py
you need to input the token afterwards
for the one in my aoc repo, setup.py will create all the templated days and create the input and submission files
it does nothing if those files already exist
ahhh, so i throw my token into a .token file?
yeah
where do you get the token from
like, link on the website
You have to inspect and look for the cookie/header
with extensions
i described how to get a token here: #advent-of-code-spoilers-archive message
this doesn't have it? https://adventofcode.com/2021/settings
Nope
The dim section at the bottom is just for confirming to an AoC admin that you own the account if needed
aaa 5 mins so intense
6 mins bois, lets do this
.aoc countdown
Day 3 starts <t:1638507600:R>.
the token is my Cookie header right
what do you want the token for?
5 mins
5 min pog
vsc at the last moment
aoc data package is there right which fetches input data automatically
well that lasted an entire single day
lol
day 3 and #advent-of-code-spoilers-archive isn't locked at the start
better fire up notepad++ just in case
lol
yeah, under Cookie tab, should say session=XXXXX where the X's are a long token
that sucks
aight thanks, got it running
it working
.aoc coutdonw
**```
.adventofcode
**Can also use:** `aoc`
*All of the Advent of Code commands.*
**Subcommands:**
**`about `**
*Learn about Advent of Code*
**`countdown `**
*Return time left until next day*
**`join `**
*Learn how to join the leaderboard (via DM)*
**`subscribe `**
*Notifications for new days*
**`unsubscribe `**
*Notifications for new days*
.aoc countdown
Day 3 starts <t:1638507600:R>.
lemme drink some water
Does aoc_helper work instantly?
i got one problem in my text file , it leaves one blank line after dumping the text smh
bmnes
submarine goes brrr
you need to grab the session cookie and put it in a .token file
just use the session cookie with requests to fetch for the moment
I did this yesterday. I mean, will the fetching work right after the new problem starts or will it need 1 or 2 minutes?
right after
Good luck everyone
works as soon as the countdown is over
Ok, thanks!
Hey good luck y'all!
GL everyone!
t -60, i have run out of unique launch callouts
Day 3 starts <t:1638507600:R>.
aaa
gl
good luck getting into lb, everyone!
hf
@mossy basin your tool is great
Oh it even says Waiting for puzzle unlock!
30 seconds left!
30 seconds
.aoc countdown
Day 3 starts <t:1638507600:R>.
15
10 seconds!
10
9
gl!
5
dos attack in 5 second
<@&518565788744024082> Good morning! Day 3 is ready to be attempted. View it online now at https://adventofcode.com/2021/day/3. Good luck!
wtf i have a .token file
lol
wow i actually did really well this time
.aoc leave
**```
.adventofcode
**Can also use:** `aoc`
*All of the Advent of Code commands.*
**Subcommands:**
**`about `**
*Learn about Advent of Code*
**`countdown `**
*Return time left until next day*
**`join `**
*Learn how to join the leaderboard (via DM)*
**`subscribe `**
*Notifications for new days*
**`unsubscribe `**
*Notifications for new days*
which is surprising considering how much i was panicking at that wall of text
.aoc unsubcribe
**```
.adventofcode
**Can also use:** `aoc`
*All of the Advent of Code commands.*
**Subcommands:**
**`about `**
*Learn about Advent of Code*
**`countdown `**
*Return time left until next day*
**`join `**
*Learn how to join the leaderboard (via DM)*
**`subscribe `**
*Notifications for new days*
**`unsubscribe `**
*Notifications for new days*
.aoc unsubscribe
Okay! You have been unsubscribed from notifications about new Advent of Code tasks.
rank 45 for part 1, rank 13 for part 2 today π
ADVENT OF CODE PROTIP:
||Least is the opposite of most||
does day 2 have two parts?
yup
.aoc lb
:x: Please use #aoc-bot-commands for aoc commands instead.
every day has 2 parts
this is hard
gah i forgot about this ;-;
why am i having such a problem with this
my code literally works this is not a spoiler because this is the input data's result, which is shown on the page itself
i have part 1 done but 2 is... what
oh i can't read
bruhhh forgot to convert from binary to decimal
yay part 1 one
I did that like 5 times lmfao
o2 generators and co2 wtf
wtf
woooooo 22nd place for pt 1
malded hard on p2 tho
wwwhat the hell how am i in second
bro white on black text is painnnn
:/
can someone gimme a tldr on all of the text
literally i am rereading the same thing 20 times
Filter by most/least common first digit. Then filter those by their new most/least common second digit. Etc. etc.
its actually pretty insane theres a 4-10 minute spread on day 3 for pt2
can't, everything in there is like 99% necessary
π
.aoc lb
:x: Please use #aoc-bot-commands for aoc commands instead.
I used aoc_helper for the first time tonight! Loved it! Had a nice surprise when I submitted a second try too quickly and it auto resubmitted 2 seconds later (my timer was almost done). It had resubmitted it before I even realized what happened.
PSA: leaderboard command isn't updated for like 5 more minutes
cc @mossy basin
https://i.imgur.com/JJXdSLa.png moved up a bit more on the staff lb π
π i don't see salt on that
hes too good for it
hmm is it day for you
FYI salt seems to have abandoned the version of aoc_helper on pip (he's rewritten and vendored his version)
(salt has 1 done)
Yes, Iβve just been away for a bit over a week
I did part of the first... and then gave up
ahh
Iβll be home in two days though
try again for the first, the second is pain tho
to read mostly
simply because I didn't feel like noticing how many people are better than me 
havent trtied it yet
I know I could solve it... it's just... sheesh, I get it, y'all are pros
erm its very popular so theres ppl who r full sweat mode
i think i understsand one secntence of part 2!!!
idk, I don't like reading that 2 minutes is apparently ages for some people
Ima dewit in rust
Day 3?
the first one was okay but second seems to be a killer
do we start from the front of the binary number or the back
Havent read any, but apparently it is
First bit of what?
trust me. It is!
day 1
Lol
ayy im done
Both?
finished both parts of day 3
second part i made a stupid mistake and it cost me like 7 minutes lmao
@candid berry @signal grotto sir-lancebot#966
me2 man me2
i spent so much tim
Using the advent of code to learn python!
oh god whats the second part
been brought up previously, will comment with details
cool
.aoc lb
:x: Please use #aoc-bot-commands for aoc commands instead.
oops
Filter the data based on if the current bit position is the most or least common
PSA, please use #advent-of-code-spoilers-archive for discussion about current day's problem or approaches
I figured understanding the problem statement would be cool here π I'll keep it over there though
when
just now π
had to find the message link first
You're good! There will always be someone starting after you π
well part 2
every 30 minutes, due for another update in about 8
i dont like it
Well I'm bad.
neither did I
@signal grotto I have a solution that would keep calls to aoc down
i spent 15 mins coming up with this really verbose recursive function with tons of temporary variables, just for it to break in main input
oh well
sure, like I said totally open to solutions
for now ive dropped one rank
full explanation on the issue, tldr: buttons
OOH buttons ok ok
yeah π
Just completed day 3 part 1, there is so much to read in part 2. 
I'm still stuck on part two. It looks like it should be working but it's not...
fun stuff
wow day 3 part 2 seems hard
.aoc
**```
.adventofcode
**Can also use:** `aoc`
*All of the Advent of Code commands.*
**Subcommands:**
**`about `**
*Learn about Advent of Code*
**`countdown `**
*Return time left until next day*
**`join `**
*Learn how to join the leaderboard (via DM)*
**`subscribe `**
*Notifications for new days*
**`unsubscribe `**
*Notifications for new days*
.aoc leaderboard
:x: Please use #aoc-bot-commands for aoc commands instead.
yay i somehow got up from 68 to 58
:x: Please use #aoc-bot-commands for aoc commands instead.
day 3 part 2 hmm...
i hate part 2
im seeing other solutions and all of them are so easy to understand while i have a file of 120 lines of just 1 single functions
Take care of the part that when 0 and 1 comes similar number of times.. 1 has to be prioritized
I'm going in that direction lol
Yeah need to take that into account
part 2 is a pain tbh
i didnt read that at first and it was a pain
Try printing every step like in the example
you can do it.
if theres more than 500 1s then 1 is the majority, what if they are equal, what should be the majority
i think it would be 0 from the instructions
but im not sute
for oxygen , 1 will be taken for co2 0
in case of equality
the json provided here for private leader board is refreshed right
pretty much
it's rigged so you don;t get several survivors at the end
oh i get it, the rigging is just having different numbers
omg
:brain_explode:
finally... 125 minutes.. got both.
gg
bruh i got the same answer for both parts

