You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Benjamin Kraft 973f0894c5 Tried caching for part 2, still not fast enough 9 months ago
src Tried caching for part 2, still not fast enough 9 months ago
.gitignore Init 9 months ago
CMakeLists.txt update cpr version 9 months ago
README.md Init 9 months ago
fill.py Init 9 months ago
pre.cpp Init 9 months ago
pre.h Init 9 months ago

README.md

Advent Of Code 2023 C++ Solutions

Build with CMakeLists.txt

Run:

Place a file called "session" with your session key cookie from https://adventofcode.com/ inside the Working Directory.

Expects runtime arguments as days, for example:

"5 9 1" executes Days 5, 9, 1 in this order.

Test Inputs

Add argument "T" after each Day to use XX_testInput.txt rather than XX_input.txt

For Test-Inputs, it tries to fetch the content of the first code-Tag. You can control this by adding the index of the desired code-Tag. Example:

"3T 6T1 9"

  • Day 3 with content from inside the first code-Tag
  • Day 6 with content from inside the second code-Tag
  • Day 9 with regular input

Get index with Browser Dev Tools:

Select the correct code-Tag in the inspector, then paste this into the console:

Array.from(document.getElementsByTagName("code")).indexOf($0)