Create 1848.cpp

This commit is contained in:
Kirigaya Kazuto 2016-10-20 20:29:45 +08:00 committed by GitHub
parent 3e0a8eca92
commit a85d1d2052

28
QUSTOJ/1848.cpp Normal file
View 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;i++)
{
printf("%d ",a[i]);
}
printf("\n");
return 0;
}