zwing99 / adventofcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zwing99's Advent of Code solutions

usage

cp -r template $year/$day

Now start solving

the template

includes basic parsing and file handling logic

#!/usr/bin/env python

import sys
filename = sys.argv[1] if len(sys.argv) > 1 else 'input.txt'

with open(filename) as fh:
    lines = [line.strip() for line in fh.readlines()]

About


Languages

Language:Python 87.4%Language:Makefile 8.0%Language:C++ 4.2%Language:Shell 0.2%Language:Go 0.1%