This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "grader.h"
#include <stdlib.h>
int compare(const void* n1, const void* n2){
int a = *(int*)n1;
int b = *(int*)n2;
if (a>b) return 1;
else if (a<b) return -1;
else return 0;
}
void sort_even(int N, int *A) {
int i;
qsort(A, N, sizeof(int), compare);
for (i = 0; i < N; i++) {
if (A[i] % 2 == 0) Report(A[i]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |