# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
910748 | 2024-01-18T07:48:06 Z | tnun | Digital Circuit (IOI22_circuit) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back int N,M,P[100060],A[100060]; int count_ways(int l,int r){ for(int i=l-1;i<r;i++){ A[i]=(A[i]+1)%2; } int cnt=0; for(int i=0;i<M;i++){ if(A[i]==1){ cnt++; } } return cnt; } void init(int N,int M, int P[],int A[]){ }