#advent-of-code

1 messages Β· Page 37 of 1

final eagle
#

so you compare the sum of numbers in window B and the sum of numbers in window A, and see if there is an increase

pine tiger
#

yeah

#

i solved it

final eagle
#

mm

brittle ivy
#

.aoc join

pine tiger
#

i just got really tripped up on that part

bold locust
#

.aoc join

pine tiger
#

the explanation was kinda crap imo

gloomy kernel
#

Can I do this aoc later after 2 or 3 hours

#

I will do it for fun

#

So not a problem

somber crow
gloomy kernel
#

Lmao

#

Alr

somber crow
#

You can access all previous aocs

gloomy kernel
#

Imma go eat breakfast

somber crow
#

Under the events button

lucid oyster
#

well, ive successfully discovered another thing im shit at lol

minor cave
lucid oyster
#

i wish i could

gloomy kernel
#

I will probably do these challenges with java

lucid oyster
#

but that would require me to understand the question first

whole veldt
#

Whew I actually did it

#

Did not expect it to be this easy

minor cave
whole veldt
#

It's a simple for loop

somber crow
#

This is day 1

peak dock
#

no spoilers in this channel please

hearty shuttle
lucid oyster
topaz summit
north silo
lucid oyster
#

its an art I'm genetically destined to suck at

wicked kiln
#

||advent of code spoiler||
Oh no!

sharp panther
#

I wonder if Eric does that on purpose

lucid oyster
wicked kiln
gloomy kernel
brisk briar
#

which lang do we have to write the stuff in

minor cave
sharp panther
gloomy kernel
brisk briar
#

lets goo

lucid oyster
#

in theory you can do it by hand

prisma sundial
#

you have to leave the server if you don't use python

somber crow
sharp panther
signal grotto
#

Raise your hand if you forgot about AoC until exactly the start time and didn't have anything ready

#

🀚

minor cave
#

They were like "fuck this code shit" and sat down with pen + paper for like an hour

#

and got the right answer

sharp panther
peak dock
#

same

sinful agate
brisk briar
#

and how do i write multiple lines, whenever i click enter it tries to submit it

sharp panther
#

.aoc lb

hidden copperBOT
#

Here's our current top 10! πŸŽ„πŸŽ„πŸŽ„

     | Name                      | Score | ⭐, ⭐⭐
--------------------------------------------------
   1 | francisdbillones          |     0 | (0, 0)
   2 | Paritosh_Singh            |     0 | (0, 0)
   3 | mbaruh                    |     0 | (0, 0)
   4 | Jack92829                 |     0 | (0, 0)
   5 | codephile1221             |     0 | (0, 0)
   6 | Shakya Majumdar           |     0 | (0, 0)
   7 | Xithrius                  |     0 | (0, 0)
   8 | neumond                   |     0 | (0, 0)
   9 | Hassan Abouelela          |     0 | (0, 0)
  10 | HyTurtle                  |     0 | (0, 0)

The leaderboard is refreshed every 30 minutes.

Number of Participants

728

Full Leaderboard
prisma sundial
#

pro tip: skip any text that appears before numbers

signal grotto
lucid oyster
sinful agate
#

damn

sharp panther
peak dock
brisk briar
#

oh

#

alright

somber crow
tardy onyx
#

i put the input into a .txt file personally did i overcomplicate?

prisma sundial
#

just do whatever feels the most natural/quickest

somber crow
#

I did the same but without the extension

woven solar
#

bot is sure struggling to fetch that LB πŸ‘€

somber crow
#

It caches

tardy onyx
#

i was gonna do it in the shell but i didn't want to paste too many times

signal grotto
somber crow
#

They don't want spam on the api

sharp panther
woven solar
#

there we go

tardy onyx
woven solar
#

.aoc lb

hidden copperBOT
#

Here's our current top 10! πŸŽ„πŸŽ„πŸŽ„

     | Name                      | Score | ⭐, ⭐⭐
--------------------------------------------------
   1 | Oliver Ni                 |  1460 | (1, 1)
   2 | RundownRhino              |  1457 | (1, 1)
   3 | Defelo                    |  1455 | (1, 1)
   4 | asishm                    |  1455 | (1, 1)
   5 | Starwort                  |  1451 | (1, 1)
   6 | Artemis                   |  1451 | (1, 1)
   7 | artcz                     |  1450 | (1, 1)
   8 | godlygeek                 |  1444 | (1, 1)
   9 | Zeyu Chen                 |  1442 | (1, 1)
  10 | salt-die                  |  1441 | (1, 1)

The leaderboard is refreshed every 30 minutes.

Number of Participants

731

Full Leaderboard
tardy onyx
#

and i messed up once already because i didn't understand the question

sinful agate
#

I forgot how to see the time

woven solar
#

who was 3 points faster than me hyperlemon

sinful pawn
#

I'm literally cursed

#
  79 | Cypheriel                 |   666 | (1, 0)
tardy onyx
#

how do you tell?

sharp panther
#

43 for me, not bad

woven solar
#

RundownRhino

sinful agate
#

I need to hold that position

sharp panther
tardy onyx
#

91st

#

top 100 at least :D

minor cave
somber crow
sinful pawn
#

well, I feel incredibly sad now

minor cave
rotund light
minor cave
#

πŸ‘

sinful agate
#

damn

north silo
sharp panther
#

great job reptile!

woven solar
#

I was absolutely correct about the seconds thing

minor cave
somber crow
#

Oh

woven solar
#

I probably was like seconds later than Oliver, and that's the difference between #30 and #78

somber crow
#

I thought the leader board looked small

minor cave
#

We technically have 7, we then combine them all and re-score them for our big community leaderboard

north silo
sinful pawn
#

how on Earth do you leave the leaderboard

minor cave
#

We have space up to 1200 if I did the math right bit just under 800 currently joined

somber crow
#

So I'm not 8th :( it was just an illusion

tardy onyx
#

.aoc leaderboards

hidden copperBOT
#
Command 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 `**
*Notifications for new days*
**`unsubscribe `**
*Notifications for new days*
woven solar
#

How does the community leaderboard work, by the way? What's the "score" there?

minor cave
sinful pawn
#

oh, I see

#

thank you

minor cave
woven solar
#

huh

dawn kindle
#

Hey guys can someone help me with python coding exam?

woven solar
#

so the points will increase?

#

also, how come there are equal scores then?

signal grotto
marsh currentBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

minor cave
# woven solar so the points will increase?

mhm, which is why this year I'm going to do a secondary leaderboard scoring and only include people who completed each day. That way the first few days aren't weighted so heavily

woven solar
#

hmm, I see

ripe ingot
#

did the first question already get over?

minor cave
signal grotto
ripe ingot
#

where?

#

I DONT SEE IT

signal grotto
signal grotto
ripe ingot
lucid oyster
#

I'm gonna make my own aoc next year but like... not so many words

#

the words make it impossible

signal grotto
woven solar
#

ah there we go, Personal Stats have the timings. Apparently all of my score is from part 1, whereas part2 I fumbled, by like 2 minutes.

ripe ingot
minor cave
#

I can take a look at the individual scoring, but I'm pretty sure the scoring algo is right. We checked the math a lot last year

somber crow
signal grotto
crystal shard
#

This is harder than I thought

minor cave
#

ACTUALLY

ripe ingot
#

ahh got it

minor cave
#

DID Y'ALL KNOW

ripe ingot
#

done!!!

signal grotto
lucid oyster
#

no

ripe ingot
#

thanks @somber crow and @signal grotto

minor cave
#

RUN .aoc daystar for #aoc-bot-commands for some funness

woven solar
minor cave
#

we now show the times submitted for each day + star, so if you want to see how you placed per star and per day you can

#

Big shoutout to @bright mantle for this feature

mossy basin
#

how do you join the pydis leaderboard

junior hinge
minor cave
junior hinge
#

it felt like a eternity but i did it in the end πŸ˜„

minor cave
#

you should already be on it iirc

mossy basin
#

how else

junior hinge
#

freakin 14 degrees celsius here πŸ˜„ first time programming with a jacket and beanie on

minor cave
#

absolutely

mossy basin
#

i think i have to turn on dms to use the dot command

signal grotto
#

Yep.

jade root
#

lol how the heck did i manage to be on the top 10 of the leaderboard

mossy basin
#

is there another way

minor cave
signal grotto
jade root
#

wtf

#

thats absolutely insane

lucid oyster
#

insert joke about touching grass

jade root
#

lmao

summer kraken
#

Do we have only 1 try for each question?

somber crow
#

No

woven solar
#

nah, any number

mossy basin
#

i would've finished below a minute if i didn't have a 30 second timeout on part 1, i don't think it's too bad for day 1

signal grotto
jade root
#

still

#

what a speed demon

woven solar
#

Looking at the times for part2, I did really bad on it

#

some people finished part2 within 2-3 minutes

junior hinge
shrewd thicket
#

w h a t

lucid oyster
peak dock
#

lmao i cant even navigate the damn website

woven solar
#

nah, my mistake was trying to use [REDACTED] which I don't have the right numpy version for 😩

#

and then I did it the simple way

lucid oyster
#

my mistake was writing a whole class to do half of the shit which didnt work Kek

#

(3 times)

#

evidently none worked

minor cave
#

Anyhow, I am off to bed. If anything breaks profoundly ping devops pls

woven solar
#

last year, there were like 2 or so game of life tasks

#

so maybe make sure you have the sliding-window utility methods for the next tasks

#

though... it's unlikely, this is day1 after all

sinful agate
#

:)

woven solar
#

The creators be like: I wonder how many days in a row can we base on that concept before they start catching on?

steady berry
#

aaa it started already

#

time to do it on my phone

lucid oyster
#

right I'm gonna go write this in brainfuck brb

peak dock
#

did my discord bork or did this message not ping anyone

sinful agate
lucid oyster
steady berry
peak dock
#

rip

lucid oyster
#

(as it shouldnt)

signal grotto
#

I'm gonna look into that rn but yeah that may be it

minor cave
somber crow
lucid oyster
#

I'd be immensely concerned if lance has the ping everyone permission tbh

sinful agate
#

lol

minor cave
#

I guess I can just manually ping.

lucid oyster
#

thats a huge nono in the world of discord bots on big servers Kek

minor cave
woven oriole
#

input for second part?

lucid oyster
#

trust me I've had experiences...

void ocean
#

same as first part

woven oriole
#

it does not have a b c d

lucid oyster
#

it took me longer to find how to access the input file than it took some people to finish

sinful agate
#

same input

void ocean
#

those are just examples

winged trellis
#

good luck everyone, im off to work

woven oriole
lucid oyster
#

i like not cheating /shrug

sinful agate
woven oriole
#

how will one get the sum of tripplets without letters being marked \πŸ€”

#

sus

sinful agate
#

think

signal grotto
#
        await aoc_channel.send(
            f"{aoc_role.mention} Good morning! Day {tomorrow.day} is ready to be attempted. "
            f"View it online now at {puzzle_url}. Good luck!",
            allowed_mentions=discord.AllowedMentions(
                everyone=False,
                users=False,
                roles=[aoc_role],
            )
        )

yeah @minor cave I'm guessing this part didn't work right or something (that or permissions)

brisk briar
#

alright! im done with both the puzzles!

woven oriole
#

o letters have a fixed pattern

#

lmao

#

amiright

minor cave
woven oriole
#

nvm

ripe ingot
#

Hey! The input is just too huge to copy and paste or something so I try to web scrape or something it tells me everyone has different input so you must login... @minor cave how do I access the input then? Is copy paste the only way?

somber crow
#

I just copy-pasted it into vim

rancid creek
#

The input is just too huge to copy and paste
What?

signal grotto
woven solar
signal grotto
#

Ctrl+A, Ctrl+C

frank maple
#

you can also right click and save link as

woven solar
ripe ingot
rancid creek
#

it's 2000 numbers. It's small.

signal grotto
void ocean
#

it'll select everything

peak dock
#

you can also ctrl S to save as a txt file

ripe ingot
#

okay Ill just do that

#

nvm

#

thanks

signal grotto
#

πŸ‘Œ

void ocean
peak dock
#

bold of you to assume i dont save everything on my desktop

sinful agate
#

lol

somber crow
#

Lol

rancid creek
frank maple
#

tfw preset file explorer b/c i didnt prep and other way to download

ripe ingot
#

i know but then it says its unauthenticated...

narrow crown
#

wait this thing came out!

ripe ingot
#

everyone has different inputs

fathom lichen
#

When does the timer start counting? Is it when you click the link for the day, or is it based on the actual time?

woven solar
narrow crown
#

aww man i might have to do it tmrw

#

wait is the leaderboard time based

#

faster u finish itt the better

minor cave
peak dock
woven solar
rancid creek
#

One of the many reasons the leaderboard does not matter.

dim oracle
#

finished

woven solar
#

ours can technically fill indefinitely (right?)

fathom lichen
stable heron
#

IT STARTED YAY

dim oracle
#

bruh i lost over 40 minutes on the second one because i messed up a for loop slightly

narrow crown
#

how to check the server leaderboard

void ocean
dim oracle
#

one small number haha

void ocean
#

since those'll take more than a few minutes

minor cave
#

So by the end, even completing a day could earn you top 25

woven solar
narrow crown
#

ok thank you

rancid creek
dim oracle
#

im 16th on the leaderboard πŸ₯³

fathom lichen
narrow crown
#

this is super cool

woven solar
# narrow crown ok thank you

note that you need to join the server's leaderboard to be there (get a code with .aoc join and input it in the Leaderboard tab of the site)

rancid creek
fathom lichen
#

It is fun tho - i'm not worried about the scoring.

charred plaza
#

Is the leaderboard different from last year?

summer kraken
#

In the private leaderboard, what are the numbers?

somber crow
summer kraken
#

168 here, for eg.

rancid creek
#

@charred plaza my new nemesis!

charred plaza
frank maple
#

the later puzzles are where the speed spazzes will start to get tempered a bit by difficulty

rancid creek
#

likewise!

dim oracle
fathom lichen
#

What is the code for a leader board in here?

minor cave
#

(also, another fun feature, .aoc lb <aoc name> will show you your rank in the leaderboard embed

woven solar
# summer kraken

Your rank from the end, AFAIK. In other words, it's the number of people who finished the task minus your position in the list of people who finished the task

signal grotto
somber crow
minor cave
fathom lichen
#

.aoc join

severe crater
#

.aoc join

floral monolith
#

.aoc join

orchid quest
#

.aoc join

severe crater
#

.help aoc

fathom lichen
#

Very cool. I placed on that one. πŸ™‚

signal grotto
#

#aoc-bot-commands also exists πŸ˜‰

fathom lichen
signal grotto
#

No worries at all!

fathom lichen
#

How hard do the questions get?

woven oriole
#

.aoc lb

hidden copperBOT
#

:x: Please use #aoc-bot-commands for aoc commands instead.

woven oriole
#

oop

narrow crown
#

how in the world can ppl finish the first thing in 90 seconds

signal grotto
signal grotto
woven oriole
#

seems like too many have not joined the private leaderboard

minor cave
narrow crown
#

whoa

#

i want to get that good at programming at some point

fathom lichen
#

I'm pretty old. The first two are pretty easy.

minor cave
woven oriole
#

yeah just saw

narrow crown
#

why 7?

#

is there a cap

halcyon fox
#

.aoc subscribe

hidden copperBOT
#

Okay! You have been subscribed to notifications about new Advent of Code tasks. You can run .adventofcode unsubscribe to disable them again for you.

minor cave
#

There is a cap of 200 per private leaderboard

#

Across all our leaderboards we have 700+ joined

narrow crown
#

coolio

#

i think i have something for the first task it should be easy

minor cave
#

We have 7 for a bit of padding so we don't need to make a new leaderboard every year

narrow crown
#

so theres 25 days each day has 2 parts?

frank maple
#

yep

minor cave
narrow crown
#

each day has only one input, not 2?

#

so one input for both parts

woven oriole
#

i think so yes

#

also the difficulty would increase eventually

#

\πŸ˜‹

winged trellis
woven oriole
#

assuming it will be utc-5 everyday

narrow crown
#

cool

winged trellis
woven oriole
#

yeah

mossy basin
#

now we can spend the rest of the day speculating on if we get to make another intcode computer

haughty basalt
#

.aoc subscribe

hidden copperBOT
#

Okay! You have been subscribed to notifications about new Advent of Code tasks. You can run .adventofcode unsubscribe to disable them again for you.

tender ravine
#

is it intermidiate friendly

haughty basalt
#

.aoc join

woven oriole
#

i was literally not prepared with the procedure so that wasted much of the time 😩

narrow crown
#

each input is 2k lines long?

winged trellis
#

Ofc there should be opt codes this year

signal grotto
tender ravine
open yoke
#

Why do I seem to have a different Private Leaderboard?

rotund light
#

no intcode this time please

signal grotto
#

There's likely a huge number of people visiting right now, give it some time

somber crow
signal grotto
minor cave
tender ravine
#

.aoc lb

hidden copperBOT
#

:x: Please use #aoc-bot-commands for aoc commands instead.

signal grotto
tender ravine
#

ah

open yoke
frank maple
#

i wonder why they capped the leaderboard

fathom lichen
#

This is so much fun - reminds me of homework from long ago.

proper lynx
#

How do i play an advent of code thingy? I've logged onto the website idk what to do now

woven solar
#

click on the 1, and that's the page of the first task

proper lynx
#

Ah, thanks

hoary canyon
#

Finally

summer kraken
#

How did I go back in leaderboard?

minor cave
summer kraken
#

i mean ... my rank fell

minor cave
#

Oh, what you placed is what you placed. You can increase your score on later days.

summer kraken
#

so the rank is also dependent upon time when u submitted the puzzle - the time when u opened the puzzle

minor cave
jade root
#

oh man im on 83

summer kraken
craggy wraith
#

has it started?

sinful agate
signal grotto
hazy pendant
#

i finished day 1, well that was a good start

summer kraken
#

okay..

minor cave
hazy pendant
#

is it really that good to solve these puzzles on Python REPL instead?

minor cave
#

I can double check, but I'm preeeetty sure it's right. It's just a bit funky because of the scoring metric. It produces some non-intuitive but correct results

pearl needle
signal grotto
craggy wraith
#

Would I still get stars if I do them on like Saturday

signal grotto
hazy pendant
marble tiger
#

#11 place yay

gloomy kernel
#

Before I join

#

Will there be any dsa

minor cave
#

AoC is just dsa in disguise if I'm being honest

signal grotto
#

No one really knows what to expect from each day until it's posted, but yeah probably.

gloomy kernel
#

I can try

#

I have been practicing dsa

hazy pendant
minor cave
#

but like.... it's fun cause πŸŽ„ it's ~themed~ dsa ❄️

gloomy kernel
#

Aoc gives me Christmas spirit

hazy pendant
#

||why is santa from AOC going places?||

gloomy kernel
#

I did aoc day 2 in 2020

#

I was #13

#

Then let's just say

#

My brain decided to head out

royal bison
void ocean
#

data structures and algorithms

gloomy kernel
#

I love it

royal bison
#

ah, okay

stable heron
#

yayyy #17

gloomy kernel
#

Is GitHub co pilot allowed

#

Lmao

stable heron
#

and then my brain passed out

hollow wharf
#

has it started

stable heron
#

yea

gloomy kernel
hollow wharf
gloomy kernel
#

1 hour 30min

gloomy kernel
#

Lol

ripe ingot
#

Hey! I found the answer to the first question but is there a way to know if its correct. I mean I wanna crosscheck if its correct or not...

gloomy kernel
#

I will do later

signal grotto
ripe ingot
signal grotto
#

Don't be! You have as many chances as you need.

woven solar
#

you can't submit answers too often, but you can do at least two in quick succession

signal grotto
#

FYI to those confused about time zones: the next day will open up at <t:1638421200>, shown in your local time (<t:1638421200:R>)

ripe ingot
#

okay thanks

#

Ill submit it now....

#

drumrole...

steady berry
#

finally got my access to computer 😩

#

don't know how the phone ui works but i just can't see anything there

signal grotto
#

I wouldn't expect much from a coding challenge site on a phone tbh

hollow wharf
#

I'm so stressed waaaaaaah

#

help mea

signal grotto
#

You got this!

sinful agate
hollow wharf
#

actually im not doing it to win

#

im going to get dressed quickly

ripe ingot
#

It says my solution is lesser than whats the correct one

#

found it!!!!

#

I solved it!

signal grotto
#

Nice!

ripe ingot
#

I used 0 for start which was wrong

hollow oyster
#

it has alrd began?

signal grotto
hollow oyster
#

where's the website again?

kindred sundial
#

only 100 people joined the lb for this server or are there more lbs than 1

signal grotto
hidden copperBOT
#

Here's our current top 10! πŸŽ„πŸŽ„πŸŽ„

     | Name                      | Score | ⭐, ⭐⭐
--------------------------------------------------
   1 | Oliver Ni                 |  1486 | (1, 1)
   2 | RundownRhino              |  1483 | (1, 1)
   3 | Defelo                    |  1481 | (1, 1)
   4 | asishm                    |  1481 | (1, 1)
   5 | Starwort                  |  1477 | (1, 1)
   6 | Artemis                   |  1477 | (1, 1)
   7 | artcz                     |  1476 | (1, 1)
   8 | godlygeek                 |  1470 | (1, 1)
   9 | Zeyu Chen                 |  1468 | (1, 1)
  10 | salt-die                  |  1466 | (1, 1)

The leaderboard is refreshed every 30 minutes.

Number of Participants

744

Full Leaderboard
kindred sundial
hollow oyster
signal grotto
#

Right below that

kindred sundial
#

also what is the function for calculating score hmm

sullen sable
#

Commandline?

kindred sundial
#

2*n -p +1?

signal grotto
signal grotto
kindred sundial
sullen sable
kindred sundial
#

or in general too

sullen sable
#

just to be safe

pearl needle
kindred sundial
#

Hmm I see

pearl needle
#

global gives you 100 points, minus how many people were faster than you

hollow oyster
#

;-; this sounds like a pretty basics but still too hard

signal grotto
steady berry
#

came in too late 😩

#

could've get a better score

sinful agate
jade atlas
sinful agate
#

I have 0

pearl needle
sinful agate
#

ye

pearl needle
#

yes, that's your global score

#

and rank

jade atlas
pearl needle
#

luckily not lol

steady berry
#

oh no

pearl needle
#

yes, you see part 2 when you complete part 1

sinful agate
steady berry
#

already ended

#

got your meaning there

#

lolz

void ocean
woven solar
#

personal stats

void ocean
#

Ah, I was looking under Stats

#

Weird that Personal Stats is not under Stats

sinful agate
steady berry
#

blame school 😩

pearl needle
# steady berry already ended

our private leaderboard gives you points based on how many people you beat plus 1, so you can still compete with everyone else in this server who is participating

void ocean
sinful agate
#

how

void ocean
#

Every time I have to deal with raw indices / slices I die

ripe ingot
#

hey if I have solved only the 1st part and many people have too done that but how are they ahead of me in the leaderboard?

simple bison
#

they did it quicker?

ripe ingot
#

umm... How does the platform know if its quicker?

tired zealot
#

heyy

#

it started?

simple bison
simple bison
#

I'm waking up at 5 am every day so I can get try for the global leaderboard

ripe ingot
#

wtf

#

alright

twilit gorge
#

.aoc join

hidden copperBOT
#

:x: @twilit gorge, please (temporarily) enable DMs to receive the join code

hollow wharf
#

I'm going to not be able to do it until 3pm lmao

#

idrc tho

surreal sigil
#

how are @twilit gorge

hollow wharf
#

I'm not doing it for the global leaderboard

twilit gorge
#

.aoc join

hollow wharf
#

it's entirely for fun for me

surreal sigil
#

what do I have to do now, I logged in and joined the private lb

twilit gorge
twilit gorge
balmy dome
#

Can i join

#

.aoc

twilit gorge
#

.aoc leaderboard

hidden copperBOT
#

:x: Please use #aoc-bot-commands for aoc commands instead.

balmy dome
#

.aoc join

steady berry
#

😩

#

that moment when you typed the wrong answer

#

*not the wrong answer, i know the answer already but i typed it wrongly

final eagle
#

imagine they add captchas for submitting ur answer

steady berry
#

the sad part is my english isn't good, i can't read the question too well

#

dumping it to google translate makes it worse

#

advent of english

tawdry radish
#

.aoc join

steady berry
#

next time prob in saturday i'll get better score

frozen plume
#

.aoc join

#

i swear it was harder last year maybe its just the first question, im smarter, or i was stupider lol

#

but it was fun looking forward to the next few days lemon_smile

quick glacier
#

Is a small clarification of the problem statement considered spoiler, or is that fine here?

gloomy kernel
pearl needle
#

asking about what the problem is asking for is not a spoiler

gloomy kernel
#

I am gonna to aoc in 30min

molten fulcrum
#

@mossy basin I'm always impressed by the simplicity of your solutions. This year (technically, day), is no different

halcyon pulsar
#

i made a typo the first time i entered it in :(

#

my code i mean

#

do you lose points if you get it wrong the first time?

peak dock
#

i dont think so

#

but you definitely lose out on time

quick glacier
#

The problem says what to do if one number is larger than the previous, and what to do if one number is less than the previous. Presumably, they are never equal, but I haven't looked through the input thoroughly. What way would two consecutive equal numbers count?

gloomy kernel
#

Imma start the aoc

#

Ok this is challenging

#

But not hard

#

Will take some time

summer kraken
#

Can I upload solutions for day 1 on github public repo?

gloomy kernel
#

Yep

#

Not sure tho

sinful agate
hollow wharf
#

sucks that im going to college rn

#

ive got maths for 1 hr 30

#

actually 3 hours of math

royal bison
#

Are the private leaderboards not reset?

#

ah nvm

dull hill
#

What time does this start?

noble dew
twilit gorge
noble dew
#

Yeah

pearl needle
#

.aoc countdown

hidden copperBOT
#

Day 2 starts <t:1638421200:R>.

pearl needle
hollow wharf
#

time to do aoc

#

morning warmup

#

where do i do it

#

what do i click on on the website

pearl needle
#

click the first row for day 1

quick glacier
pearl needle
twilit gorge
hollow wharf
# pearl needle

a little question, what do the blue and grey ~~ mean in the image?
i have the similar thing showing

jovial pebble
#

They'll form an image later on

pearl needle
#

it's the top row of an ascii image

hollow wharf
#

cool

bright spindle
#

I'm doing Rust this year and turns out I'm not good at Rust.

#

And I haven't written any Rust in a long time.

jovial pebble
#

This was last year. I didn't finish all days, but I think it'll have colors when all days are done

bright spindle
#

So that took me practically forever.

hearty shuttle
#

oh hey dem. im doing the same.. turns out, its surprisingly challenging. im already stuck πŸ˜›

bright spindle
#

Took me about an hour and a half.

#

But this is good, I am relearning Rust, which is what I wanted.

hollow wharf
molten fulcrum
#

Day 1 has been solved in Gurklang

idle solstice
#

hi

idle solstice
#

what is this place

hollow wharf
#

who knows

molten fulcrum
bright spindle
hollow wharf
#

wait i cant find it

#

the place where i can

#

click

hearty shuttle
#

you get a little bit of gratification before the suffering πŸ˜›

hollow wharf
#

can someone send me a screen on where i click to get the first puzzle

hearty shuttle
#

you need to be signed in, and then its on the homepage. just click the 1 number

bright spindle
#

I don't really have any interest in competing, I know from previous experience that I have no chance whatsoever, so I'm using this as an opportunity to improve my Rust skills instead.

hollow wharf
bright spindle
pearl needle
#

global leaderboard seems very competetive

hearty shuttle
idle solstice
#

This can be done in any lang?

pearl needle
#

yes

idle solstice
#

oh ok

hollow wharf
idle solstice
#

ngl i still have no clue whats happening

#

lol

timid kraken
hollow wharf
#

i clicked on the 1

proud cosmos
#

The finished image

#

with a cool tornado

idle solstice
proud cosmos
#

animated

hollow wharf
#

and i dont get anything

hollow wharf
#

idk what do from clicking the 1

proud cosmos
#

I actually finished barely on time too

hollow wharf
proud cosmos
#

||(the 2nd task of day 25 is basically just have everything else)||

hearty shuttle
hollow wharf
#

ah i got onto it

#

nvm

proud cosmos
#

Wonder if that counts as a spoiler not sure

hollow wharf
#

i clicked on the top left

#

and found the one

hollow wharf
#

xd

bright spindle
proud cosmos
#

yeah I also think kinda

bright spindle
#

So, err on the side of caution and avoid mentioning it here.

proud cosmos
pearl needle
#

i spent some time getting a 3.10 env set up, looking at last years' questions I think match might come in handy

hollow wharf
#

oh i can? let me see

proud cosmos
#

Yeah day 25 of last year wasn't that hard if I remember right

hollow wharf
#

cool

proud cosmos
#

I think day 20 was the one that I found hardest last year

#

Yeah that one was phew

twilit gorge
#

yeah Midnight at UTC -5

devout spire
#

did aoc day 1 πŸ˜ƒ

rancid creek
#

Rotating pieces of seamonsters was the hard one last year.

bright spindle
#

Which day was that? I forgot

muted sand
#

Where did you guys put your aoc input?

shy tulip
#

At the bottom of the page there's a link after logging in.

normal pendant
#

if you miss a day can you go back and do it after?

shy tulip
#

yes, you can even do previous years

normal pendant
#

okay, thank you ^^

hybrid portal
#

.aoc subscribe

hidden copperBOT
#

Okay! You have been subscribed to notifications about new Advent of Code tasks. You can run .adventofcode unsubscribe to disable them again for you.

stray coral
#

Hey can someone DM me part 2 of day 1? (Not the solution but the problem itself). I don’t currently have access to it although I have already completed part 1

shy tulip
#

If you've completed it it should appear on the same page as part 1, under part1

stray coral
#

No I mean I’m not able to access the website atm

muted sand
#

Is it a good idea to put input in your github

gloomy kernel
#

Sup

bright spindle
bleak sable
#

question about aoc bot: how is the score calculated? it's way different than on the leaderboard directly on the website
and there are much more users who completed the tasks according to bot than there is on the leaderboard website?

bright spindle
#

'The bot one is the aggregate of multiple aoc leaderboards

muted ether
#

After you've done the task, do the blue and greyness of the ~ mean anything lol?

bright spindle
#

When you complete a day, that row becomes colored

muted ether
#

oh so its the same for everyone

bright spindle
#

So when AoC is over, you will see a "black and white" image if you haven't completed any days, and a colored one if you completed all of them

muted ether
#

makes sense

bleak sable
bright spindle
bleak sable
wary wigeon
#

What is the score based on?

#

I mean the leaderboard

muted ether
#

pity that the next one comes out at 4am I'm never gonna be on the leaderboard lol

bleak sable
muted ether
wary wigeon
#

Sooo thats impossible for me to be there lol

bright spindle
bleak sable
bright spindle
#

So it'll be accurate based on whatever data was available at the last update'

bleak sable
#

!src aoc lb

marsh currentBOT
#
Bad argument

Unable to convert 'aoc lb' to valid command, tag, or Cog.

bright spindle
bleak sable
#

!src aoc leaderboard

marsh currentBOT
#
Bad argument

Unable to convert 'aoc leaderboard' to valid command, tag, or Cog.

bleak sable
#

!src aoc

marsh currentBOT
#
Bad argument

Unable to convert 'aoc' to valid command, tag, or Cog.

bright spindle
#

It treats everyone in all subleaderboards as part of one big leaderboard

#

And calculates scores based on that

bleak sable
bright spindle
#

Ok, just making sure we're on the same page

muted ether
#

can you only be in one private leaderboard?

hollow wharf
#

how to participate

bright spindle
bright spindle
muted ether
hollow wharf
dull hill
#

Can someone put a link to day 1 for me. Or tell me how to get there

dull hill
#

Thanks

steel oyster
#

im legit stuck on part 2 😦

proud cosmos
#

Go through your code and check what exactly it is doing

#

Reconsider what you have to do and how you'd accomplish it

#

Try the test case as well

bright spindle
muted sand
glad tartan
bright spindle
glad tartan
bright spindle
muted sand
#

Aight I'll do it too just for contributor count

bright spindle
#

I mean, I did it by accident. I don't think there's any harm or benefit to it.

earnest forge
#

Do you mind if I steal this and add it to aoc_helper btw?

hollow wharf
#

!subscribe

brittle mauve
#

I dont understand what the answer box wants me to input

#

Do i put in code

#

Or just an input

viral radish
#

just the answer

#

a single number

brittle mauve
#

Its asking how many measurements are larger than the previous measurements but it already said seven

earnest forge
#

For your real input

#

Click the link that says 'get your input'

brittle mauve
#

Do i have to click get your puzzle inout

#

Input*

earnest forge
#

Yes, that gives you a big text file of numbers

brittle mauve
#

Oh ok

wary wigeon
#

alr solved the first puzzle

brittle mauve
#

So am i supposed to write a program that solves the problem when i input it

wary wigeon
#

wonder what the best solution was

brittle mauve
#

Ok

#

Ill try

earnest forge
#

I mean there are only 2000 numbers you could do it manually :P

runic glen
#

What is this?

brittle mauve
#

This is a difficult challenge

#

Im thinking its gotta be something with lists or for loops

bleak sable
hybrid portal
#

hey I'm sorry for asking what might be a silly question, but when posting or answer do we just paste the code into the answer box or can I link a repl project?

brittle mauve
#

Now i dont know if this is the solution or not but just incase it is ill spoiler it ||i was thinking that you have to make the input values into a list and then make a loop taking the next value and the previous values which would be variables cause you can do that with lists, and subtract them and if its larger than 0 it adds to the overall count, then it will add the previous value variable and next value variable 1 so it takes the next values||

#

Sorry for the confusing statement

hybrid portal
#

ah thanks

#

that is very handy

hollow wharf
#

Time to do aoc instead of my schoolwork 😎

woven sable
wary wigeon
#

why not?

woven sable
#

but I'm sure there's a solution that took the shortest amount of lines

woven sable
last egret
#

just a list and a gen comp

paper plover
#

Hello

woven sable
bright haven
# wary wigeon why not?

fastest to write? (gets you on the leaderboard). Fastest to run? Cleanest code? Has tests? Generalizes to larger problem spaces?

woven sable
#

Maybe this AOC is when I learn how to use tests ooh

#

I'll set up some tests for my solutions when I actually solve the puzzle

bright haven
woven sable
#

ah

woven sable
#

do they just give the real input and the sample data?

bright haven
wary wigeon
#

and what do you mean by tests? do you write unit tests for your code..?

woven sable
#

for if you want to make tests

#

like those are the only two inputs they give?

bright haven
woven sable
#

ah alright

wary wigeon
#

uhh

#

srsly?

stiff kraken
#

day 1 question 1 done yay!

#

that wasn't that difficult

bright haven
wary wigeon
#

did u write unit tests for first day?

bright haven
wary wigeon
#

do you by tests mean asserts?

bright haven
bright haven
wary wigeon
#

alr

#

thanks

brittle mauve
#

I might not know enough about python to do this

#

Im just gonna look at the solution for today

woven sable
#

Hm, how does scoring for AOC work? Is it who gets it correct + who finishes first

hidden musk
woven sable
#

ah, thanks!

steady berry
#

hmm i could write a selenium that automates and send the answer to there, probably will be faster

#

but wouldnt be if the answer is wrong

iron shadow
#

I used salt's aoc-helper last year

#

!pypi aoc-helper

marsh currentBOT
iron shadow
#

I'm doing it in rust this year so haven't check it still works

#

@mossy basin I'm guessing it's still fine?

#

They haven't made any breaking changes to the site? πŸ˜„

last egret
#

just refined mine using asserts with long solution against reduced

mossy basin
iron shadow
#

Ahhh cool

mossy basin
#

i just had to update my token is all

placid lake
#

yeah, mine from last year still works as well

steady berry
#

hmm that one looks good

final mica
#

Am i the only one that thought it was every time the depth increased from the last highest depth and not the last depth

bright spindle
craggy wraith
#

what does the number before the star in the leaderboard represent

woven sable
#

Or rather an explanation of the story, not filler text

viral umbra
#

hey how u guys put that string into a list?

bright spindle
#

If you're the second person to solve it, you get n - 1 points.

digital ember
#

Is there are any good rust Aoc helper crate/script?

bright spindle
#

The number before the stars is the sum of points over all days and stars so far.

bright spindle
steady berry
#

ooo, so n will change

bright spindle
#

You can join at any time and you can continue solving puzzles indefinitely

#

You can solve puzzles from previous years as well

steady berry
livid forge
#

hello, can someone advice me how to upload photo using webdriver and selenium ? - i want to upload photo on facebook

bright spindle
bright spindle
#

!ot

marsh currentBOT
stiff kraken
#

The only complaint i have about AOC is that score is time based, which means that there are MUCH more beneficial timezones. For me (western europe) it releases at 6AM which is just a nop for me meaning my scores will probably be very low

wary wigeon
#

it's 5am for chris lol

bright spindle
earnest forge
bright spindle
#

You can't really make the start time user-dependent.

stiff kraken
earnest forge
#

But what if someone else loads the page for you

earnest forge
#

Then you just solve the puzzle and hammer through it

stiff kraken
#

oh yeah cheaters

#

you make 2 accounts, solve with 1 then try to hand it in super speed with the second one

bright spindle
#

Yeah

steady berry
fathom lichen
#

I was trying to think of a better solution to the scoring as well, but i am not smart enough.

stiff kraken
bright spindle
earnest forge
steady berry
wary wigeon
earnest forge
final berry
#

Hii

earnest forge
#

o/

stiff kraken
#

hello

final berry
#

Hru guys??

earnest forge
#

Not bad

stiff kraken
#

doing fine, recently finished my day 1 questions

#

and made VERY dirty code

final berry
#

Gtk

stiff kraken
#

like PEP 8 no longer exists

final berry
#

Nice

stiff kraken
#

i wrote it in 2 lines for both questions

#

so 4 lines total

final berry
#

Well I have my exams day's Im really busy

stiff kraken
#

ah good luck!

fathom lichen
final berry
#

Thx

stiff kraken
stiff kraken
#

ah okay

earnest forge
#

I could get that down to a single line for both parts with no problem πŸ™ƒ

stiff kraken
#

the only way i can see it going to a single line is by making your dataset inside your code

earnest forge
#

Nope

#

Hold on

graceful mesa
#

is there any way other than copying to take those numbers to my code

earnest forge
#

I'll tag you in the spoiler channel

stiff kraken
#

if you select all and press ctrl c

graceful mesa
#

i did that but i was wondering what professional coders would have done something like fetching it from web

stiff kraken
#

everyone has different input

#

so you need to add autorization tokens and whatnot

graceful mesa
#

ic

noble dew
#

The input would be array of those numbers or just numbers?

placid lake
#

yeah, you can automate and download the input

noble dew
placid lake
#

no, you don't need to scrape anything

#

just a simple get request

stiff kraken
placid lake
#

cookies!

earnest forge
timid kraken
#

So I was wondering that is their a time limit to solve the problems in aoc? Like do i need to solve the first problem before the 2nd problem comes out?

earnest forge
#

Nope

earnest forge
#

Do it whenever

stiff kraken
summer kraken
#

Hello, I'm trying out this question https://adventofcode.com/2015/day/5#part2

Here's what I wrote:

numNiceStrings = 0

with open('2015/Day 5/input.txt') as f:
    strings = f.readlines()

for string in strings:
    try:
        for index in range(len(string)):
            doubleLetter = string[index] + string[index + 1]
            modifiedString = string[:index] + string[index + 2:]

            if doubleLetter in modifiedString and string[index] == string[index + 2]:
                numNiceStrings += 1
                break
    except:    
        pass

answer = numNiceStrings
print(answer)

Can anyone find out any errors in the code?

bright spindle
summer kraken
earnest forge
#

If you need any help with setting it up just gimme an @

summer kraken
graceful mesa
#

can i access questions of advent of code later?

bright spindle
summer kraken
#

Yeah, I'm trying to solve a 2015 question, right now.

#

And I am not able to πŸ’€

#

@bright spindle Can you help?

bright spindle
#

Nope, I'm working, sorry.

summer kraken
#

No Problem.

summer kraken
earnest forge
#

o/

wraith ravine
#

yey

#

I did aoc day 1

earnest forge
#

Nice

stiff kraken
#

not that you only did half

wraith ravine
#

My code is [CODE REDACTED PER ANTI-CHEATING ACT OF 2021 C.E.]

earnest forge
summer kraken
#

my code

bleak sable
#

easy fix: keep two flags (booleans) and mark completion of the rule separately. then after the loop check if both are true

#

wait, no

#

... wtf I'm saying

#

I don't remember this task well

#

despite doing it a few days ago

summer kraken
bleak sable
#

no, I'm right, but not with triple letter, but close

#

you check for xyx with xy repeating in whole string
but those don't have to be the same

summer kraken
#

I'm doing this.
In the string, take out two consecutive strings.
Then remove it from the original string (modified string)

For example
original string = xyxy
modified string = xy

Now i'm checking if xy (the string I removed) is in modified string. If it is, then it accords to the condition.

bleak sable
#

as I said, your problem is doing both checks at the same index. instead of doing them separately - one trait can be in any place of the string, the other trait in another

fluid pebble
#

hi

#

could anyone debug my code?

summer kraken
#

aoc 2021?

hollow wharf
#

.aoc join

zenith fern
#

how does answering work? this is my first time participating and i'm lost lol

bleak sable
zenith fern
#

oh ok

#

i was assuming you put code or something in there

bleak sable
#

nah, only answer. so you can do it in any language or even manually, as long as you get your answer

stiff kraken
#

since you can use any programming language you wish, or you could even calculate by hand, it's very difficult to be able to grade the code

nocturne blaze
#

you need to code to get the output tho

stiff kraken
earnest forge
stiff kraken
#

like trying to crack enigma

bright spindle
bronze vault
#

Is there any consequences to submitting wrong answers?

bright spindle
#

No, but iirc, there's a cooldown

#

So you have to wait a minute or so between attempts

bronze vault
#

Aight

stiff kraken
#

i made a typo for question 2 and had to wait a minute before i could resubmit

lilac ivy
#

.aoc join

velvet stag
#

it's not a minute forever, it grows

stiff kraken
#

exponential backoff

sonic silo
#

hi