Skip to content

jeromkiller/AoC2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of code 2021

These are my sollutions to AoC 2021.

language used C


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.

Hi there,


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.

building it yourself:


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:


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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published