Fundamentals
using System.Numerics; public class basic { public static BigInteger pow(long down, long up) => up == 0 ? 1 : down * pow(down, up - 1); }
- using System.Numerics;
- public class basic
- {
- public static BigInteger pow(long down, long up)
{return up == 0 ? 1 : down * pow(down, up - 1);}- => up == 0 ? 1 : down * pow(down, up - 1);
- }