Nathan Coulas

Mock CCC '20 Contest 2 S1 - Arithmetic Hybercube

mccc2s1 CPP17 05 May, 2020 0.154s 3 points

Source Code

#include <bits/stdc++.h>
using namespace std;

int main() {
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

	int n;
	cin >> n;
	int arr[n];
	for(int i = 0; i < n; i++){
		cin >> arr[i];
	}
	
	sort(arr, arr + n);
	
	for(int i = 0; i < n; i++){
		cout << arr[i];
		if(i < n - 1) cout << " ";
	}

	return 0;
}