mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1849.cpp
This commit is contained in:
parent
a85d1d2052
commit
3d36eebd95
28
QUSTOJ/1849.cpp
Normal file
28
QUSTOJ/1849.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
using namespace std;
|
||||
int a[4096];
|
||||
int c;
|
||||
int main()
|
||||
{
|
||||
int t;
|
||||
scanf("%d",&t);
|
||||
for(int i=0;i<t;i++)
|
||||
{
|
||||
scanf("%d",&a[c++]);
|
||||
}
|
||||
scanf("%d",&t);
|
||||
for(int i=0;i<t;i++)
|
||||
{
|
||||
scanf("%d",&a[c++]);
|
||||
}
|
||||
sort(a,a+c);
|
||||
for(int i=0;i<c-1;i++)
|
||||
{
|
||||
printf("%d ",a[i]);
|
||||
}
|
||||
printf("%d\n",a[c-1]);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user