예제 #1
0
        static void Main(string[] args)
        {
            Stopwatch sw = new Stopwatch();
            sw.Start();
            IEnumerable<string> files;

            SortedRowBuffer chunker = new SortedRowBuffer(Console.In);
            files = chunker.Chunk();

            using (SortedRowFileMerger merger = new SortedRowFileMerger(Console.Out))
            {
                merger.Merge(files);
            }

            sw.Stop();
            System.Diagnostics.Debug.WriteLine(sw.Elapsed);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            IEnumerable <string> files;

            SortedRowBuffer chunker = new SortedRowBuffer(Console.In);

            files = chunker.Chunk();

            using (SortedRowFileMerger merger = new SortedRowFileMerger(Console.Out))
            {
                merger.Merge(files);
            }

            sw.Stop();
            System.Diagnostics.Debug.WriteLine(sw.Elapsed);
        }