# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
339699 | wwdd | Football (info1cup20_football) | C++14 | 40 ms | 2156 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
int main() {
ios::sync_with_stdio(0);cin.tie(0);
ll N;
cin >> N;
while(N--) {
ll n,k;
cin >> n >> k;
vl w;
for(int i=0;i<n;i++) {
ll t;
cin >> t;
w.push_back(t);
}
int res = 0;
while(k) {
ll su = 0;
for(int i=0;i<w.size();i++) {
su += w[i];
}
if(su&1) {
res = 1;break;
}
for(int i=0;i<w.size();i++) {
w[i] /= 2;
}
k /= 2;
}
cout << res;
}
cout << '\n';
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |