Example #1
0
        public void Day25Part1TestExample()
        {
            var day25 = new Day25();

            var actual   = day25.Part1(5764801, 17807724);
            var expected = 14897079;

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void Day25Part1Test()
        {
            var day25 = new Day25();

            var actual   = day25.Part1(10441485, 1004920);
            var expected = 17032383;

            Assert.AreEqual(expected, actual);
        }
Example #3
0
    public void Part1()
    {
        var input = new string[]
        {
            "5764801",
            "17807724"
        };
        var day      = new Day25();
        var actual   = day.Part1(input);
        var expected = 14897079;

        Assert.Equal(expected, actual);
    }
Example #4
0
 private static void Main(string[] args)
 {
     // Day01.Part1();
     // Day01.Part2();
     // Day02.Part1();
     // Day02.Part2();
     // Day03.Part1();
     // Day03.Part2();
     // Day04.Part1();
     // Day04.Part2();
     // Day05.Part1();
     // Day05.Part2();
     // Day06.Part1();
     // Day06.Part2();
     // Day07.Part1();
     // Day07.Part2();
     // Day08.Part1();
     // Day08.Part2();
     // Day09.Part1();
     // Day09.Part2();
     // Day10.Part1();
     // Day10.Part2();
     // Day11.Part1();
     // Day11.Part2();
     // Day12.Part1();
     // Day12.Part2();
     // Day13.Part1();
     // Day13.Part2();
     // Day14.Part1();
     // Day14.Part2();
     // Day15.Part1();
     // Day15.Part2();
     // Day16.Part2();
     // Day17.Part1();
     // Day17.Part2();
     // Day18.Part1();
     // Day18.Part2();
     // Day19.Part1();
     // Day19.Part2();
     // Day20.Part1();
     // Day20.Part2();
     // Day21.Part1And2();
     // Day22.Part1();
     // Day22.Part2();
     // Day23.Part1();
     // Day23.Part2();
     // Day24.Part1And2();
     Day25.Part1();
 }
        public void ShouldSolvePart1(string publicKey1, string publicKey2, long expected)
        {
            var actual = Day25.Part1(new[] { publicKey1, publicKey2 });

            Assert.Equal(expected, actual);
        }
Example #6
0
 static void Main(string[] args)
 {
     Day25.Part1();
 }