Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            var result1 = Puzzle10.Task1(PuzzleInput.ToPuzzle10Input());

            Console.WriteLine($"Element: {result1}");

            var result2 = Puzzle10.Task2(PuzzleInput.ToPuzzle10Input());

            Console.WriteLine($"Element: {result2}");
        }
Ejemplo n.º 2
0
        public void Task2_Sum()
        {
            var stringInput = @"28
33
18
42
31
14
46
20
48
47
24
23
49
45
19
38
39
11
1
32
25
35
8
17
7
9
4
2
34
10
3";

            var sum = Puzzle10.Task2(stringInput.ToPuzzle10Input());

            Assert.Equal(19208, sum);
        }