Skip to content

acortiana/advent_of_code_2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent_of_code_2022

This is my code for advent of code 2022. It's quick and dirty code, unoptimized, slow, with no comments, no error handling, bad naming of both variables and functions
Probably I reinvented the wheel countless times in this code but... who cares?

When I wrote this, only God and I understood what I was doing
Now, God only knows

Instructions

Every script solves one puzzle and expects to receive the puzzle input via STDIN.
The puzzle input must be provided exactly as provided by advent of code site: no additional leading/trailing spaces/newlines/carriage return/other stuff
Every script outputs the solution and a trailing newline character.
This is a command line example to solve a puzzle:
cat 1.input.txt | python3 1-part1.py