04. Array Rotation
Здравейте, колеги. Пробвах тази задача, но изкарвам 60/100, идеи как да я поправя?
Код: https://pastebin.com/Ae6PgZBt
Здравейте, колеги. Пробвах тази задача, но изкарвам 60/100, идеи как да я поправя?
Код: https://pastebin.com/Ae6PgZBt
using System;
internal class Program
{
    static void Main()
    {       
//04.Array Rotation
        int[] arr = Console.ReadLine()
                           .Split(" ")
                           .Select(int.Parse)
                           .ToArray();
        int rotations = int.Parse(Console.ReadLine());
        if (rotations > arr.Length) rotations -= arr.Length;
        var result = arr.Skip(rotations).Concat(arr.Take(rotations));
        foreach (int item in result) Console.Write(item + " ");
    }
}