Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <iomanip>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main()
- {
- int64_t n;
- cin >> n;
- vector<int64_t> v(n * n);
- for (int64_t i = 0; i < (n * n); i++)
- {
- cin >> v[i];
- }
- sort(v.begin(), v.end());
- for (int i = 0; i < v.size(); i++)
- {
- cout << v[i] << " ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement