2023-12-01 10:22:59 +00:00
|
|
|
#+TITLE: Advent of Code 2023
|
|
|
|
#+OPTIONS: toc:nil
|
|
|
|
|
|
|
|
All programs read input from ~stdin~ and print output to ~stdout~. The output will be printed in this format:
|
|
|
|
|
|
|
|
#+BEGIN_SRC
|
|
|
|
Part 1 Answer: <answer1>
|
|
|
|
Part 2 Answer: <answer2>
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Haskell
|
|
|
|
|
|
|
|
Run it like this:
|
|
|
|
|
|
|
|
#+BEGIN_SRC bash
|
|
|
|
cabal run aoc2023 -- day<n> < ./input/day<n>
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Bash
|
|
|
|
|
|
|
|
Run it like this:
|
|
|
|
|
|
|
|
#+BEGIN_SRC bash
|
|
|
|
./bash/main.sh day<n> < ./input/day<n>
|
|
|
|
#+END_SRC
|
|
|
|
|
2023-12-01 20:14:54 +00:00
|
|
|
* Rust
|
|
|
|
|
|
|
|
Run it like this:
|
|
|
|
|
|
|
|
#+BEGIN_SRC bash
|
|
|
|
cargo run -- day<n> < ./input/day<n>
|
|
|
|
#+END_SRC
|