Doing some Advent of Code puzzles in different languages to remember or learn them.
Download puzzle input and save it to input.txt
in the challenge day directory.
Or use the command line with curl
:
curl https://adventofcode.com/2023/day/1/input \
--cookie "session=$SESSION_ID" \
--output ./2023/day-01/input.txt
Open the script file in Visual Studio Code, then open the Command Palette
(default: Ctrl+Shift+P
) and select Run build task
(default: Ctrl+Shift+B
),
then select the task to run.
gcc day-01.c -o day-01
./day-01
lua day-01.lua
dotnet script day-01.csx
python day-01.py
rustc day-01.rs -o day-01
./day-01
go run day-01.go
node day-01.js