mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1745.c
This commit is contained in:
parent
a90394466c
commit
20cb4f38a6
23
QUSTOJ/1745.c
Normal file
23
QUSTOJ/1745.c
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user