Submission #825626

#TimeUsernameProblemLanguageResultExecution timeMemory
825626petezaDigital Circuit (IOI22_circuit)C++17
2 / 100
1562 ms1104 KiB
#include "circuit.h" #include <bits/stdc++.h> int ns, ms; std::vector<int> as; void init(int N, int M, std::vector<int> P, std::vector<int> A) { ns = N; ms = M; as = A; } int count_ways(int L, int R) { for(int i=L;i<=R;i++) as[i-ns] ^= 1;; return std::accumulate(as.begin(), as.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...