Skip to content

Instantly share code, notes, and snippets.

@mym0404
Created May 31, 2022 03:35
Show Gist options
  • Save mym0404/5ed6b99cb6ff5965639f91ce8193dd15 to your computer and use it in GitHub Desktop.
Save mym0404/5ed6b99cb6ff5965639f91ce8193dd15 to your computer and use it in GitHub Desktop.
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
void solve() {
int n;
cin >> n;
vector<int> arr(n);
for (int i = 0; i < n; i++) cin >> arr[i];
sort(arr.begin(), arr.end());
for (int i = 0; i < n; i++) cout << arr[i] << '\n';
}
signed main() {
solve();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment