#advent-of-code

1 messages ยท Page 8 of 1

raven wave
#

i hear you

#

Hard to read through all the sleep deprivation

dim pivot
#

wait you can only construct 1 robot per turn

#

wtf

#

then its easy

compact wasp
#

lol

modern terrace
#

i don't get the algo here
when do you decide to build a lower level robot if there are higher levels of robots
when also to decide to build higher levels of robots

woven solar
#

i think i'll let my current solution run and that might be part1 solved. i probably better figure out how to speed it up at least 10x for p2, though, whatever that is

magic oxide
#

mine just refuses to run because it hits recursion limit

torn thorn
#

you shouldn't hit recursion limit

#

it's only 24 deep

livid gull
#

prob something like "you have an elephant helper he can make a robot extra each day but it takes 4 mins to train him"

torn thorn
#

lmao

#

simple greedy won't wokr

magic oxide
#

oh

#

i figured out the issue

#

i'm making robots with negative ore

woven solar
#

some of the blueprints are much cheaper to simulate then others

modern terrace
devout tusk
#

There is a difference between tedious and hard. I have no problem them giving hard problems

torn thorn
#

so like it snowballs

#

oh wait

#

that's actually

#

WAIT

modern terrace
#

it's like some sort of hard lookahead problem for me

woven solar
#

huh, weird actually, why the hell does the test case never builds any orebots. is that truly optimal?

torn thorn
#

||we can calculate time to get next robot right?||

woven solar
#

||sure, but is that truly a big speedup||

torn thorn
#

can we get like a channel to discuss this spoilering everything is getting annoying ๐Ÿ’€

magic oxide
#

oh lmao

devout tusk
#

||Seems like dp+math, more than anything else||

torn thorn
#

^^

magic oxide
#

||i forgot to terminate once time reached 0 so it just kept going forever||

torn thorn
#

i just don't know the math ๐Ÿ˜”

#

imagine there's a theorm for this

#

people make idle game guides all the time how do they come up wtih the numbers

modern terrace
modern terrace
raven wave
#

ever get temptation to ctrl+a, del

modern terrace
#

โ€ซ||it's like that stock profit problem||

torn thorn
#

||ok question: will a greedy algo with lookaheads work if you try to get to the next level ASAP||

compact wasp
#

i just realized why my code wasn't working

#

i forgot that you could choose not to build a bot

torn thorn
modern terrace
torpid bronze
#

my code stopped working today

devout tusk
#

I really can't believe submissions of 16,17 and 18 are almost the same

#

18 was so much easier

torpid bronze
#

welp

compact wasp
#

all i'm seeing is brute-force with dp

magic oxide
#

tessa is actually cracked wtf

compact wasp
#

which would be fine except there's a lot of permutations

torpid bronze
#

i am getting this http error code 401

compact wasp
devout tusk
compact wasp
#

lol

#

honestly

#

have a genetic algorithm

woven solar
#

oh hey, rank89 on p1 lmao. just let my solution run for 13 minutes

dim pivot
#

im so tired lol

devout tusk
torn thorn
torn thorn
torn thorn
compact wasp
#

i might actually implement a genetic algo for this

modern terrace
#

i just wanna know how

#

where to start

devout tusk
livid gull
#

oh! off by 1 error getting close

devout tusk
#

Also, don't want to ruin Monday morning with simulating shit

torn thorn
#

i might give up for now tbh

compact wasp
#

beta not even t100 for this one

#

๐Ÿค”

torn thorn
#

uhoh

magic oxide
#

oh wait you didn't

livid gull
#

probably noulith cant do something lol

torn thorn
magic oxide
#

nvm

torn thorn
#

let's see if my naive dp solution will even work

compact wasp
#

have a final tomorrow

#

i think i'll give up for the day

raven wave
#

oml same

#

what subj

compact wasp
#

so i don't stay up until 3 am

#

math

raven wave
#

jesus

pine tiger
raven wave
#

best of luck?

compact wasp
#

u2

#

my dp solution just returned 0 ๐Ÿ’€

#

i fucked something up

#

i'll figure it out tomorrow

woven solar
#

my optimizations barely made my test 2x faster. this won't pass p2

modern terrace
#

it makes it much worse that i don't know how to do dp

torn thorn
#

basically just memoize some stuff

covert arrow
#

||am I missing something or is dp just @lru_cache||

torn thorn
#

you can do that sure

pine tiger
#

uh...i think it is

#

but

modern terrace
#

i am officially past writing the parsing stage

#

congrats for me ig

torn thorn
#

pro

raven wave
#

bro

livid gull
#

p2 is easier no?

raven wave
covert arrow
#

my parsing is horrible

torn thorn
#

just ||re.findall(\d+)||

#

not hard

modern terrace
covert arrow
#

and ill probably end up rewriting the whole thing later

modern terrace
#

now i don't know what else to do after

woven solar
#

spoilers of p2: p2 is ||only the first 3 blueprints, but 32 mins|| ๐Ÿฅด

raven wave
#

he just like me fr

pine tiger
lunar jackal
woven solar
#

fuck, my optimized version fails the p1 test

#

optimizen't

torn thorn
#

uhoh

livid gull
#

yeahhhhhhhhhhhhh!!!!

torn thorn
livid gull
#

optimised p1!!! paid offf

torn thorn
#

or was there a smarter way?

flat sequoia
#

i've been trying to figure out why my code is giving the wrong answer for like 40 minutes

#

it should work

#

theoretically

#

it finds the right path and gives the right answer for blueprint 1

torn thorn
#

pls hint my brain frazzled ๐Ÿฅบ

flat sequoia
#

but not blueprint 2

#

bruh it's the same problem

modern harness
#

Is using frozen dataclasses to hold my state really going to slow my program down due to long initialization?

earnest forge
#

208 / 98 ๐ŸŽ‰

modern harness
#

woops, didn't mean that as a reply

flat sequoia
#

why not use a named tuple though

gentle dust
#

day 19 going well

torn thorn
#

hmm probably uh

#

not a good thing

modern harness
flat sequoia
#

doesn't matter then

modern terrace
#

i'm just gonna do this by finding the level that's the cheapest to get so far other than ore

hexed axle
flat sequoia
#

i'd be surprised if it made a significant difference

modern terrace
modern harness
#

My problem is taking so long, I have no idea if it is ever correct in the first place... and now I'm adding a bunch of optimizations which, hopefully shouldn't change the answer, but who knows.

pine tiger
#

what's the

#

solution to this

#

bs dp?

earnest forge
#

My problem is taking so long, I have no idea if it is ever correct in the first place
Probably not, you're probably having the same problem as me

#

Important observation that isn't obvious: ||you have to calculate your robot costs before you get your resources for the minute, not after||

pine tiger
#

isn't that a bit obvi if you're looking at the example?

earnest forge
#

yes but that doesn't help if you accidentally skip over it

#

There is 0 chance this lasts but ๐ŸŽ‰ #1 on pydis

pine tiger
#

your hours are limited

earnest forge
#

I finally took down Oliver Ni lmao

earnest forge
#

Nice

#

Who's RundownRhino and how did they do p1 but not p2

modern harness
earnest forge
#

Oh lord lmao

livid gull
earnest forge
#

If you want to check in the spoiler channel I posted how I'm initialising my DP table

#

My code runs in <1s FYI

flat sequoia
#

oh that lb doesn't even have my p1 on it

#

rip

livid gull
#

takes while to update

flat sequoia
#

this problem sucks

earnest forge
flat sequoia
#

i spent forever trying to optimize it and then i just let it run and it finished in like a minute

pine tiger
earnest forge
#

Lmao

raven wave
#

bro my robot count is the thing screwing me up rn wtf

earnest forge
#

That's what tripped me up

lunar jackal
#

๐Ÿ˜ญ I got wrong answer after brute forcing for 12 mins haha

earnest forge
#

Riiip

lunar jackal
#

I hate pt 2

earnest forge
#

P2 is literally just p1 but longer, it runs in like the same amount of time for me

raven wave
#

dont even know what it is rn tbh

pine tiger
earnest forge
#

That's pretty much what I did yeah

lunar jackal
flat sequoia
#

it's literally the exact same problem as 3 days ago

#

but it just takes longer to run

earnest forge
#

is was

earnest forge
#

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

raven wave
#

how did you decrease when you didnt use any resources

earnest forge
raven wave
#

XEXACLT
Y

#

aAAAAAAAAAAAAAa

earnest forge
#

Did you accidentally mutate a shared object?

raven wave
#

nope

flat sequoia
raven wave
#

wait maybe i did

earnest forge
#

Today is <1s

raven wave
#

i couldnt have cause the value for clay is still intact

flat sequoia
#

oh i'm done

#

thank god

raven wave
#

but its like ore decided to reset to def

flat sequoia
#

amazing

raven wave
#

i envy you but congrats

flat sequoia
#

oh well ill optimize it a bit and push it

earnest forge
flat sequoia
#

how is yours so fast

earnest forge
#

speed

#

import speed

#

(jk)

#

Dunno, how's yours so slow? ๐Ÿ™ƒ

#

Apparently it's WA for cereal's input though so ยฏ_(ใƒ„)_/ยฏ

pine tiger
#

LMAO

raven wave
#

using dicts may have been an idea not good

pine tiger
#

MY PROGRAM RAN FOR AN HOUR

#

STILL NOTHING

earnest forge
#

I'll let you know when it finishes ๐Ÿ™ƒ

#

It's 2/3 of the way through

#

1m40, worse than I remember

#

Wait it was the Rust one that was <5s and that one gave WA lol

#

I should sleep lol, exam later

flat sequoia
#

gl

earnest forge
#

though I'll be honest I'm more worried about the questions being wrong than me getting the answer wrong lol

#

This is one of the questions on one of the prep quizzes we had, for reference

#

(the best part about this is that this is after I was given the explicit direction to stop telling people about padding)

torn thorn
#

im going to sleep

#

i give up for now

#

๐Ÿ˜”

raven wave
#

finally have something that i think will work

#

and is running...

#

i dont fundamentally understand how it can take so long, theoretically a greedy algo makes sense

#

wait no even the example isnt greedy

earnest forge
raven wave
#

but when making robots

#

like in the example

#

oh wait

#

hmmm

earnest forge
#

A greedy approach will obviously get the wrong answer

raven wave
#

yeah

#

idk if im sounding dumb but what if it was in reverse

#

so it considers the most expensive robot first

#

wait no

cyan sleet
#

Does it specify anywhere that you can't build several robots in one turn? Or is that just supposed to be assumed?

magic oxide
#

well apparently it doesn't work for the test if u let it be multiple per turn

#

i guess u kinda infer from "robot factory from your pack"

lunar jackal
#

The elves: Hmm am I forgetting something

You:

earnest forge
keen trout
pine tiger
#

this might be copium

#

but i don't like these types of problems

hollow wharf
#

Does anyone know what the person that created the last few puzzles smoked and where i can get 10 of that?

Holy f the difficulty spike since last year is immense

#

Last year the last weekend was pain but this year it's since day 16 (except cube task)

torn thorn
#

day 19 and 16 were basically the same tedious task
day 17 just needed a weird trick to solve

#

day 18 was easy

cyan sleet
#

idk about weird trick for 17

#

it's more of a "if this doesn't repeat I'm totally screwed"

torn thorn
#

15 was easy

#

everything lower than 15 was easy

torn thorn
#

||you just look for cycles||

azure heron
#

Is this correct for day 1:

#
list_of_elves = """1000
2000
3000

4000

5000
6000

7000
8000
9000

10000"""

def find_max():
    _item = ''
    _list = []
    _group_list = []
    for x in list_of_elves:
        if x != '\n':
            _item += x
        else:
            _list += [_item]
            _item = ''
    sum = 0
    for x in _list:
        if x != '':
            sum += int(x)
        else:
            _group_list += [sum]
            sum = 0
    return max(_group_list)

print(find_max())```
silver wyvern
azure heron
#

It is very much 'correct'.

silver wyvern
# azure heron It is very much 'correct'.

It is quite verbose though. ||Youll want to read the input in as a text file rather than pasting the string into your code and to find the max you can use sum on a list. ||

dim pivot
#

storing it as a string is totally fine

hidden musk
#

no it isn't

pine tiger
#

all is well & good before you have to scroll down 1000 lines to get to your actual code

pine tiger
#

that only took me down 20 lines

#

and pressing the end key in vsc

#

doesn't seem to do anything

torn sapphire
#

the dropoff is real

#

(i'm guilty of it too :P)

#

godspeed you people still managing to complete these daily

modern terrace
#

but i got first message in posts of day 19, 17, and 16 iirc

sharp panther
#

i just don't have the time lemon_pensive

young tree
#

Same :(

opaque steppe
#

Slowly making progress but can safely say that AoC has been kicking my ass, but at the same time has taught me a ton

magic oxide
#

yeah don't have the time to finish day 19 pt 2

#

guess I'll do it tonight

#

hope day 20 isn't painful?

placid lake
#

have not because i travelled yesterday and today i kill my arch installation

#

so 18 and 19 are untouched for me :D

magic oxide
#

I'm snowboarding so I just don't have time

#

unless I bring my laptop on the ski lift

earnest forge
#

do it

#

Honestly AoC on a ski lift would totally count for an Upping the Ante post lol

hidden musk
earnest forge
#

Yes

cyan sleet
torn thorn
earnest forge
#

I think day 3 might be when we started the golf effort

#

Good luck everyone, 15 seconds left!

torn thorn
#

13 seconds

#

whooo

shut trellisBOT
torn thorn
#

oh

#

interesting

#

ew

#

||linked list time?||

covert arrow
torn thorn
#

yeah

#

i am throwing hard though

covert arrow
#

||you can have duplicate numbers btw||

flat sequoia
#

yeah i threw hard on those

livid gull
#

grrrr

covert arrow
torn thorn
#

im confused

#

my solution no worky

#

:(

modern terrace
#

i don't understand what's wrong with my code lmao i need help

covert arrow
modern terrace
north orbit
#

I have two 2 d arrays of shapes (100000, 4) and (90000, 4) . How to which indices are the same in both the arrays ?

modern terrace
#

that's why i ||created a list of indexes||

pine tiger
#

what

modern terrace
#

o wait

covert arrow
#

||I defined a __eq__ method on my class so I could use .index() to find 0 but then I realized duplicates could happen and stored the instance if the value was 0 but forgot to delete __eq__ and lost a minute to that||

pine tiger
#

bro the

modern terrace
#

i was modding by 7

#

wtf

pine tiger
#

the wraparround

#

is so cancer

modern terrace
torn thorn
#

i am reading diff

modern terrace
#

yeah there's something else broken

compact wasp
#

my code works on example

pine tiger
#

and your next line will be, "doesn't work on actual"

compact wasp
#

yeah

modern harness
#

Best I've ever done on a problem in the 3 years I've been doing these

torn thorn
#

i am failin

#

so hard

cyan sleet
#

god I was so slow at part 1, had to debug a bunch

compact wasp
#

i have no clue how i should debug mine lol

modern harness
cyan sleet
#

16:49 -> 18:14

modern terrace
#

a

#

why

#

mine just doesn't work

cyan sleet
#

modifying for part 2 was trivial the way I implemented it, thankfully

earnest forge
hexed axle
cyan sleet
#

finally ๐Ÿ˜›

torn thorn
#

this wraparound is aids

#

i am throwing

flat sequoia
#

skill issue xd

#

jk i kinda got skill issued today

#

there were ||no dupes in the sample so i just ruled that out in my head as a possibility||

pine tiger
#

damn

torn thorn
#

i just assumed there'd be dupes ๐Ÿคทโ€โ™‚๏ธ

#

i just can't get my wrapping code to work

#

๐Ÿ˜”

compact wasp
#

bruh why does everyone have so many points ๐Ÿ˜ญ

torn thorn
#

this wrapping

#

is so weird

#

wtf

flat sequoia
#

give up on the wrapping

#

use a smarter approach

compact wasp
#

i used wrapping

#

i also placed poorly, soโ€ฆ

flat sequoia
#

it's like 10 lines long

modern terrace
torn thorn
#

kms on wrapping code

compact wasp
#

mine is 1

magic oxide
#

I have to say

#

being on a ski lift makes for a really good visualization of today

#

at least for pt 1

devout tusk
#

I'll do the question once I'm free today

shell carbon
#

[HELP]
Hello, I am learning python now.
I've built a very simple python backend for test but it occurs CORS POLICY ERROR.
for python developer, it's very simple and basic problem but for me it's very difficult.
How can I solve this problem? Please help me.
this is my simple backend.

from simple_http_server import route, server
@sullen dragon("/isvalid", method=["GET"])
def index(email, password):
return {"res": "hello world!"}

server.start(port=9090)

which code should I add?
Please help me.

magic oxide
#

wrong channel

#

also use code blocks to avoid pinging people named after decorators

wary scroll
#

import tkinter as tk
import time

class Timer:
def init(self, parent):
self.parent = parent

# Erstelle Eingabefelder fรผr Stunden, Minuten und Sekunden
self.hours_var = tk.IntVar()
self.minutes_var = tk.IntVar()
self.seconds_var = tk.IntVar()
tk.Label(self.parent, text="Stunden:").grid(row=0, column=0)
tk.Entry(self.parent, textvariable=self.hours_var).grid(row=0, column=1)
tk.Label(self.parent, text="Minuten:").grid(row=1, column=0)
tk.Entry(self.parent, textvariable=self.minutes_var).grid(row=1, column=1)
tk.Label(self.parent, text="Sekunden:").grid(row=2, column=0)
tk.Entry(self.parent, textvariable=self.seconds_var).grid(row=2, column=1)

# Erstelle Start- und Stopp-Schaltflรคchen
self.start_button = tk.Button(self.parent, text="Start", command=self.start)
self.stop_button = tk.Button(self.parent, text="Stopp", command=self.stop, state=tk.DISABLED)
self.start_button.grid(row=3, column=0)
self.stop_button.grid(row=3, column=1)

# Erstelle Fortschrittsleiste
self.progress = tk.Scale(self.parent, from_=0, to=100, orient=tk.HORIZONTAL, state=tk.DISABLED)
self.progress.grid(row=4, column=0, columnspan=2)

# Erstelle Indikator fรผr verbleibende Zeit
self.remaining_var = tk.StringVar()
tk.Label(self.parent, textvariable=self.remaining_var).grid(row=5, column=0, columnspan=2)

def start(self):

then all the time IndentationError: unexpected indent

what is wrong dont find out help ๐Ÿ˜„

magic oxide
#

do any of you people read the previous messages

hollow wharf
#

Traceback (most recent call last):
File "C:\Users\user\Downloads\Outlook_Gen\Outlook Gen\Outlook gen\Gen.py", line 86, in <module>
create()
File "C:\Users\user\Downloads\Outlook_Gen\Outlook Gen\Outlook gen\Gen.py", line 45, in create
signupmoment.click()
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 93, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 410, in _execute
return self._parent.execute(command, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
(Session info: chrome=108.0.5359.125)
Stacktrace:
Backtrace:
(No symbol) [0x00F2F243]
(No symbol) [0x00EB7FD1]
(No symbol) [0x00DACF10]
(No symbol) [0x00DDD003]
(No symbol) [0x00DD32A6]
(No symbol) [0x00DF858C]
(No symbol) [0x00DD2BFF]
(No symbol) [0x00DF8804]
(No symbol) [0x00E0C9EB]
(No symbol) [0x00DF8386]
(No symbol) [0x00DD163C]
(No symbol) [0x00DD269D]
GetHandleVerifier [0x011C9A22+2655074]
GetHandleVerifier [0x011BCA24+2601828]
GetHandleVerifier [0x00FD8C0A+619850]
GetHandleVerifier [0x00FD7830+614768]
(No symbol) [0x00EC05FC]
(No symbol) [0x00EC5968]
(No symbol) [0x00EC5A55]

magic oxide
hollow wharf
magic oxide
#

posting it here won't help you because this is AoC chat not general python help chat

boreal pivot
#

guys can someone help me with my project

vagrant wind
#

@boreal pivot please describe the problem.

boreal pivot
#

i cant describe it

#

can we VC i will just share screen

vagrant wind
#

Sorry - I only stick to the main channels.

#

If you can't describe it, then a VC won't help.

boreal pivot
#

do you made a platformer game befor?

cyan sleet
#

wtf, read a few god damn messages and realize this is not some random help channel...

magic oxide
#

did someone go "hey guys it'd be really funny if you asked for help in AoC instead of a help channel" today

lunar jackal
#

hey guys I need some help with my program

#

so basically I have these elves and I...

magic oxide
#

hey guys i've made a new programming language called floatcode, and i need help...

earnest forge
#

The state of my private leaderboard

#

It's a sorry sight

magic oxide
#

at least you have a private leaderboard

livid gull
#

and 2nd place cheated :/

pine tiger
pine tiger
livid gull
#

from day 7 onwards they had a 10 second delay for p2

pine tiger
#

i mean how would you cheat in aoc?

livid gull
#

use somebody elses code

pine tiger
#

wha

#

i mean by the time they got someone else's code

#

it's probably be over, right?

livid gull
#

they didnt do it at like release time but like 5 hrs afterwards theyd use someone elses code

pine tiger
#

that doesn't hurt anyone except themselves

livid gull
#

yh but its school lb and the owner of it said all solutions must be your own...

pine tiger
#

oh lol

livid gull
#

i mean it doesnt affect me at all

pine tiger
#

a fellow hs kid i see

livid gull
#

yh last year then off to uni

magic oxide
#

hs gang?

pine tiger
magic oxide
#

i wish people at my school would do aoc

#

there's only like a small subset that do programming and an even smaller subset that likes to do stuff like this

pine tiger
#

you're so lucky

#

2/3 of my class are applying cs major

magic oxide
#

there's like 10 people that might apply in my entire year lmao

pine tiger
#

apply cs or apply to college

livid gull
magic oxide
#

cs

earnest forge
livid gull
#

Is there like a LB for everyone who scored points this year?

#

or do i need to make one if i want to see it?

pine tiger
livid gull
#

i thought it was a test or something lol

#

not college applications

pine tiger
#

oh

#

so just score good = good college?

livid gull
#

like the AP test or whatever you have lol

livid gull
# pine tiger what do yall do in england??

We write a Personal Statement talking about how much we love our subject and what weve done. Then some Universities require entrance exams and some require interviews aswell. But most only look at that Statement and the grades you are predicted to get at the end of the year

pine tiger
#

so just grades, test scores, and one essay???

earnest forge
livid gull
#

basically, but not an essay just talking about our passion for our study. 4000 characters

pine tiger
#

wait

#

do you not give them your extracurriculars

livid gull
#

you talk about that in your personal statement

#

i would send you mine, but if it ends up online then it gets marked as plagerism and unis wont take u basically

pine tiger
#

us unis want your life story in that personal statement

livid gull
#

yeah UK unis really only care about studies and stuff

#

and Cambridge and Oxford dont care at all for extracurriculars

pine tiger
#

damn

livid gull
#

where are you applying?

pine tiger
#

too many

livid gull
#

how many can you apply to?

stray crescent
#

i am so many days behind

#

cause of exams

#

and I have finals the entire month of jan

#

i will most likely be able to continue only after jan

pine tiger
livid gull
torn thorn
#

519th whoo

compact wasp
#

same

cyan sleet
torn thorn
#

&aoc c

shut trellisBOT
#

Day 21 starts <t:1671598800:R>.

torn thorn
#

hypeeeeee

livid gull
#

oooohhhh

pine tiger
#

how do you still have so much hype

#

i just want this to be over lol

#

ever since we got to the volano

torn thorn
#

boundless optimism

pine tiger
#

*volclano

torn thorn
#

๐ŸงŒ

pine tiger
#

things have been going downhill

earnest forge
#

Good luck everyone

torn thorn
#

so much tedious ๐Ÿ˜”

#

and annoying

covert arrow
#

GLHF

torn thorn
#

where's dennis

#

:(

covert arrow
#

This channel was so active just a week ago

torn thorn
#

my fav staff

#

fr

covert arrow
#

where is everyone now

torn thorn
#

@compact wasp :(

#

idk

#

stichie

#

too

naive stone
torn thorn
shut trellisBOT
wispy glacier
#

is it really only 5 days left!

hexed axle
#

... How is it day 21?

devout tusk
#

|| Seems like this is directly eval-able perhaps? ||

livid gull
#

|| i tried python had error cant fix it so changed method ||

devout tusk
livid gull
#

true

devout tusk
#

Currently driving to work ๐Ÿ˜” will do it once I get time

torn thorn
#

uhoh number 2

devout tusk
modern terrace
#

wtf is part 2?

magic oxide
#

I'll do it later tonight

compact wasp
#

fuck i was so close to leaderboard

#

131/107

devout tusk
compact wasp
#

today was easy too ugh

modern terrace
#

oh i get it

compact wasp
#

i threw so hard

modern terrace
#

part 2 is pretty easy

hexed axle
devout tusk
#

||I think I'll learn sympy today finally||

modern harness
devout tusk
torn thorn
#

||sympy isn't downloading for me||

devout tusk
torn thorn
#

i accidently installed ||simpy instead of sympy||

pine tiger
#

oh my god

#

i hit 1000 points

torn thorn
#

wtf pro

pine tiger
#

wait

#

how did yall do it

#

so fast

torn thorn
#

did which part

pine tiger
#

p2

torn thorn
#

just some quick stack overflow for ||sympy||

modern harness
#

I said my goal for this season was to get on the leaderboard for 3 parts (last year and the year before I nailed 2 parts each year). Most of my scores have been in the 500-900 range this year, and hadn't made any leaderboards in the first 19 days, but I managed to crush the last two days!

pine tiger
#

helll yeah bro

normal yoke
#

Can someone send me the lb code?

torn thorn
#

avon crushing it

torn thorn
earnest forge
#

I definitely used to be better at aoc than I am now - I've only got 6 lb spots so far this year and they're all pretty bad; compare that to e.g. 2019 (second img)

torn thorn
#

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

normal yoke
#

.aoc join

modern harness
earnest forge
#

That too

earnest forge
earnest forge
torn thorn
#

wtf pro

earnest forge
#

(apparently they did it again lol)

torn thorn
#

lmfao

normal yoke
minor cave
#

bot prefix is &

normal yoke
#

and the cmd doesn't work

torn thorn
#

&aoc join

normal yoke
#

oh

#

but

#

It leads tho this one:

earnest forge
normal yoke
#

Feels wrong

earnest forge
normal yoke
#

Oh

#

Okay

minor cave
#

We have several leaderboards because of our size

earnest forge
#

There's like 10 leaderboards that all get merged into the one shown by the bot

normal yoke
earnest forge
#

I'm in 2 of them because 2019 -> 2020 something got messed up lol

pine tiger
#

back in 2019 you were #1 on lb

earnest forge
#

doesn't give me double points though :(

torn thorn
#

i still have a random leaderboard i have 0 clue

pine tiger
#

here

earnest forge
modern harness
#

This year, I'm using a programming setup I'm specifically trying to get better at. I'm using my custom 36 key keyboard I built and a neovim setup I've been working on. So on one hand, I'm still getting used to those, but on the other hand, its probably not going to slow me down any more than just doing it in jupyter like I did in previous years.

pine tiger
earnest forge
#

Honestly I have no idea where it is right now and it's 5:40 in the morning so I can't be bothered to go find it

pine tiger
#

oh lol

earnest forge
#

It's basically just the pydis logo with 'stupidsexyflanders.com' written in binary-encoded ASCII in the middle of it for some reason

pine tiger
#

beautiful

#

i'm tearing up at the mere thought of it

modern harness
earnest forge
#

I'm Starwort

#

3rd I think

pine tiger
#

not for long

earnest forge
#

Lmao

torn thorn
#

it's like basically oliver and zeyu competing for first and second and oo for third .-.

pine tiger
#

the thing with zeyu

#

it's strange

#

i'm higher than him on global

torn thorn
#

i think he just has faster overall solve times

modern harness
# earnest forge 3rd I think

It looks like I'm 6th now, but I wouldn't be surprised if there is a person or two that'll push me down once they complete part 2 today

pine tiger
earnest forge
modern harness
earnest forge
#

I'm actually only 3 points behind Oliver so if he gets stuck for a while on a puzzle that I don't it could actually happen

pine tiger
earnest forge
#

Lmao

pine tiger
#

something's wrong

modern harness
earnest forge
#

I mean that's true I did trigger that refresh

#

But I think in terms of time I was actually first it was about 10 minutes lol

livid gull
#

im 2342th over all the years, not too bad

#

and 577th in 2022

earnest forge
#

Where did you find that? I remember finding some kind of combined board but I've lost the website lol

livid gull
#

i created my own lol

#

i remember that site but couldnt find it so i just created the worst looking parser known to man

earnest forge
#

kekw

icy hawk
livid gull
livid gull
#

I had a hunch what it was the main debugging was finding what year you got top 100 lol

#

lots of crtl+f ing

devout tusk
#

for p1, ||not getting any error but it's stuck on computation since eternity||

#

can anyone help?

devout tusk
devout tusk
# feral hazel ||`-(` instead of `=(`||?

still doesn't work. I'm baffled. ||I checked for like a sample set of equations in the same format

import sympy as sy
x= sy.symbols('aaaa,simp,cccc,dddd')
equations = ['aaaa-(simp-8)','aaaa-(root-15)','root-(cccc-20)','dddd-(cccc+50)']
sy.solve(equations,x)

AND THIS WORKS. LIKE WTH||

earnest forge
#

Something silly like ||you happen to have a variable called simp||?

#

Wait this was 2 and a half hours ago kekw

modern terrace
#

โ€ซwhich day of the last 5 days was the easiest

magic oxide
#

yesterday was really easy

#

I'd probably order last 5 days from easiest to hardest
list value moving (day 20)
cubes (day 18)
monkey math except they yell instead of throw (day 21)
robot assembly line (day 19)
tetris (day 17)

restive imp
#

I'm currently working on Day 13, and am a little stuck. My unittest with the example works fine, but the result for the real input seems to be wrong.
For the example I'm wondering, what is the deciding factor for the following pair?
|| [[[]]]
[[]] ||
Is it ||right ran out of items||?

covert arrow
restive imp
#

Good. I also think I found my mistake. I am overwriting a previously made decision

restive imp
#

Yes, Day 13 done... finally some progress again

magic oxide
#

honestly after doing 21 i'd probably switch 18 and 21

#

if we extended to 6 days day 16 is defo at the back

#

very far back

pine tiger
compact wasp
#

agreed

zinc kindle
#

Doing day20 part1, and I'm having trouble. I get expected behaviour with test inputs, but not with actual inputs. I think my problem is ||dealing with values where abs(item) > length - it's throwing my calculations off||.
I think it'd help if I could have some sample data that has some such behaviour, and what the result at each step should be.
Actually, could someone give me the result of each step for the following test data (7 items which aren't part of my inputs), because I think that'd help me figure out how things should behave:
||8, 8, -11, 3, -9, 0, 12|| (edit: or maybe ||8, 7, -11, 3, -7, 0, 12|| )

unique osprey
unique osprey
zinc kindle
unique osprey
zinc kindle
# unique osprey How are you implementing the mixing for the numbers? Are you like swapping N ti...

In Rust (reimplementing in python to see if somehow that chanfes things because I'm desparate and it's easier to communicate on this server) I'm using ||collections::VecDeque|| which is equivalent to python's ||collections.deque||.
For each item, ||find index, then rotate_left index steps (python deque.rotate(index*-1) I think. Then I have two implementations. With one I pop_front (popleft), rotate k steps, then push_front / appendleft. k is abs(n) % (len old xs or len new xs). With the other implementration, I replace the value with None, then do the rotate, then push, then remove the None. First implentation works on sample input but feels buggy, second inplementation doesn't work||

unique osprey
#

ok this part ||abs(n) % (len old xs or len new xs)|| . Make sure ||the "length" is length after removing the item||

#

||> I replace the value with None, then do the rotate, then push, then remove the None||

Yeah i think this causes the same problem

zinc kindle
torn thorn
zinc kindle
#

Reimplemented in python, getting same incorrect result. At this point I think I'm just going to give up and move to day21 for now.

silver wyvern
magic oxide
#

I found it personally difficult because I didn't know how to ||do cycle detection||

#

at least for robot assembly I knew how to ||dfs from day 16||

silver wyvern
#

See I havent done 16 or the robot one because ||dfs is new to me and im not 100% on writing somethign that complex yet.||

#

How would you apply ||dfs to day16 though? Since i think it matters in which order you trigger the valves||

#

Unless Iโ€™m mixing up ||bfs and dfs||

marble smelt
#

where do I find the challenges?

magic oxide
#

||dfs to search the state tree not the actual graph itself||

#

||dfs was new to me as well but it's really just bfs but recursive so I picked it up pretty quick||

compact wasp
magic oxide
#

yeah that's what I thought

#

list was really easy

#

monkey math is also pretty easy but not as easy

#

cubes was slightly above trivial

torn thorn
#

the ||wrapping code took me like an hour to fix||

#

cubes was so trivial

compact wasp
#

i am not allowed to call that a skill issue

#

but i must say that is indeed an interesting allocation of time

torn thorn
#

๐Ÿ˜ญ

#

rude . .. .

compact wasp
#

sooner or later kat will mute me for the stuff i say kek

magic oxide
#

I don't have such restrictions

magic oxide
compact wasp
torn thorn
#

:(

magic oxide
#

cubes honestly was trivial

#

I just screwed up bfs

#

or floodfill

compact wasp
#

agreed, cubes was trivial

#

i just thought list was more trivial

magic oxide
#

yeah list is most trivial

torn thorn
#

it was trivial to understand

#

just annoying af to implement

#

monkey was trivial af

compact wasp
torn thorn
#

just messed up on ||sympy installing|| ๐Ÿ‘

magic oxide
#

imagine using ||sympy||

compact wasp
#

trivial even without ||sympy||

magic oxide
#

^

compact wasp
#

just use ||complex numbers||

torn thorn
#

didn't think of it at the time

#

doesn't really matter at the end of the day

compact wasp
#

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

magic oxide
#

really any ||vector isomorphic to R2 would work||

compact wasp
#

one of those is just so much more convenient than others though

torn thorn
#

yes, ||sympy||

#

๐ŸงŒ

compact wasp
#

๐Ÿ’€

torn thorn
#

regardless they were basically all trivial

magic oxide
#

yeah

torn thorn
#

except like robot

magic oxide
#

robot and tetris were kinda difficult

torn thorn
#

tetris just needed a trick

magic oxide
#

easier than day 16 tho

compact wasp
#

nah tetris was fine

torn thorn
#

but it was self obvious what the trick was

magic oxide
#

didn't you guys cheese it by ||guessing the cycle was just one cycle of the moves||

torn thorn
#

||i didn't detect any cycles in the actual jet streams itself, so it would've been a multiple of the length of the jet movements||

compact wasp
#

sevoi metagaming

magic oxide
#

||everyone else had cycles of like 5k length so idk what u did||

torn thorn
#

idk ๐Ÿ’€

#

worked for me so ๐Ÿ‘

covert arrow
magic oxide
#

||idr||

#

||it was something in the thousands I think||

covert arrow
#

||they were in the 2k range I think||

torn thorn
#

never actually wrote any code to detect cycles ๐ŸงŒ

#

fun

compact wasp
#

it was 10091

#

i know because i looked at the golf

torn thorn
#

looked at the golf ๐Ÿ˜ญ

magic oxide
#

that's how many moves there were

compact wasp
#

i see a modulo so it has to be length

torn thorn
#

do golfs assume bounds/numbers

#

and if so why

magic oxide
#

the golfs make some assumptions

compact wasp
#

golfs just have to work on all aoc inputs

magic oxide
#

about the input

compact wasp
#

and aoc inputs clearly have restrictions

#

so we can use those restrictions

torn thorn
#

meh

magic oxide
#

like for yesterday we assume that no monkey had ro__ as their name, and that humn came before root

torn thorn
#

i have some mixed feelings abt that

covert arrow
#

we just look at the 6-7 inputs we have and if something is true in all of them, we just assume that it's true for all inputs

compact wasp
#

common sense applies though

#

like obviously we aren't just building a dict that maps inputs directly to outputs

magic oxide
#

another one I remember is day 13
we assume the numbers are from 0 to 10 and that the max nest length is less than 5

torn thorn
#

lmao

magic oxide
#

yeah

torn thorn
#

it might be interesting to see how much it'd add if you didn't assume anything about the input than what was directly stated

compact wasp
#

day 13 was the other list one, right?

magic oxide
#

yes

torn thorn
magic oxide
#

that one was much harder than the recent list one

covert arrow
#

like the filesystem one

torn thorn
#

filesystem was trivial

covert arrow
#

but it would be much longer if ||input wasn't dfs||

magic oxide
#

for certain ones

#

for others it'd just add extra chars

compact wasp
#

yeah

torn thorn
magic oxide
#

day 13

torn thorn
#

ic

magic oxide
#

you need empty lists to be negative numbers

#

but they need to be comparable to each other along their absolute values

#

so I did nest level-5

#

if it's greater than 5 it breaks the code

#

you could do like 99 but it'd break for nest lengths of 100

#

you'd have to add an entire function to find the max nest length if you wanted to salvage it

compact wasp
#

day 21 also breaks without certain assumptions

#

for instance, we assume that ||part 2 is linear||

magic oxide
#

yeah

mossy basin
#

finally caught up, had too much to do last couple of days!

placid lake
#

i haven't even began to catch up yet lol

magic oxide
#

||tbf a lot of normal solutions assume that as well||

torn thorn
magic oxide
compact wasp
torn thorn
#

oh

magic oxide
#

||just assuming it's linear||

#

||because otherwise stuff breaks||

torn thorn
#

||wait oh u mean if there was like root^2 or smth||

compact wasp
#

||1j * 1j = -1, which would mean that there could be no imaginary part||

magic oxide
#

||no we mean like if we had (humn related thing)*(humn related thing)||

torn thorn
#

yeah

#

idk

compact wasp
#

||without the imag part, we cannot solve for the unknown, because it just disappears||

covert arrow
#

||normally it would be quadratic but the x^2 term would be lost||

torn thorn
#

ic

compact wasp
#

whoever came up with that idea should get a raise frfr

magic oxide
#

||since any vector isomorphic to R2 works, we don't need the bilinear product that comes with complex, but that also means that we don't have a proper operation for (humn thing)*(humn thing)||

magic oxide
#

from 0 to 0

compact wasp
#

0 - 0

#

i like it, short castle

torn thorn
#

||ok but what if there were multiple monkeys that required the humn node||

#

and it wasn't linear

compact wasp
compact wasp
#

without that it just breaks

torn thorn
#

how would you solve it if it wasn't though

compact wasp
#

2-tuples

#

maybe

#

or actually we could ||bin search||

#

might be shorter

torn thorn
#

multiple roots though?

compact wasp
#

pretty sure it's guaranteed to converge on one of them

#

if it's implemented correctly

torn thorn
#

how'd it be implemneted?

magic oxide
#

if it wasn't ||linear||, I probably would've just used my ||rational function class and made a rational function out of the thing, and then found the root||

compact wasp
#

idk yet

magic oxide
#

||golf would be difficult tho||

compact wasp
#

yeah classes are too big for golf

torn thorn
#

unforunate ๐Ÿ˜”

magic oxide
#

||if it wasn't linear it'd be a pain for the input creators as well since they have to guarantee a unique solution or do something else||

magic oxide
#

would be quite annoying to deal with

torn thorn
covert arrow
#

how would you get asymptotes though

#

oh wait 1/x exists

magic oxide
#

division

magic oxide
#

||since if some of the roots have multiplicity > 1 you wouldn't be able to just vieta the answer straight up, so some inputs would be unfair||

#

||unless all of them had >single roots||

#

||but if it's rational I think that works out||

covert arrow
#

&aoc countdown

shut trellisBOT
#

Day 22 starts <t:1671685200:R>.

modern terrace
#

21 gave us a break

#

i'm worrying for 22

torn thorn
#

fr

#

last couple days have been easy

#

inb4 it's another dp problem

earnest forge
#

Nearly overslept, caught COVID from my exam on Monday... This is gonna be interesting

#

GL everyone

torn thorn
#

glgl

modern terrace
#

ok T-60

torn thorn
#

where's dennis (2) ๐Ÿ˜”

covert arrow
#

and I made it to global leaderboards on the same day

torn thorn
#

damn

earnest forge
#

Lmao nice

torn thorn
#

is that a sign

modern terrace
#

T-35

earnest forge
#

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

covert arrow
#

30s

#

glhf

torn thorn
#

hypeeee

#

only like 4 more days left

modern terrace
#

how long will it take for 1st place to finish this

#

T-5

torn thorn
#

3 minuts

shut trellisBOT
torn thorn
#

?

#

what the fuck

modern terrace
#

wth

stable shale
#

Oh no

covert arrow
#

wtf

modern terrace
#

oh

#

wrap around

#

here we go with the wraparounds again

torn thorn
#

ew

modern terrace
#

we can just do this manually right

#

nvm 5637 chars in the direction

haughty ember
#

hi

#

im new to python

#

can i know why is this happened

smoky matrix
haughty ember
#

may i know which channel i need to go?

hexed axle
haughty ember
#

alr thanks

compact wasp
#

got 95th

#

meh

torn thorn
#

i fucked up my wraparound code

#

:(

compact wasp
#

rip

#

for p1 or p2?

torn thorn
#

p1

modern terrace
#

i'm still figuring out how to wrap

covert arrow
#

what is this p2

woven solar
#

oh my fucking god, the part2

covert arrow
#

ikr

woven solar
#

i did not sign up for topology

modern terrace
#

i'm not even done with p1

covert arrow
#

||its a net of a cube||

compact wasp
#

yeah

placid lake
#

okay i just did day 18

#

and damn day 19

#

what is this

compact wasp
#

i thought for a sec today was day 18

#

and i was gonna ask "damn even p2?"

placid lake
#

lmao, i gotta catch up

#

haven't done AoC for a few days

flat sequoia
#

are you fucking kidding me

compact wasp
#

yeah i realized kek

flat sequoia
#

they didn't pad the input file

compact wasp
#

so?

pine tiger
#

BRO WTF IS P2

compact wasp
#

ikr lmao

flat sequoia
#

they've done it every other time

#

it's just annoying

pine tiger
#

THIS IS JUST IMPLEMENTATION HELL

flat sequoia
#

i had working code except this when there were 2 people on the global leaderboard

compact wasp
#

just ||store it in a dict||

flat sequoia
#

yes i am

#

that's not the problem

pine tiger
#

just for this day

flat sequoia
#

it's easy to solve the bug i'm just annoyed that they aren't at least a bit consistent with their inputs

pine tiger
#

isn't this entire thing made by one person lol

flat sequoia
#

i mean even so idgi

#

in a way that even makes it easier to be consistent because you don't have people with differing thoughts

#

ok i don't mean to disrespect their time and effort i'm just miffed

torn thorn
#

fuck... um my impl works for test not my input

#

:(

pine tiger
#

did you check ||if the teleport position is a wall?||

torn thorn
woven solar
#

i am not looking forward to implementing this part2 ๐Ÿ˜ฉ

compact wasp
#

same

pine tiger
#

there should be a...

#

a library

#

for this...

#

right???

torn thorn
#

nvm my thing is balding

pine tiger
lunar jackal
#

I hate this

woven solar
#

like, I can ||hardcode the mapping between faces||, but then ||I'd also have to note that, say, going upwards on face 1 gets you on face2 in a flipped location - left side of top edge of face 1 is connected to right side of top edge of face 2||

modern harness
#

5 minute cooldown โ˜น๏ธ

lunar jackal
#

ok I give up, I'll try again later

torn thorn
#

oh

#

my god

#

i just saw part 2

#

this is like acsl last year

#

ewwww

devout tusk
#

Lady and Gentemen, If you find the input format shitty, say I

torn thorn
#

I

lunar jackal
#

I

livid gull
#

MrPhlip is a god

pine tiger
#

I

pine tiger
torn thorn
#

i hate this

devout tusk
pine tiger
#

bruh

#

discord

#

is blocking my image

#

of a wood block

#

"too explicit"

torn thorn
#

lol??

devout tusk
torn thorn
#

i am going to

#

jump off

#

aaa

pine tiger
#

your next line will be "a cliff"

torn thorn
#

this cube

#

:>

#

question: what does everyone's cubes look like

pine tiger
#

great

#

now i can post it

magic oxide
#

so uh

#

by the responses of people here can I assume part 2 is something ||about folding the net into a cube||

torn thorn
#

yes

#

OK I MAPPED

#

OUT ALL THE EDGES

pine tiger
#

zamn

torn thorn
#

bro i've done this type of thing before

#

it took like 2 hours

#

what dunder method for class[a]

earnest forge
#

getitem

torn thorn
#

ty

pine tiger
#

maybe i'll

#

tank the leaderboard hit

modern terrace
#

my code doesn't work wth

torn thorn
#

tough

#

lmao

modern terrace
#

WTH

#

my code works for test input but not for actual

torn thorn
#

lol

#

my input was different

#

than the test

woven solar
#

oh shit mine very nearly works

flat sequoia
#

ETS GOOO

#

IM DONE

#

HAHHAHAHA

#

i'm laughign so hard

#

my solution is the worst solution you could possibly imagine

#

i don't think it even works on all inputs

torn thorn
#

wow

#

i am hard bashing it out

#

:p

flat sequoia
#

coord bash

modern terrace
#

that's it i'm putting out the big debug thingy

flat sequoia
#

if the net is laid out differently than my input

#

it just won't work

modern terrace
flat sequoia
#

will post code when leaderboard fills up more

livid gull
#

holy crap im thankful for my friend sending me p2 while im on cooldown

flat sequoia
#

5 mins realistically won't make a big lb diff

#

actually jk

#

if i finished 5 mins faster i'd have jumped 20 places up

livid gull
#

it was 5 mins twice lol