Submission #627204

#TimeUsernameProblemLanguageResultExecution timeMemory
627204model_codeDigital Circuit (IOI22_circuit)C++17
2 / 100
14 ms1464 KiB
// failed/solution-prabowo-n-equals-one.cpp // O(QM) #include "circuit.h" #include <numeric> #include <vector> std::vector<int> A; void init(int, int, std::vector<int>, std::vector<int> _A) { A = _A; } int count_ways(int L, int R) { for (int j = --L; j < R; ++j) { A[j] ^= 1; } return std::accumulate(A.begin(), A.end(), 0); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...