Submission #2657

# Submission time Handle Problem Language Result Execution time Memory
2657 2013-07-30T12:34:36 Z domece 짝수 정렬 (tutorial3) C
0 / 100
0 ms 1088 KB
void sort_even(int N, int *A){
int i,j;
for(i=0;i<N;i++){
int tmp=A[i];
int index=i;
for(j=1;j<N;j++){
if(tmp>A[j]) tmp=A[j],index=j;
}
A[i]^=A[index]^=A[i]^=A[index];
if(A[i]%2==0) Report(A[i]);
}
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -