Skip to content

My solutions to Advent of Code

Notifications You must be signed in to change notification settings

p7g/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of code solutions

This branch has solutions for 2025, for other years see the other branches:

Instructions if you wanna use aoc.py

  1. Set up a Python virtual environment and install the dependencies with uv install
  2. Grab the cookie named "session" from adventofcode.com after you've signed in and put that in a file called .aoc-session
  3. Name your solution files like 01.py (zero-padded to 2 digits)
  4. Optionally from aoc import * in your solutions to import the prelude
  5. Either run the solutions directly (i.e. python 01.py) or just run ./aoc.py and it will run today's solution

The input for the problem (a str) can be found in the data member of the aoc module. The input is cached so it's only requested once per day.

To manually specify which solution to run and the input to use, use the AOC_YEAR and AOC_DAY environment variables.

About

My solutions to Advent of Code

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages