Skip to content

My Advent of Code 2020 solutions in Python 3 and Rust.

License

Notifications You must be signed in to change notification settings

jonatcln/advent-of-code-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2020

My solutions to Advent of Code 2020 in Python 3 and Rust.

Scripts

To auto-download your input of a given day, add these variables to a .env file:

AOC_SESSION=<session_cookie>
AOC_YEAR=2020

Then run (for day 1):

$ sh aoci.sh 1
Loading .env
Retrieving input of Advent of Code 2020, day 1
Requesting https://adventofcode.com/2020/day/1/input
Writing input to 'input/day01.txt'
COMPLETED

This will write your input to a file named input/day01.txt.