Example #1
0
        static void Main()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            var center = new ShoppingCenterFast();
            int commandsCount = int.Parse(Console.ReadLine());

            for (int i = 1; i <= commandsCount; i++)
            {
                string command = Console.ReadLine();
                string commandResult = center.ProcessCommand(command);

                Console.WriteLine(commandResult);
            }
        }
        public static void Main()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            //var center = new ShoppingCenterSlow();
            var center = new ShoppingCenterFast();

            int commandsCount = int.Parse(Console.ReadLine());

            for (int i = 1; i <= commandsCount; i++)
            {
                string command       = Console.ReadLine();
                string commandResult = center.ProcessCommand(command);
                Console.WriteLine(commandResult);
            }
        }