Submission #725535

#TimeUsernameProblemLanguageResultExecution timeMemory
725535groshiFootball (info1cup20_football)C++17
100 / 100
35 ms2032 KiB
#include<bits/stdc++.h> #define int long long using namespace std; int t[300000]; int32_t main() { cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0); int zap; cin>>zap; while(zap--) { int n,k; cin>>n>>k; for(int i=1;i<=n;i++) cin>>t[i]; int git=0; for(int j=1;j<=k;j*=2) { int suma=0; for(int i=1;i<=n;i++) suma+=(t[i]%2); if(suma%2==1) { git=1; break; } for(int i=1;i<=n;i++) t[i]/=2; } cout<<git; } return 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...