def f(l,xs) ans=0 xs.each{|x| ans+=(x/l).to_i } return ans end def fb(l,r,k,xs,d) if d>77then return l else m=(l+r)/2.0 k2=f(m,xs) if k2