Toboggan has 2 g
This commit is contained in:
@@ -4,8 +4,8 @@ with open('input') as f:
|
|||||||
width, height = (len(data[0], len(data))
|
width, height = (len(data[0], len(data))
|
||||||
|
|
||||||
slopes = ((1, 1),(3, 1),(5, 1),(7, 1),(1, 2))
|
slopes = ((1, 1),(3, 1),(5, 1),(7, 1),(1, 2))
|
||||||
result = 1
|
|
||||||
|
|
||||||
|
result = 1
|
||||||
for slope in slopes:
|
for slope in slopes:
|
||||||
trees = 0
|
trees = 0
|
||||||
right, down = slope
|
right, down = slope
|
||||||
Reference in New Issue
Block a user