Skip to content

Commit 12a9a65

Browse files
authored
Update turboSort.cpp
1 parent 3b0417b commit 12a9a65

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

codechef/turboSort.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// https://www.codechef.com/problems/TSORT
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
int main()
5+
{
6+
int n , number;
7+
cin >>n;
8+
9+
vector<int>elements;
10+
for(int i=0; i<n;i++)
11+
{
12+
cin >> number;
13+
elements.push_back(number);
14+
}
15+
16+
sort(elements.begin() , elements.end());
17+
for(int i=0; i< elements.size();i++)
18+
{
19+
cout <<elements[i]<<endl;
20+
}
21+
}

0 commit comments

Comments
 (0)