aboutsummaryrefslogtreecommitdiff
path: root/2024/README.md
diff options
context:
space:
mode:
Diffstat (limited to '2024/README.md')
-rw-r--r--2024/README.md41
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
3This is my second year trying the AoC. This time I decided to take this
4as an excuse to improve my C++ skills, so I'll use that instead of C.
5
6As last year, my solutions are not commented, but feel free to send
7me an email at sebastiano@tronto.net if you want to know how I solved
8each problem!
9
10## Template
11
12This time I am trying to use a decent template for each day. Here are the
13instructions in case you want to use it.
14
15To start a new day run
16
17```
18$ ./init N
19```
20
21For example, to start day 7 you should run:
22
23```
24$ ./init.sh 7
25```
26
27and the script is going to create a folder `07` and copy some template
28files 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
35To 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
37the test case into your terminal; press Ctrl-D to enter and EOF and
38terminate the input.
39
40For second part you can edit the file `dayNNb.cpp` and run `make btest`
41and `make brun`.

Generated with cgit - Back to sebastiano.tronto.net