Starting 2023-12-12 p1

This commit is contained in:
FrederikBaerentsen 2023-12-12 14:00:19 +01:00
parent 811f0609cb
commit 30622df89d
2 changed files with 23 additions and 0 deletions

17
2023/day12/part1.py Normal file
View File

@ -0,0 +1,17 @@
import sys
import os
from pprint import pprint
import time
import math
#colors
from termcolor import colored
grid = []
with open(sys.argv[1]) as file:
for line in file:
grid.append(line.rstrip().split())
pprint(grid)

6
2023/day12/test Normal file
View File

@ -0,0 +1,6 @@
???.### 1,1,3
.??..??...?##. 1,1,3
?#?#?#?#?#?#?#? 1,3,1,6
????.#...#... 4,1,1
????.######..#####. 1,6,5
?###???????? 3,2,1