Advertisement
mohammad-hadi-babalu

mean velocity

Jan 10th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. vct=600*[0]
  2. for i in range(600):
  3.     vct[i]=int(input())
  4. b=10*[0]
  5. for i in range(600):
  6.     if i<60:
  7.         b[0]=b[0]+vct[i]
  8.     elif i<120:
  9.         b[1]=b[1]+vct[i]
  10.     elif i<180:
  11.         b[2]=b[2]+vct[i]
  12.     elif i<240:
  13.         b[3]=b[3]+vct[i]
  14.     elif i<300:
  15.         b[4]=b[4]+vct[i]
  16.     elif i<360:
  17.         b[5]=b[5]+vct[i]
  18.     elif i<420:
  19.         b[6]=b[6]+vct[i]
  20.     elif i<480:
  21.         b[7]=b[7]+vct[i]
  22.     elif i<540:
  23.         b[8]=b[8]+vct[i]
  24.     elif i<600:
  25.         b[9]=b[9]+vct[i]
  26. for i in range(10):
  27.     b[i]=b[i]/60
  28. a=b[0]
  29. for i in range(1,10):
  30.     if b[i]>a:
  31.         a=b[i]
  32. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement