Guest User

Untitled

a guest
May 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n, i, arr[1000001] = { 0 };
  7. cin >> n;
  8. for (i = 0; i < n; i++) {
  9. cin >> arr[i];
  10. }
  11. sort(arr, arr + n);
  12. for (i = 0; i < n; i++) {
  13. cout << arr[i] << '\n';
  14. }
  15. return 0;
  16. }
Add Comment
Please, Sign In to add comment