#advent-of-code

1 messages Β· Page 3 of 1

terse comet
#

iirc only the first 100 people to solve it gain any points at all

urban locust
#

For day one, how do I take all my input numbers and put it into code?

terse comet
#

see the channel description though

urban locust
#

Ah I see, thanks

#

I should've read the description first, sorry

tepid cairn
#

what aoc helper do yall use?

earnest forge
tepid cairn
#

aoc_lube? Maybe I'll go for that as well :p

earnest forge
#

I'm considering installing aoc_lube for its extra stuff tbh

#

The graph parsing looks nice but I don't understand networkx

tepid cairn
#

well, I'll bring in more-itertools

hollow wharf
#

trying to do a one-liner on the 2nd day problem

unique osprey
tepid cairn
#

haha, fair enough

flat sequoia
#

Not really that helpful imo

tepid cairn
#

I'd like not having to download or copy+paste the input file, at least. A few commonly used utility functions will be nice to have as well, but thats sort of where more-itertools comes in

flat sequoia
#

I just have a simple run script that checks what day it is and runs the right file

earnest forge
flat sequoia
#

I don't really get it

#

Is it that hard to type [int(x) for x in f.read().splitlines()] or something

tepid cairn
#

maybe I'll do something wacky to get method chaining

flat sequoia
#

Maybe I'll give an input fetcher a try

tepid cairn
#

yoo my generator works

broken cradle
tepid cairn
#

finished day 3 πŸŽ‰

#

took me less time than day 2 pithink

elder wigeon
#

Same

#

day 2 was awful

hollow wharf
#

Both took me ~30 min

elder wigeon
#

30 for 2

#

3rd day took me like 15

hollow wharf
#

I'm sometimes too dump to get what they want me to do

#

Had to read the task 4 times

elder wigeon
#

Yeah it's hard to focus through all the unimportant stuff

cyan sleet
#

I usually just jump down to the examples and read a bit up from that

woven sable
#

i'm worried ab day 4 tbh lmao

long egret
#

i took mine way too seriously and now i'm writing a whole ass framework

tepid cairn
#

I just wrote up a small script to generate the boilerplate for a solution

long egret
#

oh lol

#

im having a lot of fun

urban locust
#

What is an AoC helper?

hidden musk
#

my servant. they help me with the problems

broken cradle
#

scripts and other things to help with AoC tasks you don't want to waste time on, like downloading the inputs

tepid cairn
urban locust
#

Ah, cool

broken cradle
#

I've managed to setup mine so I just need to run pdm test and it'll run the solutions for the current day

#

idk if I want to take the time to figure out how to make it actually test it against examples though

long egret
#

i'm going all out with it

#

it'll have a CLI for it, fetch the inputs for you, and submit for you as well

tepid cairn
#

I ended up deciding decorators weren't great for this, and I was too lazy to bring in bs4 for fancy parsing

woven sable
#

nothing beats that day with the beacons tho πŸ’€

limber aurora
#

prediction for tomorrows problem?

limber aurora
broken cradle
#

they probably screwed something up again

limber aurora
#

they seem to do that a lot

broken cradle
#

unreliable idiots

limber aurora
#

i hope something big happens, they seem to have not done much yet

broken cradle
#

santa should find some new workers

hidden musk
#

maybe he should pay them

limber aurora
#

maybe tomrrows problem will be us helping santa hire new elves because these current ones are not the best

broken cradle
hidden musk
#

maybe they'll be more reliable if they got paid and got benefits

long egret
hidden musk
#

they probably don't even get insurance

broken cradle
#

robot chicken elf training video

limber aurora
#

but they get to play with toys all day

earnest forge
broken cradle
#

crazy

earnest forge
#

Also a heads up to anyone who installed aoc_helper today (1.6.10, 1.6.11) I accidentally pushed a version that crashed on launch

#

(fixed in latest)

tepid cairn
#

oh, do you maintain it?

earnest forge
#

Apparently today's input was a tenth the size of the other two days

earnest forge
tepid cairn
#

ooh, cool

earnest forge
#

Salt and I rewrote a very old version of his library (I wanna say in 2019?) and he made a new version (aoc_lube) and I'm just updating the old one

#

(also if you're using the library for the first time, run it before tomorrow so you can set up the token stuff)

woven sable
#

i can imagine y'all finish the puzzles fast knowing everything you wrote in your utils library 😭 at first i was so confused with all the utilities functions there

earnest forge
#

Top 1k-ish mostly use libraries like this yeah

#

Every conceivable thing a puzzle might need

woven sable
#

lmaoo yeah i saw djikstras in there

#

would've been rlly useful last year

earnest forge
#

(why do you think it's in the library?)

elfin timber
earnest forge
#

Lmao

sick wasp
#

&aoc

shut trellisBOT
#
&[adventofcode|aoc]

All of the Advent of Code commands.

Commands:
  about       Learn about Advent of Code
  countdown   Return time left until next day
  dayandstar  Get a view that lets you filter the leaderboard by day and star
  global      Get a link to the global leaderboard
  join        Learn how to join the leaderboard (via DM)
  leaderboard Get a snapshot of the PyDis private AoC leaderboard
  link        Tie your Discord account with your Advent of Code name.
  stats       Get daily statistics for the Python Discord leaderboard
  subscribe   NOTE: This command has been moved to &subscribe
  unlink      Tie your Discord account with your Advent of Code name.

Type &help command for more info on a command.
You can also type &help category for more info on a category.
sick wasp
#

&aoc join

#

&aoc leaderboard

shut trellisBOT
#

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

     | Name                      | Score | ⭐, ⭐⭐
--------------------------------------------------
   1 | Oliver Ni                 |  5830 | (3, 3)
   2 | Zeyu Chen                 |  5805 | (3, 3)
   3 | Defelo                    |  5783 | (3, 3)
   4 | BoomydayCoder             |  5776 | (3, 3)
   5 | RadioactiveHydra          |  5764 | (3, 3)
   6 | Kevin Sheng               |  5764 | (3, 3)
   7 | RundownRhino              |  5761 | (3, 3)
   8 | Cefqrn                    |  5760 | (3, 3)
   9 | Artemis                   |  5756 | (3, 3)
  10 | Anonymous #1087784        |  5751 | (3, 3)

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

Number of Participants

972

Full Leaderboard
mossy basin
smoky finch
#

i keep the code just to remember someday :p

#

i think ill always be proud of seeing my solution for today, it was extremely clean

low condor
#

Would you like to post your solution on the solutions channel? I’m interested to see this extremely clean solution :)

hollow wharf
#

how do i join?

broken cradle
long egret
#

why tf are these elves up to some dumb shenanigans every year

broken cradle
#

like we were saying earlier, santa should find some paid helpers

#

or maybe he'll just keep leaching off of us to fix the elf's problems

#

we should charge santa for the work we're doing

long egret
#

ikr

#

we'd make some mad bank

broken cradle
#

the milk and cookies are NOT going to be free this year

#

nor will they be cheap

open magnet
#

How is your score on the leaderboards calculated?

open magnet
#

Sweet it isn't time based. Thanks.

#

I wish i was better at this lol. A lot of if statements doesnt seem like the best way to attack problems.

broken cradle
#

While they're definitely possible with if statements, there are many ways that these problems can be solved

open magnet
#

All i can think of is step by step processing so statements. I need to practice list comprehension as that more than likely will help me in life overall lol.

broken cradle
#

be sure to check the spoiler channels once you figure it out on your own. A lot of little tricks and cool features you can learn from there

stiff wasp
#

Can I ask a question about my code for day 3 here if it doesnt work, or should that still go to spoilers? lol

broken cradle
#

probably spoilers

#

there's no solutions you can see there without scrolling right now

shut trellisBOT
#

Sorry, an unexpected error occurred. Please let us know!

CommandInvokeError: Command raised an exception: NotFound: 404 Not Found (error code: 10008): Unknown Message

broken cradle
#

I have no idea what to check for in the response to see if it's right or not so I'm doing it manually ig

def submit(year, day, part, answer):
    if _check_answer_cache(year, day, part, answer):
        print("Answer incorrect (cached)")
        return

    if not os.getenv("SESSION"):
        raise RuntimeError("No session token provided. Cannot fetch input.")

    req = session.post(BASE_URL + f"{year}/day/{day}/answer", json={"level": part, "answer": answer})
    req.raise_for_status()

    print(req.text)
    
    if input("Correct? Y/n").upper() not in ("Y", ""):
        _cache_wrong_answer(year, day, part, answer)
earnest forge
#

It's 4:45AM and I've been up for the last 16 hours or so

#

I am very tired

earnest forge
marsh currentBOT
#

aoc_helper/interface.py line 238

if msg.startswith("That's the"):```
royal lantern
#

bloody hell 10 more minutes and we're off to the races

earnest forge
#

Yup

#

Hi Salt

mossy basin
earnest forge
#

Fair enough

broken cradle
#

The content of the page is just between article tags or something?

earnest forge
#

Wait why would you regex if you're still using bs4 lmao

earnest forge
#

I swear you said you were regexing to save on loading bs4 or something

mossy basin
#

i was thinking about doing it

#

i experimented earlier today with it as well

earnest forge
#

Anyway I don't know if you saw the ping from earlier but is it ok if I steal your Chinese Remainder Theorem function from aoc_lube lmao

mossy basin
#

yeah, everything is using Unlicense, so free to use and do w/e with

earnest forge
#

Ah brilliant

#

Ty

mossy basin
#

can steal it and sell it off as your own even

torn thorn
#

6 minutes left whooo

#

&aoc c

shut trellisBOT
#

Day 4 starts <t:1670130000:R>.

torn thorn
#

i remember that it was painful

earnest forge
#

that's why I'm stealing Salt's code

torn thorn
#

what problem was it on though πŸ’€

earnest forge
#

A hard one

livid gull
#

the train one

mossy basin
#

extra challenge: solve problem with only the input

torn thorn
#

can you do that

#

?~?

#

i thought it was only day 1 you could cheese

livid gull
#

you can do it every day if you try hard enough

earnest forge
#

I mean I distinctly remember binary searching at least one answer at one point

broken cradle
#

people cheesed day 1?

torn thorn
#

oh

#

lmao

#

no one cheesed day 1

#

but you could have gotten day 1

#

or so i've heard

earnest forge
torn thorn
#

πŸ’€ πŸ’€ πŸ’€ πŸ’€ πŸ’€ πŸ’€

simple bison
#

2 mins

peak dock
#

wth is a cheese

earnest forge
#

It was the wrong answer but it was worth a try

placid lake
#

heyo

placid lake
#

good luck y'all

torn thorn
#

2 minutesss

unique osprey
#

GLHF

earnest forge
earnest forge
#

E.G. binary-searching an answer when it tells you higher or lower

torn thorn
#

generally it's more of a cheap shot to solve something, not just a puzzle

earnest forge
#

GLHF everyone!

torn thorn
#

usually used in gaming

modern terrace
#

1 minute

earnest forge
#

There's also that one puzzle people just looked up on OEIS

torn thorn
#

oeis?

earnest forge
modern terrace
torn thorn
#

wtf is that

#

lmao

earnest forge
torn thorn
#

interesting

#

30 seconds

#

whooo

placid lake
#

bye bye

#

have fun

sharp panther
#

the build up is great

broken cradle
#

fr

shut trellisBOT
broken cradle
#

man, the elves are at it again with their bad planning

tepid cairn
#

Day 4 day 4

minor ivy
#

Oh noooo

tepid cairn
#

I'll wait till tomorrow to do it, I imagine midnight isn't the best time to crank out a solution

earnest forge
#

65/58 :D

pine tiger
#

WOOOOOO

muted aurora
#

IM BACK

dawn fractal
#

how do people do it so quickly?

minor ivy
minor ivy
muted aurora
minor cave
pine tiger
#

wait are gifs allowed

minor ivy
#

Toxic fuck

pine tiger
#

(that was meant to be sarcastic)

minor ivy
#

Bro this is hard

tepid cairn
#

lolol, good job

minor ivy
#

Is there a website where I can do simple word problems?

#

for python

#

I want to excersice

dim pivot
#

LES GO

#

64/20

tepid cairn
humble copper
#

terrible performance

#

Β―_(ツ)_/Β―

tepid cairn
dim pivot
#

that's good!

earnest forge
dim pivot
#

well done!

minor ivy
dim pivot
peak dock
earnest forge
#

I'm embarrassed by my ~1m delta, that's me struggling to interpret the question lmao

tepid cairn
earnest forge
#

Also forgetting how to actually do the operation required lmao

#

The struggles of 5AM puzzle solving πŸ™ƒ

mossy basin
#

extract_ints gave me negatives lol

minor ivy
#

cya guys gn

pine tiger
earnest forge
torn thorn
#

24 seconds fuck

flat sequoia
#

took me way too long to actually read the problem πŸ₯΄

earnest forge
flat sequoia
#

my delta was 21s lol

earnest forge
#

I didn't feel like I spent a minute doing part 2 but apparently I did

unique osprey
#

Wow i feel like that was easier than yesterday

earnest forge
#

Yeah

flat sequoia
#

was it

#

i guess

#

yeah it was definitely easier i just spent too long reading ugh

peak dock
#

time to stare at 5 digit ranks for the next 5 days πŸ‘

unique osprey
#

yeah cause yesterday involved assigning a score to the overlapped element

#

this one you just count the overlaps

flat sequoia
#

input parsing was annoying this time

#

next time i'm just going to re.findall \d+

unique osprey
dim pivot
#

that was mucheasier than yesterday

quaint anchor
#

done, advent of code

tidal mist
#

wall of text. why isn't there a tldr.

brazen chasm
#

i didn't realize rate limits were per-level and not sitewide so my submit func knocked me off the leaderboard (missed leaderboard by 3s exactly)

placid lake
#

hmm AoC seems easier this year so far

#

it's a weekend too

woven solar
earnest forge
woven solar
#

there's no ratelimit after a correct response AFAIK, allowing one to solve part2 in below a minute

earnest forge
brazen chasm
unique osprey
tidal mist
#

hm. maybe it could work.

pine tiger
#

damit

#

knocked down t 5th place

feral hazel
#

Ah I fell off the leaderboard

potent pumice
#

thank me later

elfin dirge
#

didnt know there were rate limits

#

learned the hard way

#

needed to wait 4min55 sek to submit a correct answer

earnest forge
#

Pro tip: just submit the right answer the first time

elfin dirge
#

sounds easy enough

#

on the bright side: i hat time to comment some of the code xddd

torn thorn
#

wow

woven solar
#

i always run my code on the test case they provide - if it doesn't pass, don't try submitting the answer

woven solar
#

ah

earnest forge
torn thorn
#

pro

woven solar
solemn walrus
#

lol unlucky

torn thorn
#

lmao

elfin dirge
# woven solar ah

i didnt account for the times, where the second one is exactly one cell, and thats the top one of the first, smt like 4-6,6-6 wouldnt be counted, the example had 6-6,4-6 which was corretly counted

torn thorn
#

were you logged in for someone else

solemn walrus
#

nope

#

I just did it wrong

torn thorn
#

πŸ’€ πŸ’€ πŸ’€ πŸ’€

earnest forge
#

Also fixing whatever went wrong usually takes a minute anyway lol

torn thorn
#

just in a random file?

elfin dirge
earnest forge
#

$HOME/.config/aoc_helper/YEAR/DAY.in

torn thorn
#

do you just look at the question for how the input looks then?

earnest forge
#

(in browser, not in editor)

torn thorn
#

damn

solemn walrus
#

I'm so confused

#

but it's ok

torn thorn
#

lmao

broken cradle
#

I'm definitely making it so I can test my code with the examples, I can't keep waiting for ratelimits

woven sable
#

i made it work automatically for my helper but my helper had a lot of other issues 😭

earnest forge
woven sable
earnest forge
#

Probably just changing the signature of the runner functions to take data, then adding a test_data function

muted aurora
#

i have read absolutely none of the 'story' for any of the days

#

maybe I should, they're cute

woven sable
earnest forge
#

Here's the idea I had

earnest forge
woven sable
#

sounds good -- what would lazy testing entail tho compared to just normal testing? or is that j the naem of the function

#

name*

earnest forge
woven sable
#

ohh alr

#

then we don't need to worry about testing part 1 again once part 2 unlocks

earnest forge
#

That's true but we also don't want to be requesting the same test every time we run the file

#

Also make sure that any requests call you add uses HEADERS (global headers that declare the library name)

woven sable
#

alr i'll start working on it

earnest forge
#

Tag me once you've made a PR for the maximum chance of me noticing quickly πŸ™ƒ

woven sable
#

@earnest forge i found some issues with the algorithm to retrieve test data 😭 i tested it with last year's data and it worked for every day but one -- would it be fine if it doesn't work for some days and test data will have to be entered in manually

#

lemme see if i can try and fix it rq

woven solar
#

yes, there was a one-line input before: 2018 part 5

woven sable
#

ah i found one from 2021 too

#

lanternfish day

#

i foudn a solution tho

earnest forge
woven solar
#
for el in Path(".").glob("**/*.in"):
    if len(el.read_text().splitlines())==1:
    print(el)

2018\5.in

for me it's just it but I don't have all inputsπŸ₯΄

earnest forge
woven solar
#

fancy, but why do they have 0 lines

earnest forge
#

(wc -l likes to count single-line inputs as 0 line files)

woven solar
#

ah

earnest forge
#

What -l technically means is 'count the number of \n characters in the file'

quaint anchor
#

huh?

#

I don't think so.

#

oh The wc utility displays the number of lines, words, and bytes contained in each input file, or standard input (if no file is specified) to the standard output. A line is defined as a string of characters delimited by a ⟨newline⟩ character. Characters beyond the final ⟨newline⟩ character will not be included in the line count.

celest geyser
#

man

#

advent of code always falls in exam season

vital schooner
#

Usually, how much time did it take after puzzle reveal, for 100 answers ( Global points ) to be submitted?

vital schooner
#

i guess both

modern terrace
#

3 mins 22 seconds

vital schooner
#

oh right there are time completion on leaderboard...

#

totally forgot.. thanks

#

Bruh, one dude submitted the answer in 16 seconds!

#

Tastes like cheating to me... although i'm a peasent coder...

#

Then you see on his git page he made GPT-3 algorithm to solve AoC

#

ooook

feral hazel
gleaming cedar
fierce granite
#

Yo how do I change my name

#

Like I apart from anonymous and the gmail name

covert arrow
#

change your gmail name

#

you can't set it to whatever you want on the website

modern terrace
gleaming cedar
#

oh my god i was supposed to post this in ot

gleaming cedar
modern terrace
#

holy moly

#

wtf

#

what the actual heck

#

goddamn

gleaming cedar
#

damn

analog flicker
#

a poem of python one-liners

halcyon pulsar
#

Who said they had some pypi package that automatially submits the result?

elfin timber
#

is it just me or was todays challenge way easier than yesterdays

halcyon pulsar
#

i agree

marsh currentBOT
mossy basin
#

!pypi aoc_helper

marsh currentBOT
covert arrow
halcyon pulsar
covert arrow
#

so yeah, I guess you can say it was easier

elfin timber
#

took me 10 minutes to do both compared to 30 yesterday lol

halcyon pulsar
#

I'm a bit confused

#

How do you see your overall rank

covert arrow
#

run &aoc lb for the overall rank in python discord

halcyon pulsar
#

what do the numbers mean? at first i thought it was how many completed it, but the silver nunber contradicts that

covert arrow
#

silver is people who have done part 1 but not part 2

halcyon pulsar
#

i see

#

thanks

gleaming cedar
#

i feel like i need a hint for this one, tried like 3 approaches but still getting the wrong answers 😭

elder wigeon
#

For day 4?

polar sand
#

I'm going to have to wake up earlier if I want to aim for a top 100 spot on the local leaderboard xD

gleaming cedar
low condor
# gleaming cedar yeah

I have an approach idea for you. I’ll have to post it in the spoiler chat though. Would you like me to tell you it there?

gleaming cedar
gleaming cedar
#

appreciated, thanks

low condor
#

As an aside having a channel that is for discussion but not full spoilers would be good

lusty rover
gleaming cedar
#

i thought this was the channel for that but guess the description says otherwise

low condor
lusty rover
#

Oh you want -- I see
Yeah, that could be useful

low condor
gleaming cedar
#

oh right the new message system is ab ugger

night berry
#

The magic spell of open().read().strip().split()

elfin timber
#

strip is optional on the aoc inputs but yes

ocean pike
#

What a shame, living in Europe means I'll never be top anything.

open magnet
#

I've tried day 4 puzzle too many times and now it doesnt tell me if im too high or too low. Am i allowed to run my data through someone else code to debug?

midnight parrot
#

pls help in line 18

exotic cloud
#

&aoc join

midnight parrot
#

bhai

#

ravi kumar

#

pls help

open magnet
#

!paste

marsh currentBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

open magnet
open magnet
hidden musk
#

if you split on "\n" that happens

elfin timber
#

strip removes whitespace from the start and end of the string

#

and the AoC inputs dont have any whitespace

#

at the start and end

hidden musk
#

but there is sometimes a spurious newline at the end

elfin timber
open magnet
#

I feel if you know your python you won’t need it. But I’m personally a novice. That list comprehension in my paste bin code is like Elmo saying balsamic vinegar for me lol

broken cradle
#

or wait, you haven't solved it yet

open magnet
#

Yeah, it works for the sample data but not mine and AOC doesn’t tell me if I’m too high or low anymore lol.

hollow wharf
#

Result:4 29 TrueCode:```py
print(c[1])
print(d[1])
print(c[1] >= d[1])

open magnet
#

What type are the inputs

#

If they are strings, 4 > 2 so true

hollow wharf
#

Oh

#

Thanks!

open magnet
#

Welcome

magic scaffold
#

Da f, today's second place is actually Chatgpt solve

#

Solved it in 10 secs ☠️

dense osprey
#

yeah ig cool from a tech perspective but idk

open magnet
#

It doesn't really matter but thats cheating yourself. Like the point is to be a coding challenge, make ya think and problem solve. I have the answer to my puzzle from someone else solution but refuse to use it until my own code works. Im missing like 6 cases lol

dense osprey
#

feels like a chess engine playing a against humans and the engine being ranked in the same leaderboard as humans

magic scaffold
dense osprey
#

he should be removed from the leaderboard imo

hidden musk
#

why?

dense osprey
#

i mean he didnt solve it by himself

magic scaffold
#

gpt model made the code and submitted it

hidden musk
dense osprey
#

thats like using a chess engine to rank high on the leaderboard

hidden musk
#

it's like a chess engine, but with one difference: it's not disallowed by the rules

open magnet
magic scaffold
magic scaffold
hidden musk
#

so he can be rank 1. that's the point of a leaderboard

open magnet
rapid wolf
#

it's a cool technical thing and I am sure this will be handled better next year. Also, the bot is by no means infallible.

quaint anchor
#

it can be done in <1 second, but there was much delay in API call to openAI.

magic scaffold
#

Tell me a sport where a robot is on the same leaderboard as humans

dense osprey
#

i thought it wasnt allowed

#

nvm

tepid cairn
#

I presume it'll start having trouble in later days

hidden musk
magic scaffold
#

Idk it learns fast

rapid wolf
#

it failed day 2 IIRC

open magnet
elfin timber
#

honestly i think the leaderboard should be for human competition only
i doubt well be hurting openAI's feelings for not allowing them on the leaderboard

magic scaffold
#

Matter of fact it's very important

elfin timber
#

and i wanna know who the best human programmer is its not rly interesting that the ai crushes humans in competition

magic scaffold
#

^

open magnet
#

Which I’m still mad about

quaint anchor
#

No worries, the bots are going to fail later in the month.

rapid wolf
#

honestly, I am pretty confident the AI just got lucky and first tried it

elfin timber
rapid wolf
#

again, day 2 was too hard for the AI

magic scaffold
quaint anchor
open magnet
elfin timber
magic scaffold
rapid wolf
#

sure, it's impressive technologically, and I am not a fan of allowing bruteforce solutions in general, but ehhhhh, shouldn't be too hard to later adjust puzzles to make them nigh-impossible for the AI

magic scaffold
rapid wolf
#

it is more or less a bruteforce. The AI cannot consistently produce a solution, just sometimes manages and then you get a good placement

#

just trying algorithms until something sticks

magic scaffold
#

But the problems are very descriptive, i think it will only get better at it over time

rapid wolf
#

sure, but later there will also be better tools and best practices to handle this

magic scaffold
#

Let me try to solve day 17 ,2022 with it ☠️

#

The packet challenge

#

I think just having a rule would stop a lot

#

But then a lot will say copilot is the same

hidden musk
elfin timber
#

put a captcha on the submission bar 😜

quaint anchor
hidden musk
#

it's literally impossible to verify where an answer came from just from the answer

magic scaffold
quaint anchor
tepid cairn
magic scaffold
#

We all know we can do it to, but we don't right?

tepid cairn
#

I mean, sure, but that isn't a very foolproof way to stop it

hidden musk
#

yes, "we", the people who don't generally cheat

quaint anchor
#

haha

tidal mist
#

and then a lot will say brain implants aren't allowed.

magic scaffold
#

now that's ...

rapid wolf
#

I mean, at that point the larger problem is "how will online competitive programming cope with AI generated code"

open magnet
rapid wolf
#

which will be interesting to see

magic scaffold
#

Like i tried a bunch of lc challange last night, it absolutely destroyed them, but only got a AC on one
So i think edge case are the true hero here

open magnet
#

Are the datasets generated per person or is there a limited number of datasets that are recycled?

quaint anchor
#

I actually think the bots is the most interesting thing this year's AoC.

open magnet
#

So some people will have the same answers. Alright.

magic scaffold
#

Ye

#

Hang onnn a minute, is copilot allowed in coding interviews ?

rapid wolf
#

generally no afaik

quaint anchor
#

you bet.

hidden musk
#

i would assume no, that kind of detracts from the point of them

rapid wolf
#

but well, I have been given a google doc last time

#

so really, depends on the company

magic scaffold
#

Last quarter 25% of code at Google was written by copilot ☠️( but only 1-2% made it in after audit)

#

Although the input is given by human, this is going to change many things

hidden musk
#

that's pretty bad. i would guess most of that code wasn't anything critical, only boilerplate, too

magic scaffold
#

Who knows, time to add as many skills as you can

#

I don't think pure dev jobs are gonna be that safe in the near future

#

Although it's hard to get quality code from these ai
Garbage in, garbage out

tidal mist
#

ye. why have someone write code when you can generate something that's indistinguishable from code.

polar sand
magic scaffold
#

Ohh yh people suck at describing what they want, and i don't think that's going away anytime soon πŸ˜‚

rapid wolf
#

I more want to see whether this scales to generating whole programs eventually, instead of just snippets.

magic scaffold
#

Like what an ai gonna do, if IT department doesn't Authorize the request for weeks on end πŸ˜‚

magic scaffold
#

Atleast not in near future

junior cliff
#

can someone help me a little with my coding? i got a question for homework but I tried and cannot understand what I have done wrong. I am not asking for a full answer rather a little help to the code I wrote, any help is appreciated, thanks ^^

magic scaffold
#

I want yodafone

magic scaffold
#

Let's see if tomorrow we get a human at the top πŸ™‚

#

I do wonder tho, will there be a listing called "prompt engineering" in a few years πŸ€”

#

Yh i can see this on someones resume

#

Well here is what gpt-3 thinks about this πŸ˜‚

GPT-3 thoughts on the subject

"It is generally not considered ethical to use a large language model like me to solve competitive challenges or contests that require original thought or creativity. These challenges are typically designed to test the skills and abilities of the participants, and using a language model like me to generate answers or solutions would give an unfair advantage over other participants who are solving the challenges on their own.

Furthermore, using a language model like me to solve competitive challenges could potentially violate the terms of service or rules of the contest, and could result in disqualification or other consequences. It is important to respect the rules and guidelines of the contest, and to compete fairly and honestly.

In general, it is best to avoid using a language model like me to solve competitive challenges, and to focus on using your own skills and abilities to solve the challenges in a fair and ethical manner."

#

Even the ai knows it's not ethical πŸ˜‚

dense osprey
#

damn i thought we were done with the topic

magic scaffold
#

Wow today 1st is also gpt

normal umbra
#

man I hate it when my code passes the example test but not the actual input. Day 4 part 1...

magic scaffold
normal umbra
#

tru

#

aha found it!

#

nvm I didnt. I forgot that 76 comes before 77, not after

low condor
normal umbra
#

but I have to wait 5 minutes because I answered incorrectly

fierce granite
normal umbra
#

les go hyperlemon

quaint anchor
#

I would like the see the time for the top 5 people, not top 100.

compact wasp
#

how is something like this possible lol

#

10 seconds

#

did the guy just guess?

rapid wolf
#

that's done by chatGPT, the new fancy general purpose AI from openAI.

compact wasp
#

πŸ€”

#

interesting

#

i did not think of doing that

elder wigeon
#

Impressive AI

torn thorn
#

damn

compact wasp
#

now there's gonna be 100 people under 30 seconds πŸ˜‚

torn thorn
#

i wonder if they'll remove these kind of scores or not

compact wasp
#

there's no good way to detect it

#

other than "that guy was too fast"

#

and even then, the ai user could just delay their answer

torn thorn
#

potentially shadow banning and comparing times with others πŸ€·β€β™‚οΈ

compact wasp
#

sure, if times are bimodal, then you could do comparisons

torn thorn
#

also potentially comparing between "trusted" users idk

compact wasp
#

not sure where the trust would come from lol

#

anyone can pay over $1 for aoc++

earnest forge
#

Similar times to in previous years?

compact wasp
#

so newbies aren't allowed to top leaderboards?

torn thorn
#

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

compact wasp
#

Β―_(ツ)_/Β―

#

i doubt they will be removed

torn thorn
#

yeah

#

kinda defeats the whole purpose of a global leaderboard tho

compact wasp
#

yeah

torn thorn
#

it's just a ping issue at that point

compact wasp
#

i think the only way it might be prevented in future aocs is through a captcha system

#

but even then, you'd be able to paste the stuff into a code generator

torn thorn
#

yeah

torn thorn
#

are like

#

breh moment

#

takes so long

earnest forge
#

And that punishes people using stuff like aocd or aoc_helper

torn thorn
#

^^

compact wasp
#

true

torn thorn
#

how do things like codeforces/usaco handle this? or do they not πŸ’€

compact wasp
#

the problems are just harder

torn thorn
#

ah

compact wasp
#

to the point that code generators don't make good enough solutions

hidden musk
#

you submit code, they review the code if necessary

torn thorn
#

so will openai and co be able to solve the later days πŸ€”

#

if there's problems that build off of previous days as well

compact wasp
#

at its current level, i doubt openai would work for anything beyond a usaco bronze

#

maybe a silver if i'm generous

torn thorn
#

im guessing easier silver ones?

compact wasp
#

yeah, probably low silver

torn thorn
#

those basically are just a bit harder bronze

compact wasp
#

but anyone can solve those, so it's still pointless

torn thorn
#

anyone with like some programming experience*

compact wasp
#

doesn't matter whether it takes 10 seconds or 3 hours for usaco, so there's no incentive to use code gen for those

hidden musk
#

unless you can't solve it at all

torn thorn
#

yeah

compact wasp
torn thorn
#

πŸ˜”

compact wasp
#

getting to silver doesn't mean anything lol

torn thorn
#

makes it so you can get to gold πŸ‘

compact wasp
#

gold is not too impressive either

torn thorn
#

good enough for the average joe

compact wasp
#

maybe

torn thorn
#

don't think anyone in my school has plat

compact wasp
#

rip

#

my high school had around 15 plats in my grade

torn thorn
#

damn wtf

unborn zinc
#

&aoc join

hidden musk
#

that's quite impressive

compact wasp
#

yeah

hidden musk
#

what hs

torn thorn
#

what kind of sweaty ass school kek

compact wasp
#

it's public too so ig just zip code diff

hidden musk
#

lul

torn thorn
compact wasp
sudden haven
#

whats advent of code about?

hidden musk
#

tj?

timber rock
#

guys I have a question...
I'm making an amazon Alexa skill, and I'm trying to control my pc over WIFI (with alexa commends)
do you guy know a way / python lib that could be usefull to control my pc

torn thorn
#

tbf my school sees a lot of biomed kids

torn thorn
compact wasp
#

2*

torn thorn
torn thorn
compact wasp
#

2 *s

torn thorn
#

lmao

compact wasp
#

totally what i intended

#

πŸ’―

torn thorn
#

there might be a lot of sweaty cs underclassmen actually hmm

#

i haven't really interacted with them tho

compact wasp
#

cs is either the most cracked people in the school or someone who couldn't decide on a major

torn thorn
#

fr

#

too competitive for colleges πŸ˜”

compact wasp
#

cs is one of the few fields that's easy to start before college

torn thorn
#

i mean

#

buisness you can self startup

compact wasp
#

for other stems, you generally don't have access to lab equipment

torn thorn
#

oh stems

#

i guess?

#

though stats you can defo start in hs

compact wasp
#

math is an exception because there's stuff like amc

compact wasp
torn thorn
#

afaik it's like

#

actually

#

i'm not too sure πŸ’€

#

but the internet is there and a lot of programs are free πŸ‘

compact wasp
#

probably ml stuff?

torn thorn
#

probably a part of it

#

though i thought there was a dedicated major for ml

compact wasp
#

ds?

#

ml could fall under comp sci or data sci

torn thorn
#

yeah

compact wasp
#

ig depending on whether you're looking at theory or praxis

torn thorn
#

how about things like cybersec

fluid zealot
#

Is it just me or if the code isn't really hard, the text explanations are overly complicated ?

torn thorn
#

these are early days

compact wasp
#

ye

torn thorn
#

though later days aren't too bad either

torn thorn
#

can definately

#

get like a lot of exposure with web/online stuff

compact wasp
#

yeah, people can definitely get into cybersec early on

torn thorn
#

not really hardware though

compact wasp
#

ctfs are a thing

torn thorn
#

yeah

#

that's like 1/2 of cybersec though

compact wasp
#

yeah

torn thorn
#

other half is actually dealing with real world stuff :L

#

i guess tldr a lot of things you do with computers is easy to start pre college

#

or don't need physical equipment

compact wasp
#

cs is one of the easiest to get into, but ironically, that's exactly what makes it the most competitive

torn thorn
#

brilliantly summed up kek

#

i still do think like business is easy to get started in with startups

#

idk if i worded that right

#

maybe why it's also really popular

compact wasp
#

yeah

torn thorn
#

hs kids can definitely create their own startups

compact wasp
#

business is also competitive, idk about the academic aspect of it, but in the real world…

torn thorn
#

academically it is pretty competitive

#

one of the "hot" majors afaik

#

alongside engineering and cs

compact wasp
#

i see

torn thorn
#

or at least based off of the things i've seen at different colleges

#

still πŸ€·β€β™‚οΈ

compact wasp
#

Β―_(ツ)_/Β―

torn thorn
#

gonna go eat lunch now peace

compact wasp
#

cya

quaint anchor
#

huh?

tepid cairn
#

whoo, day 4

#

done πŸŽ‰

cyan sleet
#

did you do a good solution or the solution that happens to be fine because the input is way too generous size wise?

tepid cairn
#

I think my solution should hold up fine with a larger input

hidden musk
#

algmyr is mad the problem wasn't hard enough

urban locust
#

I didn't realize that scaling the size of the input would be an issue on this problem

sharp panther
#

i dislike that the inputs are so small

#

at least let me get reliable perf numbers

tepid cairn
#

write a generator that'll triple the size 😀

urban locust
#

That's what I'm doing now haha

sharp panther
hidden musk
#

100x

tepid cairn
#

raise it to the 13th power

cyan sleet
sharp panther
#

give me a few gigs, or at least a few mb

tepid cairn
#

inb4 next puzzle has a three terabyte input

cyan sleet
#

to be clear, I don't mind the input being small, I'm disappointed the ranges are small

sharp panther
#

i want everything to be bigger

cyan sleet
#

since there is a nice lesson to learn with big ranges

#

it goes lost if you can just brute force it

urban locust
#

Ah, I see what you mean now

tepid cairn
#

my solution would probably be slower with large ranges

hidden musk
#

solution doxxing

tepid cairn
#

"no, anything but my solution!"

cyan sleet
tepid cairn
#

pshhht, if it works it works

sharp panther
#

wtf

tepid cairn
sharp panther
#

oh yes, sorry

hollow wharf
#

m

cunning scarab
polar sand
#

My solution shouldn't get affected by large ranges at all, just used some math logic

hidden musk
#

algmyr is proud of you

polar sand
#

Who's algmyr?

hidden musk
#

fiery festive fenix

cunning scarab
#

A wizard

elfin timber
tidal mist
limber aurora
#

predictions for next problem

#

i imagine this one will take a little bit more thinking then the last 4

hidden musk
#

pathfinding

limber aurora
#

oh no

hidden musk
#

i should catch up on the story tbh

limber aurora
#

i don't know how to implement graph theory or dijkstra's algorithim or anything

#

if it is i will probably just die

hidden musk
#

there's gotta be a day where we get lost in the grove

low condor
#

If there’s any pathfinding I’m going to load up networkx and cross my fingers

tepid cairn
#

lolol

low condor
#

Worked gloriously for one puzzle last year

#

And was pretty much useless for everything else path-related

#

But for one puzzle I managed to do a path problem in basically one function call after data parsing πŸ˜‚

low condor
tepid cairn
#

I expect my solutions to gradually get more and more hacky

gleaming cedar
#

my solutions have been python hacky since day 1 πŸ˜”

limber aurora
#

just using the cmd?

gleaming cedar
#

pip install

#

make sure you're in a virtual environment or you'll be wondering what is taking up space in your c drive

limber aurora
#

pip does not work for me but i found that py - m does actualyl run

gleaming cedar
#

yeah you can do it that way too

low condor
gleaming cedar
#

it actually is, you also get an option to add/not add it to path after installing it, i had to use that on wsl though

low condor
#

Right, you have the option but it’s not ticked by default

gleaming cedar
#

aye

gleaming cedar
#

don't remember but it was quite a mess, two python versions were fighting for it and i might've alised python3.8 to py

hidden musk
#

bruh

gleaming cedar
#

😭

#

linux was quite a weird experience

low condor
#

Two Python versions often fight on Windows machines even if not using WSL e_e

hidden musk
#

just use py on windows and pyenv on linux. porblem solved

low condor
#

Far too many people in help channels install from python.org, run python instead of py and then end up installing a second MS store version

#

And then wonder why they can never run anything they pip install

sharp panther
#

in wsl it's very easy if you're using a regular distro with pyenv

#

i haven't figured out how to build from source on nixos though lemon_pensive

gleaming cedar
#

i don't know why windows does it

#

might as well just ship it with python

open magnet
# gleaming cedar might as well just ship it with python

That would be amazing tbh. Fortunately because of the win store I was able to install python on my work laptop after my job installed it wrong. Then the regional manager guy basically told me to F off so I have python for no reason lol.

royal lantern
open magnet
royal lantern
#

gotcha ty

open magnet
#

Welcome

royal lantern
open magnet
#

It might, no idea lol

livid gull
#

where is everyone?

paper sundial
#

&aoc

shut trellisBOT
#
&[adventofcode|aoc]

All of the Advent of Code commands.

Commands:
  about       Learn about Advent of Code
  countdown   Return time left until next day
  dayandstar  Get a view that lets you filter the leaderboard by day and star
  global      Get a link to the global leaderboard
  join        Learn how to join the leaderboard (via DM)
  leaderboard Get a snapshot of the PyDis private AoC leaderboard
  link        Tie your Discord account with your Advent of Code name.
  stats       Get daily statistics for the Python Discord leaderboard
  subscribe   NOTE: This command has been moved to &subscribe
  unlink      Tie your Discord account with your Advent of Code name.

Type &help command for more info on a command.
You can also type &help category for more info on a category.
paper sundial
#

&aoc leaderboard

shut trellisBOT
#

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

     | Name                      | Score | ⭐, ⭐⭐
--------------------------------------------------
   1 | Oliver Ni                 |  7869 | (4, 4)
   2 | Zeyu Chen                 |  7833 | (4, 4)
   3 | Adavya Goyal              |  7813 | (4, 4)
   4 | Defelo                    |  7808 | (4, 4)
   5 | Kevin Sheng               |  7800 | (4, 4)
   6 | RundownRhino              |  7773 | (4, 4)
   7 | Starwort                  |  7769 | (4, 4)
   8 | Anonymous #1087784        |  7766 | (4, 4)
   9 | Daniel Gu                 |  7766 | (4, 4)
  10 | RadioactiveHydra          |  7764 | (4, 4)

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

Number of Participants

984

Full Leaderboard
winged pond
#

we go again

hollow wharf
#

in 5 minutes

torn thorn
#

5 minutes

#

whooo

#

&aoc c

shut trellisBOT
#

Day 5 starts <t:1670216400:R>.

torn thorn
#

2 minutes

#

wheee

unique osprey
#

Get ready all you elves

torn thorn
#

where is everyone :(

earnest forge
#

Talking to fronto about the testing PR

#

GLHF everyone

torn thorn
#

pr of aoc_lube?

unique osprey
torn thorn
#

moment

#

1 minute ! ! !

earnest forge
torn thorn
#

oh

#

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

#

&aoc c

shut trellisBOT
#

Day 5 starts <t:1670216400:R>.

torn thorn
#

omg ! ! ! !

unique osprey
#

oh boy

torn thorn
#

30 seconds

unique osprey
#

day 5 is gonna be harder

#

git ready

earnest forge
#

I hope so

#

GL!

torn thorn
#

git

#

hehe

unique osprey
#

πŸ˜‰

torn thorn
#

5

shut trellisBOT
warped sand
#

omg how on earth is this input gonna be taken

hollow wharf
#

today questions sound difficult to understand for who English is not advanced or native

pine tiger
#

damn top 100 again!

wispy glacier
#

hMMM

minor cave
earnest forge
#

Silly typo cost me like 2 minutes :(

devout tusk
#

how are y'all taking the input today? πŸ’€

earnest forge
#

Mostly fine except I typod a variable name

#

;-;

devout tusk
#

thinking of a ||stack implementation, but storing it is gonna be painful ||

hot tartan
#

guysss is it cheating if we change the input? lol

pine tiger
#

??

earnest forge
hot tartan
#

ok lol

earnest forge
#

You might get the wrong answer though

hot tartan
#

just making sure

#

no I mean like

earnest forge
#

Formatting your input file is totally fine

hot tartan
#

for the crates "ascii drawing"

earnest forge
#

Anything to solve the puzzle

hot tartan
#

would be a pain in the butt to format that input as is (to me)

earnest forge
#

(although parsing the input isn't actually that bad)

torn thorn
#

i am throwing so hard

#

wtf

earnest forge
#

(my slowdown was because I'm a dummy who used similar variable names and mistyped one)

warped sand
#

idk i wanna ||make a dictionary to store the crates but the input is sooooo goofy so idk how imma do it||

hot tartan
#

how are you guys even done yet

#

hahahaha

devout tusk
#

it's easy without the parsing inputs part

torn thorn
#

924

#

bruh

#

i threw so hard

devout tusk
#

And I want to do it right

torn thorn
#

cringe

flat sequoia
#

lol i did line.strip() to strip off the newline

#

but there were spaces at the start that got stripped off too

#

fml it took me like 5 minutes to figure that out

earnest forge
#

Yikes

flat sequoia
#

also cuz my hands were cold and stiff cuz i'm outside at a party LMAO

unique osprey
#

phew that took me forever

#

||stuff[-x::-1] is not the same as reversed(stuff[-x::])||

hollow wharf
hollow wharf
#

πŸ’€

#

i spent like 5 million years debugging day 4

naive stone
#

props for not letting part 2 trip you up for longer than a minute

hollow wharf
naive stone
#

hahaha

hollow wharf
#

and then i looked at the example

#

and died inside

naive stone
#

we got similar times, but i was way too slow to do part 2

unique osprey
#

Beat me by a minute

unique osprey
#

idk wtf that is lol

naive stone
hollow wharf
#

the lyric in that moment is "you never see it coming"

unique osprey
#

gotcha

hollow wharf
#

todays puzzle was way harder than yesterdays

#

atleast parsing the input

torn thorn
#

input was annoing

#

99% manually parsed

unique osprey
hollow wharf
#

took me 45min for both parts

torn thorn
#

rip

hollow wharf
#

yesterday 12

torn thorn
#

did you manually parse inputs

hollow wharf
#

no

#

did not

torn thorn
#

rip

flint cape
#

Yes

torn thorn
#

how long did that take

flint cape
#

Always parse

#

Not a real soln otherwise

#

πŸ™πŸ™

hollow wharf
torn thorn
#

both

#

what

flint cape
#

There should only be one

hollow wharf
#

how can i spoiler codeblocks?

quaint anchor
torn thorn
flint cape
#

Default dict was clean here yea

#

U can do that with a normal loop smh

#

Just make the step 4

hollow wharf
#

f

#

didnt think about that

#

shit

flint cape
#

πŸ’€

hot tartan
#

well this was funny

#

a small mistake in part1 was the answer to part2

wispy glacier
#

please post implementation tidbits in the spoilers channels

#

if you want to spoiler tag, you can use ||

#

i think ||yeah||

#

also /spoiler

quaint anchor
hollow wharf
#

I guess the entire challenge is about input parsing 🫠

#

Once that is done it's easy HideThePain

hot tartan
#

you could technically just parse it yourself or change the input so its easier to parse KEKW

quaint anchor
hot tartan
#

me too πŸ˜›

quaint anchor
#

AI failed today πŸ˜„

#

3 min vs 10 second yesterday.

hot tartan
#

wait what do you mean by that haha

hollow wharf
quaint anchor
#

🧠

hollow wharf
#

Just to stay first in my private leaderboard HideThePain

#

Will make proper input parsing later during the day

hot tartan
#

we have a private leaderboard for work, and I am not even a dev (I do cybersecurity) and am beating some devs

hollow wharf
#

Exactly the same here, which is pretty cool

#

So I just do everything to not get too low, including copying the input manually CatJAM

cerulean hatch
#

.

agile bridge
#

for part1 am i not supposed to have an empty stack for my answer

hollow wharf
agile bridge
#

can u seriously not tell which day im on about ? lol

hollow wharf
#

I do know, my point is: ask in the appropriate thread in case you haven't realized it

agile bridge
#

bro 🀦

#

simple clarification != spoiler

hollow wharf
#

You're still giving out hints to others by saying if something may be empty or not

night berry
#

I'm coming for you Chris.

agile bridge
hollow wharf
#

the guys who solve the challenge in less than 5 minutes, tall me your secrets how can you do it πŸ˜†

night berry
#

Honestly, it comes with time. You just...stop....reading text and just read for keywords tbh. As for programming, again, with time

dusky leaf
#

Hey guys, I'm new to this discord, but is there a place I can peck someone's head for some Python help at all? πŸ˜„

#

Been stuck on an error for weeks and i'm losing my head haha

hollow wharf
dusky leaf
#

tysm!

sudden garnet
#

what's the best library to use if i wanna build a mobile app? i'm considering using kivy, but ppl say it has performance issues

marsh currentBOT
#

7. Keep discussions relevant to the channel topic. Each channel's description tells you the topic.

gleaming cedar
#

but yah i think going mobile native would be the best option, perhaps kotlin?

cyan sleet
night berry
#

For they server staff

#

We must defeat the server staffs for the glory of the members

wet fiber
#

huh, wish I knew regex for day 5 :P

bleak sable
#

I haven't even checked aoc yesterday or today ._.

wet fiber
#

yea but it seems ideal for this one

bleak sable
#

Regex is most often not needed for stuff. There are some valid usecases for regex in the world, but aoc is easily doable with just string operations

marsh currentBOT
peak dock
#

regex seems better suited for todays one

#

hey

#

spoiler channel!!

#

yeah i meant this whole discussion

earnest forge
vestal breach
#

how tf do you read the input

low condor
vestal breach
#

ok

brisk briar
#

This is the first time this has happened.... I got the answer right on my first try..... Am I even a programmer if I don't have to fix stupid bugs and figure out what's wrong with my program? I doubt it.

earnest forge