aboutsummaryrefslogtreecommitdiff
path: root/2021/01/puzzles.py
blob: d9a704ba3f313fe2b66151f422342cbdc9ae35ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3

def main() -> None:
	with open("input", "r") as f:
		nums = [int(n) for n in f.readlines()]

	print(sum(n < m for n, m in zip(nums, nums[DELTA:])))

if __name__ == "__main__":
	main()