Code golf solutions for Advent of Code 2022
This repo aims to serve as a central repository of golfed (i.e. as short as possible solutions) Advent of Code 2022 solutions.
To submit a solution for your language, just submit a pull request. If your language does not yet have a folder, feel free to make one! Please try to define rules that are as similar to those of Python or Rust as possible:
- reading input should be part of the runner, not the solutions;
- any form of expression allowed by the language can be extracted via a function;
- Add a README.md that explains the rules to (aim to) adhere to with regards to what to count towards the character count, the input method, etc.
When adding a solution, please do not delete previous solutions; prefer shadowing them, or, if the language does not allow that, renaming the previous solution (e.g. to the hash of its original commit)
Solution format will vary by language. See [language name]/README.md
for information for your language.
The part you're all here for
Here is a list of scores, separated by language and day and scored according to the language's rules (bytes unless specified). Scores (in brackets) indicate a score that is not accepted (e.g. because it violates an IO rule, or requires a modification to the language)
Day | 05ab1e | Awk | Bash | C | Clojure | Dart | J | M4 | Perl | Python | Ruby | Rust | Lua |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | (14) | 76 (73) | - | 223 | - | - | - | 219 | 63 | 88 | 64 | 147 | 136 |
2 | 27 | - | 185 | 147 | - | - | - | 150 | 89 | 117 | 202 | 222 | 142 |
3 | 39 | - | - | 372 | 261 | - | - | 316 | - | 201 | - | - | - |
4 | 31 | - | - | - | - | 269 | - | 152 | - | 106 | - | - | - |
5 | - | - | - | - | - | - | - | 463 | - | 196 | - | - | - |
6 | 31 | - | - | - | - | - | 37 | 173 | - | 69 | 61 | - | - |
7 | - | - | - | - | - | - | - | 407 | - | 183 | - | - | - |
8 | - | - | - | - | - | - | - | - | - | 282 | - | - | - |
9 | - | - | - | - | - | - | - | - | - | 233 | - | - | - |
10 | - | - | - | - | - | - | - | (219) | - | 135 | - | - | - |
11 | - | - | - | - | - | - | - | - | - | 271 | - | - | - |
12 | - | - | - | - | - | - | - | - | - | - | - | - | - |
13 | - | - | - | - | - | - | - | 336 | - | - | - | - | - |
14 | - | - | - | - | - | - | - | 433 | - | - | - | - | - |
15 | - | - | - | - | - | - | - | - | - | - | - | - | - |
16 | - | - | - | - | - | - | - | - | - | - | - | - | - |
17 | - | - | - | - | - | - | - | - | - | - | - | - | - |
18 | - | - | - | - | - | - | - | 338 | - | - | - | - | - |
19 | - | - | - | - | - | - | - | - | - | - | - | - | - |
20 | - | - | - | - | - | - | - | - | - | - | - | - | - |
21 | - | - | - | - | - | - | - | 348 (226) | - | - | - | - | - |
22 | - | - | - | - | - | - | - | - | - | - | - | - | - |
23 | - | - | - | - | - | - | - | - | - | - | - | - | - |
24 | - | - | - | - | - | - | - | - | - | - | - | - | - |
25 | - | - | - | 236 | - | - | - | 293 | - | - | - | - | - |