blob: 02365593df4c46ea47865a3efe9cef1a52a890fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env python3
def main() -> None:
with open("input", "r", encoding="utf-8") 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()
|