제출 #865042

#제출 시각아이디문제언어결과실행 시간메모리
865042Darren0724Football (info1cup20_football)C++17
100 / 100
47 ms2132 KiB
#include<bits/stdc++.h> using namespace std; #define all(x) x.begin(),x.end() #define int long long #define ACorz ios_base::sync_with_stdio(false);cin.tie(0); void solve(){ int n,k;cin>>n>>k; vector<int> v(n); vector<int> a(30); for(int i=0;i<n;i++){ cin>>v[i]; for(int j=0;j<30;j++){ a[j]+=v[i]/(1<<j); } } int flag=0; for(int i=0;i<30;i++){ if((1<<i)<=k){ flag|=(a[i]&1); } } cout<<flag; } int32_t main(){ ACorz; int t=1;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...