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 <algorithm>
void sort_even(int n,int *a){
int sorted[n];
int i,j=0;
for(i=0;i<n;i++)
{
if(a[i]%2)
{
sorted[j++]=a[i];
}
}
std::sort(sorted,sorted+j-1);
for(i=0;i<j;i++)
{
Report(sorted[i]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |