using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(r => long.Parse(r.Replace(".", ""))).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 = 510001.0; var ok = 0.0; while (ng - ok > 0.00001) { var v = (ok + ng) / 2; if (5 * v * v + m * v * T <= 100 * m * L) ok = v; else ng = v; } res[u] = (long)(ok * 3.6 + 0.0001); } WriteLine(string.Join("\n", res.Select(r => $"{r / 100}.{r % 100 :00}"))); } }