public override void Solve(ConsoleReader cr, ConsoleWriter cw) { int Q = cr; for (int q = 0; q < Q; q++) { ulong a = cr; int k = cr; cw.WriteLine(NthRoots.IntegerRoot(a, k)); } }
public void IntegerRoot(ulong num, long n, ulong expected) => NthRoots.IntegerRoot(num, n).Should().Be(expected);