public void Run() { var cases = InOut.ReadStringInput(out numberOfCases).ToList(); var results = new List <string>(); for (int ii = 0; ii < numberOfCases; ii++) { var parsedCase = new InputCase(cases[ii]); var solver = new CaseSolver(parsedCase); Tuple <long, long> resultTuple = solver.Solve(); var resultText = resultTuple.Item1.ToString() + ' ' + resultTuple.Item2.ToString(); results.Add(string.Format("Case #{0}: {1}", ii + 1, resultText)); } InOut.WriteOutput(results); }
internal CaseSolver(InputCase inputCase) { input = inputCase; }