These are my sollutions to AoC 2021.
In these sollutions I'll be trying to get better at using C
by trying different standard functions and attempting to write my own parsing functions.
This is my first year participating in this event. So I don't know if I can finnish all puzzles on time, or at all...
But i'll be trying my best to keep up.
The solutions are probably a bit hacky.
Run the make
command to build any of the solutions.
The only include files not defined in the C standard can be found in the common folder and written by me.
Solutions can be ran by running ./star1 < Input.txt
and ./star2 < Input.txt
Benchmarks are ran with hyperfine Code is run on an AMD Ryzen 5 3600 at around 3.95Ghz inside WSL so there might be some overhead gumming up the results
Day | Result | Star 1 Mean [ms] | Star 2 Mean [ms] |
---|---|---|---|
1 | ⭐⭐ | 4.0 ± 0.3 | 4.0 ± 0.3 |
2 | ⭐⭐ | 3.8 ± 0.2 | 3.8 ± 0.3 |
3 | ⭐⭐ | 4.1 ± 0.2 | 4.2 ± 0.3 |
4 | ⭐⭐ | 4.4 ± 0.5 | 4.6 ± 0.3 |
5 | ⭐⭐ | 7.6 ± 0.3 | 7.7 ± 0.3 |
6 | ⭐⭐ | 3.4 ± 0.3 | 3.5 ± 0.2 |
7 | ⭐⭐ | 3.6 ± 0.3 | 3.8 ± 0.3 |
8 | ⭐⭐ | 4.5 ± 0.2 | 4.8 ± 0.3 |
9 | ⭐⭐ | 4.6 ± 0.3 | 5.1 ± 0.3 |
10 | ⭐⭐ | 4.2 ± 0.3 | 4.4 ± 0.3 |
11 | ⭐⭐ | 4.1 ± 0.3 | 4.6 ± 0.4 |
12 | ⭐⭐ | 5.3 ± 0.3 | 19.1 ± 0.6 |
13 | ⭐⭐ | 6.4 ± 0.2 | 6.7 ± 0.2 |
14 | ⭐⭐ | 3.5 ± 0.4 | 3.7 ± 0.2 |
15 | ⭐ | 19.3 ± 1.4 | 1628 ± 3 |