using System; using System.Collections.Generic; class Program { static void Main() { var m = int.Parse(Console.ReadLine()); var a = new List(); var b = new List(); var t = new List(); double ans; for (int i = 0; i < m; i++) { var str = Console.ReadLine().Split(' '); a.Add(int.Parse(str[0])); b.Add(int.Parse(str[1])); t.Add(double.Parse(str[2])); if (b[i] == 0) ans = Math.Pow(t[i], 1.0 / a[i]); else { for (double n = 1.0; ;) { var tmp1 = Math.Pow(t[i], 1.0 / b[i]); var tmp2 = Math.Pow(n, (double)a[i] / b[i]); var tmp3 = n - Math.Exp(tmp1 / tmp2); if (Math.Abs(tmp3) < 10e-10) { ans = n; break; } else n -= tmp3 / 4.0; } } Console.WriteLine("{0:.##########}", ans); } } }