Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<algorithm>
- using namespace std;
- long long a[2000001],n,i;
- int main()
- {
- while(scanf("%lld",&n)==1)
- {
- if(n==0)
- break;
- for(i=0;i<n;i++)
- scanf("%lld",&a[i]);
- sort(a,a+i);
- for(i=0;i<n;i++)
- {
- printf("%lld",a[i]);
- if(i<n-1)
- printf(" ");
- }
- printf("\n");
- }
- return (0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement