Skip to content

Instantly share code, notes, and snippets.

@fredbr
Last active March 27, 2018 14:39
Show Gist options
  • Save fredbr/95fe17e1cae49302a38de2439dac6d48 to your computer and use it in GitHub Desktop.
Save fredbr/95fe17e1cae49302a38de2439dac6d48 to your computer and use it in GitHub Desktop.
# solucao de PEDRO MICHAEL
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
vector<int> lista(n);
for(int i = 0; i < n; i++)
cin >> lista[i];
sort(lista.begin(), lista.end());
for(int i = 0; i < n; i++)
cout << lista[i] << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment