aoc

My solutions for the Advent of Code
git clone https://git.tronto.net/aoc
Download | Log | Files | Refs | README

README.md (1101B)


      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`.