Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Problema: http://www.pbinfo.ro/?pagina=probleme&id=509&force_reload&cpp
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int nr, n, v[10000];
- int main()
- {
- cin >> n;
- for (int i=0; i<n; i++)
- {
- cin >> v[i];
- }
- sort(v, v+n);
- for (int i=0; i<n; i++)
- {
- cout << v[i] << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment