summaryrefslogtreecommitdiffstats
path: root/1.py
blob: afd445dce8ff50ff0164c13959df412055e908ac (plain)
1
2
3
4
5
from utils import open_day, sliding_window

inp: list[int] = list(map(int, open_day(1)))
print(sum(s[0] < s[1] for s in sliding_window(inp, 2)))
print(sum(s[0] < s[3] for s in sliding_window(inp, 4)))