delete pics to save space
This commit is contained in:
14
history_source/信息学奥赛一本通/2.7.12.cpp
Normal file
14
history_source/信息学奥赛一本通/2.7.12.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include<cstdio>
|
||||
#include<algorithm>
|
||||
using std::sort;
|
||||
int n,a[100001];
|
||||
int main()
|
||||
{
|
||||
scanf("%d",&n);
|
||||
for(int i=0;i<n;i++) scanf("%d",a+i);
|
||||
sort(a,a+n);
|
||||
printf("%d ",a[0]);
|
||||
for(int i=1;i<n;i++) if(a[i]!=a[i-1]) printf("%d ",a[i]);
|
||||
printf("\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user