SHARE
TWEET

Untitled

a guest Aug 20th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. #include <iomanip>
  4. #include <vector>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     int64_t n;
  11.     cin >> n;
  12.  
  13.     vector<int64_t> v(n * n);
  14.  
  15.     for (int64_t i = 0; i < (n * n); i++)
  16.     {
  17.         cin >> v[i];
  18.     }
  19.  
  20.     sort(v.begin(), v.end());
  21.  
  22.     for (int i = 0; i < v.size(); i++)
  23.     {
  24.         cout << v[i] << " ";
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top