Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <iostream>
- #include <conio.h>
- #include <string>
- #include <set>
- #include <map>
- #include <algorithm>
- #include <string>
- #include <math.h>
- #include <vector>
- #include <cmath>
- using namespace std;
- int main()
- {
- int n, size[25001] = { 0 }, prom;
- cin >> n;
- for (int i = 1; i <= n; i++)
- {
- cin >> prom;
- size[prom]++;
- }
- for (int i = 25000; i > 0; i--)
- for (int j = 1; j <= size[i]; j++)
- cout << i << endl;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment