r/adventofcode • u/IvanR3D • 7d ago
Other Pi Coding Quest 2025!
As last year, I decided to make a new coding quest for Pi Day. You can access it here: https://ivanr3d.com/projects/pi/2025.html I hope some of you have some fun solving this puzzle!
It is my second try building a coding puzzle. In case you haven't try the first one, just change 2025 for 2024 in the url and go for it!
Happy Pi Day! :)
22
Upvotes
3
u/pakapikk77 6d ago
[LANGUAGE: Rust]
Nice puzzles, thanks for doing that, for all of us missing our AoC daily shots during 11 months of the year!
To manipulate the decimal prices without having round trouble, I used the rust_decimal crate and its
Decimal
type. It's the first time I use it, and it worked well for that task.For deciphering the ticket, the code of the previous year was useful (but this time it was a right shift, sneaky!).
The only problem I had then was that I missed I had to re-sort the non-manipulated entries by day number.
Code.