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 "coreputer.h"
#include <bits/stdc++.h>
using namespace std;
std::vector<int> malfunctioning_cores(int N) {
vector<int> v, res(N);
for (int i=0; i<N; i++)
{
v.push_back(i);
if (run_diagnostic(v)>=0) res[i]=1, v.pop_back();
}
v.clear();
for (int i=N-1; i>=0; i--)
{
v.push_back(i);
if (run_diagnostic(v)>=0) res[i]=1, v.pop_back();
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |