#advent-of-code

1 messages ยท Page 9 of 1

flat sequoia
#

yikes

livid gull
#

directions = [(1, 0), (0, -11), (-1, 0), (0, -1)] firstly

woven solar
#

AAAAAA fuck my input is a DIFFERENT ||unfolding of the cube|| than the TEST

livid gull
#

directions = [(1, 0), (0, -1), (-1, 0), (0, 1)] secondly

woven solar
#

I got the part2 test to work before noticing it

woven solar
flat sequoia
#

LMAO

#

i'm so sorry

pine tiger
#

lol

#

yall are still trying?

woven solar
#

actually, I don't get my actual input's folding at all?..

hexed axle
earnest forge
#

1h26, 189th

#

kekw

torn thorn
#

ok my impl failed

#

fuck

magic oxide
#

not looking forward to having to do this tonight

#

seems like a pain

modern harness
#

I painstakingly coded my ||cube|| by hand, but the ||manual side translations only work for my specific input ||, so I can't even test it out on the example

earnest forge
#

I ended up just hardcoding for the example too lol

compact wasp
#

i should've just tried the dumb hardcode approach

#

instead i used the ||complex number|| hardcode approach

#

which ended up being too convoluted

modern harness
earnest forge
#

That's why I did it lol

modern harness
#

Turns out I had like 10 more mistakes to fix. I was a bit shocked at the number of mistakes in such a small amount of code. Finally got the example working... and the input fails still

compact wasp
#

L

magic oxide
#

me everyday: I should really bookmark the re documentation since I use it so often
also me everyday: wait it's already bookmarked

lost owl
#

Can anyone here give me tips to read problem statements fast and understand well?

polar sand
#

How long after AoC ends will the spoiler threads still be visible?

minor cave
#

They'll be around for the entire length of January

pine tiger
#

could someone tell me plese

#

how to uh

#

implement a cube

magic oxide
past comet
pine tiger
#

this is day 22

modern harness
# lost owl Can anyone here give me tips to read problem statements fast and understand well...

I go fast, but that just comes with missing things sometimes that I'll revisit if and when I start getting wrong submissions. Right off the bat, I always completely skip the first 2 or 3 paragraphs which is usually just flavor. Then I try to quickly read everything between there and the first example skipping parts of sentences as I go. Then I really slow down as I follow the initial step of the example which really shows me if I skipped too much. If I'm confused, I go back and hunt for the parts I missed during my skimming that caused my confusion. I try to avoid reading as much of the rest of the example as I feel I can get away with, but sometimes need to see at least a few other cases, depending on the problem.

placid lake
#

damn z3 matrix support is non existant

compact wasp
#

learn to skim

#

that's really all there is to it

#

as avon said, first few paragraphs are usually just flavor

#

i think it helps to read through the whole example

#

but he's ranked higher than me so take that with a grain of salt

placid lake
#

okay i give up ||constraint solving|| with ||cvxpy|| for day 19

mossy basin
placid lake
#

my attempt is already far into the void ๐Ÿ˜„

#

i have a different solution now

torn thorn
#

don't feel like doing 22 today ๐Ÿ’€

#

maybe i'll fix it on the 24th

pine tiger
#

hey

#

could someone share

#

uh

#

their day 22 solution

#

for debugging purposes?

iron shadow
#

there's a post for each day, where many solutions are posted

pine tiger
#

in day 22, i only see people malding lol

#

i guess i'll go dumpster diving in the reddit megathread

iron shadow
#

I scrolled up ~3 pages and saw 2 links to solutions

#

there's likely even more if you keep scrolling

pine tiger
#

well i found one regardless

torn thorn
pine tiger
#

i believe in you

#

oh no.

magic oxide
#

I haven't looked at day 22 spoilers yet

#

I wanna actually try today myself

#

seems fun

torn thorn
magic oxide
#

it was kinda fun

#

nice cube symmetries

torn thorn
#

21th now

#

๐Ÿ˜”

magic oxide
#

I'm somehow 39th despite being like a full day late

modern terrace
magic oxide
#

combination of all I think

#

just from &aoc lb

modern terrace
#

ok yeah i'm pretty sure only a few of us are doing anything past day 20 now

magic oxide
#

today is 23rd

#

and last year's 23rd was suffering incarnate

#

so

#

hopefully I get through today

#

I really wanna actually finish aoc on Christmas this year

shut trellisBOT
#
Day   โญ  โญโญ |   %โญ    %โญโญ
================================
 1)  495   488 |  48.20%  47.52%
 2)  457   445 |  44.50%  43.33%
 3)  424   416 |  41.29%  40.51%
 4)  399   396 |  38.85%  38.56%
 5)  363   357 |  35.35%  34.76%
 6)  360   359 |  35.05%  34.96%
 7)  294   287 |  28.63%  27.95%
 8)  289   273 |  28.14%  26.58%
 9)  250   230 |  24.34%  22.40%
10)  254   241 |  24.73%  23.47%
11)  226   218 |  22.01%  21.23%
12)  188   186 |  18.31%  18.11%
13)  180   179 |  17.53%  17.43%
14)  167   165 |  16.26%  16.07%
15)  150   129 |  14.61%  12.56%
16)  103    86 |  10.03%   8.37%
17)  102    85 |   9.93%   8.28%
18)  117    99 |  11.39%   9.64%
19)   67    63 |   6.52%   6.13%
20)   81    80 |   7.89%   7.79%
21)   93    84 |   9.06%   8.18%
22)   68    50 |   6.62%   4.87%
23)    0     0 |   0.00%   0.00%
24)    0     0 |   0.00%   0.00%
25)    0     0 |   0.00%   0.00%

The leaderboard is refreshed every 30 minutes.
Last Updated: <t:1671768895:t>

Number of Participants

1027

Full Leaderboard
covert arrow
#

50 people have done day 22 part 2 so far

#

So if you've done all the puzzles so far you're pretty much guaranteed to be top 50

magic oxide
#

damn

#

huge drop off

torn thorn
#

&aoc c

shut trellisBOT
#

Day 23 starts <t:1671771600:R>.

torn thorn
#

40 SECONDS

#

HYPE WHERE

#

@magic oxide get ova here

magic oxide
#

a

earnest forge
#

GLHF

magic oxide
#

glhf

shut trellisBOT
torn thorn
#

ewwww

magic oxide
#

another day of not being able to do it since laptop has no battery

torn thorn
#

another grid problem

magic oxide
#

there isn't enough time to let the elves figure out where to plant the seedlings, which is why you're going to spend an hour coding up a way to help them figure it out

placid lake
#

it's time to ||convolve||

#

but like tomorrow because i'm too tired for this

#

i did the days 18, 19, 20, 21 today

magic oxide
#

||what even is convolution||

torn thorn
#

๐Ÿคทโ€โ™‚๏ธ

modern terrace
#

does an elf just stop once it reaches the edge of the input

magic oxide
#

no

#

it says more empty ground continues past the edges

magic oxide
#

elf doesn't have anything surrounding it

#

so it doesn't move

modern terrace
magic oxide
#

lmao

#

read the prompt lmao

modern terrace
#

didn't remember that

#

71x71 square?

devout tusk
earnest forge
#

66 / 61 ๐ŸŽ‰

#

Double LB

torn thorn
#

why do these elves move south?

earnest forge
#

OBOE cost me 13 places ๐Ÿ˜ž

torn thorn
#

||more specifically why does this one move south?||

earnest forge
torn thorn
#

EH

#

oh fuck

#

ty

magic oxide
#

not really a spoiler

#

it's in the brief

earnest forge
#

Apparently even the part one brief is considered a spoiler here

#

ยฏ_(ใƒ„)_/ยฏ

magic oxide
#

huh

earnest forge
#

Lb is full

compact wasp
#

108/99

livid gull
#

ffs i was doing p2 as p1

compact wasp
#

i was slow today

minor cave
livid gull
#

now i have to redo

compact wasp
#

also rip my 69 global score ๐Ÿ˜ฆ

#

now i have 71

earnest forge
#

Lol

magic oxide
#

not nice

#

at least today seems relatively simple

compact wasp
#

yeah

#

today was pretty easy

magic oxide
#

that's good

torn thorn
#

i am throwing

magic oxide
#

don't have much time today

#

lmao

pine tiger
#

alright

#

that wasn't so bad

compact wasp
#

yep

#

first few days really screwing me over

torn thorn
#

my solution not working ๐Ÿ˜”

#

aaa

#

how am i throwing this badly

earnest forge
#

Hey I've got 321 global points neat

compact wasp
#

nice

earnest forge
#

Ayo that's a little sus

compact wasp
#

๐Ÿ‘€

earnest forge
#

(as is this)

compact wasp
#

lol

#

smh daniel gu

earnest forge
#

Didn't realise LB filled up that quickly (day 6)

#

Ok wow yeah 2m30

compact wasp
#

so many people with sus times

#

that the 119 became a 121

#

within 8 seconds

earnest forge
#

11th place p1, 9th place p2, worth 119 and 121 points respectively

#

That's what those numbers are FYI

compact wasp
#

oh

#

oh

earnest forge
#

Time/rank/points/delta/time/rank/points/total

compact wasp
#

i'm dumb

earnest forge
#

Doubles for day 2

modern terrace
#

why is mine not woring

earnest forge
#

Smh at least try to make it look like you're solving legit

earnest forge
#

Which part?

modern terrace
modern terrace
earnest forge
#

(Sedsarq has a very low delta for every day I've checked so far...)

#

Oh actually seems like 7 and up are fine on that board

flat sequoia
#

i mean they're prob just cheating no?

earnest forge
#

(yes)

magic oxide
#

most definitely

flat sequoia
#

even if it's just a number bump i dont think you can read it, change it, run it, and submit it that fast

magic oxide
#

I don't think people can read it that fast

flat sequoia
#

not to mention get over the excitement of having completed the first part

#

and start doing the 2nd part...

#

that's like at least a few seconds

compact wasp
#

only on the harder days though

earnest forge
#

Even if my part 2 solutions ran immediately, and never had any bugs, my delta would probably still be at least 20 seconds or so

compact wasp
#

days like day 1 or day 23 don't excite me ๐Ÿ˜”

flat sequoia
#

yeah i mean well like

#

you still have to read the text saying you got it

compact wasp
#

yeah

flat sequoia
#

and then click the link to go back

compact wasp
#

true

flat sequoia
#

i mean it's just not possible

earnest forge
flat sequoia
#

lmao

#

no shot anyone's actually doing that

earnest forge
#

(I mean I end up with 3 AoC tabs every day but who cares)

magic oxide
#

i have the one tab and sometimes if I forget to close my input tab

#

and then like re documentation

#

itertools sometimes

#

3 different githubs

marsh currentBOT
#

aoc_helper/interface.py line 135

_open_page(URL.format(day=day, year=year))```
`aoc_helper/interface.py` line 244
```py
_open_page(resp.url)  # open part 2 in the user's browser```
flat sequoia
#

i usually only have the one tab open and then if i get anxious about not being able to solve it i open the leaderboard lmao

#

oh my god

#

i still think autosubmit is overengineered

magic oxide
#

nah

earnest forge
#

ยฏ_(ใƒ„)_/ยฏ

#

It's comfortable imo

flat sequoia
#

i mean is it that hard to copy and paste

#

and like there are a lot of benefits

magic oxide
#

probably takes a few seconds

flat sequoia
#

because there are many days where my answer is 1 less than the actual answer

#

but i can just look at it and add 1 after i copy paste

#

instead of having to change and run my code again

earnest forge
#

(this also adds it to the solution cache)

#

(marked as spoiler)

flat sequoia
#

oh my god

#

there's a cli too

#

honestly i change my mind that's kinda cool

earnest forge
#

Also lets you get the input via the CLI

magic oxide
#

huh cool it has colors

earnest forge
flat sequoia
#

yeah the colors were what got me

compact wasp
earnest forge
flat sequoia
#

yes

earnest forge
#

(or just install rich separately)

magic oxide
flat sequoia
#

i have auto fetch input though

#

LMAO

compact wasp
#

lmao

flat sequoia
#

i literally folded out a piece of cube on paper

magic oxide
#

I didn't have the luxury of paper

compact wasp
#

i just did it in my head

flat sequoia
#

gotta love this

magic oxide
#

I just had to imagine it

compact wasp
flat sequoia
#

i did the first half in my head

magic oxide
#

ok mine is cleaner than that

flat sequoia
#

LMAO

livid gull
flat sequoia
#

i mean i could have done it in my head

#

it's just that

#

i realized that

#

if i fuck up even a tiny bit

#

it's going to be a pain to debug

#

so i decided to play it safe

compact wasp
#

ngl i should've just used the dumb approach of typing out everything

#

instead of working out the multiplications to properly transform the coords

flat sequoia
#

i started writing out a smarter approach and then i realized that coord bashing would guaranteed work in a given time

magic oxide
#

I tried to unhardcode my thing earlier for golf

#

and then after an hour of doing it

#

I realized hardcoding it was half the length

#

so I just scrapped it

compact wasp
#

i thought the smarter approach would actually be faster to write and then i realized i'm not smart enough to pull that off

#

but at that point i was afflicted by the sunk cost fallacy

magic oxide
#

I drew up a few tables for the cube portals and I could see all the symmetry but they would've all been to annoying to actually implement

flat sequoia
#

lmao

earnest forge
compact wasp
#

sold

flat sequoia
#

oh so if it passes the sample case then it'll auto submit?

#

does it pull the sample input and answer automatically too?

#

wonder if there's a consistent pattern you can rely on for that

earnest forge
#

If it doesn't pass the test case (either pulled from the page or passed manually), it raises an assertion error and tells you both the right answer and the wrong answer you gave yeah

flat sequoia
#

isn't it just the first code block after "For example"

earnest forge
#

It's essentially just a heuristic for pulling out the right code tag

flat sequoia
#

and then the answer is a bold code block

earnest forge
flat sequoia
#

it does

#

bold codeblock

earnest forge
#

Wait hold on yeah wtf

flat sequoia
#

y'all

earnest forge
#

It's pulling the wrong input data

#

Uhhh what

compact wasp
#

๐Ÿ’€

flat sequoia
#

interesting

#

what's it pulling

magic oxide
#

lmao

earnest forge
#

The 'smaller example'

#

(I had to override the test data)

flat sequoia
#

it prob pulls example

#

and the last one

#

or "For example," instead of "For example"

earnest forge
#

Yeah it's pulling any input preceded with for example, consider, or given as long as there's a :, and then choosing the last eligible codeblock

#

Which I think works for more puzzles

#

(generally the toy input is introduced first IIRC)

flat sequoia
#

aoc day 25: given an aoc problem, extract the sample input

earnest forge
#

kekw

#

maybe we can ask gpt

magic oxide
earnest forge
#

Lmao

#

Just use bs4 smh

#

(or tl if you're using Rust)

magic oxide
#

I've only ever made one program that interacts with websites and I used selenium

#

so that's all I really know

earnest forge
#

For Python: basically just use requests and bs4

#

(unless you're using asyncio, then use aiohttp)

compact wasp
#

selenium is useful

#

i automated conjuguemos with selenium

magic oxide
#

yeah I automated education perfect with it

#

very useful if you don't wanna do your homework

earnest forge
#

I get why selenium could be useful but honestly I haven't found anything I wouldn't rather just use requests + bs4 or like autohotkey for lol

magic oxide
#

how do you do user input stuff with requests?

earnest forge
#

Also in my experience selenium is super resource-intensive for no reason

earnest forge
marsh currentBOT
#

aoc_helper/interface.py lines 206 to 211

resp = requests.post(
    url=URL.format(day=day, year=year) + "/answer",
    cookies=get_cookie(),
    data={"level": part_, "answer": answer_},
    headers=HEADERS,
)```
magic oxide
#

I'll check it out next time I need a web thing

compact wasp
earnest forge
#

(I've never used applescript)

devout tusk
#

ha anyone worked with pyinstaller before? Needed some help with it :/

earnest forge
#

I have

#

It was very meh

devout tusk
lunar jackal
#

i love reading
"finally at the end of the round the first direction the elves considered is moved to the end of the list of directions"

#

I totally skipped that sentence

#

and I was wondering why my stuff wasn't working

modern terrace
#

this is the first day i actually finished something by myself since somewhere in the early day 10s'

#

cool stuff

compact wasp
#

wtf

modern terrace
#

isn't day 23 like ||conway's game of life||

compact wasp
#

a little

#

but i think it's possible to show that it always halts

magic oxide
#

yeah

modern terrace
#

anyways i'm gonna go work on my WIP programming language so i'll join the golf later

magic oxide
#

we don't even have a golf for day 22 yet lmao

compact wasp
#

lmao

magic oxide
#

mine's a WIP estimated 1k+ c chonk golf so

#

someone else do it

compact wasp
#

maybe after i settle down for winter break

magic oxide
#

i feel like i've written this exact statement so many times this year

#

||```py
{x+y*1j: v for x, row in enumerate(file.read().splitlines()) for y, v in enumerate(row)}

compact wasp
#

add that to one of the aoc libraries

earnest forge
compact wasp
#

so it's different

earnest forge
#

Though tbh I've already been considering adding Grid -> SparseGrid conversions

magic oxide
#

actually i'm gonna do something different today

#

||```py
{x+y*1j for x, row in enumerate(file.read().splitlines()) for y, v in enumerate(row) if v == '#'}

#

mix it up a bit

compact wasp
#

SparseGrid.from_string(predicate)

#

gotta make it a thing

earnest forge
#

(sparsegrid also works on integer pairs, but maybe I'll figure out doing complex)

compact wasp
#

complex is superior bc of easy arithmetic

magic oxide
#

agreed

#

tho it'd be useful to have a custom class like ComplexCoord or something that allows splatting and integer coordinates

covert arrow
#

Can't it just be Coordinate

magic oxide
#

good point

magic oxide
#

i find myself doing like
||```py
reals, imags = {z.real for z in s}, {z.imag for z in s}
row_min, row_max, col_min, col_max = min(reals), max(reals), min(imags), max(imags)

a lot
magic oxide
#

oh cool

#

i'll check out aoc_helper when i eventually go back to get the stars from previous years

left yew
#

what's up with complex numbers and coords

magic oxide
#

there's no coord/point class in python by default

#

but there is the complex class

#

and complex numbers are isomorphic to R2, which just means that complex numbers can be treated as a point (x,y), which is what a coordinate is

#

and complex() comes equipped with addition, subtraction and rotation

#

so it's useful to just use complex numbers as coordinates

left yew
#

ah, So it saves time from doing operations on tuple

magic oxide
#

yes

restive imp
#

Thats new. My unittest for the example is wrong, but I get the right answer for the input

untold oar
#

Is suittest do the pytest.mark?

#

or better to use both together?

flat sequoia
#

I don't really like using complex numbers

#

makes my code weird

#

also with tuples you can do things like xs, ys = zip(*elves)

#

and you don't need to worry about converting everything to int when you put it in a range

odd wigeon
#

Has anyone tried just playing the high-low game with aoc?

#

Instead of actually solving the puzzle, just guess.

past comet
past comet
#

day 19 is giving me strong factorio vibes

pine tiger
torn thorn
#

probably...?

lethal jungle
#

hi

#

yo

zinc kindle
#

Just completed day20. I'd made an assumption that turned out to be incorrect ||turns out input can have duplicates||. After finding that out via google, was smooth sailing.

torn thorn
#

interesting how people assume duplicates just never exist

#

i just always approach with the thought that if there's a possibility duplicates then there probably will be unless stated in the problem otherwise

#

there's like at least 3 days where if you assumed no duplicates you would've been screwed hm

covert arrow
#

yeah a lot of people fell for that in ||day 7||

torn thorn
#

ok but like tbf

#

day 7

#

was like

#

why aren't you storing in a ||tree like format or like the real path||

covert arrow
#

idk, people are just lazy

torn thorn
#

&aoc c

shut trellisBOT
#

Day 24 starts <t:1671858000:R>.

torn thorn
#

1 minute

#

HYPEEE

earnest forge
#

GLHF everyone

magic oxide
#

glhf

torn thorn
#

2 more days

covert arrow
#

glhf

compact wasp
#

gonna choke

torn thorn
#

omg there's 5 ppl

#

WHOOO

earnest forge
magic oxide
#

I'm still outside lmao

torn thorn
#

now where's dennis

magic oxide
#

not doing it yet

torn thorn
#

๐Ÿ˜”

compact wasp
shut trellisBOT
torn thorn
#

what the fuck

#

is this atrocity

devout tusk
#

shitty question again

#

i ain't doing it. good night

covert arrow
#

wtf is this

torn thorn
#

bro

compact wasp
#

gn

torn thorn
#

nah what the fuck eric

hollow wharf
#

bruh

magic oxide
#

bruh

compact wasp
#

this is ||bfs with pruning||

#

not too hard

#

i just don't wanna spend the time rn

torn thorn
hollow wharf
#

just came here to get better at python and the question was this ๐Ÿ˜‚

torn thorn
#

||what would you prune ?~?||

lunar jackal
#

|| bfs || again, that's like 5 days this month

covert arrow
compact wasp
magic oxide
#

so uh

hollow wharf
#

wtf with all the spoilers

magic oxide
#

||what happens if you get crushed by a blizzard||

covert arrow
#

||that's what you prune||

compact wasp
torn thorn
#

you die.

hollow wharf
#

you die.

devout tusk
magic oxide
#

lmao

lunar jackal
#

ok I think advent of code will make me remember || bfs || for a long time

compact wasp
#

||keep track of minimum to reach end so far and prune whatever exceeds that||

#

this would probably be better to do with ||dfs||

stable shale
#

Not again. I go sleep

torn thorn
#

yeah i assume you'd want a ||dfs||

compact wasp
#

gonna do this after i wake up

lunar jackal
#

|| I mean it won't matter too much ||

compact wasp
#

gn y'all

stable shale
#

gn

compact wasp
stable shale
#

And good luck to anyone doing it

magic oxide
compact wasp
#

so it's not a possibility you need to simulate

magic oxide
#

oh

#

so you die

covert arrow
#

yes

covert arrow
magic oxide
#

wow

woven solar
#

it's okay, you only die a little. it's like Elitzurโ€“Vaidman bomb testing.

topaz remnant
#

how do I stop advent of code pings

magic oxide
#

||just send elves into the blizzard until one surviving one comes out the other side||

#

wait

lunar jackal
#

||yeah why not just randomly simulate 1 million possibilities||

devout tusk
lunar jackal
#

I can't be bothered to code this

magic oxide
#

ok even the parser is annoying

modern terrace
#

yeah i can't do this i've never done pathfinding in my life before

devout tusk
topaz remnant
covert arrow
#

1pm here

devout tusk
feral hazel
#

can't work on aoc for another couple days
it was fun starting at the release and golfing with all of you

covert arrow
#

we've had enough pathfinding for this year

magic oxide
#

nah day 25 is usually really easy

#

dw

covert arrow
modern terrace
#

i have all the time to do AoC if it were not for the fact i can't pathfind and figure out DP

woven solar
#

okay, at least the blizzard simulation has a cool ||convolution|| solution, yay

devout tusk
woven solar
pine tiger
#

i still got some fight in me!

hexed axle
earnest forge
#

Accidental name shadowing is the bane of my existence

pine tiger
#

what name did you shadow

torn thorn
pine tiger
#

what the complex numbers for

earnest forge
pine tiger
#

so it screwed up

#

some prev var name?

earnest forge
#

Yeah lol

#

Was getting instant finishes because the code to generate the next board state reused the variable for where the current position was lol

flat sequoia
flat sequoia
#

you don't have to parse the <>v^

#

just keep it as that

#

my parsing is like, two lines

flat sequoia
pine tiger
#

one more day to go

#

and i'm free

flat sequoia
#

i screwed up by switching < with ^ and > with v

#

for like 10 minutes

#

man

#

ok not 10

#

like 4 minutes

#

nah prob closer to 10

pine tiger
#

fff

lunar jackal
torn thorn
#

i used a heapq but it's not working

#

๐Ÿ˜”

#

"not working" meaning it's taking more than like 30s to do stuff

livid gull
#

slep through my 5 alarms ๐Ÿ˜ 

torn thorn
#

rip

pallid shoal
#

Hi

molten fulcrum
#

Any of you done all days so far including today?

magic oxide
#

I'm on today pt2

#

most people above have I think

magic oxide
#

when should one use bfs vs dfs? because i feel like this year i've consistently done bfs/dfs, and then after struggling for a while figured out that i should instead be using the other one

silver wyvern
#

I seem to always be using a tuple(x, y) to represent vectors. Is there a builtin or decent library for handling vectors specifically? I seem to constantly be re-writing (or at least copying) my add_vectors() function etc.

#

Surely there is a decent python class where I can create a vector object with add, eq, etc dunders ?

covert arrow
#

We've been using complex numbers in the golf channel for some time

#

But I don't think stdlib has anything specifically for that

silver wyvern
#

I guess vectors are somewhat "non standard" but they are pretty common.

covert arrow
#

Yeah

#

Complex numbers work surprisingly well though

silver wyvern
#

There is literally a library called vector but I don't know how good it is

covert arrow
#

On pypi?

silver wyvern
#

Yeah, 0.x version though

covert arrow
#

Oh

#

It literally released 2 days ago lmao

silver wyvern
#

Surely there is an established vector lib for python ?

#

or is everyone just writing their own vector maths all the time?

covert arrow
#

Yeah I think everyone has their own class for that

silver wyvern
covert arrow
#

Idk I haven't had much use for vectors before

#

I've used it for pygame which already has Vector2 and Vector3 and for a few aoc puzzles where I would just write a new class each time (or use complex numbers)

magic oxide
#

complex is my go-to vector

#

followed by 2-tuples

#

or numpy arrays

covert arrow
#

Same tbh

magic oxide
#

tho numpy arrays are less useful since you can't hash them

silver wyvern
magic oxide
#

with the built-in complex class?

earnest forge
#

1 + 2j

magic oxide
#

oh yeah that's probably more helpful

quick zodiac
#

How long will the all the AOC channels stay up? Iโ€™m on holiday and havenโ€™t really had time to do it and could use the insight given on the channels.

polar sand
sleek cave
#

wrote my first recursive generator today thanks to aoc :D

minor cave
eternal jay
#

yo

torn thorn
pine tiger
#

dfs is actually easier to implement

#

but bfs is the search technique i learned first

quick zodiac
stiff salmon
#

advent lest go

naive stone
magic oxide
#

I learnt dfs after looking at someone else's solution on day 16

#

and I'm pretty sure I still don't know how to properly implement a dfs

#

I've just been bumbling through

pine tiger
naive stone
#

weird how?

pine tiger
#

like

#

oh wait

#

is that just a link to the thread?

naive stone
#

yee

pine tiger
#

i thought you sent a link to a message w/ your code & everything

#

sorry lol

naive stone
#

lol no problem, sorry for the confusion

pine tiger
#

so uh

#

you solved it?

naive stone
#

part 1 yea. Currently working my way through part 2 now

pine tiger
#

nice

naive stone
#

thanks! i have @low condor to thank for that

naive stone
#

i need to finish day 16. I have no idea how to approach part 2, and i'm still confused why my solution for part 1 works for my input but is off by one for the example input

torn thorn
#

||iirc (some) people eliminated all of the unnecessary nodes and used a djikstra or smth to get the path from each node to all of the other nodes with a >0 flow rate, and then just kept track of positions and unopened valves and did a search that way||

naive stone
#

hmm, yea i considered ||modifying the graph to not have the 0 flow nodes||, but i managed to get a ||very standard dfs|| to work for part 1. (though still off by one on the example input for some unknown reason). I haven't thought of an approach for part 2 yet

#

i was doing ||dijkstra|| at first though

#

i'm wondering if i should revisit the ||dijkstra|| approach for part 2

torn thorn
#

probs should

#

||you know you can calc the amount of flow any particular pipe will give at any point t will output at the end right?||

naive stone
#

not sure what you mean. Shall we discuss in #1053191091672854528 so we don't need to keep spoiler tagging?

earnest forge
#

Ready for my ~0s delta today ๐Ÿ™ƒ

livid gull
#

top 100 hopefully, then guarenteed another top 100 lol

earnest forge
#

Guaranteed better p2 placement than p1 (or equal ig)

livid gull
#

true

earnest forge
#

GLHF everyone

magic oxide
#

glhf

#

not home yet tho so can't do it

earnest forge
#

Oh nooo rip

compact wasp
#

rip

earnest forge
#

Do it with QPython or something lol

magic oxide
#

merry Christmas everyone btw

earnest forge
#

(Python interpreter for Android)

compact wasp
#

yeah merry christmas

earnest forge
#

Happy Halloween ;)

compact wasp
#

็”Ÿๆ—ฅๅฟซไน

magic oxide
#

lmao

earnest forge
#

I think

compact wasp
#

oh nice

torn thorn
#

ๆ˜ฅ่Š‚2023

#

sheng ri quai le

#

happy birthday

compact wasp
#

kuai

torn thorn
#

same same

compact wasp
#

tf is quai ๐Ÿ’€

torn thorn
#

SHUSH

#

i haven't done pinyin in such a long time

livid gull
#

i used replit for some days when i had only a phone

#

pain

covert arrow
#

1 minute

earnest forge
#

QPython is at least a full intepreter

#

Anyway GL!

torn thorn
#

whooo

compact wasp
#

glgl

covert arrow
#

glhf

earnest forge
#

Finish strong everyone

torn thorn
#

aops coding when

compact wasp
#

aops coding would be cool

covert arrow
#

yeah

torn thorn
#

3.2 or somehting python

#

ggez

shut trellisBOT
torn thorn
#

ew

#

SNAFU

#

wait

magic oxide
#

literally just|| base 5?||

torn thorn
#

waht in the ungodly fuck

lunar jackal
#

with = and -

magic oxide
#

I can't read the site with sunlight shining lmao

lunar jackal
#

it's like || roman numerals but worse ||

foggy zealot
#

EGG

magic oxide
#

oh god ||balanced quinary||

torn thorn
#

oh my god

#

i just realized

#

what this is

compact wasp
#

rank 30

#

๐Ÿ˜ฆ

#

didn't beat oliver

magic oxide
#

isn't this like a ||one liner day||

#

at least for pt 1

compact wasp
#

yeah

#

this one is actually freelo

dim pivot
#

Merry christmas guys!

earnest forge
#

I'm dumb how do I do it

dim pivot
#

This is my final scoreboard

compact wasp
#

i should've gotten top 10 honestly

dim pivot
#

Same

#

I was debugging for 3 mins

minor cave
compact wasp
#

i wasn't even debugging

#

i was just like

#

"no way it's this easy, right?"

#

i was in doubt

#

dammit

dim pivot
#

what place did u get

compact wasp
#

30

covert arrow
#

145 smh

dim pivot
compact wasp
#

yeah

#

hate myself for hesitating

#

could've gotten my first t10 but no

#

๐Ÿ˜ฆ

flat sequoia
compact wasp
#

same

#

i trolled p2 as well

#

i waited a good 20 seconds

#

||where tf was the problem||

#

and then i realized

earnest forge
#

Ok I got it lol

flat sequoia
#

it's like that every year

compact wasp
#

my first year

#

so i wouldn't know

flat sequoia
#

i just forgot i had to go click the button

#

i just thought i was done

compact wasp
#

oh lol

livid gull
#

i threw ๐Ÿ˜ฆ

#

my reverse snafu-er gave answer in reverse aswell ๐Ÿ˜ฆ

magic oxide
#

bruh

lunar jackal
#

where's the input for pt 2

magic oxide
#

i could've gotten leaderboard if I was home

#

much sadge

lunar jackal
#

nvm

torn thorn
#

ok i threw

#

i trolled on the convert to snafu part

earnest forge
#

Seems fair

torn thorn
#

YOOOOOOOOOOOOOOOOO AOC IS DONE

pine tiger
#

bruh

torn thorn
#

GG EVERYONE

pine tiger
#

what a

#

cancer

#

problem

torn thorn
#

fr

compact wasp
#

how

torn thorn
#

it wasn't that bad though tbh

compact wasp
#

this was so free

#

not cancer at all

earnest forge
#

Unparsing was kinda painful to figure out ngl

torn thorn
#

converting base snafu was annoying

pine tiger
#

unparsing was awful

torn thorn
#

unparsing wym

pine tiger
#

you had to realise to convert to base 5

compact wasp
#

no it wasn't

pine tiger
#

then figure out the logic

torn thorn
#

i just read the prolbme

pine tiger
#

3 -> = and add 1

compact wasp
#

y'all just have skill issues lmfao

pine tiger
#

4 -> - and add 1

compact wasp
#

literally not hard

torn thorn
pine tiger
torn thorn
#

๐Ÿ’€ ๐Ÿ’€ ๐Ÿ’€ ๐Ÿ’€ ๐Ÿ’€ ๐Ÿ’€ v

#

shade

compact wasp
#

i also have skill issues it's ok

pine tiger
#

well, diff strokes for diff folks

compact wasp
#

yeah

earnest forge
#

I forgot how good the post-season comments are lol

torn thorn
#

based elves

livid gull
earnest forge
#

Yes

torn thorn
pine tiger
#

dp?

#

there was day 16

#

what else

earnest forge
torn thorn
earnest forge
pine tiger
#

??

#

day 19 was just pruning hell

torn thorn
earnest forge
stable shale
#

Can't do P2 because I still haven't done a couple :(

pine tiger
#

wha

#

i mean

#

wait how would dp work

pine tiger
#

there's so many goddamned states

earnest forge
#

Same way it did for day 16 wym

pine tiger
#

then how did a raw bfs solution without duplicates TLE

earnest forge
#

TLE?

pine tiger
#

time limit exceeded

earnest forge
#

Raw BFS uses way more memory than a DP approach

#

Hence the accesses are slower because more cache misses

pine tiger
#

overall time complexity should be ~ the same tho?

livid gull
#

time for the other years now

earnest forge
livid gull
#

2019 annoyed me

earnest forge
livid gull
#

with all its int code

compact wasp
earnest forge
torn thorn
#

anyways happy christmas to all est people whoo

earnest forge
#

2 commented out broken approaches

livid gull
pine tiger
compact wasp
torn thorn
#

i remember writing just a function to do it then using a custom class

earnest forge
#

^

#

I hacked on my day 2 one for days 5 and 7 IIRC, then just made a proper extensible version after that

torn thorn
#

does anyone know what this mean

earnest forge
#

Reference to INTERCAL I think

pine tiger
#

lmao

torn thorn
#

lmao what

livid gull
earnest forge
#

That isn't surprising, it's basically an anti-googlewhack

pine tiger
#

ayo

#

do match cases

#

can they be used in expressions

#

like in rust

earnest forge
#

No

pine tiger
#

bru

#

crinj

earnest forge
#

It's a block not an expression

#

Use a dict if you want expression use

compact wasp
#

ig i'll do better next year

earnest forge
#

exec code inside one if you need conditional side effects

livid gull
torn thorn
#

where'd you get that lmfao

earnest forge
#

INTERCAL documentation

torn thorn
#

also what's this

livid gull
#

last year problem

earnest forge
#

Reference to previous AoC puzzle

livid gull
#

pain and suffering

torn thorn
#

ah

earnest forge
torn thorn
#

looks painful

compact wasp
#

looks great

#

(am not a masochist)

torn thorn
#

๐Ÿ˜ญ

#

imagine if eric actually made it minecraft

woven solar
#

now I'm getting flashbacks to that task where you needed to organize the amphipods by rooms

torn thorn
#

"you pull out your flint and steel and a portal suddenly appears"

woven solar
#

and to Beacon Scanner ๐Ÿ˜ฉ

torn thorn
#

"you walk through and there's the same droplet, but 8x smaller"

woven solar
#

by the way

torn thorn
woven solar
#

did y'all notice that this year we didn't have a single gameoflife task?

torn thorn
#

elves please use rsa or aes encryption ๐Ÿ˜”

woven solar
#

unless the elves in the blizzard count I guess

torn thorn
#

with the uhhh

#

elves problem

#

search

#

it's game-of-life-y

#

close enough

dim pivot
#

this yr was worse than last yr

#

so many grids

#

so much search/optimisation

torn thorn
#

yeah

#

idk

dim pivot
#

not enough math/clever problems

torn thorn
#

i only did 2020

#

and i barely remember it

compact wasp
#

math/clever problems is fun

dim pivot
#

last yr was better

torn thorn
#

painful to do at 12am when brain no work

livid gull
#

Okay im going back to sleep, nobody is awake at 5:30 here! Merry Christmas everyone and hope to see you all next year!! Cya!!

woven solar
#

we did, however, have like 3-4 graph or grid search problems

torn thorn
#

cya!!

compact wasp
#

cya

#

honestly i didn't expect to place in top 100 at all this year

#

since it was my first time

torn thorn
#

damn

#

nice

compact wasp
#

i placed 4 times though

#

not great but much better than expected

torn thorn
#

i only placed once

#

skill diff

compact wasp
#

rip

#

or should i say

#

oof

torn thorn
#

oof

wispy glacier
compact wasp
#

ok

torn thorn
#

๐Ÿ˜”

#

thought it was pretty obvious it was a joke ๐Ÿคทโ€โ™‚๏ธ

compact wasp
#

chat moderation do be like that sometimes

#

wanna make sure nobody gets hurt

torn thorn
#

i can see how some people might see diffy though

wispy glacier
#

to a person struggling it'd easily be belittling

compact wasp
#

i get it

#

aoc is over so no more of that stuff from me

torn thorn
#

wait wasn't saimon done though ?~?

#

meh

woven solar
#

I'm so happy this year didn't need me to write a fucking octtree

torn thorn
#

lmao

earnest forge
#

octtree
?

compact wasp
#

a tree whose nodes have 8 children

#

i think

woven solar
#

a tree with 8 children per node, commonly used for 3d spatial partitioning

compact wasp
#

yeah

earnest forge
#

Ah ok

torn thorn
#

interesting

compact wasp
#

next year i'm gonna forget that i'm on my final warning and then i'll get banned on day 5 of aoc for saying people have skill issues

#

๐Ÿ’ฏ

torn thorn
#

fun

#

wait there is a !warn command

#

why didn't you :hmm:

wispy glacier
#

or change your attitude to be befitting of our code of conduct now so you don't have issues again whether or not it's aoc

compact wasp
#

true

wispy glacier
#

it's just a big turn off for beginners

compact wasp
#

i'm gonna read through the code of conduct

#

i can appeal pog

torn thorn
#

what does "RTFM" mean?

compact wasp
#

read the fucking manual

torn thorn
#

ah

earnest forge
#

^

torn thorn
#

wait people say that

compact wasp
torn thorn
#

great question

woven solar
#

Now that AoC is done, I'm considering jumping into the current codingame contest. It's still a week until the final league opens, and this year's problem isn't even a continuous-time one.

compact wasp
#

๐Ÿ’€

woven solar
#

if you enjoyed writing dfs 4 times this year, you'll also enjoy writing monte-carlo tree search for this ๐Ÿฅด

compact wasp
#

don't wanna do mcts ๐Ÿ˜ฆ

compact wasp
#

i am not about to get banned today

#

not happening

#

maybe you can try again on day 5 next year

earnest forge
pine tiger
#

@earnest forge GG

earnest forge
#

Lmao nice

compact wasp
torn thorn
#

lmao

compact wasp
#

until someone in my cs club discord pings me

devout tusk
#

this may be the shortest golf I guess

torn thorn
compact wasp
#

a bad one

torn thorn
#

rip

compact wasp
#

well it's not bad

#

but it's mid for cs

torn thorn
#

if it has a good name it'll make up for it ๐Ÿคทโ€โ™‚๏ธ

compact wasp
#

wisconsin ๐Ÿ’€

earnest forge
torn thorn
#

uwm im guessing then ๐Ÿคทโ€โ™‚๏ธ

compact wasp
#

madison yeah

torn thorn
#

ayo wait im applying there ๐Ÿ’€ ๐Ÿ’€

compact wasp
#

mid school

#

it's a safety tbh

torn thorn
#

yeah basically

compact wasp
#

but my hs gpa was fucked

#

so i didn't have anywhere better

torn thorn
#

what gpa?

compact wasp
#

4.2 weighted, 3.4 unweighted

torn thorn
#

rips

compact wasp
#

was 60th percentile for my high school

torn thorn
#

my school doesn't do percentile lel

compact wasp
#

at least the classes here are freelo

pine tiger
compact wasp
#

t20 is pretty mid though

pine tiger
#

well i'm sorry it's not fricking cornell

compact wasp
#

actually i shouldn't call it mid

pine tiger
compact wasp
#

i might get banned for that

pine tiger
#

what rule does that violate

compact wasp
#

the same one that saying people have skill issues violated

torn thorn
#

no response yet ๐Ÿ˜”

compact wasp
#

it's a safety, you'll definitely get in lol

#

since cs isn't direct admit

pine tiger
#

you have a twisted definition of safety

torn thorn
#

my essays were a mess lel

compact wasp
pine tiger
#

oh wlel

compact wasp
#

i'm just gonna say that's not very tough as competition

pine tiger
#

i alr submitted

#

it's all in god's hands anyways

torn thorn
#

from history

#

but idk

compact wasp
#

cs admission rates are the same as normal l&s admission rates, because it's the same thing

wispy glacier
#

!mute 393172660630323200 2d comments like "competing with wisconsinite farmer children" is pretty elitist and not welcome here. take a break

marsh currentBOT
#

:incoming_envelope: :ok_hand: applied mute to @compact wasp until <t:1672120723:f> (2 days).

torn thorn
#

nooo :(

wispy glacier
#

if you guys enjoy the aoc event and how it's done on python discord then you might want to take our culture seriously

torn thorn
#

rips

#

time to dip too ig

pine tiger
#

what

#

can't believe that resulted in a mute lol

torn thorn
#

he was skating on thin ice im ngl but like really? damn ๐Ÿ˜”

modern harness
#

I was 1 point away from 7th on the pydis leaderboard. 50416 to 50415

earnest forge
#

Lmaoo rip

pine tiger
#

most unfrotunate

#

also

#

is it just me

#

or is this year's animation

pine tiger
#

kinda

#

ass

torn thorn
#

isn't it hot air baloons

pine tiger
#

ok but 2020

#

we had a goddamn hurricane blow around

#

2019

#

there were sparkles everywhere, a dot was zooming from one planet to another

#

this year it's just

#

...

#

balloons?

torn thorn
#

what if the baloons like traveeled over the boar

#

that'd be cool

torn thorn
#

board

pine tiger
#

yeah

#

that would've made it

#

much better

magic oxide
#

welp

#

rip enira

torn thorn
#

enira or eni

#

idk

#

meh

magic oxide
#

was a fun year of aoc

#

golfing was great

torn thorn
#

fun meeting everyone

#

see yall next year!