// incorrect/solution-wa.cpp
#include "coreputer.h"
#include <iostream>
std::vector<int> malfunctioning_cores(int N) {
std::vector<int> c(N);
for(int i=0; i<N; i++) c[i] = 0;
for(int i=0; i<N; i++){
if(run_diagnostic({i})==1) c[i] = 1;
}
return c;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
208 KB |
Output is correct |
2 |
Correct |
0 ms |
208 KB |
Output is correct |
3 |
Incorrect |
0 ms |
208 KB |
Incorrect |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
208 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
208 KB |
Output is correct |
2 |
Correct |
0 ms |
208 KB |
Output is correct |
3 |
Incorrect |
0 ms |
208 KB |
Incorrect |
4 |
Halted |
0 ms |
0 KB |
- |