Created
May 31, 2022 03:35
-
-
Save mym0404/5ed6b99cb6ff5965639f91ce8193dd15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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