Exemplo n.º 1
0
        /// <inheritdoc />
        protected override int SolveCore(string[] args)
        {
            if (!TryParseInt32(args[0], out int sides) || sides < 1)
            {
                Console.WriteLine("The specified number of sides is invalid.");
                return(-1);
            }

            Answer = Maths.Binomial(2 * sides, sides);

            return(0);
        }