static void Main(string[] args) { Day01 day01 = new Day01(); day01.Part1(); day01.Part2(); Console.Write("Press Enter to continue..."); Console.ReadLine(); }
static void Main(string[] args) { var data = File.ReadAllText("Input/part1.txt") .Split(new string[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries).Where(t => t.Trim() != string.Empty) .Select(t => int.Parse(t.Trim())).ToList(); var today = new Day01(data); Console.Write("Part 1: "); Console.WriteLine(today.ComputePart1()); Console.Write("Part 2: "); Console.WriteLine(today.ComputePart2()); }
static void Main(string[] args) { Day01 puzzle = new Day01(); puzzle.Process(); }
static void Main(string[] args) { Day01 day01 = new Day01(); day01.Solve(Util.Puzzle.Both); }