mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
24 lines
320 B
C
24 lines
320 B
C
#include <stdio.h>
|
|
|
|
int a[2048];
|
|
|
|
int main()
|
|
{
|
|
int n,m;
|
|
scanf("%d %d",&n,&m);
|
|
for(int i=0;i<n;i++)
|
|
{
|
|
scanf("%d",&a[i]);
|
|
}
|
|
for(int i=n-m;i<n;i++)
|
|
{
|
|
printf("%d ",a[i]);
|
|
}
|
|
for(int i=0;i<n-m;i++)
|
|
{
|
|
printf("%d ",a[i]);
|
|
}
|
|
printf("\n");
|
|
return 0;
|
|
}
|