int _tmain(int argc, _TCHAR* argv[])
{
int n;
int r;
cin >> n;
cin >> r;
int *num = new int[n];
r = r%n; //刚开始忽略了这一句,无法解决右移位数大于数组长度的情况
for (int i = r; i < n;++i)
{
cin >> num[i];
if (i==n-1)
{
for (int j = 0; j < r;++j)
{
cin >> num[j];
}
}
}
for (int i = 0; i < n;++i)
{
if (i == n-1)
{
cout << num[i];
}
else
cout << num[i] << ' ';
}
return 0;
}