We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b616860 + a162f6f commit cedf25eCopy full SHA for cedf25e
1 file changed
weekly/week01/BOJ_2750_수 정렬하기/lsy1307.cpp
@@ -0,0 +1,16 @@
1
+#include <iostream>
2
+#include <vector>
3
+#include <algorithm>
4
+using namespace std;
5
+
6
+int main() {
7
+ int N, num;
8
+ cin >> N;
9
+ vector<int> numbers(N);
10
+ for(int i {0}; i < N; i++) {
11
+ cin >> num;
12
+ numbers[i] = num;
13
+ }
14
+ sort(numbers.begin(), numbers.end());
15
+ for(auto& data : numbers) cout << data << "\n";
16
+}
0 commit comments