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 874254c1b6 Support for multi-digit test indices 2 years ago
src Support for multi-digit test indices 2 years ago
.gitignore ignore idea 2 years ago
CMakeLists.txt removed header files from add_executable 3 years ago
README.md Better test input support 2 years ago
fill.py tidy 3 years ago
pre.cpp tidy 3 years ago
pre.h tidy 3 years ago

README.md

Advent Of Code 2022 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)