public void Task1_Input_006() { var stringInput = @"."; var number = Puzzle11.Task1(stringInput.ToPuzzle11Input()); Assert.Equal(0, number); }
public void Task1_Input_005() { var stringInput = @"LLL LL. LLL"; var number = Puzzle11.Task1(stringInput.ToPuzzle11Input()); Assert.Equal(4, number); }
private static void Main(string[] args) { var watch = System.Diagnostics.Stopwatch.StartNew(); var result1 = Puzzle11.Task1(PuzzleInput.ToPuzzle11Input()); watch.Stop(); var elapsedMs = watch.ElapsedMilliseconds; Console.WriteLine($"Element: {result1} (elapsed: {elapsedMs})"); watch = System.Diagnostics.Stopwatch.StartNew(); var result2 = Puzzle11.Task2(PuzzleInput.ToPuzzle11Input()); watch.Stop(); elapsedMs = watch.ElapsedMilliseconds; Console.WriteLine($"Element: {result2} (elapsed: {elapsedMs})"); }
public void Task1_Element() { var stringInput = @"L.LL.LL.LL LLLLLLL.LL L.L.L..L.. LLLL.LL.LL L.LL.LL.LL L.LLLLL.LL ..L.L..... LLLLLLLLLL L.LLLLLL.L L.LLLLL.LL"; var number = Puzzle11.Task1(stringInput.ToPuzzle11Input()); Assert.Equal(37, number); }