Submission #998673

#TimeUsernameProblemLanguageResultExecution timeMemory
99867312345678Coreputer (IOI23_coreputer)C++17
60 / 100
1 ms344 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...