day 2 completed
This commit is contained in:
parent
344e187509
commit
1087fe2ef9
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/python3
|
||||||
# Day 2: Dive!
|
# Day 2: Dive!
|
||||||
|
|
||||||
# Vim macros ftw
|
# Vim macros ftw
|
||||||
|
@ -12,6 +13,7 @@ for i in range(0,len(values)):
|
||||||
depth-=int(word[1])
|
depth-=int(word[1])
|
||||||
p1 = hor_pos*depth
|
p1 = hor_pos*depth
|
||||||
print(p1)
|
print(p1)
|
||||||
|
|
||||||
aim = 0; depth = 0; hor_pos=0
|
aim = 0; depth = 0; hor_pos=0
|
||||||
for i in range(0,len(values)):
|
for i in range(0,len(values)):
|
||||||
word = values[i].split(' ')
|
word = values[i].split(' ')
|
||||||
|
|
Loading…
Reference in New Issue