Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jazzpi/aocc
Advent of Code 23, C Edition
https://github.com/jazzpi/aocc
advent-of-code advent-of-code-2023 advent-of-code-2023-c
Last synced: 11 days ago
JSON representation
Advent of Code 23, C Edition
- Host: GitHub
- URL: https://github.com/jazzpi/aocc
- Owner: jazzpi
- Created: 2023-12-03T16:58:38.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-15T09:59:38.000Z (11 months ago)
- Last Synced: 2023-12-15T14:41:47.338Z (11 months ago)
- Topics: advent-of-code, advent-of-code-2023, advent-of-code-2023-c
- Language: C
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2023, masoChist Edition
Because *real* Fak IV programmers use C.
## Building
Build with CMake:
```sh
mkdir build
cd build
cmake ..
make -j4
```## Test Suite
There is a test suite that can be run with CTest:
```sh
cd build
ctest --test-dir test --output-on-failure
```It mostly tests the example inputs against their solution. If you save your own
inputs (e.g. for day 1 as `input/day1`) and solutions (under `input/solutions`),
the tests will also check that. The solutions format is `day part solution`, so
e.g. for days 1--3 (with the example solutions):```
1 1 142
1 2 281
2 1 8
2 2 2286
3 1 4361
3 2 467835
```