#advent-of-code
1 messages · Page 53 of 1
@proud cosmos :white_check_mark: Your eval job has completed with return code 0.
['Hey', 'how are you?']
I did day #23 \o/ !
whoooooooohooooooo! 🎉
good job !
hey
Thanks. It was pretty tough.
did you do it by hand or actually code it up?
What is this error?
So objective is a number while you're trying to add it to some letters
you would fix that by doing str(objetive) rather than objetive
Oh, ok, thanks
np!
Is this correct to set "startpos" not equal to objetive?
I wrote code. Kind of both -- I did it by hand to think through how it ought to be done, then coded that up
this doesn't seem AoC related
or one of my favorite features, f-strings f'This is the objective: {objective}'
Taco get a help channel if you need help 🙂
Ok
See #❓|how-to-get-help for getting a help channel
k
I love f-strings, I use them all them time
I do f"{value1}{value2}" rather than value1 + value2 sometimes tbh
I used to use f-strings all the time, but copilot doesn't really use them for whatever reason and it almost always writes all my print / statements or boilerplate like that for me so 😅
it usually ends up just doing "{}{}".format(...)
New color just dropped
hell yeah
how do they know who completed?
by the .aoc link command, I'm going to write up an announcement today explaining it
Just waiting on mister jl to get the role now haha
Sick
The color fits your all's PFPs so well
ah man, was hoping for a new color but just pink again 😅
You are the pinkest person on the server, though
It will sadly disappear
I'm still purple 🙂
when will it dissapear?
My son Ben has created a mascot for coverage.py. It adorns the new coverage.py Twitter feed.
Haha
Your son is pretty talented
You should post it in #partners, so they can add it to your role
Fwiw that's one adorable mascot
thanks 🙂
You get a new role icon tho
don't we all eh
oh lol shows what I know, i meant the helper one
ahh
I Can't wait for next year tho
hopefully I can solve it all by myself
Yeah same, this year was hella fun
What was your favorite day?
that's a hard one
the subpackets one was cool, but like the description took me a while to understand
hmm idk I'm inclined to say day 19 was kinda fun
but the bug in me not having all orientations correct kinda ruined it for me
I just took someone else's orientation because it was 1 AM and I didn't wanna calculate them myself :p
this entier chat is so pink
i have a new yrs resolution to become competent before 2022 aoc so i can get pink role
I'm sure you can even try right now if you wanted to and get it
The problems are mostly logic and implementing it in Python isn't too hard
it's mostly coming up with how you're gonna do it
permanent pink club 😅
np
im still on day 5
plus i got other stuff ;-;
Ahh
that's a nice green too, what do I need to contribute to to snag me one of those
PyDis projects, #dev-contrib
Probably in Jan or so


🎄
seems pink role is above helper 👀
also i didn't get

the qualification was 25,25 for this year alone right
ya, did you link your accounts?
When did you finish all 50, recently or a bit ago?
Hmmm, okay I'll take a look and see if I can figure out what's happening
alrighty
wont it be easier to manually give it to them
no, it could be happening to other people, and it might happen next year
Nope, the feature that does the role assignment is a bit more complex and if something is going wrong it's likely it'll forcibly unassign the role with each check
o ok
on the 26th, I got stuck on one or two days
what does the final homepage look like tthis year?
I have bugged some folks with access to logs to take a look, so we will get it sorted out
looks like this for me ;-;
one sec
ooh cmd+t is also like cmd+k for discord
colorful
ooh prettty
they move too
you didn't see that moving 👀
wait thats actually cool
woah 2 more days to go for me, I can hopfully do by the end of this year lol
thats my New year gift
.aoc join
did you just complete it?
we completed it on december 25th
hey @winged trellis, if you have a sec, would you mind giving me and ak the completionist role? we have our github linked to the same account, and so only xavier got the role, it was a known future bug
We keep moving down the leaderboard 😔
i don't have the role either, i think it's bugged
Did you do aoc link?
.aoc link
You have not linked an Advent of Code account. Please re-run the command with one specified.
Well, there you go, you need to do that
.aoc link salt-die
You have linked your Discord ID to salt-die.
Now you'll have to wait for up to an hour
some pretty esoteric commands
Seems like you haven't seen the Almighty !i e l p yet
There ya go
!i e l p with spaces, but it is mod only
It marks the last infraction as permanent
hmm day 9 is interesting
.aoc link
You have already linked an Advent of Code account: oreo4102004.
.aoc lb
:x: Please use #aoc-bot-commands for aoc commands instead.
if it does not
then as my linked name starts with small letter o
and it displays capital
so that might be the reason why the bot didn't give me the role
🤔
.aoc link Oreo4102004
Your linked account has been changed to Oreo4102004.
ok waiting upto an hour , to see if it works
@woven oriole We restarted the cog and made some changes, so you should be good. We've also added some additional logging statements to see if we can further chase down the issue if it happens with anyone else
fwiw it runs every 10 minutes
and yea, it might have been the case sensitivity
yeah exactly
is that code open source
mhm, our advent of code stuff is in lancebot
But I have a feeling it's oddities with how the advent of code treats usernames and it's slight disregard for consistency with case in usernames
Advent of Code Event Feedback
damn, that's insanely fast
part 2 time is f'd up 😛
.aoc link aoc_lb_name_goes_here
You have linked your Discord ID to aoc_lb_name_goes_here.
xD
you're...supposed to replace that with your actual leader board name
(can't you literally just link to whoever you want though?)
1 point in it! , Well Done Avongard!
Yea, there's not really a good way to verify that without great effort, so we're going to deal with that after the fact, rather than with a technical solution
yeaaaah, but we're hoping people who take part in AoC won't do that, because they care. We can un-do it if necessary and we generally only allow 1 link per account

Check out #❓|how-to-get-help if you need help.
Fair enough, trusting people is probably the best solution
wish i had time to participate
.aoc link your mom
Your linked account has been changed to your mom.
What is advent of code?
.aoc link aurora aquir gimme that shade of pink \s
.aoc link HITOJ
Your linked account has been changed to HITOJ.
You can still get it, you have one more month!
9 hard puzzles in one month :hardsweating:
~~oliver Ni has probably not linked thier account ~~ /j
I'll try, though
It's doable
i am even sus about the fact if they are in the server
haha, Oliver is indeed on this server
oh
they were talking here one of the days
Oliver is quite impressive
me once
yeah i saw , partenered server owner he/she was iirc
Guess I never saw them chatting since they probably chatted/did all the problems when they came out
Meanwhile I always started like 4 hours later
Wow impressive times
I wonder if I could get on the leaderboard ever if I actually tried
I think I stood up one day and it was a bit harder so I failed miserably
I'm not good enough haha
this day
i got on the lb during day 23
I could've maybe gotten on it for part 1 tbh
but using paper and pen
I just misread
day 8, i didnt like day 8
part 1 definitely had potential for day 8
you just needed to get really quickly that almost all the info is irrelevant

but I actually read the stuff
i was trying to do it proplematically
all of those people with full stars get the role
?
Yes they can get the role
if they link their leaderboard name, yes
but then worked out 7! is only 5040
oh thats cool 
Yeah brute force is prob fastest solution to day 8
I actually did it normally though took an hour
I guess for most solution unless you immediately get the right path it is probably worth to just code up a brute force as you think about it

You have not linked an Advent of Code account. Please re-run the command with one specified.
You have linked your Discord ID to 742308736235995138.
Hi
:incoming_envelope: :ok_hand: applied mute to @feral berry until <t:1640788688:f> (9 minutes and 58 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
In the second challenge, the input file has the direction and a number.
I am trying to understand why the split function is splitting by line and not white space.
!python
with open("input_2.txt",'r') as in_file:
content_list = [line.strip()for line in in_file]```
This returns: 'forward 6', 'down 7', 'up 3'
```py
code
```
you are not splitting , you are using strip
@woven oriole I thought split works on white space?
ugh
!e print(" hello this is me ".strip())
@woven oriole :white_check_mark: Your eval job has completed with return code 0.
hello this is me
!e print(" hello this is me ".split())
@woven oriole :white_check_mark: Your eval job has completed with return code 0.
['hello', 'this', 'is', 'me']
I see
strip clears the white spaces at the start and end of the string vs split makes a list out of all the sub strings separated by white space (by default , when no parameter is passed)
@woven oriole thank you
np!
lmao, here I am taking 3 hours to ||automate deduction using sets|| (spoilers for d8)
5h30 - 6h is my time while coding with a full blown ide lmao, how did you survive on mobile
Hey there can someone help me out with day9? My code generates the correct output for the example given, that is 15. But when I run it for my actual input, and run it, the site says
That's not the right answer; your answer is too low. Curiously, it's the right answer for someone else; you might be logged in to the wrong account or just unlucky. In any case, you need to be using your puzzle input. 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 one minute before trying again.
And I am just confused what to do now 😕
ok I think I found a bug. yay!
@hollow wharf :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(„ez”)
003 | ^
004 | SyntaxError: invalid character '„' (U+201E)
I just realized that Eric used three semicolons in one paragraph... Madlad
day 9 pt 2 is kinda tricky lol
@normal umbraYou got slightly ahead. :p I finished 8B today and am going to start 9 tomorrow
9's first parts pretty easy honestly
I haven't even clicked to look yet
Oh lol
Are you on the second part, then?
Yeah
Congrats!
Thanks
!e print('Test!')
Considering trying out Advent of code for a previous year, after having finished this year. What year is the most fun?
lot of people here seem to like 2019
thanks. will do that.
.aoc link aoc_lb_name_goes_here
aoc_lb_name_goes_here is already tied to another account. Please contact an admin if you believe this is an error.
.aoc link 725935067569979442
You have linked your Discord ID to 725935067569979442.
you need to link your aoc leaderboard name, not your discord ID
.aoc link BlockOG
You have linked your Discord ID to BlockOG.
Can I join the leaderboard and get AoC completionist if I did the advent in a language other than python?
!e
from datetime import date
print("Ingresá la fecha que querés calcular (DD MM AAAA) ejemplo: 31 12 2021 ")
fecha = "31 12 2021".split()
dia = int(fecha[0])
mes = int(fecha[1])
año = int(fecha[2])
today = date.today()
today = date(year=today.year, month=today.month, day=today.day)
fecha = date(year=año, month=mes, day=dia)
result = abs(today - fecha).days
if fecha > today:
print(f"Faltan {result} días")
elif fecha < today:
print(f"Pasaron {result} días")
@sonic fox :white_check_mark: Your eval job has completed with return code 0.
001 | Ingresá la fecha que querés calcular (DD MM AAAA) ejemplo: 31 12 2021
002 | Faltan 1 días
!e
from datetime import date
print("Ingresá la fecha que querés calcular (DD MM AAAA) ejemplo: 31 12 2021 ")
fecha = "21 12 2021".split()
dia = int(fecha[0])
mes = int(fecha[1])
año = int(fecha[2])
today = date.today()
today = date(year=today.year, month=today.month, day=today.day)
fecha = date(year=año, month=mes, day=dia)
result = abs(today - fecha).days
if fecha > today:
print(f"Faltan {result} días")
elif fecha < today:
print(f"Pasaron {result} días")
@sonic fox :white_check_mark: Your eval job has completed with return code 0.
001 | Ingresá la fecha que querés calcular (DD MM AAAA) ejemplo: 31 12 2021
002 | Pasaron 9 días
me: goes to salt's gh to see how they implemented a*/dijkstra for d15
also salt:
bruh-
I've got a presumably dijkstras solution for this
if you want
thank you! will look at it :D
how to see that?
Go to https://adventofcode.com/ and login
The name will be shown next to the logout button at the top
Started on day 24. I'm trying ||memoization||, but the process getting killed after a minute or two tells me that's probably not going to work.
Hmm, I did ||memoization|| and it worked, what is your code? Could you post in #advent-of-code-spoilers-archive? @candid sigil
why is that word censored, could you tell me about that topic in #ot2-never-nester’s-nightmare?
also what even is the word because i can't unspoil it
so I'm extremely curious
it's related to ||cache|| which is indirectly spoiling a way to solve the problem
print "Hello world"
print "Hello world"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Hello world")?
python 2 syntax go brrr
So I just started the Advent of Code and I am on Day 3 Part 2. What do you do to the your possible ratings if none of the values match the bit criteria?
Yep. I keep getting a list of numbers with nothing in it at the end of running my code
I finally did it after stuck in Day 23 for so long 🙂
Can we just run that in this chat?
You have not linked an Advent of Code account. Please re-run the command with one specified.
Thanks everyone who have shared their solutions or just participated in the chat, all of your comments were valuable and made me think a lot on how to approach the problem 🙂
.aoc link shankar-shiv
You have linked your Discord ID to shankar-shiv.
congrats!!!!!!!!!
then something is wrong with your code. happened to me as well
Yeah. I figured it out. I was going through comparing to gamma each time instead of the subset of the full data set
ah, nice
ggs 🎉🎄
Thanks
What do you want to learn?
This is not the chat for that
that's hardly #advent-of-code-related, for one, and also probably rule5.
this also isnt the server for that
What's the use of this ?
this channel is for an event called Advent of Code that runs every year, see #911684406605930496 for more. this server as a whole is for Python, but not topics that almost certainly go against the TOS of whatever you are using
I just rewrote the code to use ||lru_cache (I'm on 3.8), using a trick I found on StackOverflow to make a dict hashable||. Process is no longer getting killed, just taking a very long time.
hi
Hey @nova flame!
It looks like you tried to attach file type(s) that we do not allow (). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
@nova flamedon't spam, and please change* your nickname
I didn't know I had the role
congrats! and cool nickname too
thanks
lmao the universal dissent
Im trying to complete day 1 of this months challenge. ive got the file opening fine but im not sure how to properly define or compare lines of data in the txt file to actually finish the challange. any help would be nessesary and heres my code ```pyf = open("problem.txt", "r")
answer = 0
print(f.readlines())```
@cunning sigil
You can read in all the numbers into a list as follows:
nums = []
with open(...) as f:
for line in f:
nums.append(int(line))
or more compactly:
with open(...) as f:
nums = [int(x) for x in f.read().split()]
ok so i actually needed to make the file into a "list" before i can actually start doing anything. i didnt think about that ty!
Yeah, you usually want to read the information into python as a list (or sometimes a dictionary, or some other data structure), and then you solve the problem with the data
the only reason the input is in a file is so that they don't have to provide different code for different languages, and just let people parse it however they want
makes sense ty so much lol. theres alot of info out there but finding exactly what i need info wise is so circumstantial
.aoc link
You have not linked an Advent of Code account. Please re-run the command with one specified.
How to count the occurrence of a given character in a String?
string.count(char)
hey does anyone know how can I build a chatting app for android using python?
That's off topic for this channel, which is for the Advent of Code event. You'd be better off asking in #python-discussion.
okaaaaaaaaaaaaaaaaaaaaaaaaaaaaaayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy!!!!!!!!!!!!!!!!!!!!!!!!!!111111111
hey guys small question. if i want to benchmark my code, do i start the time counter at the beginning of the program or after reading the file or after parsing my input data to a preferable format (like for example converting input into a 2d array)
Is this related to AoC?
yeah
Ok, well, depends on what you want to measure
oh
I mean, why do you want to benchmark your code? To compare with other people's solutions?
yeah sort of
I guess it just depends on how those people benchmarked it
fairs ig
For the most accurate comparison, you should do the same thing they did
yea
you need to have 50 stars on your aoc account
I have them
@crystal shard maybe try running in #aoc-bot-commands
I am already link but no role
you can modmail ¯_(ツ)_/¯
i suspect someone took your name
Commands are back up and running! .aoc link and .aoc lb your hearts out
...man I wish I'd thought to check if this server knew about this! I found out about it somewhere else and was like 'oh yeah I should tell the python discord about it'
this rules btw
I went through and timed all of our solutions https://github.com/Akarys42/aoc-2021#timing
overall I'm quite happy about it
longest is D23P1 for absolutely no apparent reason
24 was interesting because ||reverse engineering||
19 was interesting because on first read I had no idea what to do, and then you have a realization and it becomes very doable
16 I liked for some reason, it felt nice to write a simple parser for a format in a new programming language
I think those are the more memorable/interesting ones to me who has a bunch of programming and cs experience, but ymmv
a bunch of the puzzles has some nice intros to cs concepts, e.g. 6, 10, 15
but as someone who knows them it's not too interesting, more of a "huh, just do X and you're done"
day 23 is quite interesting as well
||pathfinding the states of the burrow||
day 19 was def interesting, yeah
reminded me of 2020 day 20
the lochness monster
23 was a case of "I know what to do, but implementing it feels annoying" for me
haha so true lol
It's easily doable by hand
Saaame 😄
Oh wait, thought you meant day 19.
aka work
Gotta say. Having a lot of fun with the AoC so far. A lot of the challenges are just recognize the algorithm needed and implement it with a twist. Not the hardest thing in the world, but really makes you rethink a lot of the algorithms you use often
I am learning C from CS50, implementing in C has been fun so far
I'm not trying to invalidate your experience and I'm glad you're having fun, but that sounds like a huge pain.
C is just such an inconvenient language to work with.
hi guys, im new to python and wanted to get some help with what i should create, and pls dont say things like calculator or something like that, i want to create something that i will acctuelly use
This channel is for discussion of the Advent of Code event. If you want general Python help, please either see #❓|how-to-get-help or you can ask your question in #python-discussion.
oh shit sry didnt look at the channel name
!mute 859587457619853312 3h That's not appropriate.
:incoming_envelope: :ok_hand: applied mute to @final sluice until <t:1641259629:f> (2 hours and 59 minutes).
yes agree on that, so many common data structures are missing in C, I can appreciate python's abstraction better after doing it in C
I also did all the days in C
Some were kinda painful, but most were OK. with the right abstractions it kind of resembles the python versions?
It's a fun exercise seeing how you can do it all without all the conveniences of Python
Both tbh
Day 19 and day 23 were a pain to implement
redacted
once again, he isn't me
@woven oriole your message and your reaction are looking an awful lot like trolling
why are you harrassing Akarys?
oh it was not supposed to be took that way but nvm
How else could it have looked? What joke were you trying to make?
yes my thoughts exactly 🙂
Is this event ended? Where can I see the last couple of questions?
The events for all years are on https://adventofcode.com/
(or manually go to https://adventofcode.com/<year> which I end up doing)
dont be zuzzy
:incoming_envelope: :ok_hand: applied mute to @hollow wharf until <t:1641429876:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
glad AOC doesn't stand for Alexandria Ocasio-Cortez
was just doing aoc 2021 day 14 (the polymer template one) and thought that the only letters used were N, C, B and H in the example and in the real input. but little did i know i would have to rewrite all my code... (pretty sure this isnt aoc spoilers if it is ill repost it there)
bold assumption about the input
Hey how did people get the adventofcode and aoc completeionist roles?
for the advent of code role, .aoc subscribe
for aoc completionist, do .aoc link your_aoc_lb_name_here and it should apply within 30 minutes
Odd, thought I did all that to get on the leaderboard. 🙂
"Advent of Code can only be assigned during November and December."
BAH.
whooops, I'll see if I can extend that to January. But it doesn't do much besides ping for each puzzle release
eh, no worries, I just noticed peopel with a snazzy role and thought it would be nice to highlight I was also an aoc person. Not sure how many hours I spent answering questions in #advent-of-code-spoilers-archive but it was a lot every day. 🙂
Who arecus x 2.0
what is advent of code ?
Advent of Code is a yearly event that goes on from December 1st to December 25th, where you get two challenges every day!
Each challenge gives you a star, and you have to try and get all 50 stars. These are challenges that you should code a solution to btw
the challenges also stay up after Christmas so you can still do them if you want
Hi guys
If I complete last year's advent of code late, will I get the pink name? 🥺
If you complete it anytime between now and February 1st, you can still get the pink name~
okay pog thank you
and how would i demonstrate that i've completed them? (though, i havent just yet)
You join the Python Discord leaderboard using .aoc join (I think) and then you can link your Discord name with your leaderboard name using .aoc link your_aoc_lb_name_here
@minor cave Do we have a workaround for this?
Ah, yea this is a bug sir-lancebot#1008
Now that you've pushed the patch, i'll try again
oh whoops >w<
misunderstood what this means
but anyway, thanks - i'll sign up once the process is done
yo guys
yyyoooo
.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)*
**`link [aoc_name]`**
*Tie your Discord account with your Advent of Code name.*
**`subscribe `**
*NOTE: This command has been moved to !subscribe*
**`unlink `**
*Tie your Discord account with your Advent of Code name.*
.aoc link MaskDuck
MaskDuck is already tied to your account.
**```
.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)*
**`link [aoc_name]`**
*Tie your Discord account with your Advent of Code name.*
**`subscribe `**
*NOTE: This command has been moved to !subscribe*
**`unlink `**
*Tie your Discord account with your Advent of Code name.*
.aoc countdown
The Advent of Code event is not currently running. The next event will start <t:1669870800:R>.
.aoc link savagemorse
You have linked your Discord ID to savagemorse.
**```
.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)*
**`link [aoc_name]`**
*Tie your Discord account with your Advent of Code name.*
**`subscribe `**
*NOTE: This command has been moved to !subscribe*
**`unlink `**
*Tie your Discord account with your Advent of Code name.*
.aoc join
(it's merged now btw)
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
:x: Failed to get join code! Notified maintainers.
You have linked your Discord ID to ddjerqq.
You have linked your Discord ID to aday913.
How do I get the completionist role? I completed it and linked my account
But it's a anonymous account, do I need a non anonymous account on adventofcode?
It should work, you might need to do .aoc link Anonymous #1437011
rather than just the number
how long does it take for roles to get assigned?
.aoc lb Anonymous #1437011
Here's our current top 10 (and your personal stats compared to the top 10)! 🎄🎄🎄
| Name | Score | ⭐, ⭐⭐
--------------------------------------------------
98 | (You) Anonymous #1437011 | 38561 | (25, 25)
1 | Oliver Ni | 48085 | (25, 25)
2 | Zeyu Chen | 47961 | (25, 25)
3 | Defelo | 47823 | (25, 25)
4 | Anonymous #1087784 | 47536 | (25, 25)
5 | rocket3989 | 47516 | (25, 25)
6 | Kevin Sheng | 47430 | (25, 25)
7 | Kelly Dance | 47359 | (25, 25)
8 | Will Da Silva | 47105 | (25, 25)
9 | Connor Nelson | 47051 | (25, 25)
nice, thank you!
.aoc lb brad90four
Here's our current top 10 (and your personal stats compared to the top 10)! 🎄🎄🎄
| Name | Score | ⭐, ⭐⭐
--------------------------------------------------
415 | (You) brad90four | 3924 | (3, 3)
1 | Oliver Ni | 48085 | (25, 25)
2 | Zeyu Chen | 47961 | (25, 25)
3 | Defelo | 47823 | (25, 25)
4 | Anonymous #1087784 | 47536 | (25, 25)
5 | rocket3989 | 47516 | (25, 25)
6 | Kevin Sheng | 47430 | (25, 25)
7 | Kelly Dance | 47359 | (25, 25)
8 | Will Da Silva | 47105 | (25, 25)
9 | Connor Nelson | 47051 | (25, 25)
Wow, only did 3 days and still in the top 43%
94 people did all of the days
400 joined the leaderboard and did not complete a day
.aoc lb bitsima
:x: Please use #aoc-bot-commands for aoc commands instead.
.aoc join
.aoc lb hbregalad
:x: Please use #aoc-bot-commands for aoc commands instead.
Oh, right.
.aoc join
🤔 why does the job run every 10 minutes if the lb only refreshes every 30
People may link their accounts any time within the 30 minutes
Yea, a proper implementation would be to refresh it with the lb and when running the link command
would make sense to check on link then 🤔
This was just the easiest for now
lmaooo
we needed those that had already linked to get the role, so just checking on link would not have been sufficient
@still pumice what did you need help on?
so the vanity role (pink w/ the christmas tree) is temporary
Is there a specific day? And how can a person join?
and then there's another command to link your aoc account with your discord ID here on this server
how longs the process?
Mate I am asking for how long it takes to finish it lol
finish all 25 days of puzzles?
quite a long time, even if you're a seasoned pro
.aoc lb
Here's our current top 10! 🎄🎄🎄
| Name | Score | ⭐, ⭐⭐
--------------------------------------------------
1 | Oliver Ni | 48235 | (25, 25)
2 | Zeyu Chen | 48111 | (25, 25)
3 | Defelo | 47973 | (25, 25)
4 | Anonymous #1087784 | 47686 | (25, 25)
5 | rocket3989 | 47666 | (25, 25)
6 | Kevin Sheng | 47578 | (25, 25)
7 | Kelly Dance | 47509 | (25, 25)
8 | Will Da Silva | 47255 | (25, 25)
9 | Connor Nelson | 47201 | (25, 25)
10 | RadioactiveHydra | 47149 | (25, 25)
https://paste.pythondiscord.com/raw/cufoqakehi here you can see our leaderboard of all the server members that participated and how many puzzles they completed
Alright, thanks for your help, i'll register tmr cuz I am tired.
.aoc join
.aoc join
.aoc join
What is this?
see .aoc about in #aoc-bot-commands
.aoc join
.aoc join
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
.aoc join
None
Anyone can participate in AoC
Skill level?
What skill level should you have
I mean, there's not a set thing
You might want some understanding of some common algos though
I've heard BFS, DFS, A*, Dijkstra, and some others all mentioned here
So 1.5 years in python and good knowledge of problem solving is enough?
Reply to me as I am turning my phone off
I could not tell you
K
You won't know if it's enough or not until you try it out, to be honest.
I would think it's enough but it depends
I know that I don't know much when it comes to DSA, so I'm actually hoping to learn them through AoC
In fact, is there a list as to which algos are best suited to which days?
if you find one show me :D
I did 5 times and I can’t do the first one
nvm. I probably should have read it twic
I messed up code as well which always give 1 number off. lol, I try and go do all of them now
Day 12 is binary tree walking, right?
day 12 2021? it's not a binary tree
Yup. And according to someone on Reddit it’s DFS?
yeah, just do a DFS
the DFS is nice in that you can do/undo state updates as you enter/backtrack
makes things cleaner
e.g. add one to visited count for that node when entering, subtract one when backtracking out again
Can I ask here mate?
.aoc join
.aoc join
I am kind of stuck in aoc21 prob3 part 2, anyone up for help, I am using numpy, drop me a dm
heyoo
im sorry where can I see the tasks?
https://adventofcode.com/ will have a list of them
It's definitely enough to be worthwhile giving it a go.
Even if you don't know how to solve all of them, you will learn a lot by trying.
I’ve learned a lot by going through them, and I’m more comfortable with language features I didn’t know/use before too
Yep I tried it, failed twice. Got back on with a straight attitude and convinced myself. I was able to realize I wasn’t reading correctly. I was able to do day 1 and day 2. Thanks for your advice
Are you proud of your achievement after completing? I am in it for the satisfaction. Also well this be used anywhere? Like maybe a college admission?
It's fun, and sure, it feels satisfying to complete it. I learned a lot about and got a lot of practice writing Rust along the way, so that's also satisfying. I've never heard of anyone using AoC as a credential, I doubt most people would consider it relevant for a college or job application.
You can put your solutions on your Github and include a link to your Github in your application, but that's about it, I think.l
I wouldn't mention it separately.
Alright thanks
I'm planning to put AoC as a single bullet point on my CV the next time I refresh it, and my code is all on my GH page
And yep, succeeding at any task gives me a level of satisfaction
I can put "IOCCC winner" on my CV and see who knows what that obscure thing is. Worst case it sounds vaguely impressive, best case someone knows about it and get horrified
why would someone get horrified 👀 that's very impressive in my book
i am going to convert my name into your waveform and play it on-loop when someone visits my website
I want to flex because I just did day 13 part 1 with no googling, no looking at others answers, no internet connect, nothing. I’m pretty pleased with myself for that. I submitted the answer on my phone too
And i think im doing pretty good
my 2nd day of learning to program with python
i have done a lot already
.aoc join
.aoc join
:x: @split portal, please (temporarily) enable DMs to receive the join code
.aoc join
.aoc join
.aoc join
:x: @dull apex, please (temporarily) enable DMs to receive the join code
.aoc join
.aoc join
.aoc join
.aoc join
.aoc join
大家好
:x: @loud hearth, please (temporarily) enable DMs to receive the join code
.aoc join
If I complete advent of code, will I automatically get the pink role?
Ping please.
Yep, you just have to link your account with the .aoc link command
.aoc about ⏬
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
Thanks!
I don't think that we are giving it any more though?
from what I remember it was given in Jan 1st to last until Feb 1st, but I could be wrong
I think it might still be obtainable until February, but I'm not entirely sure about exact dates
Ah thanks for that, I understood. I guessed i missed last year's. I would have to wait for a while
You can still complete the challenges at any time, it's just a difference in whether you'll get the role here for it 🙂
yeah, the role will be gone in february
Tuesday
-ish. Kinda really tempted to let it hang around until Valentine's Day cause it'd be really thematic
ooh that wouldd
where can I ask to help to fix my code
.aoc join
advent of code
advent of code
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
check out the list of resources on our website
thank you
.aoc help
**```
.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 `**
*NOTE: This command has been moved to !subscribe*
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.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 `**
*NOTE: This command has been moved to !subscribe*
Joining Iterables
If you want to display a list (or some other iterable), you can write:
colors = ['red', 'green', 'blue', 'yellow']
output = ""
separator = ", "
for color in colors:
output += color + separator
print(output)
# Prints 'red, green, blue, yellow, '
However, the separator is still added to the last element, and it is relatively slow.
A better solution is to use str.join.
colors = ['red', 'green', 'blue', 'yellow']
separator = ", "
print(separator.join(colors))
# Prints 'red, green, blue, yellow'
An important thing to note is that you can only str.join strings. For a list of ints,
you must convert each element to a string before joining.
integers = [1, 3, 6, 10, 15]
print(", ".join(str(e) for e in integers))
# Prints '1, 3, 6, 10, 15'
The Python Discord leaderboard for 2022 is not yet available!
hello
.
**```
.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 `**
*NOTE: This command has been moved to !subscribe*
Joining Iterables
If you want to display a list (or some other iterable), you can write:
colors = ['red', 'green', 'blue', 'yellow']
output = ""
separator = ", "
for color in colors:
output += color + separator
print(output)
# Prints 'red, green, blue, yellow, '
However, the separator is still added to the last element, and it is relatively slow.
A better solution is to use str.join.
colors = ['red', 'green', 'blue', 'yellow']
separator = ", "
print(separator.join(colors))
# Prints 'red, green, blue, yellow'
An important thing to note is that you can only str.join strings. For a list of ints,
you must convert each element to a string before joining.
integers = [1, 3, 6, 10, 15]
print(", ".join(str(e) for e in integers))
# Prints '1, 3, 6, 10, 15'
Why it's not working
The Python Discord leaderboard for 2022 is not yet available!
Please claim a help channel ( #❓|how-to-get-help )
Nice we get a few more days
.aoc help
**```
.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 `**
*NOTE: This command has been moved to !subscribe*
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc about
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join 2021
The Python Discord leaderboard for 2022 is not yet available!
So how do you .aoc join since this has been extended?
If you're not already on the leader board, you cannot join. That event has wrapped up now, so the commands are inactive until November.
We are however keeping the role around for a little longer.
😦 😢 😭
Thanks for letting me know
FWIW, it's also in the announcement that we sent out earlier today, in #announcements
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
So like
I'm on the leaderboard and did the whole link thing that set the default lookup on the leaderboard
I also have 50*
But no role?
It looks like you linked "starwort" to your Discord account
but the API is listing you as "Starwort", so the script handing out the automatic role isn't giving you it
Ah, I've been got by case sensitivity
Of course, since the commands have been disabled now so you can't fix that I'll assign manually
yea, not too sure about the differences there
we should fix that for next year though 😛
Absolutely lol
.aoc join 2021
The Python Discord leaderboard for 2022 is not yet available!
.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 `**
*NOTE: This command has been moved to !subscribe*
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
about
.aoc about
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
PSA: The .aoc join command won't be available again until November 🙂
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
;-;
This year? ;-;
yes
dang
dang
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc about
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
The Python Discord leaderboard for 2022 is not yet available!
Moving this down a bit:
PSA: The .aoc join command won't be available again until November 🙂
!e
class There:
def __init__(self) -> None:
pass
def __str__(self):
return "Bruh"
print(There())
@stable badger :white_check_mark: Your eval job has completed with return code 0.
Bruh
!e
import youtube.dI
@pliant canopy :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'youtube'
!e
import youtube
@pliant canopy :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'youtube'
Where can I find the link to advent of code questions?
youtube-dl is against YouTube's terms of service, it's definitely not installed in our !eval tool, and that's off-topic for this channel
@viscid sentinel :x: Your eval job has completed with return code 143 (SIGTERM).
001 | hi
002 | hi
003 | hi
004 | hi
005 | hi
006 | hi
007 | hi
008 | hi
009 | hi
010 | hi
011 | hi
... (truncated - too many lines)
Full output: too long to upload
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
!eval [print("hi")]
@dusky vessel :white_check_mark: Your eval job has completed with return code 0.
hi
!eval maas = [1000,2000,3000,4000,5000]
def gelire_gore_zam(x):
for i in maas:
if i > 3000:
print(i+i0.1)
elif i < 3000:
print(i+i0.2)
gelire_gore_zam(maas)
@bronze girder :white_check_mark: Your eval job has completed with return code 0.
001 | 1200.0
002 | 2400.0
003 | 4400.0
004 | 5500.0
we probably should have a pin explaining that tbh
see https://adventofcode.com/2021/about though
.aoc about
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
btw ^
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
!e console.Writeline("Hello World")
@foggy patio :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'console' is not defined
!e print('Hello everyone')
i need help
.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 `**
*NOTE: This command has been moved to !subscribe*
.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 `**
*NOTE: This command has been moved to !subscribe*
.adventofcode
**```
.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 `**
*NOTE: This command has been moved to !subscribe*
The Python Discord leaderboard for 2022 is not yet available!
.aoc subscribe
This command, .adventofcode subscribe has moved to !subscribe.
Please use !subscribe instead.
.aoc about
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
.aoc join
The Python Discord leaderboard for 2022 is not yet available!
.aoc participate
**```
.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 `**
*NOTE: This command has been moved to !subscribe*
.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 `**
*NOTE: This command has been moved to !subscribe*
.aoc subscribe
This command, .adventofcode subscribe has moved to !subscribe.
Please use !subscribe instead.
.aoc about
Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.
They are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.
Sign up with one of these services:
GitHub
Google
Twitter
Reddit
For the global leaderboard, the first person to get a star first gets 100 points, the second person gets 99 points, and so on down to 1 point at 100th place.
For private leaderboards, the first person to get a star gets N points, where N is the number of people on the leaderboard. The second person to get the star gets N-1 points and so on and so forth.
Come join the Python Discord private leaderboard and compete against other people in the community! Get the join code using .aoc join and visit the private leaderboard page to join our leaderboard.
I am developing python project. I have some issues. can someone help me?
in model.fit(), they appears issues.
ok
.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 `**
*NOTE: This command has been moved to !subscribe*
There it goes
bye bye role 😦
i was really late to the advent of code and i never even finished it
