From 0aefd410a18acf826af5187cdb038fd9b4f25fc5 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 1 Dec 2024 09:40:19 +0100 Subject: Started 2024 + day 1 --- 2024/README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 2024/README.md (limited to '2024/README.md') 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 @@ +# Advent of Code 2024 + +This is my second year trying the AoC. This time I decided to take this +as an excuse to improve my C++ skills, so I'll use that instead of C. + +As last year, my solutions are not commented, but feel free to send +me an email at sebastiano@tronto.net if you want to know how I solved +each problem! + +## Template + +This time I am trying to use a decent template for each day. Here are the +instructions in case you want to use it. + +To start a new day run + +``` +$ ./init N +``` + +For example, to start day 7 you should run: + +``` +$ ./init.sh 7 +``` + +and the script is going to create a folder `07` and copy some template +files there. Then you can copy the `input` file into that folder, edit +`dayNNa.cpp` and once your code is ready you can run + +``` +$ make arun +``` + +To run the first part with the downloaded input file. You can also use +`make atest` to take the input from standard input, so you can copy-paste +the test case into your terminal; press Ctrl-D to enter and EOF and +terminate the input. + +For second part you can edit the file `dayNNb.cpp` and run `make btest` +and `make brun`. -- cgit v1.3