Added shebang to files
parent
4cb82e81e3
commit
143bbf3c10
2
day02.py
2
day02.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from itertools import product
|
||||
from operator import mul, add
|
||||
|
||||
|
|
2
day03.py
2
day03.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
up = lambda v: (v[0], v[1] + 1)
|
||||
down = lambda v: (v[0], v[1] - 1)
|
||||
left = lambda v: (v[0] - 1, v[1])
|
||||
|
|
2
day04.py
2
day04.py
|
@ -1,4 +1,4 @@
|
|||
|
||||
#!/usr/bin/env python3
|
||||
|
||||
def preproc(puzzle_input):
|
||||
space = tuple(map(int, puzzle_input.split('-')))
|
||||
|
|
2
day05.py
2
day05.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from intcode import Interpreter, SingletonIO
|
||||
|
||||
def preproc(puzzle_input):
|
||||
|
|
2
day06.py
2
day06.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from lib import Graph
|
||||
|
||||
def preproc(puzzle_input):
|
||||
|
|
2
day07.py
2
day07.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from intcode import Interpreter, makeIO, Singleton, Halted
|
||||
from itertools import permutations
|
||||
|
||||
|
|
2
day09.py
2
day09.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from intcode import Interpreter, SingletonIO
|
||||
|
||||
def preproc(puzzle_input):
|
||||
|
|
2
day10.py
2
day10.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from fractions import gcd, Fraction
|
||||
from itertools import product
|
||||
from functools import total_ordering
|
||||
|
|
2
day11.py
2
day11.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from advent import read_input
|
||||
from intcode import Interpreter
|
||||
from collections import defaultdict
|
||||
|
|
Loading…
Reference in New Issue