Submission #4598

# Submission time Handle Problem Language Result Execution time Memory
4598 2013-11-10T02:10:28 Z Namnamseo 짝수 정렬 (tutorial3) C++
0 / 100
0 ms 1200 KB
#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
1 Incorrect 0 ms 1200 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1200 KB Output isn't correct
2 Halted 0 ms 0 KB -