n = int(input()) a = [] for _ in range(n): a.append(int(input())) print('\n'.join(str(e) for e in sorted(a)))
#include iostream
#include vector
#include algorithm
using namespace std;
int main() {
int n;
int number;
cin >> n;
vector numbers;
for(int i = 0; i < n; ++i) {
cin >> number;
numbers.push_back(number);
}
sort(numbers.begin(), numbers.end());
for(auto i : numbers)
cout << i << endl;
}
댓글 없음:
댓글 쓰기