제출 #691255

#제출 시각아이디문제언어결과실행 시간메모리
691255AiperiiiFootball (info1cup20_football)C++14
100 / 100
199 ms2080 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n,k; cin>>n>>k; vector <int> a(n); for(int i=0;i<n;i++){ cin>>a[i]; } int win=0; for(int j=1;j<=k;j*=2){ int num=0; for(int i=0;i<n;i++){ num^=a[i] & j; } if(num){ win=1; } } cout<<win; } }
#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...