{"id":19708815,"url":"https://github.com/willkill07/adventofcode2018","last_synced_at":"2025-06-13T13:36:37.076Z","repository":{"id":78761854,"uuid":"159975527","full_name":"willkill07/AdventOfCode2018","owner":"willkill07","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-11T15:56:08.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T08:13:27.684Z","etag":null,"topics":["advent-of-code","advent-of-code-2018","adventofcode","adventofcode2018","cpp","cpp17"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willkill07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-01T18:36:40.000Z","updated_at":"2022-11-29T02:55:23.000Z","dependencies_parsed_at":"2023-02-24T08:45:20.093Z","dependency_job_id":null,"html_url":"https://github.com/willkill07/AdventOfCode2018","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willkill07/AdventOfCode2018","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkill07%2FAdventOfCode2018","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkill07%2FAdventOfCode2018/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkill07%2FAdventOfCode2018/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkill07%2FAdventOfCode2018/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willkill07","download_url":"https://codeload.github.com/willkill07/AdventOfCode2018/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willkill07%2FAdventOfCode2018/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259654078,"owners_count":22890956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","advent-of-code-2018","adventofcode","adventofcode2018","cpp","cpp17"],"created_at":"2024-11-11T21:45:01.769Z","updated_at":"2025-06-13T13:36:37.048Z","avatar_url":"https://github.com/willkill07.png","language":"C++","readme":"# Advent of Code - 2018\n\nAll implementations are written in C++, mostly adhering to C++17/C++20 guidelines.\n\n## Prerequisites\n\n* clang (\u003e= 5.0)\n* libc++ (\u003e= 5.0)\n* CMake (\u003e= 3.11)\n* macOS or Linux (only two systems I've tested on)\n\n## Compiling\n\n* Your standard cmake-enabled project\n\n## Running\n\n* Invoke `./Advent` to execute all the days\n* To run a specific day, invoke `./Advent -f \u003cdayXX\u003e`\n* To run a specific part, invoke `./Advent -p \u003c1,2\u003e`\n* To see more detailed help, consult `./Advent --help`\n\n## Metrics\n\n* Lines: Number of lines given by `wc`\n* Code: `Lines` - `(# preprocessor lines)` - `(lines with no alphanumeric chars)`\n* Bytes: Number of total characters\n* Chars: Number of non-whitespace characters\n* Time: Time in milliseconds to execute each part independently (separate runs)\n* Source: link to implementation\n* Headers: C++ includes used for solution\n\n## Leaderboard Highlights:\n\nDay | Part 1 | Part 2\n:--:|:-------|:------\n1   | 52     | 217 \n\n## Detailed Information\n\n Day | Lines | Code | Bytes | Chars | Time (ms) | Source | Headers\n:---:|:-----:|:----:|:-----:|:-----:| ---------:|:------:|:-------\n01|30|16|727|606|`33.3431`|[Day01.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day01.cpp)|`iterator` `unordered_set` `vector` `range/v3/numeric.hpp` `range/v3/view/cycle.hpp` [`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n02|62|40|1611|1225|`13.0766`|[Day02.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day02.cpp)|`algorithm` `array` `iterator` `numeric` `unordered_map` `vector` [`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) [`util.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/util.hpp)\n03|71|39|2024|1693|`9.7002`|[Day03.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day03.cpp)|`algorithm` `string` `vector` `range/v3/algorithm.hpp` `range/v3/getlines.hpp` `range/v3/numeric.hpp` `range/v3/view/cartesian_product.hpp` `range/v3/view/filter.hpp` `range/v3/view/iota.hpp` `range/v3/view/join.hpp` `range/v3/view/take_while.hpp` `range/v3/view/view.hpp` [`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n04|52|30|1454|1153|`4.9062`|[Day04.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day04.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `unordered_map` `vector` `range/v3/algorithm.hpp` `range/v3/getlines.hpp` `range/v3/numeric.hpp` `range/v3/view/slice.hpp`\n05|49|29|1232|1012|`21.3260`|[Day05.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day05.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `iterator` `vector` `range/v3/algorithm/min.hpp` `range/v3/view/indices.hpp` `range/v3/view/remove_if.hpp` `range/v3/view/repeat.hpp` `range/v3/view/transform.hpp` `range/v3/view/zip_with.hpp`\n06|120|77|3059|2236|`44.6084`|[Day06.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day06.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `limits` `iterator` `set` `vector` `range/v3/algorithm/min.hpp` `range/v3/view/indices.hpp` `range/v3/view/transform.hpp` `range/v3/view/zip.hpp`\n07|73|45|1767|1225|`1.0425`|[Day07.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day07.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `map` `set` `vector` `range/v3/algorithm/max.hpp` `range/v3/view/filter.hpp` `range/v3/view/map.hpp` `range/v3/getlines.hpp`\n08|59|34|1376|1087|`10.7500`|[Day08.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day08.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `iterator` `vector` `range/v3/numeric.hpp` `range/v3/view/transform.hpp` `range/v3/view/filter.hpp`\n09|89|59|1778|1313|`1261.1161`|[Day09.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day09.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `iterator` `range/v3/algorithm/max.hpp` `vector`\n10|111|78|4057|3412|`2.1783`|[Day10.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day10.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `limits` `unordered_map` `vector` `range/v3/all.hpp`\n11|60|34|1758|1420|`42.1620`|[Day11.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day11.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp) `array` `range/v3/algorithm/max.hpp` `range/v3/view/cartesian_product.hpp` `range/v3/view/indices.hpp` `range/v3/view/join.hpp` `range/v3/view/transform.hpp`\n12|12|8|285|254|`0.0172`|[Day12.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day12.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n13|12|8|285|254|`0.0144`|[Day13.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day13.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n14|12|8|285|254|`0.0139`|[Day14.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day14.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n15|12|8|285|254|`0.0140`|[Day15.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day15.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n16|12|8|285|254|`0.0142`|[Day16.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day16.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n17|12|8|285|254|`0.0281`|[Day17.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day17.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n18|12|8|285|254|`0.0145`|[Day18.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day18.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n19|12|8|285|254|`0.0141`|[Day19.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day19.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n20|12|8|285|254|`0.0139`|[Day20.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day20.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n21|12|8|285|254|`0.0147`|[Day21.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day21.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n22|12|8|285|254|`0.0426`|[Day22.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day22.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n23|12|8|285|254|`0.0283`|[Day23.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day23.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n24|12|8|285|254|`0.0158`|[Day24.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day24.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n25|12|8|285|254|`0.0219`|[Day25.cpp](https://github.com/willkill07/AdventOfCode2018/blob/master/src/Day25.cpp)|[`Solution.hpp`](https://github.com/willkill07/AdventOfCode2018/blob/master/include/Solution.hpp)\n**TOTAL**|**944**|**593**|**24833**|**19938**|**1444.48**| |`  Solution.hpp`\u0026nbsp;\u003csup\u003e**`25`**\u003c/sup\u003e ` vector`\u0026nbsp;\u003csup\u003e**`10`**\u003c/sup\u003e ` iterator`\u0026nbsp;\u003csup\u003e**`6`**\u003c/sup\u003e ` range/v3/view/transform.hpp`\u0026nbsp;\u003csup\u003e**`4`**\u003c/sup\u003e ` range/v3/numeric.hpp`\u0026nbsp;\u003csup\u003e**`4`**\u003c/sup\u003e ` range/v3/view/indices.hpp`\u0026nbsp;\u003csup\u003e**`3`**\u003c/sup\u003e ` range/v3/algorithm/max.hpp`\u0026nbsp;\u003csup\u003e**`3`**\u003c/sup\u003e ` unordered_map`\u0026nbsp;\u003csup\u003e**`3`**\u003c/sup\u003e ` range/v3/view/filter.hpp`\u0026nbsp;\u003csup\u003e**`3`**\u003c/sup\u003e ` range/v3/getlines.hpp`\u0026nbsp;\u003csup\u003e**`3`**\u003c/sup\u003e ` range/v3/view/join.hpp`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` set`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` limits`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` algorithm`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` range/v3/view/cartesian_product.hpp`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` array`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` range/v3/algorithm/min.hpp`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` range/v3/algorithm.hpp`\u0026nbsp;\u003csup\u003e**`2`**\u003c/sup\u003e ` util.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/map.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/repeat.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` numeric`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/remove_if.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/take_while.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/zip.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` unordered_set`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/zip_with.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/view.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/cycle.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/slice.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/all.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` range/v3/view/iota.hpp`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` string`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` map`\u0026nbsp;\u003csup\u003e**`1`**\u003c/sup\u003e ` `\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillkill07%2Fadventofcode2018","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillkill07%2Fadventofcode2018","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillkill07%2Fadventofcode2018/lists"}