コード例 #1
0
        public void DoPuzzle()
        {
            var blocked         = GetBlockedIpsOfInput();
            var lowestUnblocked = IPReader.GetLowestUnblocked(blocked, 0, 4294967295);

            Assert.IsTrue(lowestUnblocked > 1770166); //wrong!

            Console.Out.WriteLine(lowestUnblocked);
        }
コード例 #2
0
 public void Example()
 {
     Assert.AreEqual((uint)3, IPReader.GetLowestUnblocked(new uint[][]
     {
         new uint[] { 5, 8 },
         new uint[] { 0, 2 },
         new uint[] { 4, 7 }
     }, 0, 9));
 }