#advent-of-code

1 messages Β· Page 39 of 1

hollow wharf
#

leaderboards take a lil bit of time to update right?

narrow crown
#

lol for day 1 i started a bit late

somber crow
#

Only a bit late

stable heron
hollow wharf
#

hell yeah!

minor cave
#

Okay things are going well and nothing's on fire. Good night y'all lemon_sleepy

Leaderboards are on a 30 minute cooldown and please keep all spoiler talk in the spoiler channel.

Good night~

final eagle
#

and who can read faster haha

stable heron
hollow wharf
ripe ingot
#

I finished it!

#

both done

sharp panther
#

Night kat!

final eagle
sharp panther
ripe ingot
#

thanks!

stable heron
hollow wharf
stable heron
#

cuz the leaderboard is split into 7

#

i was #10 in my leaderboard

#

now im #62

normal umbra
#

me too

stable heron
#

lmao

hollow wharf
stable heron
#

yeah

hollow wharf
#

aw sad!

normal umbra
#

I am 12th now :(. From 4th to 10th to 12th

sinful agate
#

the time

stable heron
sinful agate
#

day 1 was me unprepared and site getting timeout

normal umbra
hazy pendant
#

my AOC setup:

- computer
- bindows terminal
- google chrome
- alt-tab```
rough siren
#

how do i join the lb?

sinful agate
woven oriole
#

wait does our yesterdays time elapsed affect the current 😒

rough siren
#

.aoc join

hazy pendant
#

yessss

#

also i might consider using a raspberry pi for aoc

sinful agate
#

private lb

hazy pendant
#

why isn't there an AOC CLI

rough siren
#

i am 9th in this server

crystal shard
#

I am proud!

rough siren
ripe ingot
woven oriole
rough siren
#

i am kinda a kiddo here

ivory ravine
sinful agate
ripe ingot
woven oriole
frank maple
#

lol so i got the number right but put a negative sign for part one

sharp panther
ripe ingot
#

ahh okay

sinful agate
#

idk why but lb on site and lb on the link are different

woven oriole
woven oriole
#

one is global lb

sharp panther
#

indeed, it only updates every 30 minutes

sinful agate
#

58 | Arnav-2004 | 2898 | (2, 2)

sharp panther
sinful agate
#

ah

signal grotto
sinful agate
#

anyways cya off to study

sharp panther
#

Oh, maybe

remote oyster
#

.aoc join

ripe ingot
woven sable
jade root
#

oh cool i got up from 83 to 68

somber crow
remote oyster
#

Sorry was trying to join this leaderboard

thin minnow
#

.aoc join

summer kraken
#

The winner's the one with max score?

sinful agate
summer kraken
#

So i have 0 score right now

woven sable
sinful agate
#

ye

steel oyster
#

is day 2 is easier than day 1? i think it is

sinful agate
#

ye

pine tiger
#

same difficulty

ripe ingot
sinful agate
summer kraken
noble dew
#

Day 1 over?

#

Oh shit

#

I forgot to do that

#

Can I submit now?

summer kraken
#

Day 1 was yday..

#

Yes

hollow wharf
#

You can submit for all past days

#

even previous years

noble dew
noble dew
#

Thx

hollow wharf
tardy onyx
#

how can you tell where you are on the global leaderboard if you aren't top 100

#

or can you just not tell

hollow wharf
#

if your rank is 100 or less you're in

#

(at least I assume that's global rank)

iron reef
#

I'm higher on the ranking now, but starting day 1 near the end of the day probably set me way too far back

#

only hope is that everyone above me can't solve some problems

compact hazel
#

does back still do what it did?

hidden copperBOT
#

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

compact hazel
#

lol just realised there are no backs

craggy wraith
#

The problems are released at like 5am where I live

digital ember
#

anyone can fit a good christmas hat on my pfp

#

the current is a bit weird

steady berry
#

quite upset

#

the python ver on my phone is less than 3.10

#

couldnt use match case

#

😩

sharp panther
#

the fact that you did this on your phone gives you 300 more points automatically

steady berry
sharp panther
#

no, not actually, I was just saying that

#

300+ internet points for aph

idle rivet
#

I do it on my iPad on repl.it at least, huge respect for phone users!

steady berry
#

yay

#

300+ social credits

iron reef
#

I just calculated it by hand

#

It's only a couple thousand multiplications

digital ember
#

πŸ˜” adventof"code"

steady berry
prime ermine
#

hi

#

how to import flask

#

in python

#

/pip

#

is not workking

steady berry
#

unless your solution requires flask

iron reef
#

import numpy as flask

prime ermine
craggy wraith
#

Bruh lol

gloomy kernel
#

I suck at problem solving sometimes

#

Aoc needs it tho

#

Tips?

proud cosmos
#

Do more things like AOC to train your skill for example

hollow wharf
#

so currently if i do .aoc lb it does not give me my name like in some people it does, how did they connect?

hollow wharf
#

i can do .aoc lb my_username which works but how does it work for them in just .aoc lb

hollow wharf
#

also yeah leetcode

sharp panther
rancid creek
# gloomy kernel Tips?

keep doing them, read the answers for the ones you can't do, and then try again, keep doing this until you don't need to read the answers.

gloomy kernel
#

I did almost complete last year

gloomy kernel
#

This Oliver Ni guy is in 1st place from yesterday

#

Lol

proud cosmos
#

Some people are really good at this

#

(and live in the right timezone)

#

(no way I'm standing up that early lol)

sharp panther
hollow wharf
proud cosmos
#

Oliver ni is actually #27 on day 2

#

Impressive

#

though it was pretty easy to do fast if u tried

sharp panther
hollow wharf
sharp panther
#

Did you run .aoc join and follow the instructions in the DM that lance sends?

hollow wharf
#

i did. yeah.

strange zinc
#

Use your AOC name

sharp panther
#

doesn't show up for me either pithink

strange zinc
#

Well, your name is the first passed one. Placement is 127

pure saddle
#

anyone know how do i get my session cookie for advent of code?

#

i want to use wget

sharp panther
hollow wharf
sharp panther
#

I don't think I missed anything there

pure saddle
#

how do i open dev tools? im on firefox

proud cosmos
#

F12

jovial pebble
#

just press F12

proud cosmos
#

or CTRL+SHIFT+I

hollow wharf
proud cosmos
#

Looks right though I don't recommend sharing it

pure saddle
#

ohh i didnt know this was called dev tools hahah

proud cosmos
#

In firefox it's under Storage -> Cookies

pure saddle
#

yep found it, the cookies dont change right?

proud cosmos
#

Session should change relatively frequently if done right

#

Not sure how adventofcode handles it to be honest

pure saddle
#

oh ok

sharp panther
hollow wharf
proud cosmos
#

I mean that makes sense for adventofcode I suppose

sharp panther
#

this ^

pure saddle
#

thanks!

hollow wharf
#

I have written Semantic Codeℒ️

#

very proud of myself

#

probably nicer than my day 1 solution actually

#

though tbf my day 1 solution was hot garbage

warm grail
hollow wharf
#

noi bruh the last arg when not given on that time.

sharp panther
#

I think prashant wants it without having to type out the name

#

Which I don't really know how that would work, accounts don't get linked

#

but it looks like it worked for someone

warm grail
#

hmm, i remember that yyou could link your gh acc using a command

#

last year

#

no mb

#

that was for hacktoberfest

strange zinc
#

Could link your AOC to discord if they stored it in DB

proud cosmos
#

What if

sharp panther
proud cosmos
#

they did .aoc lb

#

Cause there is someone with the name " " as far as I can see

strange zinc
#

Lul

nimble furnace
#

Did somebody here ghost ping me?

proud cosmos
#

Not that simple but someone has a weird name

warm grail
nimble furnace
#

Or was there an @ everyone or something

sharp panther
#

@nimble furnace ^ that, perhaps

proud cosmos
#

Yeah

#

the person is named β€Ž

#

which looks like nothing

#

If you do .aoc lb β€Ž it shows up the person that has "no name"

#

Seems to be a LTR mark

hollow wharf
#

aw shit yeah that seems like case

nimble furnace
#

Mobile app should really get the inbox feature

sharp panther
#

It does have a mentions thing

#

at least on android

warm grail
#

!charinfo .aoc lb β€Ž

marsh currentBOT
hollow wharf
#

whats a left to right mark

pure saddle
#

i get 400 error trying to wget :/

proud cosmos
#

It tells your computer that the text goes from left to right

hollow wharf
#

and how do we write that?

proud cosmos
#

You usually don't write that at all

nimble furnace
proud cosmos
#

I did last year and now I'm doing this year

#

maybe it's time to actually get the input programmatically

#

instead of just pasting it at the start of my file

#

I mean it does work though

halcyon pulsar
#

guys

#

if the question was the example, the answer would be 150?

#

they phrased it weirdly

#
Calculate the horizontal position and depth you would have after following the planned course. What do you get if you multiply your final horizontal position by your final depth?
proud cosmos
#

The short example given in the question results in 150 yes

proud cosmos
#

they always give a short example with a solution to it

halcyon pulsar
#

okay

#

should be straight forward

wide dust
#

.aoc lb

hidden copperBOT
#

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

halcyon pulsar
#

jesus christ

#

am i the only one who got a massive number

pure saddle
#

nop i got a massive one too

halcyon pulsar
#

eh i got it right anyway

hearty shuttle
pure saddle
#

could someone in theory brute force the answer of will aoc block the user?

twilit gorge
pure saddle
#

yes thats true

twilit gorge
#

I am just traversing through the list of input. No fancy data structure or optimisation

sonic silo
#

but

#

every time you post a wrong answer, you cant post another answer for a small period of time

pure saddle
sonic silo
#

which increments every time you post another wrong answer immediatelly

#

up to 10 minutes

pure saddle
sonic silo
#

so that wont work

#

in 2020 day 20 it worked cause the space of valid answers was realllly small

proud cosmos
#

The tile puzzle

pure saddle
#

ahh i didnt think about that but thats a good measure

sonic silo
#

theres only so many monsters you can fit into the image

#

and you can make an assumption there will be at least a certain amount of monsters

#

so

proud cosmos
#

Phew it was aaaaaaaaaaaa

twilit gorge
#

oh you mean that. Even if you try, after each trial you have to wait 5 mins so you have to be very lucky

proud cosmos
#

Yeah

#

Considering my number had >7 digits

#

Very lucky

#

Pretty sure they try to make answers big

sonic silo
proud cosmos
#

You often multiply stuff to make huge numbers

bright spindle
proud cosmos
#

Was a ride that one

halcyon pulsar
#

oh i realised there is a part 2 of day 1

sonic silo
#

oof

dull hill
#

Is day 2 available yet

proud cosmos
#

There's always two parts

#

Yes

dull hill
#

Thanks

halcyon pulsar
#

uh

#

i dont get part 2

pure saddle
#

day 2?

halcyon pulsar
#

part 2 of day 1

pure saddle
#

what the question wants you to do is, say we have input

100
200
300
400
500
600

what it wants us to do is, in simple terms devide this in sections of 3 for each element in input for ex
section 1

100
200
300

section 2

200
300
400

then it wants us to check if section 1 is less than section 2 repeat this for whole input and check how many times section 2 is greater than section 1

past kite
#

i wonder whats the art for this year's aoc

wicked elm
#

day 2 was much easier than day 1 GuraAAA

bright spindle
winged trellis
#

i found day to be more a hint of what to come

steady berry
#

uhh im confused

#

why does the order of mine in the leaderboard drops?

mint hornet
#

Btw how long do y'all take to complete these challenges?

wicked elm
#

day 2 (both) took me around 2min

mint hornet
wary wigeon
#

I hate when my code's logic is correct but something unexpected happens :/

hot gate
#

it looks like I am in 9500th place LOL

#

took me so long on the second day

#

cos i kept messing up my variables

#

im doing my first advent of code this year

bright spindle
steady berry
trim rain
#

why was day2 so much easier then day1

#

also who was pinging me in this channel... they deleted their messages but

pure saddle
trim rain
#

so was fairly simple

#

looking at non-code examples like that only confuses me atleast :x

blissful sorrel
#

I have a quick question regarding the Day 1 challenge. It says "There is no measurement before the first measurement." - does that mean that my first measurement is larger than before and counts into the total amount of larger measurements?

#

Because I'm comparing to 0?

#

Or N/A?

pure saddle
#

it means that you consider the first measurement as starting point, that is it is not compared to anything

#

second measurement compared with first, third with second and so on

earnest forge
#

The first measurement is the baseline

blissful sorrel
#

Thank you

bright spindle
# steady berry i don't know actually

For a given leaderboard, if you are the first person to solve a puzzle, and there are N people in the leaderboard, you get N points. If you are second, you get N - 1 points. Your total score is the sum of points for all the puzzles you solved.

So, let's say there are 100 people in the leaderboard. Say you were the last person to solve a puzzle yesterday, so you got 1 point then, but you were the first today, so you got 100 points, so now you have 101 points.
Say another person was the first to solve the puzzle yesterday, but they haven't solved today's puzzle yet, so they still have only 100 points. This means you're first on the leaderboard with 101, and they are second with 100.
But, now they decide to finally solve today's puzzle, and they are kinda slow but not super slow so they get 50 points. Now they suddenly have 150 points and they are way past you in the ranking.

So, the order of the ranking can change quite a lot even after you solved all your puzzles.

#

But, if you solve all puzzles, and another person has also solved all puzzles, you can at least be sure that that person won't pass you, or that you won't pass them, because there are no more points to be had for either one of you.

hybrid portal
#

wow day 2 was easier then day 1 in my opinion, shame I cant wake up earlier :D

quick glacier
#

Is there a way to curl the input files? It requires login, so presumably I have to get cookies from google or something first. Anyone gotten it to work?

pale heath
#

there should be some docs

sonic silo
#

theres no doc for the API, you can just curl it directly from the endpoint tho

hollow wharf
#

are the sample same for everyone?

pliant comet
#

no, there are different inputs for different people

bright spindle
marsh currentBOT
pliant comet
bright spindle
hollow wharf
#

i literally

#

ignored the bulletpoints

#

πŸ€¦β€β™‚οΈ

#

and tried to script based on the examples

hollow wharf
idle rivet
#

I should really go to bed one hour earlier and wake up one hour earlier so I can do the AOC

outer chasm
idle rivet
#

No, but I want to grind the leaderboards a bit

bright spindle
#

But the quicker you are, the better you place on the leaderboard

outer chasm
#

Cause I missed yesterday

#

Oh ok

idle rivet
#

You can still do it, even the problems from the last years (2015:)

open basin
#

does anyone know the answer to day 2 part 1 ?

outer chasm
#

Sure, I just wanna see how far I can get

open basin
#

please help me

outer chasm
open basin
#

no problem, what was your answer ?

signal grotto
#

Everyone gets a different input, and therefore a different answer.

open basin
#

ok

outer chasm
#

Have you tested your code with the example given?

open basin
#

yeah

#

im failing everytime

wary wigeon
signal grotto
#

Yeah, technically speaking the inputs/answers come from a big pool so they're well-tested and not generated on-the-fly for the more complex problems, but it's enough that two people likely don't have the same input

open basin
#

fine, thank you.

#

i've got it wrong 5 times, how many more times can i try ?

wary wigeon
#

As many as u want ig

idle rivet
#

But you have to wait one minute.

signal grotto
#

Yep, there's no limit but there is a cooldown.

signal grotto
open basin
#

im just a beginner and im trying with lists and strings, so it's terribly long
but still if anyone is ok to check it, i can share it there

past kite
outer chasm
past kite
#

lmaoo

past kite
open basin
#

oh

#

but i wanted some help on aoc though

#

anyway thank you

past kite
#

oh lol i thought you were searching for help about general lists and strings

gusty perch
#

How could I avoid "\n" when using readlines()?

bronze vault
gusty perch
brittle mauve
#

Todays challenge is difficult

#

Is there a max distance increase

torpid karma
#

wdym?

#

If you mean how big the number at the end is, it was technically not specified but it looks like they only gave out single digit numbers excluding 0

brittle mauve
#

Like the number given after the positional change

torpid karma
#

Like after each directional command (forward, down, up) it looks like they use numers 1-9 inclusive.

brittle mauve
#

Im thinking of doing it in an extremely unoptimal but simple to understand way

bronze vault
#

That shouldn't be a factor

#

How come you're asking

brittle mauve
#

||its not like im gonna right 27 while loops for each positional change||

bronze vault
brittle mauve
#

Oop sorry

#

Ill spoiler it just to be sure i spoil it

hollow wharf
devout monolith
#

how should I read from an iso if I wanted to alter .dat files inside of it?

hollow wharf
devout monolith
#

oh mb

trim rain
#

and those are public so i didn't think it was a problem

#

it if is tell me and i'd remove it πŸ™‚

wet yoke
#

I'd consider part 2 of any day spoiler material. Knowing the second half would influence how you code the first half, potentially.

bright spindle
#

You can't access it without solving part 1.

trim rain
arctic fiber
#

can you still join advent of code?

charred plaza
#

Yes!

clear cairn
#

this year looks a lot like last year already - where I'm in nearly-last-place among the people who have completed both parts :p

#

today took me <10 minutes but I guess y'all all woke up early :p

warm berry
#

This is so fun

minor cave
warm berry
#

I have mixed feelings for when it gets difficult lol

hollow wharf
hollow wharf
warm berry
#

Same, knocked them out while catching up on emails. For the PyDis leaderboard I'm 243 currently

clear cairn
#

Is this PyDis or is there another one?

warm berry
#

This is the Python Discord (PyDis)

final eagle
clear cairn
#

oh okay, I figured that's what the abbreviation was but there's no reason there couldn't be "PyDis" server and "Python" server :p

hollow wharf
#

.aoc lb kronifer

hidden copperBOT
#

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

bronze vault
#

it's opposite day, so people at the bottom of the leaderboard are coolest

pure saddle
#

I really need to move to a better timezone hahaha

bronze vault
#

B)

warm berry
# hollow wharf Goddamnit, 269th

nice.

What I like the most about it is that unless you are super serious about "competing" the rest of the event is really whimsical and fun

hollow wharf
#

It is

#

Doesn't release till 11 pm here πŸ˜”

clear cairn
#

lol the leaderboard did its refresh between my part 1 and part 2 XD

minor cave
#

For some extra motivation for folks in non-ideal timezones or those with non-compatible sleep schedules, people who finish every single star by some point in January will get a cute role + role icon in this server for the month of January!

pure saddle
clear cairn
#

This is only my second one - I know I completed 20 before tapping out last year? Just got to the point where I couldn't catch up on weekends if needed

fathom lichen
#

I've been trying to stay up (midnight here) to solve them when they come out. I'm not nearly as fast as some of the others here. They are very impressive.

open magnet
fathom lichen
#

I used SQL for day one. πŸ™‚

#

Well, I used python first, then moved to SQL to see if I could.

sonic silo
#

neat

unique remnant
#

Hi, I just finished day2. Can anyone give me some tips on how to improve the code by any chance?

azure spoke
#

Do we have a private leaderboard?

hollow wharf
#

Yep

#

Use .aoc join

azure spoke
#

.aoc join

fathom lichen
devout spire
#

if id known day 2 was gonna be easy like this i wouldve done it before school

#

so about 7hrs ago 😭

summer kraken
#

I was preparing for tomorrow since the past 2 hours..

stray cedar
#

I'm new on this advent of code, I just completed day 2, the time on the day 3 is the time remaining or the time until the challenge starts?

woven solar
#

time until day3 is posted

stray cedar
#

I see, thanks :)

acoustic sparrow
#

i dont know what advent of code is

#

can i still participate?

sonic silo
#

ye

#

of course

minor hamlet
stray cedar
#

I personally think it's pretty fun since it has a story

minor hamlet
#

Each year is a fun little storyline that goes on with each day

#

quite enjoyable

acoustic sparrow
#

so its not a big deal if i start from day 3?

minor hamlet
#

Nope

#

though you really would want to start at day 1

acoustic sparrow
#

also cool, thank you so muchh

acoustic sparrow
#

just got into uni so yay me

minor hamlet
#

Also you can code the solutions in whatever language you like

#

though here in the python server we ofc only talk about python solutions πŸ™‚

#

I'm pretty sure though some will be more than helpful to talk about other languages

acoustic sparrow
#

ahh ofc, i main python but uni decided to throw c++ on me LMFAO but they have python for data science too

minor cave
acoustic sparrow
#

:O

sonic silo
#

we've been posting solutions in rust and haskell... and i think ruby

craggy wraith
shut birch
#

I may or may not have done day 2 in PowerShell. But don't tell the mods. 🀫

pliant comet
minor cave
pure saddle
#

Golf?

serene gale
#

Doing it in as short a manner as possible

pure saddle
#

Ohhh

minor cave
# pure saddle Golf?

you try to get the solution to be as small as possible. It's usually measured in the size of the file/script in bytes.

#

Others like to try to get it in one line specifically, even if it means a bigger file size

acoustic sparrow
#

do the website have like previous events questions? or something

pure saddle
#

Is there a purpose to it or just for fun?

minor cave
serene gale
#

usually just for fun. you sometimes get yelled at if you try it in a professional setting lolol

minor cave
serene gale
#

"what do you mean you can't read my l33tcode"

#

this is me to myself 6 months later

pure saddle
#

When you don't write a single comment in your code 😡

clear cairn
rancid creek
young willow
#

hi

dusk ibex
rancid creek
#

Yes, you can share solutions. As long as the global leaderboard is full, which happened at about 3 minutes in

crisp coyote
# dusk ibex idk if the creater allows share solutions?

You mean the advent of code creator? I think they're fine with sharing solutions as long as it's after the global leaderboard has filled, they say a bit about it on the website

Can I stream my solution? 
Please try to avoid giving away the solution while people are competing. If a puzzle's global daily leaderboard isn't full yet and you're likely to get points, please wait to stream/post your solution until after that leaderboard is full. If you are unlikely to get points or the daily leaderboard is already full for the puzzle you're working on, streaming is fine.

And we follow that here, no sending solutions (or hints) while the global leaderboard isn't full, but after it's ok as long as you send it in the correct channel

dusk ibex
#

oh ok!

rancid creek
dusk ibex
#

oh alr! sry I had misunderstood some stuff

rancid creek
simple bison
#

I did SQL last year for the first week or so

#

This year I'm doing web assembly

junior hinge
#

wohooo

#

it was a bit later today πŸ˜„ but i finally got time to sit down after work and 1 and half hour workout πŸ˜„

dense lily
#

.aoc join

sleek lark
#

.aoc join

ornate radish
#

.aoc join

ornate zinc
#

I'm working on yesterday's advent calendar problem. So I got my data ready in a clean list. I know I can use enumerate to find the item's index and thus find out if there is a proceeding item. But I want to actually iterate each item in a list and see if there's a proceeding element. I've done several google searches and can't find exactly what I'm looking for. Maybe I'm doing it the harder way but I just want to iterate through my list. Can someone point me the right direction?

junior hinge
#

just check if index is > 1

topaz summit
#

there's a handy premade function called itertools.pairwise

mystic rain
#

πŸ–±οΈ

topaz summit
#

using the index and checking whether its in-bounds is another approach

topaz summit
mint hornet
tidal locust
#

So for the part 1 for today my program calculated as -1989265 the answer and the website said no. why?

#

the depth is -955

#

and forward was 2083

#

oh wait

#

its up is decrees

#

no problem then πŸ™‚

final mica
#

Why did the challenges seem easier today than yesterday?

main gate
final mica
#

Yeah, me too b

hollow wharf
#

I like advent, even though I am doing the tasks after more than half day of the task released I am still in the mix hehe

spring cloak
#

so is advent of code still goin?

final mica
#

Yea

spring cloak
#

Finally this time I'm not too late

indigo yoke
ornate zinc
#

I wrote a program for yesterday's problem. It works perfectly on the sample but when I run it on the long list it tells me my number is off.

#

I wonder if I am one off

tidal locust
#

can I see it?

clear cairn
hollow wharf
#

Finally got a nice dev environment set up :D

#

lsp is working, and I have a nice multi-executable setup with my toolchain so I can run each day independently

sonic silo
#

meanwhile i had to rewrite te bash function for submitting in python

hollow wharf
#

The trick is not doing it in Python :P

sonic silo
#

bash good

hollow wharf
#

bash alright

sonic silo
#

yes, i know that its awful for complicated stuff but, even so, i like it a lot

hollow wharf
#

also I got AoC++ 😁

sonic silo
#

nice

hollow wharf
#

but I'm not really trying to go especially fast so eh

#

who gives a shit

hollow wharf
hollow wharf
daring cave
#

to have to be in

#

that leaderboard

hollow wharf
daring cave
#

oh cool

#

thats very nice

hollow wharf
#

You only need to join the private leaderboard of this server and that is it, and your score will be marked for your self, just interesting to see your self in the mix with all other players πŸ™‚

brittle mauve
#

I love the advent of code

#

One reason why is that if you do every day and since theres 2 parts you basically get 50 programs you can put in your portfolio for a job

hollow wharf
#

Since I only recently joined this server, I only got to know about advent-of-code maybe a week ago, so also enjoying the advent task. Looks interesting and put a lot of thought into making those task. Since I have not participated in previous years of advent-of-code, when I have free time I am doin last year task just because it is fun πŸ™‚

final mica
shadow heron
#

Can someone help me understand the second part of yesterday's challenge it's very confusing

brittle mauve
#

Ok

#

Basically the down and up are now aim instead of depth

hearty harness
#

.aoc join

brittle mauve
#

And the way you find depth is by taking the aim value and multiplying it by the foward value

#

So say your aim is at 4 and you get a foward value of 5, 4*5 is 20 thats your depth

#

And horizontal stays the same

shadow heron
#

where do the aim and forward value come from

sleek cave
#

day 2 seems like a fun puzzle, getting to work :D

#

but first of all, updating my virtual environment to 3.10 interpreter

#

so i can use that sweet pattern matching

brittle mauve
#

oh wait

#

you're asking about yesterdays challenge

humble escarp
#

Curious to know the localisation repartition of this discord server. I was thinking that Europeans had disadvantage for leaderboard because of the timezone but it depends if Americans like to code after 12AM

shadow heron
brittle mauve
#

well basically you add chunks of three values and then you take the next chunk of three values and add them and then you subtract those sums to get the difference

#

did you read the problem

shadow heron
#

so I just take the first three numbers from the input, add them up, then do the same to the second three and subtract?

brittle mauve
#

yeah

strange otter
#

To clarify, add numbers: 1, 2, 3 then 2, 3, 4 etc

brittle mauve
#

yeah

shadow heron
#

tysm

mossy basin
#

Day 2 visualization!

hidden musk
#

:o

loud yew
#

d a a a a n g

hidden musk
#

now part 2 πŸ‘€

mossy basin
#

it would look the same, but the boat would tilt

brittle mauve
#

how did you do that tho

rancid creek
signal grotto
#

Hiya, .aoc lb now handles usernames with spaces nicely :D

sleek cave
narrow crown
#

wha-

#

like how do u do stuff in terminalss like that

#

most i can do is print text

void ocean
#

libraries

velvet stag
mossy basin
narrow crown
#

you wrote thatt?

#

bro how

stiff kraken
#

It’s something that has been well established here already

#

But he does have a set of libraries that do a lot of the heavy lifting meaning for him it’s a lot simpler to make it

loud yew
sinful matrix
hazy pendant
pliant comet
#

huh, i don't understand how 5 minutes made that much of a difference, given that it was 7 hours after the challenge came out... ? pithink

mossy basin
#

probably means a lot of people didn't finish part 2

pliant comet
#

oh, i meant the difference bteween my times for the first day and my times for the second day

shrewd ridge
#

.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.

shrewd ridge
#

.aoc leaderboard

hidden copperBOT
#

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

twin parrot
#

.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.

mossy basin
#

had a bug in my fluid solver for vorticity that was creating line artifacts, i think i fixed it though. downside, is it's less swirly:

final ocean
#

palindrome date uwu

narrow crown
#

salt-die more like salt-god

wet yoke
#

.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.

summer kraken
#

the parts

mossy basin
#

why do people do anything

fathom lichen
#

Because it's fun?

summer kraken
summer kraken
mossy basin
#

yes, you get bonus stars

sharp panther
mossy basin
sharp panther
#

ahh, okay, that makes sense

summer kraken
#

How do we get helpers role? not an aoc question

mossy basin
#

you get bonus karma though

sharp panther
#

well regardless, you get +150 internet points from me

hollow wharf
mossy basin
#

it should have christmas lights

#

if we're following the story

hollow wharf
#

Yellow submarine with Christmas lights

mossy basin
#

i'm looking for an animated sub somewhere though for future visuals

hazy pendant
#

the LEDS caught water

hollow wharf
hazy pendant
#

isn't salt and minerals the one who cause havoc to electronics not water

hollow wharf
#

Uhm pithink

#

Yeah basically pure water can't pass current iirc

final eagle
#

aight i shall take my time for today's

steady berry
pure saddle
#

one up, visualization on paper lemon_fingerguns_shades

steady berry
#

its just a few thousands of number

#

wouldnt be a hard job

mossy basin
#

if anyone draws me a submarine with christmas lights, i'll use it for future visuals

final eagle
#

what art style πŸ‘€

#

will pixel art be fine

sonic silo
#

ok so

#

this 3rd day

#

i will predict its a parsing puzzle

mossy basin
#

any art style, but the resolution will be adjusted to work in a console

steady berry
sonic silo
#

parsing as in a la year 2020 day 4

#

for example

steady berry
#

like it is in water and you are giving it electricity

mossy basin
#

no, the magic of christmas protects the submarine

final eagle
#

e.e i havnt touched any of the past year aoc stuff

steady berry
mossy basin
#

i asked a physicist, so we know it's true

final eagle
#

sick

sonic silo
#

underwater treeS?

pure saddle
#

damn ai is getting smart

final eagle
#

the art style is pretty cool too

mint hornet
steady berry
#

is the whole event about submarines btw

signal grotto
final eagle
#

i would like to say it looks surrealist but it isnt

mint hornet
#

We'll see hows day 3 in a few mins

steady berry
#

finally i can have a good timezone

final eagle
mint hornet
#

which is why I'll never make it to the leaderboards

#

sadge.

steady berry
final eagle
#

day 23: make elon musk's rocket into submarines

steady berry
mint hornet
#

.aoc countdown

hidden copperBOT
#

Day 3 starts <t:1638507600:R>.

somber crow
#

If a rocket is submarine that usually means it crashed

final eagle
#

wait thats illegal

steady berry
pure saddle
#

what if a submarine becomes a rocket

final eagle
#

btw talking about subwarines @mossy basin theres this super mario subwarine art

mint hornet
final eagle
#
Super Mario Wiki

The Subwarine is a submarine utilized by Wario in Wario Land: Shake It! In underwater levels, Wario himself is not controlled, but the Subwarine is used instead. It can shoot missiles, which is done by pressing the 1 button - however, only 3 can be on-screen at a time. To move up and down, the Wii Remote must be titled diagonally - bottom-right ...

#

do submarines actually use spinny fans to propel forward

mossy basin
#

yes

final eagle
#

aw thats kinda cute

mossy basin
#

even the nuclear ones, as far as i know

potent pumice
#

@mossy basin what's the helper you made?

potent pumice
#

ah i saw a rewritten version

mossy basin
#

it's not a package, just a module included in my 2021 repo

#

yeah, starwort has a version that's a package

potent pumice
steady berry
#

got 10 mins to set up aoc-helper

potent pumice
mossy basin
#

yep

#

i don't maintain it though, but i assume it's still in good working order

final eagle
potent pumice
#

!pip aoc-helper

marsh currentBOT
final eagle
#

do i just run setup.py

steady berry
mossy basin
#

for the one in my aoc repo, setup.py will create all the templated days and create the input and submission files

#

it does nothing if those files already exist

final eagle
#

ahhh, so i throw my token into a .token file?

mossy basin
#

yeah

steady berry
#

aaa where is that file

potent pumice
#

like, link on the website

steady berry
#

grab the cookie

signal grotto
#

You have to inspect and look for the cookie/header

steady berry
#

with extensions

mossy basin
signal grotto
#

Nope

#

The dim section at the bottom is just for confirming to an AoC admin that you own the account if needed

steady berry
#

aaa 5 mins so intense

crystal shard
#

6 mins bois, lets do this

signal grotto
#

.aoc countdown

hidden copperBOT
#

Day 3 starts <t:1638507600:R>.

final eagle
#

the token is my Cookie header right

woven oriole
#

what do you want the token for?

somber crow
#

5 mins

late frigate
#

5 min pog

woven oriole
#

vsc at the last moment

hollow wharf
#

aoc data package is there right which fetches input data automatically

potent pumice
#

well that lasted an entire single day

crystal shard
potent pumice
unique osprey
woven oriole
#

lol

mossy basin
crystal shard
woven oriole
#

it working

hoary canyon
#

.aoc coutdonw

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*
steady berry
hoary canyon
#

.aoc countdown

hidden copperBOT
#

Day 3 starts <t:1638507600:R>.

steady berry
#

lemme drink some water

idle rivet
#

Does aoc_helper work instantly?

woven oriole
#

i got one problem in my text file , it leaves one blank line after dumping the text smh

sonic silo
#

bmnes

steady berry
#

submarine goes brrr

mossy basin
woven oriole
#

just use the session cookie with requests to fetch for the moment

idle rivet
#

I did this yesterday. I mean, will the fetching work right after the new problem starts or will it need 1 or 2 minutes?

potent pumice
#

i've skipped day 1 and 2 for right now

#

just doing day 3

earnest forge
#

Good luck everyone

mossy basin
idle rivet
#

Ok, thanks!

signal grotto
#

Hey good luck y'all!

woven sable
#

GL everyone!

wispy ice
#

t -60, i have run out of unique launch callouts

steady berry
#

1 min countdown aaa

#

.aoc countdown

hidden copperBOT
#

Day 3 starts <t:1638507600:R>.

steady berry
#

aaa

prisma sundial
#

gl

mint hornet
#

good luck getting into lb, everyone!

tulip elbow
#

hf

potent pumice
#

@mossy basin your tool is great

idle rivet
#

Oh it even says Waiting for puzzle unlock!

potent pumice
woven sable
#

30 seconds left!

pure saddle
#

30 seconds

woven oriole
#

.aoc countdown

hidden copperBOT
#

Day 3 starts <t:1638507600:R>.

steady berry
#

15

woven sable
#

10 seconds!

woven oriole
#

10

steady berry
#

9

idle rivet
#

gl!

steady berry
#

5

fathom lichen
#

dos attack in 5 second

final eagle
#

aight imma do this slowly this time

#

have fun

hidden copperBOT
potent pumice
#

wtf i have a .token file

deep ferry
prisma sundial
#

wow i actually did really well this time

median juniper
#

.aoc leave

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*
prisma sundial
#

which is surprising considering how much i was panicking at that wall of text

median juniper
#

.aoc unsubcribe

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*
median juniper
#

.aoc unsubscribe

hidden copperBOT
#

Okay! You have been unsubscribed from notifications about new Advent of Code tasks.

prisma sundial
#

rank 45 for part 1, rank 13 for part 2 today πŸ™‚

hazy pendant
#

ADVENT OF CODE PROTIP:
||Least is the opposite of most||

brazen cape
#

does day 2 have two parts?

hazy pendant
#

yup

potent pumice
#

.aoc lb

hidden copperBOT
#

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

hazy pendant
#

every day has 2 parts

dim oracle
#

this is hard

narrow crown
#

gah i forgot about this ;-;

potent pumice
#

why am i having such a problem with this

#

my code literally works this is not a spoiler because this is the input data's result, which is shown on the page itself

signal grotto
#

i have part 1 done but 2 is... what

potent pumice
#

oh i can't read

narrow crown
#

bruhhh forgot to convert from binary to decimal

steady berry
#

yay part 1 one

earnest forge
steady berry
#

yay i dont want to do part 2

#

ima eat

narrow crown
#

o2 generators and co2 wtf

potent pumice
pine tiger
#

woooooo 22nd place for pt 1

#

malded hard on p2 tho

#

wwwhat the hell how am i in second

narrow crown
#

bro white on black text is painnnn

earnest forge
#

Use Dark Reader :)

#

(You can force things into light mode as well)

wary wigeon
narrow crown
#

my brain isnt comprehending what this thing is saying

#

part 2

potent pumice
#

can someone gimme a tldr on all of the text

narrow crown
#

literally i am rereading the same thing 20 times

earnest forge
#

Filter by most/least common first digit. Then filter those by their new most/least common second digit. Etc. etc.

prisma sundial
#

its actually pretty insane theres a 4-10 minute spread on day 3 for pt2

pine tiger
potent pumice
#

πŸ˜”

stable heron
#

NOOO

#

I STARTED SO LATE

#

😭

unique osprey
#

.aoc lb

hidden copperBOT
#

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

modern harness
signal grotto
#

PSA: leaderboard command isn't updated for like 5 more minutes

signal grotto
potent pumice
#

πŸ‘€ i don't see salt on that

narrow crown
#

hes too good for it

ashen lichen
#

I’ll have to play catch-up when I get home

#

I haven’t done any yet

narrow crown
#

hmm is it day for you

earnest forge
signal grotto
ashen lichen
#

Yes, I’ve just been away for a bit over a week

sinful pawn
#

I did part of the first... and then gave up

narrow crown
#

ahh

ashen lichen
#

I’ll be home in two days though

narrow crown
#

to read mostly

sinful pawn
#

simply because I didn't feel like noticing how many people are better than me lemon_angrysad

narrow crown
#

havent trtied it yet

sinful pawn
#

I know I could solve it... it's just... sheesh, I get it, y'all are pros

narrow crown
#

i think i understsand one secntence of part 2!!!

sinful pawn
#

idk, I don't like reading that 2 minutes is apparently ages for some people

wary wigeon
#

Ima dewit in rust

wary wigeon
dim oracle
#

question

#

when it says first bit

ripe ingot
#

the first one was okay but second seems to be a killer

dim oracle
#

do we start from the front of the binary number or the back

wary wigeon
dim oracle
#

bc binary goes 8,4,2,1

#

so which is it?

wary wigeon
#

First bit of what?

ripe ingot
sinful pawn
wary wigeon
#

Lol

tight dune
#

ayy im done

wary wigeon
#

Both?

humble copper
#

finished both parts of day 3

#

second part i made a stupid mistake and it cost me like 7 minutes lmao

potent pumice
#

@candid berry @signal grotto sir-lancebot#966

tight dune
#

i spent so much tim

dusk steppe
#

Using the advent of code to learn python!

wispy ice
#

oh god whats the second part

signal grotto
potent pumice
#

cool

kindred sundial
#

.aoc lb

hidden copperBOT
#

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

kindred sundial
#

oops

unique osprey
hearty shuttle
unique osprey
#

I figured understanding the problem statement would be cool here πŸ™‚ I'll keep it over there though

signal grotto
stable heron
#

GAH

#

I STARTED LIKE 20 MINUTES LATE

#

😭

signal grotto
signal grotto
stable heron
#

i forgot it even started lmaoo

#

has the leaderboard updated?

pure saddle
#

well part 2

signal grotto
pure saddle
#

i dont like it

idle rivet
#

Well I'm bad.

signal grotto
idle rivet
#

But just got both parts.

#

As last person here, probably, but it was fun anyway

potent pumice
#

@signal grotto I have a solution that would keep calls to aoc down

pure saddle
#

i spent 15 mins coming up with this really verbose recursive function with tons of temporary variables, just for it to break in main input

stable heron
#

oh well

signal grotto
stable heron
#

for now ive dropped one rank

potent pumice
signal grotto
#

OOH buttons ok ok

potent pumice
#

yeah πŸ™‚

mint hornet
#

Just completed day 3 part 1, there is so much to read in part 2. yert

fathom lichen
#

I'm still stuck on part two. It looks like it should be working but it's not...

#

fun stuff

hollow wharf
#

wow day 3 part 2 seems hard

narrow crown
#

i give up im gonna have to do this tomorrow

#

i have math hw anyways

hollow wharf
#

.aoc

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*
hollow wharf
#

.aoc leaderboard

hidden copperBOT
#

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

jade root
#

yay i somehow got up from 68 to 58

hidden copperBOT
#

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

queen python
#

day 3 part 2 hmm...

pure saddle
#

i hate part 2

#

im seeing other solutions and all of them are so easy to understand while i have a file of 120 lines of just 1 single functions

jade atlas
queen python
queen python
jade root
dim oracle
#

i cant do it

#

it doesnt even work on the test sample

pure saddle
jade atlas
fathom lichen
#

you can do it.

woven oriole
#

part 2 lmfao

#

time to golf it now

#

my code looks horrible

#

indices everywhere

steady berry
#

😫

woven oriole
#

i hate using more lines 😩

dim oracle
#

if theres more than 500 1s then 1 is the majority, what if they are equal, what should be the majority

#

i think it would be 0 from the instructions

#

but im not sute

woven oriole
#

for oxygen , 1 will be taken for co2 0

#

in case of equality

#

the json provided here for private leader board is refreshed right

velvet stag
#

pretty much

#

it's rigged so you don;t get several survivors at the end

#

oh i get it, the rigging is just having different numbers

#

omg

woven oriole
#

:brain_explode:

fathom lichen
#

finally... 125 minutes.. got both.

woven oriole
#

gg

mystic plover
#

bruh i got the same answer for both parts

woven oriole
#

ifkr

#

i did the same mistake