using System.Diagnostics; using Day24; 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 isSample = inputFile.Contains("sample"); var parser = new Parser(); var lines = parser.Parse(inputFile).ToList(); var hailStorm = new HailStorm(lines.Select(l => (Line)l).ToList()); var min = isSample ? 7d : 200000000000000d; var max = isSample ? 27d : 400000000000000d; var count = hailStorm.Count(min, max); Console.WriteLine(); Console.WriteLine($"Total: {count}"); Console.WriteLine(); Console.WriteLine("Just put the following code into Python. It's much easier that way."); Console.WriteLine("https://jupyter.org/try-jupyter/lab/"); Console.WriteLine("-----"); var lucky = new LuckyShot(lines); lucky.Find(); return 0;