Example #1
0
        static void Main()
        {
            // here you can change the tested level 0 - 10:
            for (var i = 0; i <= 10; i++)
            {
                foreach (var testFile in Helpers.ReadFilesForLevel(i))
                {
                    var stopwatch = Stopwatch.StartNew();

                    var calculator = new CalculationToImplement();
                    var result     = calculator.Calculate(testFile.Input);

                    ReportResult(testFile, result, stopwatch);
                }
            }

            Console.WriteLine("PROGRAM FINISHED ...");
            Console.ReadLine();
        }
Example #2
0
        static void Main()
        {
            //var calc = new CalculationToImplement();
            //calc.Pom();
            // here you can change the tested level 0 - 10:
            var testFiles = Helpers.ReadFilesForLevel(7);

            foreach (var testFile in testFiles)
            {
                var stopwatch = Stopwatch.StartNew();

                // TODO of the task: Implement the calculation:
                var calculator = new CalculationToImplement();
                var result     = calculator.Calculate(testFile.Input);

                ReportResult(testFile, result, stopwatch);
            }

            Console.WriteLine("PROGRAM FINISHED ...");
            Console.ReadLine();
        }