This year, I am planning to do the full Advent of Code 2019 in Rust and Python.
After hitting a wall, I'll try to continue using Typescript - my main language.
(Link)
Day | Name | Rust | Python | Typescript |
---|---|---|---|---|
01 | The Tyranny of the Rocket Equation | ✓✓ | ✓✓ | |
02 | 1202 Program Alarm | ✓✓ | ✓✓ | |
03 | Crossed Wires | ✓✓ | ✓✓ | |
04 | Secure Container | ✓✓ | ||
05 | Sunny with a Chance of Asteroid | ✓✓ | ||
06 | Universal Orbit Map | ✓ | ||
07 | Amplification Circuit | |||
08 | Space Image Format |
- Enter rust directory
cd rust
- Run cargo with input passed in stdin
cargo run d1 < input.txt
- You can also test your input via stdin ended with EOF signal
cargo run d1
10
20
30
[CTRL+D]
- Run python code with input.txt as a first argument
python3 python/d1.py inputs/1.txt