Submission #1108089

#TimeUsernameProblemLanguageResultExecution timeMemory
1108089HasanV11010238Football (info1cup20_football)C++17
100 / 100
208 ms2084 KiB
#include <bits/stdc++.h> #define ll long long #define INF 10000000000 using namespace std; int main(){ int t; cin>>t; while (t--){ ll n, k; cin>>n>>k; vector<ll> v(n); for (int i = 0; i < n; i++){ cin>>v[i]; } ll d = 1, ans = 0; while (d <= k){ ll cnt = 0; for (int i = 0; i < n; i++){ cnt += v[i] / d; } if (cnt % 2 == 1){ ans = 1; break; } d *= 2; } cout<<ans; } }
#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...