This commit is contained in:
Daniel Cortés
2020-12-03 02:44:40 -03:00
parent bf474e6381
commit 51784c7d82

View File

@@ -1,9 +1,8 @@
with open('input') as f:
data = [line.strip() for line in f]
width, height = (len(data[0], len(data))
slopes = ((1, 1),(3, 1),(5, 1),(7, 1),(1, 2))
width, height = (len(data[0]), len(data))
slopes = ((1, 1), (3, 1), (5, 1), (7, 1), (1, 2))
result = 1
for slope in slopes: