Submission #448091

#TimeUsernameProblemLanguageResultExecution timeMemory
448091cadmiumskyFootball (info1cup20_football)C++14
100 / 100
245 ms1976 KiB
#include <iostream> using std::cin; using std::cout; static void testcase() { int n,k,xsum=0; cin >> n >> k; for(int i=0,x; i<n; i++) cin >> x,xsum^=x; for(int i=1; i<=k; i<<=1) { if(i&xsum) { cout << "1"; return; } } cout << "0"; } int main() { int t; cin >> t; while(t--) testcase(); cout <<'\n'; }
#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...