34 lines
521 B
Org Mode
34 lines
521 B
Org Mode
#+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
|
|
|
|
* Rust
|
|
|
|
Run it like this:
|
|
|
|
#+BEGIN_SRC bash
|
|
cargo run -- day<n> < ./input/day<n>
|
|
#+END_SRC
|