I live in Iowa and recently went out to Washington state for a wedding and left my Vaporeon in a gym there, it has been in the gym for 25 days which for me is an unusually long amount of time. Did I just screw myself out of a pokemon?
Now I kinda wish that the character story quest started with Paimon and Nahida dragging him to the Inazuma kimono shop to change the "depressing outfit" with something "nicer" since now he has to be "a good kid"
Also, speaking of parsing. My original solution was parsing them in some weird ass order initially, so I scrapped it all. Ended up rewriting the parser to just grab all the lines showing the initial layout, and then parse them from bottom up. Made it way easier.
@Wipqozn That's how I planned on doing it the entire time. Read until the first empty line, throwing each row on a stack, calculate the number of piles from the index row (top of the stack), throw that away, then fill the actual stacks.
Just waiting for the harder problems so that I can catch up to the QC guy in the work leaderboard.
My (non-optimized) solution is 100 lines, but I could probably easily cut half of that out. Pt1 and P2 are in 2 separate loops, I've got a small loop just to read in the instructions, and I don't need to be doing the regex matches twice.
@MBraedley Yeah I just like using them. Plus AOC is the only time I really dive into PYthon anymore, so gives me a chance to warm up on the syntax again on the easier problems.
I am proud to say I didn't once toss in a semicolon this year though...at least, not yet.
I made a class for a Crate, thinking that part 2 might wind up havin you do something more complex with the boxes... but then nope lol. So it was literally just a calss with a constructor and nothing else.
Did't even wind up calling it
I should delete that while I'm thinking of it
@MBraedley Also, I'm surprised my solution is less lines than yours, given I used classes.
I find classes can often result in it being a bit longer.
and I just realized I made another function I never used too...
riiiight. I made a Reverse function for my stack, which just called list.reverse... but then I didn't need to do it anymore.
But ChatGPT is a bit scary, it easily produces wrong answers. But if you just prompt it to write code it can be pretty impressive. And I find the way it reacts to clarifications really scary
@fredley The bad SO answers have usually worse presentation. ChatGPT will provide very confidently written and good looking answers that are entirely missing the point