Exemple #1
0
        static void Main(string[] args)
        {
            #region Rotate Left
            //string[] firstMultipleInput = Console.ReadLine().TrimEnd().Split(' ');

            //int n = Convert.ToInt32(firstMultipleInput[0]);

            //int d = Convert.ToInt32(firstMultipleInput[1]);

            //List<int> arr = Console.ReadLine().TrimEnd().Split(' ').ToList().Select(arrTemp => Convert.ToInt32(arrTemp)).ToList();

            //d = d % n;
            //List<int> result = Result.rotateLeft(d, arr);

            //Console.WriteLine(String.Join(" ", result));
            #endregion

            #region Sparse Arrays
            //int stringsCount = Convert.ToInt32(Console.ReadLine().Trim());

            //List<string> strings = new List<string>();

            //for (int i = 0; i < stringsCount; i++)
            //{
            //    string stringsItem = Console.ReadLine();
            //    strings.Add(stringsItem);
            //}

            //int queriesCount = Convert.ToInt32(Console.ReadLine().Trim());

            //List<string> queries = new List<string>();

            //for (int i = 0; i < queriesCount; i++)
            //{
            //    string queriesItem = Console.ReadLine();
            //    queries.Add(queriesItem);
            //}

            //List<int> res = Result2.matchingStrings(strings, queries);

            //Console.WriteLine(String.Join("\n", res));
            #endregion

            #region FizzBuzz
            //int n = Convert.ToInt32(Console.ReadLine().Trim());

            //Result3.fizzBuzz(n);
            #endregion

            #region Most Active Authors
            Console.Write("Input threshold > ");
            int threshold = Convert.ToInt32(Console.ReadLine().Trim());
            var list      = PageObject.GetUsernames(threshold);
            Console.WriteLine(String.Join(" ", list));
            #endregion

            Console.Write("\nPress any key to stop...");
            Console.ReadKey();
        }