Example #1
0
        static void Main(string[] args)
        {
            ReadFile(@"A-small-practice.in");
            var flipper = new Flipper(_testCases, _flipperSizes, _states);
            var steps   = flipper.DoWork();

            WriteFile(@"A-small-practice.out", steps);

            _testCases    = 0;
            _flipperSizes = new List <int>();
            _states       = new List <string>();

            ReadFile(@"A-large-practice.in");
            flipper.NumberOfTestCase = _testCases;
            flipper.StateOfPancake   = _states;
            flipper.FlipperSize      = _flipperSizes;
            steps = flipper.DoWork();
            WriteFile(@"A-large-practice.out", steps);
        }