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

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