public static void Run() { var lines = InOut.ReadStringInput(out numberOfCases).ToList(); var results = new List <string>(); for (int ii = 0; ii < numberOfCases; ii++) { var parsedCase = new CaseInput(lines[ii]); var solver = new CaseSolver(parsedCase); var result = solver.Solve(); var resultText = result.ToString(); results.Add(string.Format("Case #{0}: {1}", ii + 1, resultText)); } InOut.WriteOutput(results); }
internal CaseSolver(CaseInput inputCase) { input = inputCase; }
public static void caseSplitter() { var input = new CaseInput("11 4 0 4 0 4 0"); var x = new CaseSolver(input).SingleColourSolve(); }