๋ฌธ์
https://www.acmicpc.net/problem/15688
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int N; cin >> N;
vector<int>v;
while (N--) {
int num; cin >> num;
v.push_back(num);
}
sort(v.begin(), v.end());
for (int i : v) {
cout << i << '\n';
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 14888๋ฒ - ์ฐ์ฐ์ ๋ผ์๋ฃ๊ธฐ (0) | 2022.02.17 |
---|---|
[๋ฐฑ์ค,c++] 10211๋ฒ - Maximum Subarray (0) | 2022.01.04 |
[๋ฐฑ์ค,c++] 9625๋ฒ - BABBA (0) | 2021.12.29 |
[๋ฐฑ์ค,c++] 15666๋ฒ - N๊ณผ M (12) (0) | 2021.12.04 |
[๋ฐฑ์ค,c++] 15665๋ฒ - N๊ณผ M (11) (0) | 2021.12.04 |
[๋ฐฑ์ค,c++] 15664๋ฒ - N๊ณผ M (10) (0) | 2021.12.04 |
๋๊ธ