Input files must be placed in a directory named res
next to the src
directory and have the format day[x].txt
. Like this:
├── Cargo.toml
├── res
│ ├── day1.txt
│ ...
│ └── day25.txt
└── src
└── bin
├── day1.rs
...
└── day25.rs
Run with cargo like this
cargo run --bin day$X.rs
Where $X
is the day you wish to run, eg. for day 1:
cargo run --bin day1.rs