static void Main(string[] args) { Directory.CreateDirectory(OutputPath); var io = new IO.IO( new StreamReader(@"../../DataSets/a" + InputExt), new StreamWriter(OutputPath + "a" + OutputExt)); Solve(io); }
private static void Solve(IO.IO io) { var inputData = io.Read(); var solver = new GreedySwapSolver(); var outputData = solver.Solve(inputData); io.Write(outputData); }