This commit is contained in:
2021-12-20 20:04:33 +01:00
parent edd0059e7e
commit ce02b1c91b
5 changed files with 151 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
import sys
L = [int(l[:-1]) for l in sys.stdin.readlines()]
L = list(map(int,sys.stdin.read().splitlines()))
print(sum([0,1][a<d] for (a,d) in zip(L, L[3:])))
# window1 = [A,B,C] ; window2 = [B,C,D]