Submission #865045

#TimeUsernameProblemLanguageResultExecution timeMemory
865045Darren0724Football (info1cup20_football)C++17
100 / 100
190 ms756 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int t;cin>>t; while(t--){ int n,k,a[30]{};cin>>n>>k; while(n--){ int p;cin>>p; for(int j=0;j<30;j++){ a[j]^=(p/(1<<j)&1); } } int b=0; for(int j=0;j<30;j++){ if((1<<j)<=k){ b|=a[j]; } } cout<<b; } }
#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...