6 lines
194 B
Python
6 lines
194 B
Python
lines = open("input", "r").read().split("\n")
|
|
lines = [l for l in lines if l]
|
|
visited = [l[(i*3)%len(l)] for i, l in enumerate(lines)]
|
|
trees = [t for t in visited if t == "#"]
|
|
print(len(trees))
|