day 10
This commit is contained in:
		@@ -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]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user