using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static double[] NList => ReadLine().Split().Select(double.Parse).ToArray(); static void Main() { var t = NN; var res = new long[t]; for (var u = 0; u < t; ++u) { var c = NList; var (T, m, L) = (c[0], c[1], c[2]); var ng = 5100.0; var ok = 0.0; while (ng - ok > 0.001) { var v = (ok + ng) / 2; if (v * v / 20 / m + v * T <= L) ok = v; else ng = v; } res[u] = (long)(ok * 360 + 0.5); } WriteLine(string.Join("\n", res.Select(r => $"{r / 100}.{r % 100 :00}"))); } }