Skip to main content
4 of 4
added 9 characters in body
BlackCap
  • 3.9k
  • 16
  • 33

Haskell, 71 49 48 bytes

f x=length.fst.span(<x).scanl(+)0$(0.5/)<$>[1..]

@BMO saved me a whopping 22 bytes!

BlackCap
  • 3.9k
  • 16
  • 33