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.
 
 
 

33 lines
887 B

## 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:
<code>
Array.from(document.getElementsByTagName("code")).indexOf($0)
</code>