import std.stdio; import std.array; import std.string; import std.conv; import std.algorithm; import std.typecons; import std.range; import std.random; import std.math; import std.container; import std.numeric; import core.bitop; void main() { auto M = readln.chomp.to!int; foreach (_; 0..M) { auto s = readln.split; auto a = s[0].to!int;; auto b = s[1].to!int; auto t = s[2].to!real; if (a == 0) writefln("%.10f", E^^t); else { real high = 10L^^a; real low = 1L; foreach (i; 0..100) { auto mid = (high + low) / 2.0L; if (pow(mid, a) * pow(log(mid), b) >= t) high = mid; else low = mid; } writefln("%.10f", high); } } }