#include <vector>
class Solution {
public:
    /**
     * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
     *
     * 
     * @param nums int整型vector 
     * @param k int整型 
     * @return int整型vector
     */
    vector<int> rotateCows(vector<int>& nums, int k) {
        // write code here
        // 题目错了,是右移
        int len = nums.size();

        k %= len;

        for(int i=0; i<k; ++i)
        {
            int temp = nums[len-1];
            for(int j=len-1; j>0; --j)
            {
                nums[j] = nums[j-1];
            }
            nums[0] = temp;
        }

        return nums;
    }
};