We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b0417b commit 12a9a65Copy full SHA for 12a9a65
1 file changed
codechef/turboSort.cpp
@@ -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