Esempio n. 1
0
        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));
            }
        }
Esempio n. 2
0
 public void IntegerRoot(ulong num, long n, ulong expected)
 => NthRoots.IntegerRoot(num, n).Should().Be(expected);