about summary refs log tree commit diff
path: root/aoc/2021/01/part-two.py
blob: c8b0ac9d1a3debf632935dfdbee93f2b2eb9b547 (plain) (blame)
1
2
3
4
5
6
7
8
from itertools import tee
from sys import stdin

old, new = tee(map(int, stdin.read().strip().split()))
next(new)
next(new)
next(new)
print(sum(o < n for o, n in zip(old, new)))