Beispiel #1
0
        static void RunJumpingOnTheClouds()
        {
            var cloudsLength = Convert.ToInt32(Console.ReadLine());

            int[] clouds   = Array.ConvertAll(Console.ReadLine().Split(' '), tempClouds => Convert.ToInt32(tempClouds));
            var   warmuper = new Warmuper();
            int   minJumps = warmuper.FindMinJumpsOnClouds(clouds);

            Console.WriteLine(minJumps);
        }
Beispiel #2
0
        static void RunRepeatedString()
        {
            var inputString = Console.ReadLine();

            var  symbolsAmount = Convert.ToInt64(Console.ReadLine());
            var  warmuper      = new Warmuper();
            long letterCount   = warmuper.CountLetterA(inputString, symbolsAmount);

            Console.WriteLine(letterCount);
        }
Beispiel #3
0
        static void RunCountingValleys()
        {
            var arrayLength = Convert.ToInt32(Console.ReadLine());

            var path     = Console.ReadLine();
            var warmuper = new Warmuper();
            int valleys  = warmuper.CountValleys(arrayLength, path);

            Console.WriteLine(valleys);
        }