Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

How to sort this ?

Revision en1, by harrypotter0, 2017-02-26 18:04:12

Sample Input 0

6 31415926535897932384626433832795 1 3 10 3 5

Sample Output 0

1 3 3 5 10 31415926535897932384626433832795

my solution

include <bits/stdc++.h>

using namespace std; int main() { long long int n,i,a,s=0,m ; string str[201202]; cin>>n; for(i=0;i<n;i++) cin>>str[i]; sort(str,str+n); for(i=0;i<n;i++) { cout<<str[i]; } return 0; }

But i am getting this as output (attached ) Any help will be highly appreciated :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English harrypotter0 2017-02-26 18:04:12 537 Initial revision (published)