Advent-of-Code/2019/day 1/Part one/requirements.py

6 lines
136 B
Python
Raw Normal View History

2019-12-01 14:49:42 +01:00
modules = open("input.txt").read().split("\n")[:-1]
requirement = 0
for i in modules:
requirement+=(int(i)//3)-2
print(requirement)