コード例 #1
0
        public void Solution()
        {
            /*
             * What is the maximum 16-digit string for a "magic" 5-gon ring?
             */

            var sut = new E068Magic5gonRing();

            Assert.Equal("6531031914842725", sut.GetMaximumDigitString(ringsize: 5, maxDigit: 16));

            /*
             * Congratulations, the answer you gave to problem 68 is correct.
             * You are the 17945th person to have solved this problem.
             * This problem had a difficulty rating of 25%.
             */
        }
コード例 #2
0
        public void Test_1()
        {
            var sut = new E068Magic5gonRing();

            Assert.Equal("432621513", sut.GetMaximumDigitString(ringsize: 3, maxDigit: 9));
        }