Submission #7904

#TimeUsernameProblemLanguageResultExecution timeMemory
7904gs14004짝수 정렬 (tutorial3)C++98
100 / 100
0 ms1204 KiB
#include "grader.h" #include <queue> using namespace std; void sort_even(int N, int *A) { priority_queue<int,vector<int>,greater<int> > pq; for (int i=0; i<N; i++) { if(A[i]%2 == 0) pq.push(A[i]); } while (!pq.empty()) { Report(pq.top()); pq.pop(); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...