Good day, I solve the problem on the site
Write an effective program that will cyclically shift the given array by k elements to the right. Additional arrays and recursion do not use.
Specifications Input The program first receives the values n100 - the number of elements in the array and k100. The next line of input data contains the array elements themselves - integers that do not exceed 30,000 in absolute value.
n, m = input().split() n = int(n) k = int(m) array = input().split() for i in range(len(array)): array[i] = int(array[i]) array = array[-k:] + array[:-k] print(array) They write: Wrong output format. What is my joint?