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}"); }
public void Task1_Element() { 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 number = Puzzle10.Task1(stringInput.ToPuzzle10Input()); Assert.Equal(220, number); }