import strutils, sequtils, math proc f(n: float64, a, b : int): float64 = pow(n, a.float64) * pow(ln(n), b.float64) when isMainModule: var m = stdin.readLine.parseInt for i in 0..m-1: var tmp = stdin.readLine.split a = tmp[0].parseInt b = tmp[1].parseInt t = tmp[2].parseFloat (l, r) = (0.0, 100.0) for i in 1..100: var mid = (l + r) / 2 if f(mid, a, b) < t: l = mid else: r = mid echo r