public static void Main() { try { Console.WriteLine(Task1.Solve(ReadFile("input.txt"))); Console.WriteLine(Task2.Solve(ReadFile("input.txt"))); } catch (Exception ex) { Console.WriteLine(ex); } Console.WriteLine("..."); Console.ReadLine(); }
public static void Solve(IEnumerable <string> input, long expected) { var actual = Task2.Solve(input); Assert.AreEqual(expected, actual); }