public void Task2_4() { var stringInput = @"0 1789,37,47,1889"; var number = Puzzle13.Task2(stringInput.ToPuzzle13Input().buses); Assert.Equal(1202161486, number); }
public void Task2_2() { var stringInput = @"0 67,x,7,59,61"; var number = Puzzle13.Task2(stringInput.ToPuzzle13Input().buses); Assert.Equal(779210, number); }
public void Task2_3() { var stringInput = @"0 67,7,x,59,61"; var number = Puzzle13.Task2(stringInput.ToPuzzle13Input().buses); Assert.Equal(1261476, number); }
private static void Main(string[] args) { var watch = System.Diagnostics.Stopwatch.StartNew(); var result1 = Puzzle13.Task1(PuzzleInput.ToPuzzle13Input()); watch.Stop(); var elapsedMs = watch.Elapsed; Console.WriteLine($"Element: {result1} (elapsed: {elapsedMs})"); watch = System.Diagnostics.Stopwatch.StartNew(); var result2 = Puzzle13.Task2(PuzzleInput.ToPuzzle13Input().buses); watch.Stop(); elapsedMs = watch.Elapsed; Console.WriteLine($"Element: {result2} (elapsed: {elapsedMs})"); }