https://github.com/sheredom/aoc2023
AOC2023 solutions
https://github.com/sheredom/aoc2023
Last synced: 9 months ago
JSON representation
AOC2023 solutions
- Host: GitHub
- URL: https://github.com/sheredom/aoc2023
- Owner: sheredom
- License: mit
- Archived: true
- Created: 2023-12-01T09:50:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-11T12:46:27.000Z (about 2 years ago)
- Last Synced: 2025-02-21T04:44:32.873Z (11 months ago)
- Language: Rust
- Size: 151 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🎄🦀🎄 Advent of Code 2023 Solutions 🎄🦀🎄
Here is my Rust-based Advent of Code 2023 solutions.
### Advent of Code project template
A Rust template for Advent of Code that I made to easily run any day or combination of days and measure the execution time.
Each day has a `solve()` function that returns a pair of `Solution`. The type `Solution` is an enum that can contain any integer or a string.
To run: `cargo run --release [days...]`
Use: `static INPUT: &str = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/input/dayXX"));` each day.