Exemplo n.º 1
0
        public static void PrintInputs(string filename, FormattedInput input)
        {
            Console.WriteLine($@"
--------------------------------------
[INFO] Processed InputFile      : {filename}
[INFO] Number of records read in: {input.RawInput.Count}
--------------------------------------");
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            FormattedOutput.PrintOpening();

            var input = new FormattedInput(HardCodedConfig.InputFilePath);

            FormattedOutput.PrintInputs(input);

            var results1 = new Solution1();

            results1.Calc(input.ParsedInput);
            FormattedOutput.PrintResults(results1);

            if (HardCodedConfig.Challenge2)
            {
                var results2 = new Solution2();
                results2.Calc(input.ParsedInput);
                FormattedOutput.PrintResults(results2);
            }
        }
Exemplo n.º 3
0
        public static void PrintInputs(FormattedInput input)
        {
            Console.WriteLine($@"
[INFO] Number of records read in: {input.RawInput.Count}
");
        }