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