← Back to List

11931번: 수 정렬하기 4 ↗

Solutions

C++14
249 B | 249 chars
#include <iostream>
#include <cstdio>
using namespace std;
bool ar[2220000];
int N,A;
int main()
{
	cin>>N;
	for(int x=0; x<N; x++)
	{
		cin>>A;
		ar[A+1000001] = true;
	}
	for(int x=2100000; x>=0; x--)
	{
		if(ar[x]) printf("%d\n",x-1000001);	
	}
}