제출 #1027484

#제출 시각아이디문제언어결과실행 시간메모리
1027484vjudge1Football (info1cup20_football)C++17
100 / 100
23 ms2140 KiB
#include <bits/stdc++.h> using namespace std; typedef long long lo; #define fi first #define se second #define endl "\n" #define pb push_back #define int long long #define fio() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) #define FOR for(int i=1;i<=n;i++) #define mid ((start+end)/2) #define ort ((bas+son)/2) #define _ << " " << const lo inf = 1000000000; const lo li = 500005; const lo mod = 1000000007; int n,m,a[li],k,flag,t; int cev; string s; vector<int> v; int32_t main(void){ fio(); cin>>t; while(t--){ cin>>n>>k; cev=0; FOR cin>>a[i]; cev=0; for(int j=0;j<=30;j++){ if((1<<j)<=k){ int say=0; FOR say+=a[i]/(1<<j); if(say%2)cev=1; } } cout<<cev; } 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...