Submission #685279

#TimeUsernameProblemLanguageResultExecution timeMemory
685279tudorFootball (info1cup20_football)C++17
100 / 100
192 ms1996 KiB
#include <iostream> using namespace std; void solve () { int n, k, res = 0, x; cin >> n >> k; for ( int i = 1; i <= n; i++ ) { cin >> x; res ^= x; } for ( int p = 1; p <= k; p <<= 1 ) if ( res & p ) { cout << 1; return; } cout << 0; } int main() { int t; cin >> t; while ( t-- ) solve (); 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...