# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
145825 | 2019-08-21T07:05:34 Z | hahorse | 짝수 정렬 (tutorial3) | C++14 | 0 ms | 0 KB |
#include <stdio.h> #include <vector> #include <algorithm> #include "grader.h" using namespace std; int sort_even(int n, int *a){ vector <int > v; for(int i=0;i<n;i++){ if(a[i]%2==0){ v.push_back(a[i]); } } sort(v.begin(),v.end(); for(auto it:v){ Report(it); } }