← Back to List

2752번: 세수정렬 ↗

Solutions

C++14
208 B | 208 chars
#include <iostream>
#include <algorithm>
using namespace std;
int n,ar[5];
int main()
{
	n=3;
	for(int x=0; x<n; x++)
	{
		scanf("%d",&ar[x]);
	}
	sort(ar,ar+n);
	for(int x=0; x<n; x++) printf("%d ",ar[x]);
}