Starting 2023-12-12 p1
This commit is contained in:
parent
811f0609cb
commit
30622df89d
17
2023/day12/part1.py
Normal file
17
2023/day12/part1.py
Normal 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
6
2023/day12/test
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
???.### 1,1,3
|
||||||
|
.??..??...?##. 1,1,3
|
||||||
|
?#?#?#?#?#?#?#? 1,3,1,6
|
||||||
|
????.#...#... 4,1,1
|
||||||
|
????.######..#####. 1,6,5
|
||||||
|
?###???????? 3,2,1
|
Loading…
Reference in New Issue
Block a user