#include <iostream>
#include <vector>
#include <algorithm>
#include "grader.h"
using namespace std;
void sort_even(int n, int *arr) {
vector<int> even;
for (int i = 1; i < n; i++)
if (arr[i] % 2 == 0)
even.push_back(arr[i]);
sort(even.begin(), even.end());
for (auto it : even)
Report(it);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
256 KB |
Output is correct |
2 |
Correct |
2 ms |
376 KB |
Output is correct |
3 |
Correct |
2 ms |
256 KB |
Output is correct |
4 |
Incorrect |
2 ms |
376 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |