Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def moshnost(v):
- return v ** 3 * 115.923
- deficits, windspeeds = eval(input())
- fir = False
- sec = False
- summ = 0
- count = 0
- while not (fir and sec):
- fir = True
- sec = True
- for i in range(len(deficits)):
- k = i
- while k <= k + 24:
- if k >= 239:
- break
- summ += deficits[k]
- k += 1
- if summ / 24 > 1000000:
- sec = sec and False
- summ = 0
- for i in range(len(deficits)):
- if deficits[i] > 500000:
- fir = fir and False
- if not (fir and sec):
- count += 1
- else:
- print(count)
- exit(0)
- for i in range(len(deficits)):
- deficits[i] = deficits[i] - moshnost(windspeeds[i])
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement