| 12345678910111213141516171819202122232425 |
- using System.Diagnostics;
- using Day14;
- if (args.Any(a => a == "--debug"))
- {
- Console.WriteLine("DEBUG");
- Console.WriteLine(Debugger.Launch());
- }
- if (args.Length < 1)
- {
- Console.WriteLine("Requires 1 args: inputFileName");
- return -1;
- }
- var inputFile = args[0];
- var parser = new Parser();
- var boulderMap = parser.Parse(inputFile);
- var load = boulderMap.CalculateMaxNorthLoad();
- Console.WriteLine();
- Console.WriteLine($"Max North Load: {load}");
- return 0;
|