#advent-of-code

1 messages ยท Page 5 of 1

wispy glacier
#

the goal is to not give any hints to the nature of the problem either

warm berry
#

I don't think I will be completing todays

#

Mostly because of my skill issues

lusty rover
warm berry
#

Yeah but I just don't have the time to keep spending on it

halcyon pulsar
#

I've been trying for 3 hours and I have exams tommmorow

#

This is horrible

earnest forge
wispy glacier
#

what's "pre-part 1"?

halcyon pulsar
#

|| Somehow my code doesnt like directories of the same name ||

earnest forge
wispy glacier
#

that's part 1

#

so yes, is considered spoiler

#

because you can't see it without navigating to the problem, right?

earnest forge
#

I guess that makes sense

potent tapir
#

Is the site throwing 500's for anyone else?

unique osprey
#

yes

#

it's downzo

potent tapir
hollow wharf
#

Correct

wispy glacier
#

please spoiler your messages ||like this|| @strong loom

hollow wharf
#

Is the copied description of the problem a spoiler though CS_pepehmm

wispy glacier
#

yes

hollow wharf
#

I guess

strong loom
wet fiber
#

check the pins

strong loom
#

regardless of how far you are?

strong loom
hollow wharf
#

Yeah though a spoiler is defined as

a description of an important plot development in a television show, film, or book which if previously known may reduce surprise or suspense for a first-time viewer or reader.

#

So I guess someone could scream at you because you removed the suspense or surprise for a first time reader 3HC_kek

wispy glacier
#

the goal is: people that are doing AoC problems at their own pace (at least, during the period of December until the AoC Completionist Role is retired) are free to come to this channel without getting spoiled as to the nature of the problems they've not opened yet

#

it's not just about the solutions. we've always been pretty clear about that

#

and it's not new policy

hollow wharf
#

Just spoiler every message, at least you're sure it's not annoying anyone pepe

wispy glacier
#

if they click on ||spoiled text|| then that's on them, of course

long egret
#

omw to make a whole file system emulator

unique osprey
#

I think the chances of us doing that for real is non-zero

mossy basin
mossy basin
modern terrace
mossy basin
#

but spoilered anyway

wooden jewel
#

Maybe I'm just too smol brained, but (for 7-b) I'm getting ||a total size of the folder "/" that exceeds 70000000, that seems like it shouldn't be possible?||

rugged merlin
wooden jewel
hollow wharf
#

perhaps they put day 17 instead of day 7

alpine pike
#

at most 100000

#

what does at most mean?

deft mural
#

||100,000 is the biggest a directory can be to be counted||

unique osprey
unique osprey
unique osprey
alpine pike
#

did people's solution had classes?

torn thorn
#

some yes

unique osprey
gleaming cedar
#

my second solution did but i realized i was just typing more so i skipped it

unique osprey
#

Actually, my submission time solution did not, but then I refactored

gleaming cedar
#

i checked a few class based solutions and they were really neat

alpine pike
#

I have 52 mins left peepocry

#

52 lines as well KEKW

#

I made linux

woven sable
unique osprey
#

I'm just a classy guy

woven sable
#

&aoc c

shut trellisBOT
#

Day 8 starts <t:1670475600:R>.

tulip elbow
#

ty

torn thorn
#

whee

#

whose ready for aoc

unique osprey
#

๐Ÿ‘ˆ

torn thorn
#

let's hope it's an easy one

woven sable
#

i have a feeling it's gonna be one of those types of days where you have to optimize

torn thorn
#

hah

#

imagine optimizing

unique osprey
#

Yeah

#

maybe p1 will work fine

torn thorn
#

10 hours

#

trust

unique osprey
#

but p2 all of the sudden will take ages

naive stone
#

&aoc c

shut trellisBOT
#

Day 8 starts <t:1670475600:R>.

torn thorn
#

1 min

#

!!!!

naive stone
#

good luck everyone

woven sable
#

gl!

torn thorn
#

good luck

#

have fun

#

pretyping my reaction to the input

shut trellisBOT
torn thorn
#

wow

wet fiber
#

this looks like the kind of puzzle numpy comes in handy

unique osprey
#

yeah for sure

torn thorn
#

yeah but i'm not gonna use it

#

cause i'm too lazy to learn

#

:tr

compact wasp
#

dammit i have 3 mins 20 secs to wait

#

i choked again

#

i should really read the problem lol

minor cave
torn thorn
#

wtf is this part 2

pine tiger
#

LOL, i fell off so hard

earnest forge
pine tiger
#

i read the problem wrong fff

earnest forge
#

@woven sable your testing code is still broken btw ยฌ.ยฌ
Only runs the first time for each part (where the answer will usually be wrong)

#

Oh I see why

#

LMAO

pine tiger
#

alright i'm just gonna need a couple more good days to score in top 100 overall again

#

not sure if i can do it lmao

torn thorn
#

hardest i've ever thrown

#

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

#

๐Ÿ˜”

pine tiger
#

same

#

did you read the problem wrong?

torn thorn
#

nah i just did it really stupidly

pine tiger
#

oh

woven sable
#

i can fix it again

#

sorry btw lmao

earnest forge
#

It's fine I got it

woven sable
#

alr

earnest forge
#

You checked if the cache exists and if it does skipped testing ๐Ÿ’€

#

(also you're caching the test results instead of the test data for some reason)

pine tiger
#

oh wow

#

i'm in 2nd place now!

#

(on the discord lb)

naive stone
#

damn, this is the first time i feel like my code should definitely be working but i'm not getting the right answer

covert arrow
#

I did an off by one and ||the output from example input didn't change||

#

;-;

torn thorn
#

rip

unique osprey
#

welp, my p1 solution worked but ||it has probably zero overlap with what my p2 will be||

naive stone
#

damn, i'm struggling to see where there could be a bug in my code

stable shale
#

My half-asleep brain did not want to properly comprehend this puzzle lmao. Worst time out of all the days so far

naive stone
#

i keep making my own test grids hoping my code will get it wrong but it's always right lol. What edge case am i missing???? megacatscream

earnest forge
unique osprey
#

Logic check for p2...||all trees on edge have a score of 0, right?||

earnest forge
unique osprey
#

great, thanks

earnest forge
naive stone
#

my code is failing to count 42 of the trees as visible hmm.

woven sable
earnest forge
woven sable
#

ahh

#

so like the actual test input & answer

earnest forge
#

Yeah

#

Prevents sending unnecessary requests

naive stone
#

oh god dammit. A single character caused my bug. I forgot to change one <= to a <

earnest forge
#

Riiip

naive stone
#

indeed

#

thanks again for your input

elfin dirge
#

why are ppl with 0 solves on the leaderboard?

#

ik its bc of last years

lusty rover
#

Because they joined and then never actually solved anything?

elfin dirge
#

seems a bit much imo

#

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

hot tartan
#

could I do something like this for day8?

||convert input to matrix, rotate matrix to 90, and for each "tree" check if it's smaller in each array (both matrixes, rotated and normal) ? Ofc I'll need to do extra stuff to check if surrounding trees are blocking the view, but is this a good approach ?||

halcyon pulsar
#

is day 8 easier?

hollow wharf
#

Some people will find one day harder than others

#

Depends your knowledge is the "theme(s)" of the day, and applies for all days

halcyon pulsar
#

I'm stuck on day 7 part 2 - it seems that my || needed size is 2036703 but I don't have any folders with a size greater than that? Do i delete multiple folders, or is something off with my code...||

#

|| My code works with the example ||

#

Nvm, we were supposed to || add subfolders still ||

#

God, finally done day 7. That took wayy to long

spice robin
#

Did day 2 to day 4 just yesterday

#

But I'm not getting a lot of points since I'm late

molten pasture
#

Today's aoc was very cool. I liked it

#

Did you guys solve it? How efficient is your solution?

hollow wharf
#

Yes and it's pretty shit I guess just like all my solutions KEKW

molten pasture
#
Exercise 8:  [  PART 1  ] [  PART 2  ]
      Alex:  [ 0.014534 ] [ 0.016413 ]
   Winners:  [ buonhobo ] [ buonhobo ]

This is the benchmark result from the internal benchmarking tool I made for the AOC

#

time is in seconds

hollow wharf
#

noice

polar sand
#

Any command to see where you rank on the private leaderboard for a specific day?

#

And not just the top 10?

earnest forge
#

If you &aoc link it can tell you

flat sequoia
#

I lost leaderboard part 2 because i typed tj instead of j

#

I was 6th part 1

#

would have placed very high part 2 if i didn't have to spend like 8+ minutes debugging that

#

granted this was caused by my own shitty variable naming

molten pasture
#

Is there some leaderboard that confronts benchmarks instead of "first to submit"?

flat sequoia
#

The website doesn't run your code so it's unfortunately not able to do that

molten pasture
#

First to submit is not an interesting metric imho. It's cooler to see who can make it fastest, shortest or with some sort of gimmick

molten pasture
brazen geode
flat sequoia
#

For sure there's other interesting ways to compete

earnest forge
flat sequoia
molten pasture
molten pasture
earnest forge
#

It's pretty much a community effor

#

Today's down to 284 and I'm not sure it can get much lower

#

I stand corrected we're down to 282

molten pasture
#

If you want you can send me your solutions and I can benchmark them and send the result.
All I need is first.py and second.py (either or both) and the name you want in the leaderboard

#

Oh, the solution must have a main function with takes the whole input string and solves the problem without printing enything. it jsut returns the solution

#

I'll send an example in your DMs if you want me to

molten pasture
#

I might automate the whole thing if there are many people submitting and asking for results

#

Along with a file of results

uncut kraken
#

||im on day 3 and I can't figure out how to count the letters, im mostly new to code||

stray crescent
#

day 7 made me realize in really bad at programming

ripe meteor
stray crescent
#

i created the worst tree data strucure ever

#

ik you dont have to create a tree i have seen some sollutions

stray crescent
#

which i butchered really badly

earnest forge
earnest forge
uncut kraken
earnest forge
stray crescent
#

great now i dont feel so bad after all

ripe meteor
#

Tree was the intended solution, everyone else trippin

earnest forge
#

If you ever get impostor syndrome just know that I spent the better part of a week coming up with about 5 algorithms to try to achieve the same goal

earnest forge
stray crescent
earnest forge
polar sand
earnest forge
#

Ah

#

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

bleak sable
gleaming cedar
#

@modern terrace irl

modern terrace
modern terrace
elfin dirge
#

wtf, ||if my understanding is correct, this shouldn't be an issue, as list is an Iterable||
||Expected type 'Iterable[Iterable[_T1]]' (matched generic type 'Iterable[_T1]'), got 'list[list[int]]' instead||
can any1 explain this?

spoiler bc last line of my solution for day8, not much to spoil tho

covert arrow
#

If so, ||I don't think that line of code will work unless the inner lists are already sorted||

elfin dirge
#

I'm just confused about what pycharm complaining about.

elfin dirge
fossil cipher
#

does it complain about:

scores = [[123, 123]]

map(max, scores)
elfin dirge
#

yes

#

so it doesnt know that max can get the max from an iterable?

fossil cipher
#

dunno what Pycharm is smoking. VSCode + Pylance says it's fine.

elfin dirge
fossil cipher
#

mypy doesn't complain about it either

elfin dirge
#

the error itself is a paradox

#

seems it doesnt know that list is iterable?

Expected type 'Iterable[Iterable[_T1]]' (matched generic type 'Iterable[_T1]'), got 'list[list[int]]' instead

sweet sable
#

Any tools made in python guys helpful for social media or tracking or smthg

stray crescent
#

what is the code golf channel for

fossil cipher
#

for code golf solutions

#

gode golfing is solving a problem with the shortest amount of code as possible (usually measured in the size of the file)

stray crescent
#

ohhh

minor cave
molten pasture
#

You can tell I'm Italian because all my code is spaghetti

polar sand
#

Thanks for the link, I've opened an issue ๐Ÿ˜„

cunning vigil
#

i have no idea how to do day 7, tried a dict of dicts but can't figure it out correctly

halcyon pulsar
#

Damn day 8 was a relief from yesterday

halcyon pulsar
#

Have you learnt those?

#

It would be a pain to use dicts

fossil cipher
#

I did day 7 just fine with dicts

normal umbra
#

yeah just 1 dict needed. No nesting

normal umbra
#

day 8 done!

night berry
#

AoC really comes at the worst time: Final exams time

#

I'm bailing out this year

normal umbra
#

lmao

#

had that situation last time

#

this time I'll try to complete it

tepid cairn
#

I havent gotten around to doing yesterday's or today's yet ๐Ÿ˜”

minor cave
#

Day 7 looked like it was rough based on how many 3-5 minute power naps I could take before I could open up the solutions & spoilers channel

tepid cairn
#

lol, I've glanced at the problem, seems like it'll take longer than the previous ones

minor cave
#

When the global leaderboard fills up for both stars

lusty rover
#

Why... OH. The points. So no one can cheat for points. I see. That makes sense.

polar sand
#

Anyone have a link to that chart showing the top 100 times for the problems?

timid mantle
polar sand
#

Thanks

elfin dirge
#

since when, github?

#

same file

fossil cipher
#

You're having a right day with the weird stuff happening ๐Ÿ˜„

elfin dirge
#

ill better sleep now, before my pc starts meowing

#

or barking

#

you never know what happens next

restive imp
#

today my feelings towards AoC are not so great

#

It's official. My solution is crap. I think I have to try again tomorrow ๐Ÿ˜ฆ

lusty rover
dense osprey
#

is this a bug

wet fiber
#

yeah I thought the same

dense osprey
#

im sure the ascii art thing shouldnt be displayed

modern terrace
unique osprey
#

Ha, weird

torn thorn
#

well it's been like 17 hours

#

so like

#

probably not

stable charm
#

wait always released at same time?

minor cave
#

mhm, midnight east coast US is the release time

stable charm
#

doesnt seem likr best system

#

almost 24 in total

#

could prob just decrease each day by 1hr so everyone geta a nice time

#

or smthing simliar

sharp panther
#

the creator chose it because that's when they're available in case anything goes wrong

#

although "rolling releases" might be kind of cool

stable charm
#

yeah im just wrong timezone :(

#

ig it make it more casual for me

#

so idm skipping days if i cant be bothered

#

might focus more on golfing than speed then

#

be competitive in another way :p

#

ive decided, timezones are annoying we should just remove them and get half the world to wake in the dark

#

best solution

torn thorn
#

.-.

#

set time zone to est -> get and solve problem -> set time zone to another time zone -> login to another account -> solve

sharp panther
#

oh no not like that

#

what they were saying was that it would release at a different timezone each day

#

but obviously that makes the creator unavailable

dense osprey
#

for me its releasing at 6am everyday or 7am

#

ah nvm

torn thorn
#

seems like it'd be harder to plan around then

#

@topaz summit ^^

tepid cairn
#

<@&831776746206265384>

north silo
#

!ban 984879138265505822 Just here to post spam advertising.

marsh currentBOT
#

:incoming_envelope: :ok_hand: applied ban to @lost kindle permanently.

fathom lichen
#

So... are we going to get killed by difficulty this weekend?

modern terrace
#

the puzzles on the weekend were the hardest last year iirc

fathom lichen
#

Yeah, i'm looking forward to learning new things.

cunning vigil
#

I wrote a code that works perfectly fine with the example (day 7), but doesn't with the input file, I don't get it lol

fathom lichen
peak dock
#

owo you can already see day 9's pattern coloured

#

of course im too ethical to click on it and check whether they made the question accidentally visible too

unique osprey
#

spoiler ||it's not||

mossy basin
peak dock
#

lol

woven oriole
#

frozen fingers

torn thorn
#

&aoc c

shut trellisBOT
#

Day 9 starts <t:1670562000:R>.

torn thorn
#

whee

unique osprey
#

what's it gonna be tonight

torn thorn
#

more sets

#

๐Ÿ™

unique osprey
#

more grid? more trees?

woven oriole
#

p a t h f i n d

torn thorn
#

please no

woven oriole
#

maybe not today

spice lava
#

I hated yesterday's puzzle

unique osprey
#

that's like day 14 material

torn thorn
#

i don't want to code up a floodfill

spice lava
#

does it keep getting difficult?

unique osprey
#

of course ๐Ÿ˜„

naive stone
#

more or less

torn thorn
earnest forge
woven oriole
#

same

torn thorn
#

wow

woven oriole
#

everything is already implemented

naive stone
#

the later levels are consistently very difficult every year

torn thorn
#

pre preperation

#

smh

woven oriole
#

because last year

#

i died

torn thorn
#

lmao

unique osprey
#

i died at day 20

torn thorn
#

1 min 30 secs

woven oriole
#

i had to learn the entire A*

#

understand* i mean

torn thorn
#

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

earnest forge
unique osprey
#

cute

naive stone
#

&aoc c

shut trellisBOT
#

Day 9 starts <t:1670562000:R>.

spice lava
torn thorn
woven oriole
#

โ„๏ธ

unique osprey
#

get ready you little elves

torn thorn
#

preparation defeats the whole fun of it all

woven oriole
#

gl

torn thorn
#

wheee

#

30 seconds

#

these are always the most painful 30 seconds

#

๐Ÿ˜”

woven oriole
#

freezing freezing freezing

spice lava
#

hmm it says 40 smth for me

unique osprey
#

get that heart goin

earnest forge
#

Good luck everyone

woven oriole
#

my fingres

naive stone
#

&aoc c

shut trellisBOT
#

Day 9 starts <t:1670562000:R>.

minor cave
#

AoC Code Golfing Policy
I'm going to piggy back off of this ping and let y'all know that we have a dedicated channel for code golfing! #1050425859225436241

For those that really want to golf down the Advent of Code solutions, we ask you use this dedicated thread to collaborate rather than the day-of solutions & spoilers channel.

If you have any questions or want to provide some feedback, feel free to reply to this message or post in #community-meta!

torn thorn
#

oh my god

woven sable
#

not even gonna try to do this problem rn ๐Ÿ˜ญ

#

reading comprehension is too much work

lime elk
#

Can someone make the spoiler channel? I got a question to ask..

minor cave
lime elk
#

aah

#

kk, thanks!

earnest forge
#

81 / 17 ๐ŸŽ‰

#

Also Eric changed the format of the 'you got rank' text so now aoc_helper doesn't parse it ๐Ÿ™ƒ

torn thorn
#

wow

earnest forge
#

Also also the test code crashes for this puzzle

torn thorn
#

i am doing so bad

gleaming cedar
#

grids again ๐Ÿ˜ญ

earnest forge
#

I want to give advice but the lb hasn't filled up yet lmao

gleaming cedar
#

eh?

earnest forge
#

Lb is currently at 100/46

woven sable
#

not sure if there's a way to check for that though

#

does it crash or raise a warning?

earnest forge
#

Crash

#

List index out of range

woven sable
#

yikes

earnest forge
#

I've just moved more stuff into a try lol

woven sable
#

i thought i accounted for that

#

oh alr lmao

minor cave
flat sequoia
#

ahh i trolled

#

understood the question wrong

torn thorn
#

wtf does part 2 want

earnest forge
torn thorn
#

wait this is so weird

humble copper
#

part 2 stuff ||i'm confused as to how all 4 numbers are moving up...?||

pine tiger
#

god, that was abysmal

pine tiger
humble copper
#

||every other movement i understand, but how is all of 4321 shifting over to be directly underneath the H?||

pine tiger
humble copper
#

||i just missed this part of the description JoyFacepalm ||

pine tiger
#

ffff

unique osprey
#

My best rank yet, heh

humble copper
#

kids, this is why you read the entire problem description ๐Ÿ™ƒ

pine tiger
#

what happened lol

#

also literally me on day 8

humble copper
#

||thought that if they were too far apart, the tail end should just go to where the head was before, which worked for part 1, so i thought it would work also for part 2||

earnest forge
#

kekw no

pine tiger
#

oh that's bad

pine tiger
flat sequoia
#

my worst rank yet

#

LMAO

pine tiger
#

top 20 problems:

unique osprey
humble copper
#

i was doing that, and for some reason it still wasnt working

#

๐Ÿฅด

earnest forge
unique osprey
quaint anchor
#

Done with todays' AoC ๐Ÿ˜„

earnest forge
#

I forgot I have XKCD substitutions on

rugged merlin
#

really misread that part 2 with what it was asking for...

earnest forge
#

Rip

spice lava
#

finally..

#

I'm done.

minor hamlet
#

As I am a moron who who canโ€™t do anything

stable charm
sinful pewter
#

&aoc join

woven oriole
#

sudden 300 point diff between #1 and #2 ๐Ÿ‘€

#

does shell have benefits or its just personal preference

hollow wharf
gleaming cedar
#

w..wow

#

i told it to count overlapped positions too and boy the answer is correctamundo

cyan sleet
#

in the task you move one step at a time

gleaming cedar
#

yeah

#

isnt the answer 12 in the example?

cyan sleet
#

13

gleaming cedar
#

oh ok that's probably because its missing the initial point

cyan sleet
#

wait, where does it say 12?

quaint hare
#

Is the coordinate system Cartesian in arcade?

#

or is it like pygame, where top left of the screen is 0, 0

#

pygame is really problematic for me because of that

#

if arcade is follows the cartesian system I'll move on to it

#

oh shit this is aoc not py-gen

torn thorn
#

surprised i haven't dropped ๐Ÿ˜”

past comet
normal umbra
#

Day 9 part 1 ๐Ÿ˜Ž
part 2 ๐Ÿ˜ฐ

#

literally me

past comet
#

well that's not forboding

normal umbra
#

my god, my solution for part 1 is no where compatible with part 2 lol

#

I'll have to rewrite

past comet
#

ack, ceil doesn't work for negative numbers the way I want it too!

silver wyvern
silver wyvern
hollow wharf
#

this one was frustratingly easy

#

i spent a few hours doing weird stuff

dense osprey
#

nvm

broken cradle
#

my day 9 part 2 code works with the examples but not with the actual input

#

I hate this

fossil cipher
#

both examples, yeah?

broken cradle
#

yeah

fossil cipher
#

hmm. I have no idea how you can get second example right without you know, having the right code :/

broken cradle
#

me neither

#

I remember having a few weird cases on part 1 that gave the right answer but not the right way

#

But with part 2 it's harder to find those ๐Ÿ˜”

fossil cipher
#

hmm

molten pasture
#

Today's exercise was my least efficient solution yet lol

#
[STARTING BENCHMARK]

Anno 2022:

Esercizio 1:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.000399 ] [ 0.000431 ]

Esercizio 2:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.000842 ] [ 0.000592 ]

Esercizio 3:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.000573 ] [ 0.000460 ]

Esercizio 4:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.001790 ] [ 0.001842 ]

Esercizio 5:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.000578 ] [ 0.000515 ]

Esercizio 8:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.014450 ] [ 0.016115 ]

Esercizio 6:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.000437 ] [ 0.001028 ]

Esercizio 7:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.001167 ] [ 0.001187 ]

Esercizio 9:  [  PART 1  ] [  PART 2  ]
       Alex:  [ 0.004558 ] [ 0.024639 ]

this is the output of my benchmark tool

#

Was it slower for you too?

wet fiber
#

i'm scared of day 10

halcyon pulsar
#

Bro day 9 is atually killing me

#

Ive been drawing so many diagrams and i cant understand how to make the tail curve in the right way

halcyon pulsar
#

Can anyone give me a topic to research so I can complete this bloody day?

#

I can't for the life of me figure this out

wet fiber
modern harness
#

Much more head pounding and I finally solved it. I used someone else's solution to try to find the smallest test case which my answer fails for. Turns out I just hadn't accounted for (N|N|N). I thought my stack solution was pretty slick, but ultimately it didn't account for anything that wasn't just a binary operation (or break that into binary operations).

zenith elbow
earnest forge
#

GL everyone

placid lake
#

hello friends

#

glhf

magic oxide
#

gl

shut trellisBOT
surreal sky
#

Poggers

wispy glacier
#

good morning haha

foggy zealot
#

utc

tepid cairn
#

is it already midnight ๐Ÿ‘€

minor cave
modern harness
#

Got my best rank today so far this season, part 2 global rank of 156

earnest forge
#

I think I broke ||aoc_helper.Grid.decode_as_text|| ._.

#

I also definitely broke something test-related

stable shale
#

Today was so much simpler than I thought, overthought/overcomplicated P2 by so much

#

Somehow I misread my output for P2 though lmao

alpine pike
#

Is it me or day 10 seems easy

stable shale
#

Quite easy surprisingly

alpine pike
#

Day 9 seems hard

#

I am stuck on day 8 part 2

#

Though I have a solution

#

It's just a core logic that's bugging me

#

I can't even do simple comparison

pine tiger
#

why is my display kinda glitched

torn thorn
#

i accidently fell asleep fun

earnest forge
pine tiger
#

no possible way

#

negative numbers are happening here

hollow wharf
#

Make it spoiler

pine tiger
#

i fail to see how this spoils anything

#

but alright

dense nacelle
pine tiger
#

actually

#

the problem for me was

#

||counter % 40 instead of counter||

earnest forge
pine tiger
#

||because sometimes counter was -1 and that made it 39||

earnest forge
devout tusk
#

Woke up late, can't understand what p2 is tryna say. am I just sleepy or is it actually hard to understand?

pine tiger
#

actually hard to understand

devout tusk
#

How is Current CRT row updated?

earnest forge
earnest forge
dense nacelle
hollow wharf
#

What is chatGPT doing these days ๐Ÿค“

dense nacelle
#

The problem with the spoiler channel is sooo much talk about code golf you can't get a word in.

earnest forge
earnest forge
hollow wharf
woven oriole
hollow wharf
#

damn, every day i feel more and more dump

#

part 1 - 16min
part 2 - 1h 18min

dense nacelle
#

Day 8 I was half asleep and it took me 2 hours for both parts.

hollow wharf
#

i have to say, today was easier than the last two days ๐Ÿ’€

#

or im just an idiot

dense nacelle
#

I thought todays was easier then last 2 days too. I just checked the stats, and a lot of people are struggling with day 09 part 02.

polar sand
#

Problem looks easy, but I have wayyyy too little sleep to understand what part2 is even telling me xD

polar sand
hollow wharf
#

that weekend puzzles ar harder because ppl got more time to think about them

earnest forge
#

They're easier to give you more time to relax

polar sand
#

I want play some board games and spend time with family on a weekend. Not sit in front of the computer coding for a few hours xD

hollow wharf
#

hard af

#

the one was the task with the beacons in 3D space

steel bear
#

oh yes

willow fractal
quaint blade
#

can any1 give me a hint to what i may be understanding wrong in day 9 part 1

#

my code works fine for example i think but i cant get the code to work for my puzzle input

halcyon pulsar
#

Day 10 part 2 is interesting, I like it

halcyon pulsar
#

Damn thats pretty cool

#

Awesome day

median juniper
#

is it possible to solve AoC problems after day is finished?

iron otter
#

yes

#

Even years after

cyan sleet
#

it took me a while to even realize how I could start to approach the problem

grand bobcat
#

Can anyone confirm that they think that reads ||RZMFGJCB||

iron otter
#

yes

grand bobcat
#

damn

#

Then where have I gone wrong that Ive got letters out but its not right kekw_lsd

iron otter
#

||Or H for the M ?||

grand bobcat
woven solar
#

it'd be easier to read if you print it the same way as the examples

iron otter
#

It's not easy to read anyway

grand bobcat
#

tbh Im not entirely sure how to convert it to that form

grand bobcat
hollow wharf
#
  • for me it helped if i used whitespaces instead of . for empty fields
grand bobcat
#

Ah yea much better

#

Just for comparison

hollow wharf
#

my stupid mistake was to misread R with A

#

took me 3 invalid try's to find my mistake (reading, not codewise)

grand bobcat
#

Took me ages to work out exactly how it picked out what was empty and what was #, appreciate the help everyone

elfin timber
#

todays challenge was fucking brilliant i love advent of code

past comet
#

I'm gonna have so many off by 1 errors on this one

livid gull
#

i love how someone on my schools leader board has time taken between p1 and p2 from day 7 onwards of 14s, 16s, 8s!, 31s

hollow wharf
#

I smell cheating xD

honest dune
#

Guys I can't figure out if I can't read the ASCII characters properly or my code is wrong. Possibly the latter. But surprised how I can see still the characters (maybe I'm looking for something which doesn't exist lol). Can I post the ASCII result I get here?

honest dune
#

Oops

thin blaze
#

Day 10 was fun.

dense osprey
#

in todays task
x=1 in the first cycle right?

#

or is x=0 @ start

scarlet wasp
#

The positions range from 0 to 39, starting at 0

thin blaze
#

X=1 at start.

scarlet wasp
#

Ah hm, sorry if I misunderstood the question.

dense osprey
#

part1 was easy today

#

what am i supposed to do in part2

thin blaze
#

||X value at each cycle is the position of 3 pixels on the row.||

#

||So your X value will always be between 1 and 39.||

#

||The screen is 40 pixels wide and 6 pixels height.||

minor cave
thin blaze
#

But all I said was inside the description though. ๐Ÿ˜›

halcyon wave
minor cave
#

Is this advent of code related?

dusty inlet
#

Am I in advent of code?

#

fk

minor cave
#

Please look at the channel you're in before posting.

dusty inlet
#

I accidentally used my editor keybinds in discord

#

oops

dense osprey
#

todays one was great and fun to do

gleaming cedar
rapid dove
#

yesterday's was simply but really just confusing tbh

#

and i dont mean tricky but just very unclearly written

woven sable
#

i've used ||match/case|| for like half the days this year tho, nice for ||command parsing||

dense osprey
#

id rather have an ugly solution after idk how long it took me than having an EXTREMELY UGLY solution after trying to figure out some solutin for hours

#

i hated yesterdays one

gleaming cedar
dense osprey
#

in pt2 i just tested every tree for the score and outputted the max value

#

yesterday was the tree house problem right?

#

or was yesterday the bridge one

#

bridge part2 wasnt easy

gleaming cedar
#

the rope bridge yes

#

tree house was fun but not.. good looking

#

bunch of for loops

dense osprey
#

yea i think i had something like

with ...:
  if ...:
    for ...:
      if ...:
        if ...:
        

heady void
#

it's fun to optimize the solutions after you're done

dense osprey
#

nah

#

i just close the file and do something else

heady void
#

I only optimized p1 for day 8, though

dense osprey
#

im scarred of breaking my code after finally making it work

heady void
#

that's why I make a copy

dense osprey
#

ok

gleaming cedar
#

gitโ„ข๏ธ

heady void
#

yeah I put them all on git, too

muted aurora
#

inspired by day 9

crude trench
#

oh wow thats really good

muted aurora
#

no

crude trench
muted aurora
#

the "no" was for the "are you greek" thing that you deleted

heady void
#

what library are you using for the graphics?

muted aurora
#

It's a custom graphics library which is built on top of SDL

muted aurora
#

if you move the middle, I just treat it like 2 ropes basically

heady void
#

well yours has neighbors, mine just has children

heady void
#

and mine would turn to crap if I were to move anything but the parent

muted aurora
#

(with some rudimentary collision detections)

#

it's not that different though?

heady void
#

yeah it's not a big change

#

imagine how performance intensive cloth simulations are considering the operations required for this 2d simulation alone

muted aurora
#

instead of

for i in range(1, N):
  update(i, i-1)

I just do

for i in range(m+1, N):
  update(i, i-1)
for i in range(m-1, -1. -1):
  update(i, i+1)
muted aurora
#

to be fair this is not that comuptationally expensive

heady void
#

oh?

muted aurora
#

I mean the rope simulation thing, cloth gets out of hand very fast, mostl;y because you want 2-way coupling for it to be nice

#

here children are effected by parents but not the oother way around

#

so it's not too bad, just "1 pass" so to speak

#

I should compile it to WASM and put it on the web

gleaming cedar
#

python?

muted aurora
#

my own language ๐Ÿ˜…

gleaming cedar
#

wheeeeeeeeee x2

gleaming cedar
muted aurora
#

it's not actually rust

#

I just marked it as rust to get syntax highglighting

#

the language is written in itself

normal umbra
#

day 9 done!

#

meh wasnt as long and hard as I thought it was going to be

muted aurora
normal umbra
#

true

#

I solved first part pretty easily

#

but my first part was completely hardcoded for 2 knots

muted aurora
#

I misread the edge case for diagonals for the first part, so that took me a while

normal umbra
#

my new solution can solve any number of knots

muted aurora
#

second part was just throwing a loop

normal umbra
#

yeah true

muted aurora
#

I think I got lucky and made my code general enough from the start

normal umbra
#

also wasnt as impressed by the idea of using complex to represent points

#

I thought it would be really good but, eh

muted aurora
#

it's good for golfing but that's about the only place I'd use it instead of a tuple ๐Ÿ˜›

normal umbra
#

also love your name lmao

muted aurora
#

thanks lmao

muted aurora
normal umbra
#

damn

#

I actually didnt think this is what I just coded

#

wow

#

except mine is only for start and end

#

that sim is very cool

muted aurora
#

yeah but that's a simple enough change

normal umbra
#

yeah just loop in both directions if knot not at ends?

muted aurora
#

basically yeah

normal umbra
#

ah, yeah

#

thats cool

#

now I'm tempted to make a visualization like that

muted aurora
#

go for it! Actually pretty fun

normal umbra
#

I think I'll try it after I do day 10

#

and day 10 reminds me of redstone lol

#

also day 9 is the first day where I imported something

#

and thats only because I used complex instead of tuples and needed phase from cmath

#

I see people doing lengthy numpy ops and get scared lol

muted aurora
#

we managed to get down to 135 characters for day 10 golfed solution so how hard can it be? ๐Ÿ˜‚

normal umbra
#

with numpy?

muted aurora
#

no imports

normal umbra
#

ah

#

I'm still doing day 10 part 1, and looks simple

muted aurora
#

part 2 is a bit trickier but mostly because of how long the text is, understanding took longer than implementing for me at least

normal umbra
#

lol

bright haven
#

i never liked the idea of using complex for a pair of numbers.

normal umbra
#

nor do I, now

#

its nothing special

#

my code for example of part 1 fails on the last condition ๐Ÿ˜ญ

#

how do I debug this lol

#

acc to example, value should be 18. Mines 19

torn thorn
#

for every step

#

print out your board

normal umbra
#

board?

torn thorn
#

uhh

#

i misspoke

#

your day10 isn't working yeah?

normal umbra
#

yes

#

theres so many steps tho

torn thorn
#

just every cycle print out the x value

normal umbra
#

I kinda have that already

torn thorn
#

then for every 20 cycles check ๐Ÿคทโ€โ™‚๏ธ

normal umbra
#

and the value is fine for 20, 60, 140, 180 cycle

#

dumb sheer luck?

#

lol

torn thorn
#

send me your code

woven sable
#

like it's not the same but you can make out the path ig

fossil cipher
#

It appears to be of that style.

woven sable
#

i meant more as in this year's illustration up to day 10 so far

#

||kinda looks like a hot air balloon lifting off||

dense osprey
#

or glรผhbirne in english

placid lake
#

pydis aoc merch is superior ๐Ÿ˜ค

dense osprey
#

idk how its called in english

gleaming cedar
fossil cipher
dense osprey
#

bulb

fossil cipher
#

Store says it's a hot air balloon ๐Ÿ˜„

gleaming cedar
#

hot air balloons are just opaque lightbulbs

placid lake
#

pydis aoc merch!

muted aurora
broken cradle
# placid lake pydis aoc merch!

How comfy would you say it is? I've been hesitant to order anything from redbubble because I don't want to get it and never wear it because it feels weird

minor cave
#

That may not be from our redbubble store actually. I'm trying to remember which platform had the internal label thing

placid lake
placid lake
#

the thing for prestashop

minor cave
#

okay, so it was from our other system, yeah

muted aurora
#

I see I see

minor cave
#

Yeah, that's the system we can't take purchases through so we only use it for prize distribution atm ๐Ÿ˜…

placid lake
#

it is quite nice though

broken cradle
#

I see

muted aurora
#

I'll get back to you

broken cradle
#

can I get a prize for being in the top 1013 on the pydis aoc leaderboard?

muted aurora
#

I'm 69 on pydis leaderboard, that has to be worth something

fossil cipher
#

At least 69, I'd say.

tepid cairn
torn thorn
#

&aoc c

shut trellisBOT
#

Day 11 starts <t:1670734800:R>.

torn thorn
#

6 mins ! ! !

magic oxide
#

I have to start late today since I'm not home yet

torn thorn
#

where's everyone for the countdown ๐Ÿ˜”

magic oxide
#

and I was improving so much as well

#

if only I could write python on mobile

torn thorn
#

pydroid

odd wigeon
#

python is just a text file.

torn thorn
#

hi

odd wigeon
#

you can write python. It's running it that becomes a issue

torn thorn
#

๐Ÿ˜”

magic oxide
#

I'm just gonna read the problem and write pseudocode in my head ig

torn thorn
#

just use !e

#

trust

#

!e print("the answer is: ")

marsh currentBOT
#

@torn thorn :white_check_mark: Your 3.11 eval job has completed with return code 0.

the answer is: 
modern terrace
#

eta 2m 5s

torn thorn
#

wrong channel mate

placid lake
#

hello hello hello

torn thorn
#

hello helooo

#

no hard feelings

covert arrow
#

1 minute

earnest forge
#

GLHF everyone

covert arrow
#

Glhf

placid lake
#

glhf

lime elk
#

GLHF!

magic oxide
#

glhf

torn thorn
#

30 seconds ! ! ! !

#

&aoc c

shut trellisBOT
#

Day 11 starts <t:1670734800:R>.

modern terrace
#

5s

lime elk
#

10s

#

gl!

shut trellisBOT
torn thorn
#

exec time

#

trust

#

me when i didn't read worry divided by 3

pine tiger
#

I'M BACK BABY

torn thorn
#

fuck

#

i read wrong

#

1 minue whee

#

wow second was so easy

earnest forge
modern terrace
#

how do you understand this

minor cave
earnest forge
torn thorn
#

fuck ||worry levels divided by 3|| it made me lose like 10 minutes

earnest forge
torn thorn
#

lmao

#

zoom read solution ๐Ÿ˜”

#

lowkey though part 2 i just guessed and it worked ๐Ÿ’€ ๐Ÿ’€ ๐Ÿ’€

#

booo ranks

pallid quail
#

I'm still stick on Day 7 - have been trying to get this to work and I am about ready to throw in the tower. I got part one, but part two keeps eluding me - and I don't understand why. Is anyone willing to look at my code - and see what might be going on?

torn thorn
#

sure

#

send your solution there

devout tusk
torn thorn
#

lmao rip

pine tiger
#

lol

terse comet
#

usually just unlucky but yeah rip

humble copper
#

i am completely lost as to how to get through part 2

left yew
#

help my part2 is taking very long

#

10_000 rounds

woven sable
#

my part 2 is super quick somehow even tho it's unoptimized it's just the wrong solution somehow?

mystic gull
#

๐Ÿ˜ข _ _

flat sequoia
#

Man I got fucked by closures today

#

LATE BINDING !!!

woven sable
flat sequoia
#

yeah that's the problem

woven sable
#

i'm floor dividing

#

wait are we not supposed to

flat sequoia
#

the division is removed in part 2

woven sable
#

OH

#

thank you sm lmao

flat sequoia
#

yeah that's what makes it harder

#

since you now have to ||find a way to prevent the numbers from getting super large|| @left yew @humble copper hint for you guys too

woven sable
#

ohh

#

yeah it's a lot slower now

#

hm

torn thorn
#

fans going brr

torn thorn
flat sequoia
#

||thought experiment: if you're testing for divisibility by 3, 5, 7, do the divisibility patterns start repeating eventually?||

#

||how can you use this to your advantage to determine whether a big number is divisible by 3, 5, and 7?||

#

||if you're having trouble with this, what about just 3 and 5? that's small enough that you can just try starting from 1 and look for patterns||

#

||once you've figured out this puzzle try applying that to your problem||

flat sequoia
torn thorn
#

ah

#

like eval/exec you mean?

flat sequoia
#

nah

#

like i got fucked because ```py
value = 1
def test():
return value
value = 2
test()

#

here test is a closure and test() will return 2

#

it's less obvious when you have lambdas

#

also i caught my issue but i only fixed it for the operation and not the test by accident

torn thorn
#

hmm interesting

#

i think a few others ran into an issue like that

#

thanks for sharing

flat sequoia
#

yeah it's because i was making lambdas in a loop

#

the worst part was that i printed out some debug statements and accidentally thought it was a whole different issue

#

but turns out i was just looking in the wrong place in the debug output

feral hazel
#

aoc 2020 day 13 spoilers
welp, at least this one didn't force me to look up ||chinese remainder theorem||

humble copper
torn thorn
#

have you learned about ||modular arithmetic|| yet?

flat sequoia
#

i'm actually asking for a response btw

#

then i will ask โœจ follow up questions โœจ

woven sable
woven sable
#

ohhw ait

#

i think i see it

flat sequoia
#

right

#

yeah

woven sable
#

||do you js multiply all of htem?||

flat sequoia
#

||yeah, in the aoc problem you're basically doing the same thing, since the set of #s you're testing for divisibility by is fixed||

#

||if they repeat every X times, then is there any point in keeping numbers above X?||

#

you got this

feral hazel
modern terrace
flat sequoia
#

||you don't want to just ignore them since you still need to test them for divisibility||

flat sequoia
#

||if you know that 5 is divisible by the same things as X + 5 and 2X + 5 and 3X + 5, etc, what can you do to numbers above X to keep them small||

woven sable
#

oo

#

i finished it

flat sequoia
#

nice

torn thorn
#

yoooo

woven sable
#

tysm @flat sequoia!

torn thorn
#

nice

flat sequoia
#

np

woven sable
#

did any of u parse the input or did u just write it out manually lmao

torn thorn
#

parsed it

flat sequoia
#

i parsed it

#

it wasn't that bad

lunar jackal
#

parsed

woven sable
#

yeah i prob should've parsed it

#

i wrote it out manually

flat sequoia
#

mine looks like this

torn thorn
woven solar
#

SCP Foundation meetings be like ๐Ÿ˜”

modern terrace
flat sequoia
flat sequoia
#

yeah close

torn thorn
modern terrace
flat sequoia
#

||you want to get what's left over after you keep removing X right||

earnest forge
humble copper
flat sequoia
#

now what if ||you're testing for divisibility by 3, 5, and 7||

#

||then how often does it repeat||

flat sequoia
#

yea

#

you got it

humble copper
#

||every 105||

modern terrace
#

kk

flat sequoia
#

now think about the aoc problem

#

||you already know in advance what numbers you're testing for divisibility by||

#

||the problem is that the numbers you're testing keep getting super big||

torn thorn
flat sequoia
#

||since you know that the divisibility pattern repeats eventually can you do anything to cut them down||

flat sequoia
#

what am i going to split on

torn thorn
#

commonly if i see things like : or - it's safe enough to split on those

modern terrace
#

YES

#

ty

humble copper
#

omg

torn thorn
#

easier to deal with than to find the amount of characters for me

humble copper
#

ty

flat sequoia
flat sequoia
#

well i just click my cursor and look at the bottom in vscode

flat sequoia
modern terrace
#

you can just see how hard day 11 is compared to day 9

humble copper
#

it took so long to realize ||the division will eventually repeat itself||

#

@flat sequoia thank you

flat sequoia
#

congrats

torn thorn
#

yooo gg

modern terrace
flat sequoia
#

lol