diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-01 09:40:19 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-01 09:40:19 +0100 |
| commit | 0aefd410a18acf826af5187cdb038fd9b4f25fc5 (patch) | |
| tree | f24d69d83567079412924bf6ce06e058673171b7 /2024/README.md | |
| parent | 6c5fe99d41a3d63975deb08911ebb0e162684a43 (diff) | |
| download | aoc-0aefd410a18acf826af5187cdb038fd9b4f25fc5.tar.gz aoc-0aefd410a18acf826af5187cdb038fd9b4f25fc5.zip | |
Started 2024 + day 1
Diffstat (limited to '2024/README.md')
| -rw-r--r-- | 2024/README.md | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/2024/README.md b/2024/README.md new file mode 100644 index 0000000..4f2580b --- /dev/null +++ b/2024/README.md | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | # Advent of Code 2024 | ||
| 2 | |||
| 3 | This is my second year trying the AoC. This time I decided to take this | ||
| 4 | as an excuse to improve my C++ skills, so I'll use that instead of C. | ||
| 5 | |||
| 6 | As last year, my solutions are not commented, but feel free to send | ||
| 7 | me an email at sebastiano@tronto.net if you want to know how I solved | ||
| 8 | each problem! | ||
| 9 | |||
| 10 | ## Template | ||
| 11 | |||
| 12 | This time I am trying to use a decent template for each day. Here are the | ||
| 13 | instructions in case you want to use it. | ||
| 14 | |||
| 15 | To start a new day run | ||
| 16 | |||
| 17 | ``` | ||
| 18 | $ ./init N | ||
| 19 | ``` | ||
| 20 | |||
| 21 | For example, to start day 7 you should run: | ||
| 22 | |||
| 23 | ``` | ||
| 24 | $ ./init.sh 7 | ||
| 25 | ``` | ||
| 26 | |||
| 27 | and the script is going to create a folder `07` and copy some template | ||
| 28 | files there. Then you can copy the `input` file into that folder, edit | ||
| 29 | `dayNNa.cpp` and once your code is ready you can run | ||
| 30 | |||
| 31 | ``` | ||
| 32 | $ make arun | ||
| 33 | ``` | ||
| 34 | |||
| 35 | To run the first part with the downloaded input file. You can also use | ||
| 36 | `make atest` to take the input from standard input, so you can copy-paste | ||
| 37 | the test case into your terminal; press Ctrl-D to enter and EOF and | ||
| 38 | terminate the input. | ||
| 39 | |||
| 40 | For second part you can edit the file `dayNNb.cpp` and run `make btest` | ||
| 41 | and `make brun`. | ||
