Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define N 100
- int f[N] = {0};
- int main(void) {
- int n, x;
- scanf("%d",&n);
- for(int i = 0; i < n; ++i) {
- scanf("%d",&x);
- ++f[x];
- }
- for(i = 0; i < N; ++i)
- for(j = 0; j < f[i]; ++j)
- printf("%d ",i);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement