Dolphins의 HelloWorld
[백준]Baekjoon2751(정렬) 본문
문제링크 : https://www.acmicpc.net/problem/2751
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { long long N, num; scanf("%lld", &N); vector<long long> v; while (N--) { scanf("%lld", &num); v.push_back(num); } sort(v.begin(), v.end()); for (int i = 0; i < v.size(); i++) printf("%lld\n", v[i]); }
'Algorithm > baekjoon문제풀이' 카테고리의 다른 글
[백준]Baekjoon10989(정렬) (0) | 2018.08.12 |
---|---|
[백준]Baekjoon10814(정렬) (0) | 2018.08.12 |
[백준]Baekjoon9461(Dynamic Programming) (0) | 2018.08.07 |
[백준]Baekjoon1699(Dynamic Programming) (0) | 2018.08.07 |
[백준]Baekjoon2579(Dynamic Programming) (0) | 2018.08.06 |
Comments