Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v = c = 0
- notk19 = k19 = 0
- buf = []
- n = int(input())
- for i in range(0,5):
- buf.append(int(input()))
- for i in range(5,n):
- if buf[0]%19==0:
- k19+=1
- else:
- notk19 +=1
- x = int(input())
- if x % 19 == 0:
- c += k19 + notk19
- else:
- c += k19
- for j in range(0,4):
- buf[j] = buf[j+1]
- buf[4] = x
- v = ((n-4)*(n-5)//2) - c
- print(v)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement