4 in 3 by

#!ruby -n\x0d
a,b=$_.split.map{|i|i.to_f}\x0d
printf"%.2f\n",a/(a/b+1)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top