BOJ-2750
01 Jul 2021오름차순 정렬하는 간단한 문제
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
int N;
cin >> N;
vector<int> input;
for (int i=0; i<N; i++) {
int in;
cin >> in;
input.push_back(in);
}
sort(input.begin(), input.end());
for (int i=0; i<N; i++) {
printf("%d\n", input[i]);
}
return 0;
}
오랜만에 시작하는거라 아주아주 간단한걸로 손 풀기… 사실 다른 문제 풀다가… 자야하는데 1시간째 예외 못찾아서 쉬운 걸로 갈아탐
내일은 주말이니까 더 열심히 해봐야지!!! 컴퓨팅 사고능력을 갖춘 사람이 되는 그 날까지…✨✨ 코딩멍청이 탈출하고 싶다ㅜㅜ