需要用到一點點數學,問題是不難的,今次Qwen3沒有跳步了,可以正常地用它將文字描述的邏輯寫成代碼,但是 #Rust 在這裏變得不太好用了,例如那些usize的運算需要手動關注和修一修
https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day8.rs
需要用到一點點數學,問題是不難的,今次Qwen3沒有跳步了,可以正常地用它將文字描述的邏輯寫成代碼,但是 #Rust 在這裏變得不太好用了,例如那些usize的運算需要手動關注和修一修
https://github.com/cosmoswafer/advent-of-code-2024/blob/main/src/bin/day8.rs
I'm late today because of some Christmas travel but it was super easy (save for a dumb parsing bug that sent me in circles for a while) so I was able to get it done before the end of the day. Between that and yesterday going back and doing the Part 2s I'd skipped, I’ve completed my #AdventOfCode2024 calendar.
This year had some really gnarly puzzles. :-D I’m looking forward to next year.
In honor of the last day of #AdventOfCode this year, I want to share something I've been working on since Day 12: The Drakaina!
It's a single line of #Python that solves the challenges of #AdventOfCode2024. I've gotten up to Day 11. Read at your own risk.
https://github.com/WinslowJosiah/adventofcode/blob/main/aoc/2024/drakaina.py
It's been amazing 10 years! #AdventOfCode2024 #aoc
#AdventOfCode Day 25: Code Chronicle
It’s finally done! I’m so happy!!!
This is the first year I’ve been able to finish all the stars without needing hints or extra help - and actually made it in time!
I’m still pretty slow, though. Some puzzles took me the entire day (or night, like yesterday and Day 17!). But it’s such a rewarding feeling to have made it all the way through.
A high five to all my fellow Mastodonians
@jeff @andrewhoyer
@movq @whereistanya @winslowjosiah
@oloturia
@papajohn
@sol_hsa
@kewliomzx
@jochie @mina and many more, who played (and sometimes suffered) along with me. You all made this so much more fun!
And, of course, an enormous thank you to @ericwastl and all the wonderful helpers who made this event possible. I can’t wait for next year!
#Rust code is here:
https://github.com/nharrer/AdventOfCode/blob/main/rust/src/year2024/day25.rs
Like many people, I solved #AdventOfCode 2024 Day 24 Part 2 not with code, but by hand. It'd actually be pretty difficult to write code for...but I'll eventually get it done.
In the meantime, here's my code for Part 1, before cleanup and comments.
Advent of Code 2024 Day 24 Spoilers
Advent of Code 2024 Day 24 Spoilers
i took a look at #adventofcode2024 's map puzzles. norvyg's pytudes are great for this:
Advent of Code 2024 Day 23 Spoilers
Advent of Code 2024 Day 23 Spoilers
Advent of Code 2024 Day 23 Spoilers
Advent of Code 2024 Day 20 Spoilers
Advent of Code 2024 Day 19 Spoilers
Advent of Code 2024 Day 19 Spoilers
Finally done with day 6 of #adventofcode2024
Here is my solution in #python .
I'm using Python's multiprocessing module for part 2, which then takes 2-3 seconds on my 8-core CPU, whereas it takes about 4 times as long if i compute it only with a single process.
So, this exercise helped me learning a bit about #multiprocessing in Python.
https://github.com/BugDevelopments/AdventOfCode/blob/main/2024/python/day6.py
Advent of Code 2024 Day 18 Spoilers
Programmando i vari script dell' #adventofcode2024 ho capito una cosa: powershell lo tengo per automatizzare le attività sui server (e devo dire che ho imparato qualche trucchetto in più), ma è un inferno per del codice un po' più complesso.
Mi sa che rinfresco i miei ricordi di python (o meglio, studio il linguaggio da capo).
Advent of Code 2024 day 17 solution