advent/2021/1/1.py
2022-07-02 16:31:24 -05:00

14 lines
201 B
Python

#!/usr/bin/env python3
file = [int(i.rstrip()) for i in open("input").readlines()]
prev = 1000000000000000000
count = 0
for i in file:
if i > prev:
count += 1
prev = i
print(count)