This repo contains my solutions for different years.
Benchmarks are run on an "AMD Ryzen 7 9800X3D @ 4.7/5.2GHz CPU".
| Day | Solution | Stars | Parse benchmark | Part 1 benchmark | Part 2 benchmark |
|---|---|---|---|---|---|
| Day 1: Secret Entrance | Here | ⭐⭐ | 72µs | 24µs | 26µs |
| Day 2: Gift Shop | Here | ⭐⭐ | 2µs | 11ms | 72ms |
| Day 3: Lobby | Here | ⭐⭐ | 22µs | 15µs | 41µs |
| Day 4: Printing Department | Here | ⭐⭐ | 12µs | 118µs | 883µs |
| Day 5: Cafeteria | Here | ⭐⭐ | 95µs | 39µs | 45ns |
| Day 6: Trash Compactor | Here | ⭐⭐ | 28µs | 76µs | 22µs |
While being at the 2025 directory:
make build
./aoc --day=<N> [--sample] [--bench=<N>]
--day=<N>: Day to run
(1-25).
--sample: Optional. If set, the input file will be the
sample.txtlocated in the inputs folder.
--bench=<N>: Optional. If set, runs the puzzle
Ntimes and outputs only the average execution times.
