示例#1
0
        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);
        }
示例#2
0
        private static void Solve(IO.IO io)
        {
            var inputData = io.Read();

            var solver = new GreedySwapSolver();


            var outputData = solver.Solve(inputData);

            io.Write(outputData);
        }