Created
May 31, 2022 03:34
-
-
Save mym0404/acfde1cd0487ff0639b2fa3e1030b1db 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
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] << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment