제출 #987023

#제출 시각아이디문제언어결과실행 시간메모리
987023user736482Football (info1cup20_football)C++17
43 / 100
185 ms2272 KiB
#include<bits/stdc++.h> using namespace std; int k,n,b,t,ak; 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...