# require "debug" require "big" alias LL = Int64 macro chmin(x, y); {{x}} = {{y}} if {{x}} > {{y}}; end macro chmax(x, y); {{x}} = {{y}} if {{x}} < {{y}}; end macro yn(x); {{x}} ? "Yes" : "No"; end # ---------------------------------------------------- :) def f(t,u,v) return v*t + (v*v)/(u*20) end read_line.to_i.times do t, u, l = read_line.split.map(&.to_big_f) ng = 0.to_big_f ok = 10000000000.to_big_f while ok-ng > 0.0000000000000000001 mid = (ok+ng)/2 if f(t,u,mid) <= l ng = mid else ok = mid end end x = ((ng*360).to_i)/100 printf("%.2f\n", x) end