제출 #1116509

#제출 시각아이디문제언어결과실행 시간메모리
1116509epicci23Football (info1cup20_football)C++17
100 / 100
24 ms1388 KiB
#include "bits/stdc++.h" #define int long long #define all(v) v.begin() , v.end() #define sz(a) (int)a.size() using namespace std; void _(){ int n,k; cin >> n >> k; vector<int> v(n); for(int i=0;i<n;i++) cin >> v[i]; for(int p=1;p<=k;p*=2){ int hm = 0; for(int i=0;i<n;i++) hm+=v[i]/p; if(hm&1){ cout << 1; return; } } cout << 0; } int32_t main(){ cin.tie(0); ios::sync_with_stdio(0); int tc=1;cin >> tc; while(tc--) _(); 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...