제출 #208508

#제출 시각아이디문제언어결과실행 시간메모리
208508tamionvFootball (info1cup20_football)C++17
100 / 100
321 ms504 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; using cd = complex<double>; int main(){ int t; cin >> t; while(t--){ int n, k; cin >> n >> k; assert(k <= 1e9); k = 1 << (32 - __builtin_clz(k)); int r = 0; for(int y; n--; ){ cin >> y; assert(y <= 1e9); r = (r ^ y) % k; } cout << (r != 0); } cout << '\n'; 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...