제출 #987027

#제출 시각아이디문제언어결과실행 시간메모리
987027user736482Football (info1cup20_football)C++17
100 / 100
172 ms2128 KiB
#include<bits/stdc++.h> using namespace std; int k,n,t,ak; long long b; bool result; vector<int>classes; int main(){ cin>>t; for(int p=0;p<t;p++){ result=0; cin>>n>>k; classes.clear(); for(int i=0;i<n;i++){ cin>>ak; classes.push_back(ak); } for(int a=1;a<=k;a*=2){ b=0; for(int i=0;i<n;i++){ b+=classes[i]/a; } if(b%2==1) result=1; } cout<<result; } }
#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...