ποΈ PS (BOJ)
[BOJ][C++] λ°±μ€ 2751λ²: μ μ λ ¬νκΈ° 2
μ λ¬
2023. 1. 11. 17:58
λ°μν
https://www.acmicpc.net/problem/2751
2751λ²: μ μ λ ¬νκΈ° 2
첫째 μ€μ μμ κ°μ N(1 ≤ N ≤ 1,000,000)μ΄ μ£Όμ΄μ§λ€. λμ§Έ μ€λΆν° Nκ°μ μ€μλ μκ° μ£Όμ΄μ§λ€. μ΄ μλ μ λκ°μ΄ 1,000,000λ³΄λ€ μκ±°λ κ°μ μ μμ΄λ€. μλ μ€λ³΅λμ§ μλλ€.
www.acmicpc.net
// Authored by : seondal
// Co-authored by : -
// #include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
int n;
cin >> n;
vector<int> v(n);
for(int i=0; i<n; i++)
cin >> v[i];
sort(v.begin(), v.end());
for(int i=0; i<n; i++)
cout << v[i] << "\n";
return 0;
}
/*
*/
λ°μν