Skip to content

Commit de6d036

Browse files
authored
Create [07]_1.cpp
1 parent 6bfef35 commit de6d036

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Solutions/[07]_1.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <bits/stdc++.h>
2+
3+
using namespace std;
4+
5+
int n;
6+
vector<int> data;
7+
8+
int main() {
9+
cin >> n;
10+
for (int i = 0; i < n; i++) {
11+
int x;
12+
scanf("%d", &x); // scanf()로 빠르게 입력
13+
data.push_back(x);
14+
}
15+
sort(data.begin(), data.end());
16+
for (auto x: data) {
17+
cout << x << '\n';
18+
}
19+
}

0 commit comments

Comments
 (0)