Bruno BELANYI
1df896c32c
This is mostly about unused imports. A couple errors remain, but are fine in my book (using `l` as a variable name, assigning a lambda to a variable).
18 lines
308 B
Python
Executable file
18 lines
308 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import sys
|
|
from typing import List
|
|
|
|
|
|
def solve(input: List[int]) -> int:
|
|
return sum(prev < cur for (prev, cur) in zip(input, input[1:]))
|
|
|
|
|
|
def main() -> None:
|
|
input = [int(line) for line in sys.stdin.readlines()]
|
|
print(solve(input))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|